[coreboot-gerrit] Patch set updated for coreboot: drivers/spi: Add support for Micron N25Q128A
Werner Zeh (werner.zeh@siemens.com)
gerrit at coreboot.org
Fri Aug 5 06:17:54 CEST 2016
Werner Zeh (werner.zeh at siemens.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16061
-gerrit
commit 218e45b57356216623feb874930e56142018ce7e
Author: Werner Zeh <werner.zeh at siemens.com>
Date: Thu Aug 4 08:12:04 2016 +0200
drivers/spi: Add support for Micron N25Q128A
Although we have already support for the flash chip N25Q128 there is a
similar type available which has the same geometry and opcodes but
unfortunately a slightly different device type ID. While the already
supported N25Q128 has the ID 0xbb18 this one has the ID 0xba18.
To make both types available in the flash support table, use N25Q128A as
the flash name. This name can be found in the datasheet which can be
found here:
https://www.micron.com/~/media/documents/products/data-sheet/nor-flash/serial-nor/n25q/n25q_128mb_3v_65nm.pdf
TEST=Booted and verified that MRC cache could be written
Change-Id: I02a47692efb23a9a06a289c367488abd256b8e0c
Signed-off-by: Werner Zeh <werner.zeh at siemens.com>
---
src/drivers/spi/stmicro.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/drivers/spi/stmicro.c b/src/drivers/spi/stmicro.c
index 3a4e6a4..6ab601c 100644
--- a/src/drivers/spi/stmicro.c
+++ b/src/drivers/spi/stmicro.c
@@ -52,6 +52,7 @@
#define STM_ID_N25Q256 0xba19
#define STM_ID_N25Q064 0xbb17
#define STM_ID_N25Q128 0xbb18
+#define STM_ID_N25Q128A 0xba18
struct stmicro_spi_flash_params {
u16 device_id;
@@ -156,6 +157,14 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
.name = "N25Q128",
},
{
+ .device_id = STM_ID_N25Q128A,
+ .op_erase = CMD_M25PXX_SSE,
+ .page_size = 256,
+ .pages_per_sector = 16,
+ .nr_sectors = 4096,
+ .name = "N25Q128A",
+ },
+ {
.device_id = STM_ID_N25Q256,
.op_erase = CMD_M25PXX_SSE,
.page_size = 256,
More information about the coreboot-gerrit
mailing list