Commit b9f10a10 authored by Qiao Zhou's avatar Qiao Zhou Committed by Olof Johansson

ARM: mmp: build sram driver alone

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: default avatarDan Williams <dan.j.williams@intel.com>
Signed-off-by: default avatarQiao Zhou <zhouqiao@marvell.com>
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 2473de06
...@@ -136,4 +136,7 @@ config USB_EHCI_MV_U2O ...@@ -136,4 +136,7 @@ config USB_EHCI_MV_U2O
help help
Enables support for OTG controller which can be switched to host mode. Enables support for OTG controller which can be switched to host mode.
config MMP_SRAM
bool
endif endif
...@@ -7,7 +7,8 @@ obj-y += common.o devices.o time.o ...@@ -7,7 +7,8 @@ obj-y += common.o devices.o time.o
# SoC support # SoC support
obj-$(CONFIG_CPU_PXA168) += pxa168.o obj-$(CONFIG_CPU_PXA168) += pxa168.o
obj-$(CONFIG_CPU_PXA910) += pxa910.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), ) ifeq ($(CONFIG_COMMON_CLK), )
obj-y += clock.o obj-y += clock.o
......
...@@ -289,9 +289,11 @@ config MMP_TDMA ...@@ -289,9 +289,11 @@ config MMP_TDMA
bool "MMP Two-Channel DMA support" bool "MMP Two-Channel DMA support"
depends on ARCH_MMP depends on ARCH_MMP
select DMA_ENGINE select DMA_ENGINE
select MMP_SRAM
help help
Support the MMP Two-Channel DMA engine. Support the MMP Two-Channel DMA engine.
This engine used for MMP Audio DMA and pxa910 SQU. 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. Say Y here if you enabled MMP ADMA, otherwise say N.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment