mtd: spi-nor: fsl-quadspi: add big-endian support
authorYao Yuan <yao.yuan@freescale.com>
Tue, 26 Jan 2016 07:23:55 +0000 (15:23 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 7 Mar 2016 19:46:43 +0000 (11:46 -0800)
commit2012850be8e3324bf3420ea08e1d0ee75c8d134c
tree9786ad73e73cf196fbd352f3ca26ffc95ce918a1
parent4607777c71be52c4e7c9cbcf8ecac4a452090d7d
mtd: spi-nor: fsl-quadspi: add big-endian support

Add R/W functions for big- or little-endian registers:
The qSPI controller's endian is independent of the CPU core's endian.
So far, the qSPI have two versions for big-endian and little-endian.

Signed-off-by: Yuan Yao <yao.yuan@nxp.com>
Acked-by: Han xu <han.xu@freescale.com>
Acked-by: Han xu <han.xu@nxp.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/fsl-quadspi.c