From: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sat, 5 Apr 2014 20:51:19 +0000 (-0700)
Subject: Merge tag 'cleanup-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
X-Git-Tag: firefly_0821_release~176^2~4134
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dfc25e4503aef6b82a1de4a0fbe19aafa8648fbe;p=firefly-linux-kernel-4.4.55.git

Merge tag 'cleanup-3.15' of git://git./linux/kernel/git/arm/arm-soc

Pull ARM SoC cleanups from Arnd Bergmann:
 "These cleanup patches are mainly move stuff around and should all be
  harmless.  They are mainly split out so that other branches can be
  based on top to avoid conflicts.

  Notable changes are:

   - We finally remove all mach/timex.h, after CLOCK_TICK_RATE is no
     longer used (Uwe Kleine-König)
   - The Qualcomm MSM platform is split out into legacy mach-msm and
     new-style mach-qcom, to allow easier maintainance of the new
     hardware support without regressions (Kumar Gala)
   - A rework of some of the Kconfig logic to simplify multiplatform
     support (Rob Herring)
   - Samsung Exynos gets closer to supporting multiplatform (Sachin
     Kamat and others)
   - mach-bcm3528 gets merged into mach-bcm (Stephen Warren)
   - at91 gains some common clock framework support (Alexandre Belloni,
     Jean-Jacques Hiblot and other French people)"

* tag 'cleanup-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (89 commits)
  ARM: hisi: select HAVE_ARM_SCU only for SMP
  ARM: efm32: allow uncompress debug output
  ARM: prima2: build reset code standalone
  ARM: at91: add PWM clock
  ARM: at91: move sam9261 SoC to common clk
  ARM: at91: prepare common clk transition for sam9261 SoC
  ARM: at91: updated the at91_dt_defconfig with support for the ADS7846
  ARM: at91: dt: sam9261: Device Tree support for the at91sam9261ek
  ARM: at91: dt: defconfig: Added the sam9261 to the list of DT-enabled SOCs
  ARM: at91: dt: Add at91sam9261 dt SoC support
  ARM: at91: switch sam9rl to common clock framework
  ARM: at91/dt: define main clk frequency of at91sam9rlek
  ARM: at91/dt: define at91sam9rl clocks
  ARM: at91: prepare common clk transition for sam9rl SoCs
  ARM: at91: prepare sam9 dt boards transition to common clk
  ARM: at91: dt: sam9rl: Device Tree for the at91sam9rlek
  ARM: at91/defconfig: Add the sam9rl to the list of DT-enabled SOCs
  ARM: at91: Add at91sam9rl DT SoC support
  ARM: at91: prepare at91sam9rl DT transition
  ARM: at91/defconfig: refresh at91sam9260_9g20_defconfig
  ...
---

dfc25e4503aef6b82a1de4a0fbe19aafa8648fbe
diff --cc arch/arm/Kconfig
index 79bea0b34d1f,e4ac50ba1d5a..83912d0251ca
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@@ -423,11 -422,7 +425,8 @@@ config ARCH_EFM3
  	bool "Energy Micro efm32"
  	depends on !MMU
  	select ARCH_REQUIRE_GPIOLIB
 +	select AUTO_ZRELADDR
  	select ARM_NVIC
- 	# CLKSRC_MMIO is wrong here, but needed until a proper fix is merged,
- 	# i.e. CLKSRC_EFM32 selecting CLKSRC_MMIO
- 	select CLKSRC_MMIO
  	select CLKSRC_OF
  	select COMMON_CLK
  	select CPU_V7M
diff --cc arch/arm/mach-moxart/Kconfig
index e9b45bb58263,95a6a4b43c37..82a4ba8578a2
--- a/arch/arm/mach-moxart/Kconfig
+++ b/arch/arm/mach-moxart/Kconfig
@@@ -1,15 -1,10 +1,10 @@@
  config ARCH_MOXART
 -	bool "MOXA ART SoC" if ARCH_MULTI_V4T
 +	bool "MOXA ART SoC" if ARCH_MULTI_V4
  	select CPU_FA526
  	select ARM_DMA_MEM_BUFFERABLE
- 	select USE_OF
- 	select CLKSRC_OF
  	select CLKSRC_MMIO
- 	select HAVE_CLK
- 	select COMMON_CLK
  	select GENERIC_IRQ_CHIP
  	select ARCH_REQUIRE_GPIOLIB
- 	select GENERIC_CLOCKEVENTS
  	select PHYLIB if NETDEVICES
  	help
  	  Say Y here if you want to run your kernel on hardware with a
diff --cc arch/arm/mach-omap2/Kconfig
index ac4882511749,922cbd8e3519..27fc52d418a5
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@@ -48,13 -45,10 +43,11 @@@ config SOC_OMAP
  	bool "TI OMAP5"
  	depends on ARCH_MULTI_V7
  	select ARCH_OMAP2PLUS
 +	select ARCH_HAS_OPP
  	select ARM_CPU_SUSPEND if PM
  	select ARM_GIC
- 	select CPU_V7
  	select HAVE_ARM_SCU if SMP
  	select HAVE_ARM_TWD if SMP
- 	select HAVE_SMP
  	select HAVE_ARM_ARCH_TIMER
  	select ARM_ERRATA_798181 if SMP
  
@@@ -62,18 -56,12 +55,14 @@@ config SOC_AM33X
  	bool "TI AM33XX"
  	depends on ARCH_MULTI_V7
  	select ARCH_OMAP2PLUS
 +	select ARCH_HAS_OPP
  	select ARM_CPU_SUSPEND if PM
- 	select CPU_V7
- 	select MULTI_IRQ_HANDLER
  
  config SOC_AM43XX
  	bool "TI AM43x"
  	depends on ARCH_MULTI_V7
- 	select CPU_V7
  	select ARCH_OMAP2PLUS
 +	select ARCH_HAS_OPP
- 	select MULTI_IRQ_HANDLER
  	select ARM_GIC
  	select MACH_OMAP_GENERIC
  
@@@ -81,11 -69,8 +70,9 @@@ config SOC_DRA7X
  	bool "TI DRA7XX"
  	depends on ARCH_MULTI_V7
  	select ARCH_OMAP2PLUS
 +	select ARCH_HAS_OPP
  	select ARM_CPU_SUSPEND if PM
  	select ARM_GIC
- 	select CPU_V7
- 	select HAVE_SMP
  	select HAVE_ARM_ARCH_TIMER
  
  config ARCH_OMAP2PLUS
@@@ -102,10 -85,9 +87,8 @@@
  	select MACH_OMAP_GENERIC
  	select OMAP_DM_TIMER
  	select PINCTRL
 -	select PROC_DEVICETREE if PROC_FS
  	select SOC_BUS
- 	select SPARSE_IRQ
  	select TI_PRIV_EDMA
- 	select USE_OF
  	help
  	  Systems based on OMAP2, OMAP3, OMAP4 or OMAP5
  
diff --cc arch/arm/mach-spear/Kconfig
index 308d5b5b3055,5c57262b97e9..0786249b2832
--- a/arch/arm/mach-spear/Kconfig
+++ b/arch/arm/mach-spear/Kconfig
@@@ -90,9 -81,8 +81,8 @@@ config ARCH_SPEAR6X
  config MACH_SPEAR600
  	def_bool y
  	depends on ARCH_SPEAR6XX
- 	select USE_OF
  	help
 -	  Supports ST SPEAr600 boards configured via the device-treesource "arch/arm/mach-spear6xx/Kconfig"
 +	  Supports ST SPEAr600 boards configured via the device-tree
  
  config ARCH_SPEAR_AUTO
  	def_bool PLAT_SPEAR_SINGLE
diff --cc arch/arm/mach-tegra/Kconfig
index 4926bd11f190,f61cd5b9f103..92d660f9610f
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@@ -18,10 -12,9 +12,8 @@@ config ARCH_TEGR
  	select ARCH_HAS_RESET_CONTROLLER
  	select RESET_CONTROLLER
  	select SOC_BUS
- 	select SPARSE_IRQ
 -	select USB_ARCH_HAS_EHCI if USB_SUPPORT
  	select USB_ULPI if USB_PHY
  	select USB_ULPI_VIEWPORT if USB_PHY
- 	select USE_OF
  	help
  	  This enables support for NVIDIA Tegra based systems.
  
diff --cc arch/arm/mach-zynq/Kconfig
index f03e75bd0b2b,105d39b72a25..0e001a489a79
--- a/arch/arm/mach-zynq/Kconfig
+++ b/arch/arm/mach-zynq/Kconfig
@@@ -2,19 -2,10 +2,12 @@@ config ARCH_ZYN
  	bool "Xilinx Zynq ARM Cortex A9 Platform" if ARCH_MULTI_V7
  	select ARM_AMBA
  	select ARM_GIC
 +	select ARCH_HAS_CPUFREQ
 +	select ARCH_HAS_OPP
- 	select COMMON_CLK
- 	select CPU_V7
- 	select GENERIC_CLOCKEVENTS
  	select HAVE_ARM_SCU if SMP
  	select HAVE_ARM_TWD if SMP
  	select ICST
- 	select MIGHT_HAVE_CACHE_L2X0
- 	select USE_OF
- 	select HAVE_SMP
- 	select SPARSE_IRQ
  	select CADENCE_TTC_TIMER
 -	select ARM_GLOBAL_TIMER
 +	select ARM_GLOBAL_TIMER if !CPU_FREQ
  	help
  	  Support for Xilinx Zynq ARM Cortex A9 Platform
diff --cc drivers/clocksource/Kconfig
index 52e9329e3c51,6510ec4f45ff..96918e1f26a3
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@@ -141,50 -141,5 +141,53 @@@ config VF_PIT_TIME
  	help
  	  Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
  
 +config SYS_SUPPORTS_SH_CMT
 +        bool
 +
 +config SYS_SUPPORTS_SH_MTU2
 +        bool
 +
 +config SYS_SUPPORTS_SH_TMU
 +        bool
 +
 +config SYS_SUPPORTS_EM_STI
 +        bool
 +
 +config SH_TIMER_CMT
 +	bool "Renesas CMT timer driver" if COMPILE_TEST
 +	depends on GENERIC_CLOCKEVENTS
 +	default SYS_SUPPORTS_SH_CMT
 +	help
 +	  This enables build of a clocksource and clockevent driver for
 +	  the Compare Match Timer (CMT) hardware available in 16/32/48-bit
 +	  variants on a wide range of Mobile and Automotive SoCs from Renesas.
 +
 +config SH_TIMER_MTU2
 +	bool "Renesas MTU2 timer driver" if COMPILE_TEST
 +	depends on GENERIC_CLOCKEVENTS
 +	default SYS_SUPPORTS_SH_MTU2
 +	help
 +	  This enables build of a clockevent driver for the Multi-Function
 +	  Timer Pulse Unit 2 (TMU2) hardware available on SoCs from Renesas.
 +	  This hardware comes with 16 bit-timer registers.
 +
 +config SH_TIMER_TMU
 +	bool "Renesas TMU timer driver" if COMPILE_TEST
 +	depends on GENERIC_CLOCKEVENTS
 +	default SYS_SUPPORTS_SH_TMU
 +	help
 +	  This enables build of a clocksource and clockevent driver for
 +	  the 32-bit Timer Unit (TMU) hardware available on a wide range
 +	  SoCs from Renesas.
 +
 +config EM_TIMER_STI
 +	bool "Renesas STI timer driver" if COMPILE_TEST
 +	depends on GENERIC_CLOCKEVENTS
 +	default SYS_SUPPORTS_EM_STI
 +	help
 +	  This enables build of a clocksource and clockevent driver for
 +	  the 48-bit System Timer (STI) hardware available on a SoCs
 +	  such as EMEV2 from former NEC Electronics.
++
+ config CLKSRC_QCOM
+ 	bool