summaryrefslogtreecommitdiff
path: root/src/drivers/spi
diff options
context:
space:
mode:
authorDavid Imhoff <dimhoff_devel@xs4all.nl>2015-05-03 16:05:41 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-05-04 22:34:06 +0200
commita42edc30e95dad8bbdd289b3c60e2cc6909db315 (patch)
tree7be50327d7f49c2454adb64cfdaa97dab3f5c4ac /src/drivers/spi
parent61295b52903e832face3a3bfa39ab39d79b70ef1 (diff)
drivers/spi/stmicro: Add '.op_erase' for N25Q256
'.op_erase' was not specified for this chip. Set it to sub sector erase(CMD_M25PXX_SSE). Adjust page/sector size for sub sector erase to work. TEST=Untested, due to lack of hardware. Change-Id: Icc2748fbd3afeb56693e1c17d97eb490fba67064 Signed-off-by: David Imhoff <dimhoff_devel@xs4all.nl> Reviewed-on: http://review.coreboot.org/10077 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers/spi')
-rw-r--r--src/drivers/spi/stmicro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/spi/stmicro.c b/src/drivers/spi/stmicro.c
index b67c07257f..ab21f8f48f 100644
--- a/src/drivers/spi/stmicro.c
+++ b/src/drivers/spi/stmicro.c
@@ -165,9 +165,10 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
},
{
.device_id = STM_ID_N25Q256A,
+ .op_erase = CMD_M25PXX_SSE,
.page_size = 256,
- .pages_per_sector = 256,
- .nr_sectors = 512,
+ .pages_per_sector = 16,
+ .nr_sectors = 8192,
.name = "N25Q256A",
},
};