Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: dw: select DW_DMAC_BIG_ENDIAN_IO automagically

Signed-off-by: Vinod Koul <vinod.koul@intel.com>

+8 -9
+2 -9
drivers/dma/dw/Kconfig
··· 10 10 config DW_DMAC 11 11 tristate "Synopsys DesignWare AHB DMA platform driver" 12 12 select DW_DMAC_CORE 13 + select DW_DMAC_BIG_ENDIAN_IO if AVR32 13 14 default y if CPU_AT32AP7000 14 15 help 15 16 Support the Synopsys DesignWare AHB DMA controller. This ··· 26 25 Intel Medfield has integrated this GPDMA controller. 27 26 28 27 config DW_DMAC_BIG_ENDIAN_IO 29 - bool "Use big endian I/O register access" 30 - default y if AVR32 31 - depends on DW_DMAC_CORE 32 - help 33 - Say yes here to use big endian I/O access when reading and writing 34 - to the DMA controller registers. This is needed on some platforms, 35 - like the Atmel AVR32 architecture. 36 - 37 - If unsure, use the default setting. 28 + bool
+6
drivers/dma/dw/regs.h
··· 101 101 u32 DW_PARAMS; 102 102 }; 103 103 104 + /* 105 + * Big endian I/O access when reading and writing to the DMA controller 106 + * registers. This is needed on some platforms, like the Atmel AVR32 107 + * architecture. 108 + */ 109 + 104 110 #ifdef CONFIG_DW_DMAC_BIG_ENDIAN_IO 105 111 #define dma_readl_native ioread32be 106 112 #define dma_writel_native iowrite32be