]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/spi/spi_flash.c
ARM: at91: atmel_nand: add code to check the ONFI parameter ECC requirement
[u-boot] / drivers / mtd / spi / spi_flash.c
index 51142d8f19a45529f5f08b36af42873827d822b2..6a6fe37e0eea92e27817f47ca6c79c618325612c 100644 (file)
@@ -458,6 +458,9 @@ static const struct {
 #ifdef CONFIG_SPI_FLASH_EON
        { 0, 0x1c, spi_flash_probe_eon, },
 #endif
+#ifdef CONFIG_SPI_FLASH_GIGADEVICE
+       { 0, 0xc8, spi_flash_probe_gigadevice, },
+#endif
 #ifdef CONFIG_SPI_FLASH_MACRONIX
        { 0, 0xc2, spi_flash_probe_macronix, },
 #endif
@@ -557,6 +560,12 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
        if (flash->memory_map)
                printf(", mapped at %p", flash->memory_map);
        puts("\n");
+#ifndef CONFIG_SPI_FLASH_BAR
+       if (flash->size > SPI_FLASH_16MB_BOUN) {
+               puts("SF: Warning - Only lower 16MiB accessible,");
+               puts(" Full access #define CONFIG_SPI_FLASH_BAR\n");
+       }
+#endif
 
        spi_release_bus(spi);