diff options
author | Huang Shijie <b32955@freescale.com> | 2014-02-24 11:37:36 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-04-14 20:22:58 +0200 |
commit | 6e602ef73334550bbbb8be1041a3ce6eecbd42f1 (patch) | |
tree | ed7bdda5b4f68113ca57a996dcec304332426aca /drivers/mtd/Kconfig | |
parent | mtd: spi-nor: copy the SPI NOR commands to a new header file (diff) | |
download | linux-6e602ef73334550bbbb8be1041a3ce6eecbd42f1.tar.xz linux-6e602ef73334550bbbb8be1041a3ce6eecbd42f1.zip |
mtd: spi-nor: add the basic data structures
The spi_nor{} is cloned from the m25p{}.
The spi_nor{} can be used by both the m25p80 and spi-nor controller.
We also add the spi_nor_xfer_cfg{} which can be used by the two
fundamental primitives: read_xfer/write_xfer.
1) the hooks for spi_nor{}:
@prepare/unpreare: used to do some work before or after the
read/write/erase/lock/unlock.
@read_xfer/write_xfer: We can use these two hooks to code all
the following hooks if the driver tries to implement them
by itself.
@read_reg: used to read the registers, such as read status register,
read configure register.
@write_reg: used to write the registers, such as write enable,
erase sector.
@read_id: read out the ID info.
@wait_till_ready: wait till the NOR becomes ready.
@read: read out the data from the NOR.
@write: write data to the NOR.
@erase: erase a sector of the NOR.
2) Add a new field sst_write_second for the SST NOR write.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/Kconfig')
0 files changed, 0 insertions, 0 deletions