]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: vexpress: refine dependencies for new code
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 May 2014 15:25:22 +0000 (17:25 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 26 May 2014 19:26:52 +0000 (21:26 +0200)
The versatile express changes for 3.16 introduced a number of
build regressions for randconfig kernels by not tracking dependencies
between the components right.

This patch tries to rectify that:

* the mach-vexpress code cannot link without the syscfg driver,
  which in turn needs MFD_VEXPRESS_SYSREG
* various drivers call devm_regmap_init_vexpress_config(), which
  has to be exported so it can be used by loadable modules
* the configuration bus uses OF DT helper functions that are not
  available to platforms disable CONFIG_OF
* The sysreg driver exports GPIOs through gpiolib, which can
  be disabled on some platforms.
* The clocksource code cannot be built on platforms that don't
  use modern timekeeping but rely on gettimeoffset.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-vexpress/Kconfig
drivers/bus/Kconfig
drivers/bus/vexpress-config.c
drivers/clocksource/Kconfig
drivers/mfd/Kconfig

index 657d52d0391fc4a8edd9fa445ffdf71457571dcf..b8ac752fd24b9c70440dfa52046db39497b63b6c 100644 (file)
@@ -18,6 +18,8 @@ config ARCH_VEXPRESS
        select POWER_SUPPLY
        select REGULATOR_FIXED_VOLTAGE if REGULATOR
        select VEXPRESS_CONFIG
+       select VEXPRESS_SYSCFG
+       select MFD_VEXPRESS_SYSREG
        help
          This option enables support for systems using Cortex processor based
          ARM core and logic (FPGA) tiles on the Versatile Express motherboard,
index f24e79dd51bf3b4e611219a894e9617c012b5676..2863427788846bbade78dfd5a74592c269fdf2e2 100644 (file)
@@ -46,6 +46,7 @@ config VEXPRESS_CONFIG
        bool "Versatile Express configuration bus"
        default y if ARCH_VEXPRESS
        depends on ARM || ARM64
+       depends on OF
        select REGMAP
        help
          Platform configuration infrastructure for the ARM Ltd.
index 27a07dfcd62690d7c9a25fd99fcb6ae97a1a66ae..a64763b6b5fd1ee1e38418bd931f9d7e2066dc4a 100644 (file)
@@ -118,7 +118,7 @@ struct regmap *devm_regmap_init_vexpress_config(struct device *dev)
 
        return regmap;
 }
-
+EXPORT_SYMBOL_GPL(devm_regmap_init_vexpress_config);
 
 struct device *vexpress_config_bridge_register(struct device *parent,
                struct vexpress_config_bridge_ops *ops, void *context)
index 2c27b02f0860fe054a820b71ce541c370def942f..43f1acf0d1d26516e31b833a0621ec2d1cb0d8bb 100644 (file)
@@ -194,7 +194,7 @@ config CLKSRC_QCOM
 
 config CLKSRC_VERSATILE
        bool "ARM Versatile (Express) reference platforms clock source"
-       depends on GENERIC_SCHED_CLOCK
+       depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
        select CLKSRC_OF
        default y if MFD_VEXPRESS_SYSREG
        help
index 490fd48a9541a81628265499de8b2f1e455d96b1..f04ac62dd76b0ae9d20951796dda43e47bbd05f8 100644 (file)
@@ -1229,7 +1229,7 @@ endmenu
 
 config MFD_VEXPRESS_SYSREG
        bool "Versatile Express System Registers"
-       depends on VEXPRESS_CONFIG
+       depends on VEXPRESS_CONFIG && GPIOLIB
        default y
        select CLKSRC_MMIO
        select GPIO_GENERIC_PLATFORM