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)
This commit is contained in:
parent
79f60a5c9d
commit
0658d2348d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue