From 0658d2348dff5dbe9817f5187cede82e6784d836 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Thu, 1 May 2014 14:54:11 -0600 Subject: 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 Original-Commit-Queue: Marc Jones Original-Tested-by: Marc Jones (cherry picked from commit 536c34c2d92178f4e62b8ca7cfffceaf80a305f6) Signed-off-by: Marc Jones Change-Id: I199451ed2b29c55bfb5e1487afa8cf3b9978e63e Reviewed-on: http://review.coreboot.org/7935 Reviewed-by: Edward O'Callaghan Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/drivers/spi/eon.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/drivers/spi') 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, -- cgit v1.2.3