Skip to content

Commit

Permalink
Merge branch 'qcom/soc2' into next/soc
Browse files Browse the repository at this point in the history
* qcom/soc2:
  ARM: msm: Move MSM's DT based hardware to multi-platform support
  ARM: msm: Only build timer.c if required
  ARM: msm: Only build clock.c on proc_comm based platforms

Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Olof Johansson committed Jan 9, 2014
2 parents 51f3780 + 4f20411 commit e37fce7
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 41 deletions.
4 changes: 2 additions & 2 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,10 @@ config ARCH_PXA
help
Support for Intel/Marvell's PXA2xx/PXA3xx processor line.

config ARCH_MSM
config ARCH_MSM_NODT
bool "Qualcomm MSM"
select ARCH_MSM
select ARCH_REQUIRE_GPIOLIB
select CLKSRC_OF if OF
select COMMON_CLK
select GENERIC_CLOCKEVENTS
help
Expand Down
85 changes: 48 additions & 37 deletions arch/arm/mach-msm/Kconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,50 @@
config ARCH_MSM
bool

config ARCH_MSM_DT
bool "Qualcomm MSM DT Support" if ARCH_MULTI_V7
select ARCH_MSM
select ARCH_REQUIRE_GPIOLIB
select CLKSRC_OF
select GENERIC_CLOCKEVENTS
help
Support for Qualcomm's devicetree based MSM systems.

if ARCH_MSM

comment "Qualcomm MSM SoC Type"
menu "Qualcomm MSM SoC Selection"
depends on ARCH_MSM_DT

config ARCH_MSM8X60
bool "Enable support for MSM8X60"
select ARM_GIC
select CPU_V7
select HAVE_SMP
select MSM_SCM if SMP
select MSM_TIMER

config ARCH_MSM8960
bool "Enable support for MSM8960"
select ARM_GIC
select CPU_V7
select HAVE_SMP
select MSM_SCM if SMP
select MSM_TIMER

config ARCH_MSM8974
bool "Enable support for MSM8974"
select ARM_GIC
select CPU_V7
select HAVE_ARM_ARCH_TIMER
select HAVE_SMP
select MSM_SCM if SMP

endmenu

choice
prompt "Qualcomm MSM SoC Type"
default ARCH_MSM7X00A
depends on !ARCH_MSM_DT
depends on ARCH_MSM_NODT

config ARCH_MSM7X00A
bool "MSM7x00A / MSM7x01A"
Expand All @@ -16,6 +54,7 @@ config ARCH_MSM7X00A
select MACH_TROUT if !MACH_HALIBUT
select MSM_PROC_COMM
select MSM_SMD
select MSM_TIMER
select MSM_SMD_PKG3

config ARCH_MSM7X30
Expand All @@ -27,6 +66,7 @@ config ARCH_MSM7X30
select MSM_GPIOMUX
select MSM_PROC_COMM
select MSM_SMD
select MSM_TIMER
select MSM_VIC

config ARCH_QSD8X50
Expand All @@ -38,43 +78,11 @@ config ARCH_QSD8X50
select MSM_GPIOMUX
select MSM_PROC_COMM
select MSM_SMD
select MSM_TIMER
select MSM_VIC

endchoice

config ARCH_MSM8X60
bool "MSM8X60"
select ARCH_MSM_DT
select ARM_GIC
select CPU_V7
select GPIO_MSM_V2
select HAVE_SMP
select MSM_SCM if SMP

config ARCH_MSM8960
bool "MSM8960"
select ARCH_MSM_DT
select ARM_GIC
select CPU_V7
select HAVE_SMP
select GPIO_MSM_V2
select MSM_SCM if SMP

config ARCH_MSM8974
bool "MSM8974"
select ARCH_MSM_DT
select ARM_GIC
select CPU_V7
select HAVE_ARM_ARCH_TIMER
select HAVE_SMP
select MSM_SCM if SMP
select USE_OF

config ARCH_MSM_DT
bool
select SPARSE_IRQ
select USE_OF

config MSM_HAS_DEBUG_UART_HS
bool

Expand All @@ -91,7 +99,7 @@ config MSM_VIC
bool

menu "Qualcomm MSM Board Type"
depends on !ARCH_MSM_DT
depends on ARCH_MSM_NODT

config MACH_HALIBUT
depends on ARCH_MSM
Expand Down Expand Up @@ -139,10 +147,13 @@ config MSM_SMD

config MSM_GPIOMUX
bool
depends on !ARCH_MSM_DT
help
Support for MSM V1 TLMM GPIOMUX architecture.

config MSM_SCM
bool

config MSM_TIMER
bool

endif
4 changes: 2 additions & 2 deletions arch/arm/mach-msm/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
obj-y += timer.o
obj-y += clock.o
obj-$(CONFIG_MSM_TIMER) += timer.o
obj-$(CONFIG_MSM_PROC_COMM) += clock.o

obj-$(CONFIG_MSM_VIC) += irq-vic.o

Expand Down

0 comments on commit e37fce7

Please sign in to comment.