MLK-11087: mtd:qspi: support DDR Quad mode for Macronix mx25l51245g
authorHan Xu <b45815@freescale.com>
Wed, 10 Jun 2015 22:14:01 +0000 (17:14 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:25 +0000 (14:49 -0500)
commit14076b565d6af08e6bee154ea803233ab2422b0f
tree445b0a759c886c180b1cb490468bad534b2006be
parent2ddfd01fa4997f7261815d973d7346eb1184c05c
MLK-11087: mtd:qspi: support DDR Quad mode for Macronix mx25l51245g

Enable DDR quad mode for Macronix qspi chip mx25l51245g by setting Quad
bit in status register and enabling in dts file.

The LUT for SPINOR_OP_READ_1_4_4_D was initially designed for Spansion
qspi chip, so there is one cycle for "mode" after address and before
dummy. While Macronix qspi chip doesn't have this feature, so we just
take off one cycle in dts file to bypass this problem.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked and merge from commit e03fdad1c7713a7db70112e00c4ae96848accd34)
arch/arm/boot/dts/imx7d-sdb-qspi.dts
drivers/mtd/spi-nor/spi-nor.c