[U-Boot] [PATCH v2 08/12] sf: Update Macronix flash params
Bin Meng
bmeng.cn at gmail.com
Sat Nov 1 09:54:59 CET 2014
Explicitly list supported read commands in the flash prarmas table
for Macronix flash parts. Update flash sector size to 4KiB as long
as flash supports sector erase (20h) command.
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
drivers/mtd/spi/sf_params.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/mtd/spi/sf_params.c b/drivers/mtd/spi/sf_params.c
index 07038bc..f41e7f7 100644
--- a/drivers/mtd/spi/sf_params.c
+++ b/drivers/mtd/spi/sf_params.c
@@ -36,16 +36,16 @@ const struct spi_flash_params spi_flash_params_table[] = {
{"GD25LQ32", 0xc86016, 0x0, 4 * 1024, 1024, RD_FULL, SECT_4K},
#endif
#ifdef CONFIG_SPI_FLASH_MACRONIX /* MACRONIX */
- {"MX25L2006E", 0xc22012, 0x0, 64 * 1024, 4, 0, 0},
- {"MX25L4005", 0xc22013, 0x0, 64 * 1024, 8, 0, 0},
- {"MX25L8005", 0xc22014, 0x0, 64 * 1024, 16, 0, 0},
- {"MX25L1605D", 0xc22015, 0x0, 64 * 1024, 32, 0, 0},
- {"MX25L3205D", 0xc22016, 0x0, 64 * 1024, 64, 0, 0},
- {"MX25L6405D", 0xc22017, 0x0, 64 * 1024, 128, 0, 0},
- {"MX25L12805", 0xc22018, 0x0, 64 * 1024, 256, RD_FULL, WR_QPP},
- {"MX25L25635F", 0xc22019, 0x0, 64 * 1024, 512, RD_FULL, WR_QPP},
- {"MX25L51235F", 0xc2201a, 0x0, 64 * 1024, 1024, RD_FULL, WR_QPP},
- {"MX25L12855E", 0xc22618, 0x0, 64 * 1024, 256, RD_FULL, WR_QPP},
+ {"MX25L2006E", 0xc22012, 0x0, 4 * 1024, 64, RD_BASC | DUAL_OUTPUT_FAST, SECT_4K},
+ {"MX25L4005", 0xc22013, 0x0, 4 * 1024, 128, RD_BASC, SECT_4K},
+ {"MX25L8005", 0xc22014, 0x0, 4 * 1024, 256, RD_BASC, SECT_4K},
+ {"MX25L1605D", 0xc22015, 0x0, 4 * 1024, 512, RD_BASC, SECT_4K},
+ {"MX25L3205D", 0xc22016, 0x0, 4 * 1024, 1024, RD_BASC, SECT_4K},
+ {"MX25L6405D", 0xc22017, 0x0, 4 * 1024, 2048, RD_BASC, SECT_4K},
+ {"MX25L12805", 0xc22018, 0x0, 4 * 1024, 4096, RD_BASC, SECT_4K},
+ {"MX25L25635F", 0xc22019, 0x0, 4 * 1024, 8192, RD_FULL, WR_QPP | SECT_4K},
+ {"MX25L51235F", 0xc2201a, 0x0, 4 * 1024, 16384, RD_FULL, WR_QPP | SECT_4K},
+ {"MX25L12855E", 0xc22618, 0x0, 4 * 1024, 4096, RD_BASC | DUAL_IO_FAST | QUAD_IO_FAST, WR_QPP | SECT_4K},
#endif
#ifdef CONFIG_SPI_FLASH_SPANSION /* SPANSION */
{"S25FL008A", 0x010213, 0x0, 64 * 1024, 16, 0, 0},
--
1.8.2.1
More information about the U-Boot
mailing list