mtd: m25p80: use the SPI nor framework
authorBrian Norris <computersforpeace@gmail.com>
Thu, 20 Mar 2014 12:00:12 +0000 (05:00 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 14 Apr 2014 18:22:58 +0000 (11:22 -0700)
commit03e296f613affcc2671c1e86d8c25ecad867204e
tree75f35d6d3b5144c861b7e59d8cbeed510a3fb78c
parent1ef391084b22d75110171d34f565f57e4be9b2a6
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 <b32955@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
[Brian: rebased]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/Kconfig
drivers/mtd/devices/m25p80.c