summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2012-08-09 10:22:41 +0200
committerStefan Roese <sr@denx.de>2012-08-13 14:34:44 +0200
commit81316a902a2c76bc880ab49c6d157e3e9754806d (patch)
treeea31154edcc7cc39e14b52ace0eb2840238df55b /include/flash.h
parent66863b0538d3667a0a4bb64b0eb9197aea27f855 (diff)
downloadu-boot-imx-81316a902a2c76bc880ab49c6d157e3e9754806d.zip
u-boot-imx-81316a902a2c76bc880ab49c6d157e3e9754806d.tar.gz
u-boot-imx-81316a902a2c76bc880ab49c6d157e3e9754806d.tar.bz2
mtd/cfi_flash: fix write problems for Numonyx P33/30 32 MBit flashs
commit 54652991 Work around bug in Numonyx P33/P30 256-Mbit 65nm flash chips fixes a problem for Numonyx P33/P30 flashes for 256-Mbit, but this leads to problems for smaller versions of this chip e.g. the 32Mbit version with deviceid 0x16 on mgcoge. So move the code for this work around to an own function and check previously manufacturer id and device id to not break other flashes which don't need this work around. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Signed-off-by: Heiko Schocher <hs@denx.de> cc: Stefan Roese <sr@denx.de> cc: Philippe De Muyter <phdm@macqel.be> cc: Gerlando Falauto <gerlando.falauto@keymile.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index 0ca70d9..e614d07 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -348,6 +348,7 @@ extern flash_info_t *flash_get_info(ulong base);
#define TOSH_ID_FVT160 0xC2 /* TC58FVT160 ID (16 M, top ) */
#define TOSH_ID_FVB160 0x43 /* TC58FVT160 ID (16 M, bottom ) */
#define PHILIPS_LPC2292 0x0401FF13 /* LPC2292 internal FLASH */
+#define NUMONYX_256MBIT 0x8922 /* Numonyx P33/30 256MBit 65nm */
/*-----------------------------------------------------------------------
* Internal FLASH identification codes