]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd/spi/macronix.c: add MX25L4005 and MX25L8005
authorMacpaul Lin <macpaul@andestech.com>
Wed, 20 Apr 2011 16:51:39 +0000 (16:51 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 2 Aug 2011 19:54:40 +0000 (21:54 +0200)
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>
drivers/mtd/spi/macronix.c

index e6895620a351f285cb28bc7b7672ef1cf5281253..96fd5f00520f433c14b44347248117b580f819bc 100644 (file)
@@ -59,6 +59,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,