]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dmaengine: dw: select DW_DMAC_BIG_ENDIAN_IO automagically
authorVinod Koul <vinod.koul@intel.com>
Wed, 12 Jun 2013 08:09:57 +0000 (13:39 +0530)
committerVinod Koul <vinod.koul@intel.com>
Wed, 12 Jun 2013 13:18:10 +0000 (18:48 +0530)
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/Kconfig
drivers/dma/dw/regs.h

index db2b41fab626f85a46078e5f83533815597d7a4f..dde13248b6818a00cae16afb5dae55d081592847 100644 (file)
@@ -10,6 +10,7 @@ config DW_DMAC_CORE
 config DW_DMAC
        tristate "Synopsys DesignWare AHB DMA platform driver"
        select DW_DMAC_CORE
+       select DW_DMAC_BIG_ENDIAN_IO if AVR32
        default y if CPU_AT32AP7000
        help
          Support the Synopsys DesignWare AHB DMA controller. This
@@ -25,12 +26,4 @@ config DW_DMAC_PCI
          Intel Medfield has integrated this GPDMA controller.
 
 config DW_DMAC_BIG_ENDIAN_IO
-       bool "Use big endian I/O register access"
-       default y if AVR32
-       depends on DW_DMAC_CORE
-       help
-         Say yes here to use big endian I/O access when reading and writing
-         to the DMA controller registers. This is needed on some platforms,
-         like the Atmel AVR32 architecture.
-
-         If unsure, use the default setting.
+       bool
index 07c5a6ecb52b9182ae0ad9bdb0c9158417bda7a8..deb4274f80f41b9e1a5ed9ba6db9e21bc37d0687 100644 (file)
@@ -101,6 +101,12 @@ struct dw_dma_regs {
        u32     DW_PARAMS;
 };
 
+/*
+ * Big endian I/O access when reading and writing to the DMA controller
+ * registers.  This is needed on some platforms, like the Atmel AVR32
+ * architecture.
+ */
+
 #ifdef CONFIG_DW_DMAC_BIG_ENDIAN_IO
 #define dma_readl_native ioread32be
 #define dma_writel_native iowrite32be