sf: Update GigaDevice flash params
PATCH v2 7/12 sf: Update GigaDevice flash params
Explicitly list supported read commands in the flash prarmas table for GigaDevice flash parts. Update flash sector size to 4KiB as long as flash supports sector erase (20h) command.
Signed-off-by Bin Meng <[email protected]>
--- drivers/mtd/spi/sf_params.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/spi/sf_params.c +2 -2
@@ -32,8 +32,8 @@ const struct spi_flash_params spi_flash_params_table[] = { {"EN25S64", 0x1c3817, 0x0, 4 * 1024, 2048, RD_EXTN | QUAD_IO_FAST, SECT_4K}, #endif #ifdef CONFIG_SPI_FLASH_GIGADEVICE /* GIGADEVICE */ - {"GD25Q64B", 0xc84017, 0x0, 64 * 1024, 128, 0, SECT_4K}, - {"GD25LQ32", 0xc86016, 0x0, 64 * 1024, 64, 0, SECT_4K}, + {"GD25Q64B", 0xc84017, 0x0, 4 * 1024, 2048, RD_FULL, SECT_4K}, + {"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},
Signature · 1 line
1.8.2.1