summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@se-eng.com>2014-05-01 14:54:11 -0600
committerMarc Jones <marc.jones@se-eng.com>2014-12-30 19:31:00 +0100
commit0658d2348dff5dbe9817f5187cede82e6784d836 (patch)
tree0596a9d2458f7657f15689ee7840f8ee6e007c6b /src/drivers
parent79f60a5c9d24667928ca11c44eb8c1fccf4a8183 (diff)
downloadcoreboot-0658d2348dff5dbe9817f5187cede82e6784d836.tar.xz
SPI: Add Eon EN25S64 support.
BUG=chrome-os-partner:25907 BRANCH=baytrail(rambi) TEST=Read and write MRC and ELOG on Glimmer with Eon device. Original-Change-Id: If883ff6eb14dd49a06f57a01ca61661854ded78d Original-Reviewed-on: https://chromium-review.googlesource.com/198324 Original-Reviewed-by: David Hendricks <dhendrix@chromium.org> Original-Commit-Queue: Marc Jones <marc.jones@se-eng.com> Original-Tested-by: Marc Jones <marc.jones@se-eng.com> (cherry picked from commit 536c34c2d92178f4e62b8ca7cfffceaf80a305f6) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I199451ed2b29c55bfb5e1487afa8cf3b9978e63e Reviewed-on: http://review.coreboot.org/7935 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins)
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 2e5fa8c610..684fb2ec83 100644
--- a/src/drivers/spi/eon.c
+++ b/src/drivers/spi/eon.c
@@ -26,6 +26,7 @@
#define EON_ID_EN25Q128 0x3018
#define EON_ID_EN25Q64 0x3017
+#define EON_ID_EN25S64 0x3817
struct eon_spi_flash_params {
u16 id;
@@ -64,6 +65,14 @@ static const struct eon_spi_flash_params eon_spi_flash_table[] = {
.nr_sectors = 2048,
.name = "EN25Q64",
},
+ {
+ .id = EON_ID_EN25S64,
+ .page_size = 256,
+ .pages_per_sector = 16,
+ .sectors_per_block = 16,
+ .nr_sectors = 2048,
+ .name = "EN25S64",
+ },
};
static int eon_write(struct spi_flash *flash,