]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/spi/spi-fsl-dspi.c
spi/fsl-dspi: Convert to use regmap and add big-endian support
authorChao Fu <B44548@freescale.com>
Wed, 12 Feb 2014 07:29:05 +0000 (15:29 +0800)
committerMark Brown <broonie@linaro.org>
Sun, 16 Feb 2014 01:15:23 +0000 (09:15 +0800)
commit1acbdeb92c87fc18eade0815dedc257fe45b88b7
tree8e4b34fade904bbd4e01c94f90212d9ad6654eba
parent38dbfb59d1175ef458d006556061adeaa8751b72
spi/fsl-dspi: Convert to use regmap and add big-endian support

Freescale DSPI module will have two endianess in different platform,
but ARM is little endian. So when DSPI in big endian, core in little endian,
readl and writel can not adjust R/W register in this condition.
This patch will remove general readl/writel, and import regmap mechanism.
Data endian will be transfered in regmap APIs.

Documents: dspi add bool "big-endian" in dts node if DSPI module
work in big endian.

Signed-off-by: Chao Fu <b44548@freescale.com>
Reviewed-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt
drivers/spi/Kconfig
drivers/spi/spi-fsl-dspi.c