diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-05 06:46:19 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-12 18:07:02 +0100 |
commit | 066dcec2fe3137bba049cbec669f57860ee21bbd (patch) | |
tree | 47c08682e0c857cd66c7009cc20ada6e06390c36 /src | |
parent | 09b65e63916749dc4cfbcd89decf2fdb1312c683 (diff) | |
download | coreboot-066dcec2fe3137bba049cbec669f57860ee21bbd.tar.xz |
drivers/spi/eon: Add EN25Q64
chip found in X230 if not using hardware sequencing.
Change-Id: I6ded10d35bfdbbe3d54c4170dd7846c7833f5ff7
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/4616
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/spi/eon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/spi/eon.c b/src/drivers/spi/eon.c index 21103ae221..5a74b846f6 100644 --- a/src/drivers/spi/eon.c +++ b/src/drivers/spi/eon.c @@ -21,6 +21,7 @@ #define CMD_EN25Q128_DP 0xb9 /* Deep Power-down */ #define CMD_EN25Q128_RES 0xab /* Release from DP, and Read Signature */ +#define EON_ID_EN25Q64 0x17 #define EON_ID_EN25Q128 0x18 struct eon_spi_flash_params { @@ -52,6 +53,14 @@ static const struct eon_spi_flash_params eon_spi_flash_table[] = { .nr_sectors = 4096, .name = "EN25Q128", }, + { + .idcode1 = EON_ID_EN25Q64, + .page_size = 256, + .pages_per_sector = 16, + .sectors_per_block = 16, + .nr_sectors = 2048, + .name = "EN25Q64", + }, }; static int eon_write(struct spi_flash *flash, |