summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/jedec_flash.c
diff options
context:
space:
mode:
authorTor Krill <tor@excito.com>2008-03-28 11:29:10 +0100
committerStefan Roese <sr@denx.de>2008-03-28 11:44:23 +0100
commit90447ecbbac8572457b6d8903073ac3f120995ba (patch)
treed2810fc72c7f1af271d89685a5d6205094beea28 /drivers/mtd/jedec_flash.c
parent74d1e66d22dac91388bc538b2fe19f735edc5b82 (diff)
downloadtalos-obmc-uboot-90447ecbbac8572457b6d8903073ac3f120995ba.tar.gz
talos-obmc-uboot-90447ecbbac8572457b6d8903073ac3f120995ba.zip
MTD/CFI: Add support for 16bit legacy AMD flash
Add entry for 512Kx16 AMD flash to jedec_table. Read out 16bit device id if chipwidth is 16bit. Fixed coding style after Stefans feedback Signed-off-by: Tor Krill <tor@excito.com>
Diffstat (limited to 'drivers/mtd/jedec_flash.c')
-rw-r--r--drivers/mtd/jedec_flash.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
index 41aad3bd6a..b958d1723a 100644
--- a/drivers/mtd/jedec_flash.c
+++ b/drivers/mtd/jedec_flash.c
@@ -216,6 +216,25 @@ static const struct amd_flash_info jedec_table[] = {
}
},
#endif
+#ifdef CFG_FLASH_LEGACY_512Kx16
+ {
+ .mfr_id = MANUFACTURER_AMD,
+ .dev_id = AM29LV400BB,
+ .name = "AMD AM29LV400BB",
+ .uaddr = {
+ [1] = MTD_UADDR_0x0555_0x02AA /* x16 */
+ },
+ .DevSize = SIZE_512KiB,
+ .CmdSet = CFI_CMDSET_AMD_LEGACY,
+ .NumEraseRegions= 4,
+ .regions = {
+ ERASEINFO(0x04000,1),
+ ERASEINFO(0x02000,2),
+ ERASEINFO(0x08000,1),
+ ERASEINFO(0x10000,7),
+ }
+ },
+#endif
};
static inline void fill_info(flash_info_t *info, const struct amd_flash_info *jedec_entry, ulong base)
OpenPOWER on IntegriCloud