diff options
author | Prafulla Wadaskar <prafulla@marvell.com> | 2009-04-06 21:24:43 +0530 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:47:18 +0200 |
commit | 7ce6031afc8671c8b47c6135b3678d43fcd02852 (patch) | |
tree | 6b76f55845d7693f213b320647080e784cc9ecac /drivers/mtd/spi/spi_flash.c | |
parent | 2a6cc58869305f346e389eefdfa96dea5146cb0c (diff) | |
download | u-boot-imx-7ce6031afc8671c8b47c6135b3678d43fcd02852.zip u-boot-imx-7ce6031afc8671c8b47c6135b3678d43fcd02852.tar.gz u-boot-imx-7ce6031afc8671c8b47c6135b3678d43fcd02852.tar.bz2 |
sf: new Macronix MX25xx SPI flash driver
Added macronix SF driver for MTD framework
MX25L12805D is supported and tested
TBD: sector erase implementation, other deivces support
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/spi_flash.c')
-rw-r--r-- | drivers/mtd/spi/spi_flash.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 274895a..0c83231 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -134,6 +134,11 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, flash = spi_flash_probe_atmel(spi, idcode); break; #endif +#ifdef CONFIG_SPI_FLASH_MACRONIX + case 0xc2: + flash = spi_flash_probe_macronix(spi, idcode); + break; +#endif #ifdef CONFIG_SPI_FLASH_STMICRO case 0x20: flash = spi_flash_probe_stmicro(spi, idcode); |