diff options
author | Anatolij Gustschin <agust@denx.de> | 2013-04-08 21:28:09 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-04-12 19:13:41 (GMT) |
commit | e48fc15aa205f380b2fc6d565724a55b1efd8083 (patch) | |
tree | ea229dfbfaeeabe15f606734959eeb76f3f34c18 /arch | |
parent | 42477053c389900f28e200c198830c838989809f (diff) | |
download | linux-fsl-qoriq-e48fc15aa205f380b2fc6d565724a55b1efd8083.tar.xz |
mmc: mxcmmc: enable DMA support on mpc512x
Add SDHC DMA channel description to the mpc512x device tree to enable
slave channel requesting in the mxcmmc driver.
mpc512x DMA engine doesn't support endianness conversion when
reading/writing data from peripheral's FIFO, so we have to swap data
buffers before each DMA write and after each DMA read transfer manually.
Since chained SDHC DMA transfers are not supported on mpc512x, limit
'max_segs' tunable parameter to one and initialise it to 64 only when
running on i.MX platforms.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/boot/dts/mpc5121.dtsi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/mpc5121.dtsi b/arch/powerpc/boot/dts/mpc5121.dtsi index 723e292..710aae6 100644 --- a/arch/powerpc/boot/dts/mpc5121.dtsi +++ b/arch/powerpc/boot/dts/mpc5121.dtsi @@ -152,6 +152,8 @@ compatible = "fsl,mpc5121-sdhc"; reg = <0x1500 0x100>; interrupts = <8 0x8>; + dmas = <&dma0 30>; + dma-names = "rx-tx"; }; i2c@1700 { |