summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorDavid Imhoff <dimhoff_devel@xs4all.nl>2015-05-03 16:02:56 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-05-04 22:34:01 +0200
commit61295b52903e832face3a3bfa39ab39d79b70ef1 (patch)
tree3d871569ca81439730b234b4c0dc96bea1651599 /src/drivers
parent52148b77851d5a3f310149dc182ae1e170ca3eee (diff)
downloadcoreboot-61295b52903e832face3a3bfa39ab39d79b70ef1.tar.xz
drivers/spi/stmicro: Add N25Q064 support
N25Q064 is similar to N25Q128. TEST=Build and booted twice on Minnowboard Max Change-Id: Iec105f8b81f619846cf40b40042cc59150b81149 Signed-off-by: David Imhoff <dimhoff_devel@xs4all.nl> Reviewed-on: http://review.coreboot.org/10076 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/stmicro.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/spi/stmicro.c b/src/drivers/spi/stmicro.c
index 3cec0beb4c..b67c07257f 100644
--- a/src/drivers/spi/stmicro.c
+++ b/src/drivers/spi/stmicro.c
@@ -58,6 +58,7 @@
#define STM_ID_M25P80 0x2014
#define STM_ID_M25P128 0x2018
#define STM_ID_N25Q256A 0xba19
+#define STM_ID_N25Q064 0xbb17
#define STM_ID_N25Q128 0xbb18
struct stmicro_spi_flash_params {
@@ -147,6 +148,14 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
.name = "M25P128",
},
{
+ .device_id = STM_ID_N25Q064,
+ .op_erase = CMD_M25PXX_SSE,
+ .page_size = 256,
+ .pages_per_sector = 16,
+ .nr_sectors = 2048,
+ .name = "N25Q064",
+ },
+ {
.device_id = STM_ID_N25Q128,
.op_erase = CMD_M25PXX_SSE,
.page_size = 256,