[U-Boot] [PATCH 05/12] sf: probe: Update sector_size for M25P* parts
Jagannadha Sutradharudu Teki
jagannadha.sutradharudu-teki at xilinx.com
Sun Aug 4 23:20:28 CEST 2013
Updated/Corrected the sector_size as per the datasheets.
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at xilinx.com>
---
drivers/mtd/spi/spi_flash_probe.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/spi/spi_flash_probe.c b/drivers/mtd/spi/spi_flash_probe.c
index 7b11365..93209a9 100644
--- a/drivers/mtd/spi/spi_flash_probe.c
+++ b/drivers/mtd/spi/spi_flash_probe.c
@@ -35,14 +35,14 @@ static const struct {
u32 nr_sectors;
} spi_flash_ids[] = {
/* STMICRO */
- {"M25P10", 0x202011, 0x0, 256 * 256, 4},
- {"M25P20", 0x202012, 0x0, 256 * 256, 4},
- {"M25P40", 0x202013, 0x0, 256 * 256, 8},
- {"M25P80", 0x202014, 0x0, 256 * 256, 16},
- {"M25P16", 0x202015, 0x0, 256 * 256, 32},
- {"M25P32", 0x202016, 0x0, 256 * 256, 64},
- {"M25P64", 0x202017, 0x0, 256 * 256, 128},
- {"M25P128", 0x202018, 0x0, 256 * 1024, 64},
+ {"M25P10", 0x202011, 0x0, 32 * 1024, 4},
+ {"M25P20", 0x202012, 0x0, 64 * 1024, 4},
+ {"M25P40", 0x202013, 0x0, 64 * 1024, 8},
+ {"M25P80", 0x202014, 0x0, 64 * 1024, 16},
+ {"M25P16", 0x202015, 0x0, 64 * 1024, 32},
+ {"M25P32", 0x202016, 0x0, 64 * 1024, 64},
+ {"M25P64", 0x202017, 0x0, 64 * 1024, 128},
+ {"M25P128", 0x202018, 0x0, 256 * 1024, 64},
{"N25Q32", 0x20ba16, 0x0, 64 * 1024, 64},
{"N25Q32A", 0x20bb16, 0x0, 64 * 1024, 64},
{"N25Q64", 0x20ba17, 0x0, 64 * 1024, 128},
--
1.8.3
More information about the U-Boot
mailing list