Commit fe2f4c8e authored by Andrea Adami's avatar Andrea Adami Committed by David Woodhouse

mtd: jedec_probe: fix LH28F640BF definition

Zaurus 5500 contains 2 LH28F640BFHE-PTTL90 (64M 4Mx16) and
the LH28F640BFHE-PTTL90.pdf datasheet available on the net shows
the exact erasesize and the OTP support.
At the moment only jedec_probe can discover the chip and
the NOR is mounted read only probably because of wrong vpp.
Signed-off-by: default avatarAndrea Adami <andrea.adami@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent edc9cba4
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
#define PM49FL008 0x006A #define PM49FL008 0x006A
/* Sharp */ /* Sharp */
#define LH28F640BF 0x00b0 #define LH28F640BF 0x00B0
/* ST - www.st.com */ /* ST - www.st.com */
#define M29F800AB 0x0058 #define M29F800AB 0x0058
...@@ -1299,13 +1299,14 @@ static const struct amd_flash_info jedec_table[] = { ...@@ -1299,13 +1299,14 @@ static const struct amd_flash_info jedec_table[] = {
.mfr_id = CFI_MFR_SHARP, .mfr_id = CFI_MFR_SHARP,
.dev_id = LH28F640BF, .dev_id = LH28F640BF,
.name = "LH28F640BF", .name = "LH28F640BF",
.devtypes = CFI_DEVICETYPE_X8, .devtypes = CFI_DEVICETYPE_X16,
.uaddr = MTD_UADDR_UNNECESSARY, .uaddr = MTD_UADDR_UNNECESSARY,
.dev_size = SIZE_4MiB, .dev_size = SIZE_8MiB,
.cmd_set = P_ID_INTEL_STD, .cmd_set = P_ID_INTEL_EXT,
.nr_regions = 1, .nr_regions = 2,
.regions = { .regions = {
ERASEINFO(0x40000,16), ERASEINFO(0x10000, 127),
ERASEINFO(0x02000, 8),
} }
}, { }, {
.mfr_id = CFI_MFR_SST, .mfr_id = CFI_MFR_SST,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment