summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeichao Wang <peichao.wang@bitland.corp-partner.google.com>2019-11-12 08:36:53 +0800
committerPatrick Georgi <pgeorgi@google.com>2019-11-13 09:13:25 +0000
commit0d92271d2cfcb98712b9e0a0c7c295bbe929b4ab (patch)
treef6f23c22ca292b097680a29dad4ab43fa6361376
parentead8a07cee63277da683e42ca820e1e853a3de17 (diff)
downloadcoreboot-0d92271d2cfcb98712b9e0a0c7c295bbe929b4ab.tar.xz
spi: Add Winbond W25Q128JW_DTR SPI ROM support
BUG=b:144297264 TEST=Boot with W25Q128JW_DTR and check MRC data save/restore works. Signed-off-by: Peichao Wang <peichao.wang@bitland.corp-partner.google.com> Change-Id: Ica6344556e5de94555b95dd7c6df5600614811e2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/36762 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
-rw-r--r--src/drivers/spi/winbond.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/spi/winbond.c b/src/drivers/spi/winbond.c
index fa9140ec01..9e451171e5 100644
--- a/src/drivers/spi/winbond.c
+++ b/src/drivers/spi/winbond.c
@@ -262,6 +262,17 @@ static const struct winbond_spi_flash_params winbond_spi_flash_table[] = {
.bp_bits = 3,
},
{
+ .id = 0x8018,
+ .l2_page_size_shift = 8,
+ .pages_per_sector_shift = 4,
+ .sectors_per_block_shift = 4,
+ .nr_blocks_shift = 8,
+ .name = "W25Q128JW",
+ .dual_spi = 1,
+ .protection_granularity_shift = 18,
+ .bp_bits = 3,
+ },
+ {
.id = 0x4019,
.l2_page_size_shift = 8,
.pages_per_sector_shift = 4,