]> Pileus Git - ~andy/linux/commitdiff
ARM: mmp: build sram driver alone
authorQiao Zhou <zhouqiao@marvell.com>
Thu, 5 Dec 2013 01:36:21 +0000 (09:36 +0800)
committerOlof Johansson <olof@lixom.net>
Thu, 12 Dec 2013 01:33:02 +0000 (17:33 -0800)
sram driver can be used by many chips besides CPU_MMP2, and so build
it alone. Also need to select MMP_SRAM for MMP_TDMA driver.

Reported-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-mmp/Kconfig
arch/arm/mach-mmp/Makefile
drivers/dma/Kconfig

index ebdda8346a265e293c13a6508b858ab875b87b93..ebdba87b96711a4a2a3970bcd824253ea9273327 100644 (file)
@@ -136,4 +136,7 @@ config USB_EHCI_MV_U2O
        help
          Enables support for OTG controller which can be switched to host mode.
 
+config MMP_SRAM
+       bool
+
 endif
index 9b702a1dc7b04a48d374ba01e200395ce7d341ff..98f0f6388e4458ad08935e131268a6ba640af3c5 100644 (file)
@@ -7,7 +7,8 @@ obj-y                           += common.o devices.o time.o
 # SoC support
 obj-$(CONFIG_CPU_PXA168)       += pxa168.o
 obj-$(CONFIG_CPU_PXA910)       += pxa910.o
-obj-$(CONFIG_CPU_MMP2)         += mmp2.o sram.o
+obj-$(CONFIG_CPU_MMP2)         += mmp2.o
+obj-$(CONFIG_MMP_SRAM)         += sram.o
 
 ifeq ($(CONFIG_COMMON_CLK), )
 obj-y                          += clock.o
index 446687cc2334ed2f60a0b6f0170382fe733aae01..af3676333da4408e11f3e39ed83c1f36b2783a13 100644 (file)
@@ -289,9 +289,11 @@ config MMP_TDMA
        bool "MMP Two-Channel DMA support"
        depends on ARCH_MMP
        select DMA_ENGINE
+       select MMP_SRAM
        help
          Support the MMP Two-Channel DMA engine.
          This engine used for MMP Audio DMA and pxa910 SQU.
+         It needs sram driver under mach-mmp.
 
          Say Y here if you enabled MMP ADMA, otherwise say N.