Skip to content

Commit

Permalink
mtd: m25p80: use the SPI nor framework
Browse files Browse the repository at this point in the history
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 <b32955@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
[Brian: rebased]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  • Loading branch information
Brian Norris committed Apr 14, 2014
1 parent 1ef3910 commit 03e296f
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 1,199 deletions.
2 changes: 1 addition & 1 deletion drivers/mtd/devices/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 03e296f

Please sign in to comment.