drivers/spi: add Macronix MX25U6435F and MX25L6495F support

Contributed by MXIC: http://www.coreboot.org/pipermail/coreboot/2014-October/078835.html

Change-Id: I07f872a5cbb2b0ea63794edb8fbca40d7856ce10
Author: Alex Lu <alexlu6@mxic.com.tw>
Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Reviewed-on: http://review.coreboot.org/7194
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Tested-by: build bot (Jenkins)
This commit is contained in:
Idwer Vollering 2014-10-26 01:20:20 +02:00
parent f21bdc3020
commit 06413ff513
1 changed files with 16 additions and 0 deletions

View File

@ -119,6 +119,22 @@ static const struct macronix_spi_flash_params macronix_spi_flash_table[] = {
.nr_blocks = 256,
.name = "MX25L12855E",
},
{
.idcode = 0x2537,
.page_size = 256,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 128,
.name = "MX25U6435F",
},
{
.idcode = 0x9517,
.page_size = 256,
.pages_per_sector = 16,
.sectors_per_block = 16,
.nr_blocks = 128,
.name = "MX25L6495F",
},
};
static int macronix_write(struct spi_flash *flash,