mtd: m25p80: use the SPI nor framework

Use the new SPI nor framework, and rewrite the m25p80:
 (0) remove all the NOR comands.
 (1) change the m25p->command to an array.
 (2) implement the necessary hooks, such as m25p80_read/m25p80_write.

Tested with the m25p32.
Signed-off-by: Huang Shijie <[email protected]>
Acked-by: Marek Vasut <[email protected]>
[Brian: rebased]
Signed-off-by: Brian Norris <[email protected]>
This commit is contained in:
Brian Norris committed 2014-04-14 11:22:58 -07:00
1 parent 1ef391084b
commit 03e296f613
2 files changed
+108 -1201

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ config MTD_DATAFLASH_OTP
config MTD_M25P80
tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
depends on SPI_MASTER
depends on SPI_MASTER && MTD_SPI_NOR_BASE
help
This enables access to most modern SPI flash chips, used for
program and data storage. Series supported include Atmel AT26DF,
+107 -1200
View File
File diff suppressed because it is too large. Load diff