diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2014-05-01 15:50:43 -0700 |
---|---|---|
committer | Marc Jones <marc.jones@se-eng.com> | 2014-12-30 19:29:23 +0100 |
commit | b1528838f6ba4cdbb0d8f01bf511d9b9482af172 (patch) | |
tree | 8dee9b53d16c8f6599e2f02aa052213a303368dc | |
parent | 3cc685fd3e851b1bd2b77690ee05ca7f6c5974f7 (diff) | |
download | coreboot-b1528838f6ba4cdbb0d8f01bf511d9b9482af172.tar.xz |
drivers/spi: add support for another Spansion chip
Add the device ID definitions and properties for the SPI chip used on
the AP148 board (Google Storm).
BUG=chrome-os-partner:27784
TEST=manual
. with the rest of the patches applied AP148 boots all the way to
trying to read the payload.
Original-Change-Id: I5a0e5c9d3cc9ea81bc5227c0fbc1d0a5fc7bec27
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/197895
Original-Reviewed-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit a7c69981b18ac6b1158273596b94df0def65963d)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Change-Id: I14e2f4f8f691a7db6ed596a3440914e08680867b
Reviewed-on: http://review.coreboot.org/7931
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
-rw-r--r-- | src/drivers/spi/spansion.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/spi/spansion.c b/src/drivers/spi/spansion.c index fba816af62..e17f890aa1 100644 --- a/src/drivers/spi/spansion.c +++ b/src/drivers/spi/spansion.c @@ -48,10 +48,12 @@ #define SPSN_ID_S25FL016A 0x0214 #define SPSN_ID_S25FL032A 0x0215 #define SPSN_ID_S25FL064A 0x0216 +#define SPSN_ID_S25FL128S 0x0219 #define SPSN_ID_S25FL128P 0x2018 #define SPSN_EXT_ID_S25FL128P_256KB 0x0300 #define SPSN_EXT_ID_S25FL128P_64KB 0x0301 #define SPSN_EXT_ID_S25FL032P 0x4d00 +#define SPSN_EXT_ID_S25FLXXS_64KB 0x4d01 struct spansion_spi_flash_params { u16 idcode1; @@ -123,6 +125,14 @@ static const struct spansion_spi_flash_params spansion_spi_flash_table[] = { .name = "S25FL128P_256K", }, { + .idcode1 = SPSN_ID_S25FL128S, + .idcode2 = SPSN_EXT_ID_S25FLXXS_64KB, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 512, + .name = "S25FL128S_256K", + }, + { .idcode1 = SPSN_ID_S25FL032A, .idcode2 = SPSN_EXT_ID_S25FL032P, .page_size = 256, |