Skip to content

Commit 1be274e

Browse files
committed
driver: flash: Add a macro to define the 32KB block size in spi_nor.h
Add a macro to define the 32KB block size in spi_nor.h Signed-off-by: Tien Nguyen <[email protected]>
1 parent 91317a5 commit 1be274e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/flash/spi_nor.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@
9090
#define SPI_NOR_OCMD_BULKE 0x609F /* Octa Bulk Erase */
9191

9292
/* Page, sector, and block size are standard, not configurable. */
93-
#define SPI_NOR_PAGE_SIZE 0x0100U
94-
#define SPI_NOR_SECTOR_SIZE 0x1000U
95-
#define SPI_NOR_BLOCK_SIZE 0x10000U
93+
#define SPI_NOR_PAGE_SIZE 0x0100U
94+
#define SPI_NOR_SECTOR_SIZE 0x1000U
95+
#define SPI_NOR_BLOCK_32K_SIZE 0x8000U
96+
#define SPI_NOR_BLOCK_SIZE 0x10000U
9697

9798
/* Flash Auto-polling values */
9899
#define SPI_NOR_WREN_MATCH 0x02

0 commit comments

Comments
 (0)