]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sf: probe: Add support for EN25Q* flash parts
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tue, 6 Aug 2013 14:30:00 +0000 (20:00 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Mon, 7 Oct 2013 12:25:42 +0000 (17:55 +0530)
Added EN25Q* parts are which are avilable in spi_flash_probe_legacy.c.

Updated the sector_size attributes as per the flash parts.
Looks fine for with this sector_size for computing the size
of flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mtd/spi/spi_flash_probe.c

index 7d8ed6e47a159eb0cc5c168736e01c2a1ec139c2..e64b0102f7a7d5cdcd62f8f2873474cae28e70fa 100644 (file)
@@ -36,6 +36,10 @@ struct spi_flash_params {
 };
 
 static const struct spi_flash_params spi_flash_params_table[] = {
+#ifdef CONFIG_SPI_FLASH_EON            /* EON */
+       {"EN25Q32B",            0x1c3016, 0x0,     64 * 1024,     64},
+       {"EN25Q128B",           0x1c3018, 0x0,     64 * 1024,    256},
+#endif
 #ifdef CONFIG_SPI_FLASH_STMICRO                /* STMICRO */
        {"M25P10",              0x202011, 0x0,     32 * 1024,      4},
        {"M25P20",              0x202012, 0x0,     64 * 1024,      4},
@@ -61,7 +65,6 @@ static const struct spi_flash_params spi_flash_params_table[] = {
        /*
         * TODO:
         * ATMEL
-        * EON
         * GIGADEVICE
         * MACRONIX
         * RAMTRON