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>
This commit is contained in:
parent
3cc685fd3e
commit
b1528838f6
|
@ -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;
|
||||
|
@ -122,6 +124,14 @@ static const struct spansion_spi_flash_params spansion_spi_flash_table[] = {
|
|||
.nr_sectors = 64,
|
||||
.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,
|
||||
|
|
Loading…
Reference in New Issue