Skip to content

Commit 03e296f

Browse files
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]>
1 parent 1ef3910 commit 03e296f

File tree

2 files changed

+106
-1199
lines changed

2 files changed

+106
-1199
lines changed

drivers/mtd/devices/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ config MTD_DATAFLASH_OTP
8080

8181
config MTD_M25P80
8282
tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
83-
depends on SPI_MASTER
83+
depends on SPI_MASTER && MTD_SPI_NOR_BASE
8484
help
8585
This enables access to most modern SPI flash chips, used for
8686
program and data storage. Series supported include Atmel AT26DF,

0 commit comments

Comments
 (0)