UPSTREAM: 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 BUG=None BRANCH=None Change-Id: Ic8acba7f4c55347e45798ce4bea577094be7e281 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> Reviewed-on: https://chromium-review.googlesource.com/368518 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
43b53dc098
commit
55859f5c41
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue