MTD/SPI: add support for Ramtron FRAMs
PATCH v6 1/1 MTD/SPI: add support for Ramtron FRAMs
Supports most types that support Read-Id and the FM25H20.
---
changes since V5: rebased on current MASTER
drivers/mtd/spi/Makefile | 1 + drivers/mtd/spi/ramtron.c | 319 ++++++++++++++++++++++++++++++++++ drivers/mtd/spi/spi_flash.c | 8 + drivers/mtd/spi/spi_flash_internal.h | 1 + 4 files changed, 329 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/spi/ramtron.c
drivers/mtd/spi/Makefile +1 -0
@@ -32,6 +32,7 @@ COBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o COBJS-$(CONFIG_SPI_FLASH_SST) += sst.o COBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o COBJS-$(CONFIG_SPI_FLASH_WINBOND) += winbond.o +COBJS-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o COBJS-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o COBJS := $(COBJS-y)
drivers/mtd/spi/ramtron.c new file +319 -0
319 lines not on this page · raw message
drivers/mtd/spi/spi_flash.c +8 -0
@@ -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)
drivers/mtd/spi/spi_flash_internal.h +1 -0
@@ -50,3 +50,4 @@ struct spi_flash *spi_flash_probe_macronix(struct spi_slave *spi, u8 *idcode);struct spi_flash *spi_flash_probe_sst (struct spi_slave *spi,u8 *idcode);struct spi_flash *spi_flash_probe_stmicro (struct spi_slave *spi,u8 *idcode);struct spi_flash *spi_flash_probe_winbond (struct spi_slave *spi,u8 *idcode); +struct spi_flash *spi_fram_probe_ramtron (struct spi_slave *spi,u8 *idcode);
Signature · 1 line
1.5.6.5
PATCH v6 1/1 MTD/SPI: add support for Ramtron FRAMs
Quoted 5 lines · On Thursday, October 14, 2010 09:33:21 Reinhard Meyer wrote:
Supports most types that support Read-Id and the FM25H20.
Signed-off-by Reinhard Meyer <[email protected]>---
changes since V5: rebased on current MASTER
this matches what's already in my branch, so if you've tested this, i'll push it over to Wolfgang
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101014/561914d7/attachment.pgp
PATCH v6 1/1 MTD/SPI: add support for Ramtron FRAMs
Quoted 9 lines · On Thursday, October 14, 2010 20:43:13 Mike Frysinger wrote:
Quoted 5 lines · On Thursday, October 14, 2010 09:33:21 Reinhard Meyer wrote:
Supports most types that support Read-Id and the FM25H20.
Signed-off-by Reinhard Meyer <[email protected]>---
changes since V5: rebased on current MASTERthis matches what's already in my branch, so if you've tested this, i'll push it over to Wolfgang
ping ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101028/df7d51ef/attachment.pgp
PATCH v6 1/1 MTD/SPI: add support for Ramtron FRAMs
Dear Mike Frysinger,
Quoted 12 lines · On Thursday, October 14, 2010 20:43:13 Mike Frysinger wrote:
Quoted 9 lines · On Thursday, October 14, 2010 09:33:21 Reinhard Meyer wrote:
Quoted 5 lines
Supports most types that support Read-Id and the FM25H20.
Signed-off-by Reinhard Meyer<[email protected]>---
changes since V5: rebased on current MASTERthis matches what's already in my branch, so if you've tested this, i'll push it over to Wolfgang
ping ...
Sorry I missed that this was a question :)
Sure it works here, and I would not post patches that are not tested :)
However do to current lack of boards equipped with a range of different Ramtron parts I could only test the FM25H20 case which is the non-jedec variant.
As soon as I get hold of another jedec conformant Ramtron part, I'll try it, and if that unexpectedly does not get recognized I'll submit a fix.
Best Regards,
Reinhard