]> git.sur5r.net Git - u-boot/commitdiff
mtd: add some at45 spi flash support
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 4 Jan 2009 06:44:07 +0000 (07:44 +0100)
committerMike Frysinger <vapier@gentoo.org>
Thu, 2 Apr 2009 10:49:38 +0000 (06:49 -0400)
 - AT45DB321D
 - AT45DB161D
 - AT45DB081D
 - AT45DB041D
 - AT45DB021D
 - AT45DB011D

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/atmel.c

index a5f51caf460b1a3cedf374307f56c7d741150921..fc924a20c4c20f7dcb0a4efa19d0726e1d23a1f5 100644 (file)
@@ -52,6 +52,54 @@ to_atmel_spi_flash(struct spi_flash *flash)
 }
 
 static const struct atmel_spi_flash_params atmel_spi_flash_table[] = {
+       {
+               .idcode1                = 0x22,
+               .l2_page_size           = 8,
+               .pages_per_block        = 8,
+               .blocks_per_sector      = 16,
+               .nr_sectors             = 4,
+               .name                   = "AT45DB011D",
+       },
+       {
+               .idcode1                = 0x23,
+               .l2_page_size           = 8,
+               .pages_per_block        = 8,
+               .blocks_per_sector      = 16,
+               .nr_sectors             = 8,
+               .name                   = "AT45DB021D",
+       },
+       {
+               .idcode1                = 0x24,
+               .l2_page_size           = 8,
+               .pages_per_block        = 8,
+               .blocks_per_sector      = 32,
+               .nr_sectors             = 8,
+               .name                   = "AT45DB041D",
+       },
+       {
+               .idcode1                = 0x25,
+               .l2_page_size           = 8,
+               .pages_per_block        = 8,
+               .blocks_per_sector      = 32,
+               .nr_sectors             = 16,
+               .name                   = "AT45DB081D",
+       },
+       {
+               .idcode1                = 0x26,
+               .l2_page_size           = 9,
+               .pages_per_block        = 8,
+               .blocks_per_sector      = 32,
+               .nr_sectors             = 16,
+               .name                   = "AT45DB161D",
+       },
+       {
+               .idcode1                = 0x27,
+               .l2_page_size           = 9,
+               .pages_per_block        = 8,
+               .blocks_per_sector      = 64,
+               .nr_sectors             = 64,
+               .name                   = "AT45DB321D",
+       },
        {
                .idcode1                = 0x28,
                .l2_page_size           = 10,