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@siemens.com> Reviewed-on: https://review.coreboot.org/16061 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
f61de073e5
commit
6c481755c4
|
@ -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;
|
||||
|
@ -155,6 +156,14 @@ static const struct stmicro_spi_flash_params stmicro_spi_flash_table[] = {
|
|||
.nr_sectors = 4096,
|
||||
.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,
|
||||
|
|
Loading…
Reference in New Issue