[U-Boot] [PATCH v2 09/12] sf: Update Spansion flash params
Bin Meng
bmeng.cn at gmail.com
Sat Nov 1 09:55:09 CET 2014
Explicitly list supported read commands in the flash prarmas table
for Spansion 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 f41e7f7..ce98fa9 100644
--- a/drivers/mtd/spi/sf_params.c
+++ b/drivers/mtd/spi/sf_params.c
@@ -48,18 +48,18 @@ const struct spi_flash_params spi_flash_params_table[] = {
{"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},
- {"S25FL016A", 0x010214, 0x0, 64 * 1024, 32, 0, 0},
- {"S25FL032A", 0x010215, 0x0, 64 * 1024, 64, 0, 0},
- {"S25FL064A", 0x010216, 0x0, 64 * 1024, 128, 0, 0},
- {"S25FL128P_256K", 0x012018, 0x0300, 256 * 1024, 64, RD_FULL, WR_QPP},
- {"S25FL128P_64K", 0x012018, 0x0301, 64 * 1024, 256, RD_FULL, WR_QPP},
- {"S25FL032P", 0x010215, 0x4d00, 64 * 1024, 64, RD_FULL, WR_QPP},
- {"S25FL064P", 0x010216, 0x4d00, 64 * 1024, 128, RD_FULL, WR_QPP},
+ {"S25FL008A", 0x010213, 0x0, 64 * 1024, 16, RD_BASC, 0},
+ {"S25FL016A", 0x010214, 0x0, 64 * 1024, 32, RD_BASC, 0},
+ {"S25FL032A", 0x010215, 0x0, 64 * 1024, 64, RD_BASC, 0},
+ {"S25FL064A", 0x010216, 0x0, 64 * 1024, 128, RD_BASC, 0},
+ {"S25FL128P_256K", 0x012018, 0x0300, 256 * 1024, 64, RD_BASC, 0},
+ {"S25FL128P_64K", 0x012018, 0x0301, 64 * 1024, 256, RD_BASC, 0},
+ {"S25FL032P", 0x010215, 0x4d00, 4 * 1024, 1024, RD_FULL, WR_QPP | SECT_4K},
+ {"S25FL064P", 0x010216, 0x4d00, 4 * 1024, 2048, RD_FULL, WR_QPP | SECT_4K},
{"S25FL128S_256K", 0x012018, 0x4d00, 256 * 1024, 64, RD_FULL, WR_QPP},
- {"S25FL128S_64K", 0x012018, 0x4d01, 64 * 1024, 256, RD_FULL, WR_QPP},
+ {"S25FL128S_64K", 0x012018, 0x4d01, 4 * 1024, 4096, RD_FULL, WR_QPP | SECT_4K},
{"S25FL256S_256K", 0x010219, 0x4d00, 256 * 1024, 128, RD_FULL, WR_QPP},
- {"S25FL256S_64K", 0x010219, 0x4d01, 64 * 1024, 512, RD_FULL, WR_QPP},
+ {"S25FL256S_64K", 0x010219, 0x4d01, 4 * 1024, 8192, RD_FULL, WR_QPP | SECT_4K},
{"S25FL512S_256K", 0x010220, 0x4d00, 256 * 1024, 256, RD_FULL, WR_QPP},
{"S25FL512S_64K", 0x010220, 0x4d01, 64 * 1024, 1024, RD_FULL, WR_QPP},
{"S25FL512S_512K", 0x010220, 0x4f00, 256 * 1024, 256, RD_FULL, WR_QPP},
--
1.8.2.1
More information about the U-Boot
mailing list