diff options
author | Reinhard Meyer <u-boot@emk-elektronik.de> | 2010-10-05 16:56:40 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-11-10 04:26:18 -0500 |
commit | e0987e251ff0eff25a55bf8db13a41f5849f59f7 (patch) | |
tree | 2701133209fd54c41951988ce5c5921d54fa913f /drivers/mtd/spi/spi_flash.c | |
parent | 0c0892be0d93a5a892b93739c5eb3bf692fed4ff (diff) |
sf: ramtron: new spi fram driver
Supports most types that support Read-Id and the FM25H20.
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index b4ba1dda51..ab02ef3e04 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -146,10 +146,18 @@ static const struct { #ifdef CONFIG_SPI_FLASH_WINBOND { 0, 0xef, spi_flash_probe_winbond, }, #endif +#ifdef CONFIG_SPI_FRAM_RAMTRON + { 6, 0xc2, spi_fram_probe_ramtron, }, +# undef IDCODE_CONT_LEN +# define IDCODE_CONT_LEN 6 +#endif /* Keep it sorted by best detection */ #ifdef CONFIG_SPI_FLASH_STMICRO { 0, 0xff, spi_flash_probe_stmicro, }, #endif +#ifdef CONFIG_SPI_FRAM_RAMTRON_NON_JEDEC + { 0, 0xff, spi_fram_probe_ramtron, }, +#endif }; #define IDCODE_LEN (IDCODE_CONT_LEN + IDCODE_PART_LEN) |