[PATCH 2/4] bsps/xqspipsu: Correct s25fl512s flash definition
Kinsey Moore
kinsey.moore at oarcorp.com
Wed Jun 7 19:13:45 UTC 2023
The definition for the s25fl512s flash chip is incorrect. This updates
the sector size and page size values to match the datasheet.
---
bsps/include/dev/spi/xqspipsu_flash_config.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsps/include/dev/spi/xqspipsu_flash_config.h b/bsps/include/dev/spi/xqspipsu_flash_config.h
index 8ef89f85ff..8310a87536 100644
--- a/bsps/include/dev/spi/xqspipsu_flash_config.h
+++ b/bsps/include/dev/spi/xqspipsu_flash_config.h
@@ -222,8 +222,8 @@ FlashInfo Flash_Config_Table[] = {
{0x016019, SECTOR_SIZE_64K, NUM_OF_SECTORS512, BYTES256_PER_PAGE,
0x20000, 0x2000000, 0xFFFF0000, 1},
/*s25fl512s*/
- {0x010220, SECTOR_SIZE_64K, NUM_OF_SECTORS1024, BYTES256_PER_PAGE,
- 0x40000, 0x4000000, 0xFFFF0000, 1},
+ {0x010220, SECTOR_SIZE_256K, NUM_OF_SECTORS256, BYTES512_PER_PAGE,
+ 0x20000, 0x4000000, 0xFFFC0000, 1},
/* Spansion 1Gbit is handled as 512Mbit stacked */
/* Micron */
/*n25q128a11*/
--
2.30.2
More information about the devel
mailing list