mtd:fsl-quadspi:use the property fields of SPI-NOR
authorYunhui Cui <B56489@freescale.com>
Thu, 18 Aug 2016 07:37:56 +0000 (15:37 +0800)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 10 Feb 2017 13:21:59 +0000 (14:21 +0100)
commitdfdb3eb56405861f691102d1bde3a5f85e2c1398
treeae176dada8b9c404f87176d7200e257a49bdbf9f
parente9cf64dec1067e6f791ec035e916b30907a87365
mtd:fsl-quadspi:use the property fields of SPI-NOR

We can get the read/write/erase opcode from the spi nor framework
directly. This patch uses the information stored in the SPI-NOR to
remove the hardcode in the fsl_qspi_init_lut().

Signed-off-by: Yunhui Cui <B56489@freescale.com>
Signed-off-by: Yunhui Cui <yunhui.cui@nxp.com>
Acked-by: Han xu <han.xu@nxp.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/fsl-quadspi.c