UPSTREAM: clocksource/drivers/rockchip: Add COMPILE_TEST option
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 30 Oct 2015 16:58:47 +0000 (17:58 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 May 2016 09:48:47 +0000 (17:48 +0800)
Increase the compilation test coverage by adding the COMPILE_TEST option.

Due to the dsb() usage in the driver, this driver is only compilable on
ARM and ARM64.

Change-Id: I5f2c1a5353a7b20c80dcfc3cd3900510f56a0729
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 40ada2aac5e3a3c38f295d4e37b182fc4feff723)

drivers/clocksource/Kconfig

index 2eb5f0efae903cd5235bdd2132ec455dfafe7c26..9b7d1067b4483eec64f13bf00fea8d5ab9e5a9d6 100644 (file)
@@ -39,8 +39,11 @@ config DW_APB_TIMER_OF
        select CLKSRC_OF
 
 config ROCKCHIP_TIMER
-       bool
+       bool "Rockchip timer driver" if COMPILE_TEST
+       depends on ARM || ARM64
        select CLKSRC_OF
+       help
+         Enables the support for the rockchip timer driver.
 
 config ARMADA_370_XP_TIMER
        bool