From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Schwingen Date: Sat, 12 Jan 2008 14:43:01 +0100 Subject: [U-Boot-Users] [PATCH] fix CONFIG_FLASH_CFI_LEGACY compilation In-Reply-To: <200801120727.49282.sr@denx.de> References: <20080109213614.F0F71242E7@gemini.denx.de> <20080111210630.GA12864@discworld.dascon.de> <200801120727.49282.sr@denx.de> Message-ID: <20080112134301.GA6978@discworld.dascon.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jan 12, 2008 at 07:27:49AM +0100, Stefan Roese wrote: > > No. You CFI/JEDEC rework should be available in the official repository right > now. Could be that something slipped though. Best would be if you would > provide a patch that adds the missing JEDEC stuff. Okay - after a closer look, just a small change is required. Signed-off-by: Michael Schwingen diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 4f61e36..3a3439c 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -1446,11 +1446,11 @@ static void flash_read_jedec_ids (flash_info_t * info) switch (info->vendor) { case CFI_CMDSET_INTEL_STANDARD: case CFI_CMDSET_INTEL_EXTENDED: - flash_read_jedec_ids_intel(info); + cmdset_amd_read_jedec_ids(info); break; case CFI_CMDSET_AMD_STANDARD: case CFI_CMDSET_AMD_EXTENDED: - flash_read_jedec_ids_amd(info); + cmdset_intel_read_jedec_ids(info); break; default: break;