summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2018-12-16 17:13:24 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-12-24 08:17:24 +0000
commitba5e70e967ea72e46b91c4fdcb59a1439bf45f8a (patch)
treed67149b0c5cdf356e76f3f514a5416a78a1ece51 /src/drivers
parent2397bafec5665891a58cc0c7cfb19463f27d1326 (diff)
driver/spi/eon.c: Add EN25F80
TESTED on ASUS P5QPL-AM (writes MRC_CACHE) Change-Id: I5aebe4703a033a0f0226f405d8933b12f3af136f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/30249 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/spi/eon.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/spi/eon.c b/src/drivers/spi/eon.c
index 49b56b4ace..4cb5697741 100644
--- a/src/drivers/spi/eon.c
+++ b/src/drivers/spi/eon.c
@@ -30,6 +30,7 @@
#define EON_ID_EN25Q128 0x3018
#define EON_ID_EN25Q64 0x3017
#define EON_ID_EN25S64 0x3817
+#define EON_ID_EN25F80 0x3114
struct eon_spi_flash_params {
u16 id;
@@ -65,6 +66,14 @@ static const struct eon_spi_flash_params eon_spi_flash_table[] = {
.nr_sectors = 2048,
.name = "EN25S64",
},
+ {
+ .id = EON_ID_EN25F80,
+ .page_size = 256,
+ .pages_per_sector = 16,
+ .sectors_per_block = 16,
+ .nr_sectors = 256,
+ .name = "EN25F80",
+ },
};
static int eon_write(const struct spi_flash *flash,