[coreboot-gerrit] New patch to review for coreboot: 5c1d6a2 SPI: Add STMicro part N25Q256

Kyösti Mälkki (kyosti.malkki@gmail.com) gerrit at coreboot.org
Tue Nov 11 14:14:40 CET 2014


Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/7431

-gerrit

commit 5c1d6a209b6cff848bb25401653e5bba4884092a
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date:   Tue Nov 11 15:00:07 2014 +0200

    SPI: Add STMicro part N25Q256
    
    Change-Id: Iebceec64a6fccf9c5772733cd3e89823a56cdbfb
    Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
 src/drivers/spi/stmicro.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/drivers/spi/stmicro.c b/src/drivers/spi/stmicro.c
old mode 100644
new mode 100755
index fda6124..6feb77e
--- a/src/drivers/spi/stmicro.c
+++ b/src/drivers/spi/stmicro.c
@@ -54,6 +54,9 @@
 #define STM_ID_M25P64		0x17
 #define STM_ID_M25P80		0x14
 #define STM_ID_M25P128		0x18
+
+#define STM_ID_N25Q256		0x19
+
 #define STM_ID_USE_ALT_ID	0xFF
 
 /* Some SPI flash share the same .idcode1 (idcode[2]). To handle this without
@@ -157,6 +160,13 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
 		.nr_sectors = 64,
 		.name = "M25P128",
 	},
+	{
+		.idcode1 = STM_ID_N25Q256,
+		.page_size = 256,
+		.pages_per_sector = 256,
+		.nr_sectors = 512,
+		.name = "N25Q256",
+	},
 };
 
 static int stmicro_write(struct spi_flash *flash,



More information about the coreboot-gerrit mailing list