From 934c68393346af66fbd832cfb9f74e1db6cb6f4b Mon Sep 17 00:00:00 2001 From: Varadarajan Narayanan Date: Mon, 21 Mar 2016 12:56:43 +0530 Subject: [PATCH] spi: Add support for Winbond W25Q256 BUG=chrome-os-partner:49249 TEST=None. Initial code not sure if it will even compile BRANCH=none Change-Id: Ifde289ec004f5d54d5df32011c87e49470e2bb5d Signed-off-by: Patrick Georgi Original-Commit-Id: 613b5ae45f7b8325863d8be492a451e6d076e293 Original-Change-Id: I93386e058a60b5c9b61d89607cf8c6e0de6a21ca Original-Signed-off-by: Varadarajan Narayanan Original-Reviewed-on: https://chromium-review.googlesource.com/334522 Original-Commit-Ready: David Hendricks Original-Reviewed-by: David Hendricks Reviewed-on: https://review.coreboot.org/14666 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/drivers/spi/winbond.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/drivers/spi/winbond.c b/src/drivers/spi/winbond.c index c4abc3a24a..defb8a5786 100644 --- a/src/drivers/spi/winbond.c +++ b/src/drivers/spi/winbond.c @@ -126,6 +126,14 @@ static const struct winbond_spi_flash_params winbond_spi_flash_table[] = { .nr_blocks = 256, .name = "W25Q128FW", }, + { + .id = 0x4019, + .l2_page_size = 8, + .pages_per_sector = 16, + .sectors_per_block = 16, + .nr_blocks = 512, + .name = "W25Q256", + }, }; static int winbond_write(struct spi_flash *flash,