diff options
author | Huang Shijie <b32955@freescale.com> | 2014-02-24 10:37:36 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:36:03 (GMT) |
commit | bdc091067bc1b1183baabe8446519fbae2e55871 (patch) | |
tree | 5f9838af0ff2e6b77b7a10d7ae7985e70532bad6 /include/linux/n_r3964.h | |
parent | db3bf6bf1f6deff2d62534f42acf103603e39e95 (diff) | |
download | linux-fsl-qoriq-bdc091067bc1b1183baabe8446519fbae2e55871.tar.xz |
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>
Change-Id: I9c1e7766886c973c540342ad03f8d90430cc66a3
Reviewed-on: http://git.am.freescale.net:8181/15506
Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Tested-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'include/linux/n_r3964.h')
0 files changed, 0 insertions, 0 deletions