summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMacpaul Lin <macpaul@andestech.com>2011-04-20 16:51:39 +0000
committerWolfgang Denk <wd@denx.de>2011-08-02 21:54:40 +0200
commit2d722e0549375306c237131d894a2ef732ae0b07 (patch)
treeb5b8cac014017544548d4017ae519b50ee8cd51c /drivers/mtd
parent0886eef9ba25b9e8da4bbaefc1a0b6da7a9567dc (diff)
downloadu-boot-imx-2d722e0549375306c237131d894a2ef732ae0b07.zip
u-boot-imx-2d722e0549375306c237131d894a2ef732ae0b07.tar.gz
u-boot-imx-2d722e0549375306c237131d894a2ef732ae0b07.tar.bz2
mtd/spi/macronix.c: add MX25L4005 and MX25L8005
Add support of MX25L4005 and MX25L8005 according to the datasheet http://www.mct.net/download/macronix/mx25l8005.pdf This patch has been tested with MX25L4005 and MX25L8005 Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi/macronix.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/mtd/spi/macronix.c b/drivers/mtd/spi/macronix.c
index e689562..96fd5f0 100644
--- a/drivers/mtd/spi/macronix.c
+++ b/drivers/mtd/spi/macronix.c
@@ -60,6 +60,22 @@ struct macronix_spi_flash_params {
static const struct macronix_spi_flash_params macronix_spi_flash_table[] = {
{
+ .idcode = 0x2013,
+ .page_size = 256,
+ .pages_per_sector = 16,
+ .sectors_per_block = 16,
+ .nr_blocks = 8,
+ .name = "MX25L4005",
+ },
+ {
+ .idcode = 0x2014,
+ .page_size = 256,
+ .pages_per_sector = 16,
+ .sectors_per_block = 16,
+ .nr_blocks = 16,
+ .name = "MX25L8005",
+ },
+ {
.idcode = 0x2015,
.page_size = 256,
.pages_per_sector = 16,