From patchwork Tue Jul 31 07:38:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,1/2] add ST PSD4256G6V to table of supported legacy flashs Date: Mon, 30 Jul 2012 21:38:32 -0000 From: Mike Frysinger X-Patchwork-Id: 174169 Message-Id: <1343720312-31716-1-git-send-email-vapier@gentoo.org> To: u-boot@lists.denx.de, Stefan Roese The BF533-EZKIT boards have this old ST flash. Signed-off-by: Mike Frysinger Acked-by: Stefan Roese --- drivers/mtd/jedec_flash.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c index 2350f36..b6cb037 100644 --- a/drivers/mtd/jedec_flash.c +++ b/drivers/mtd/jedec_flash.c @@ -30,6 +30,7 @@ /*#define DEBUG*/ #include +#include #include #include #include @@ -58,6 +59,9 @@ #define AM29F032B 0x0041 #define AM29F002T 0x00B0 +/* ST - www.st.com */ +#define PSD4256G6V 0x00e9 + /* SST */ #define SST39LF800 0x2781 #define SST39LF160 0x2782 @@ -367,6 +371,22 @@ static const struct amd_flash_info jedec_table[] = { } }, #endif +#ifdef CONFIG_SYS_FLASH_LEGACY_1Mx16 + { + .mfr_id = (u16)STM_MANUFACT, + .dev_id = 0xff00 | PSD4256G6V, + .name = "ST PSD4256G6V", + .uaddr = { + [1] = MTD_UADDR_0x0555_0x0AAA /* x16 */ + }, + .DevSize = SIZE_1MiB, + .CmdSet = CFI_CMDSET_AMD_STANDARD, + .NumEraseRegions = 4, + .regions = { + ERASEINFO(0x10000, 16), + } + }, +#endif }; static inline void fill_info(flash_info_t *info, const struct amd_flash_info *jedec_entry, ulong base)