[rtems commit] bsps/xqspipsu: Correct s25fl512s flash definition

Joel Sherrill joel at rtems.org
Thu Jun 8 14:27:57 UTC 2023


Module:    rtems
Branch:    master
Commit:    4ca4311036f7206771cc2cf0f4ce2aa0ef37fbbf
Changeset: http://git.rtems.org/rtems/commit/?id=4ca4311036f7206771cc2cf0f4ce2aa0ef37fbbf

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Wed May 24 13:53:45 2023 -0500

bsps/xqspipsu: Correct s25fl512s flash definition

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*/



More information about the vc mailing list