summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorChunyan Zhang <chunyan.zhang@spreadtrum.com>2018-05-07 05:04:47 -0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2018-05-18 16:53:08 -0400
commit8a1ece26d370e38817da5232195896b727dba3cd (patch)
tree055c2026eab6f9b5985e9bf9c1eb5c3c76370599 /drivers/clocksource
parentdb6f9e55c8d80a4a1a329b9b68a1d370bffb6aad (diff)
clocksource/drivers/sprd: Fix Kconfig dependency
SPRD arch doesn't select SPRD_TIMER, so this config would not appear even if ARCH_SPRD is set but COMPILE_TEST not. Fix the dependency of this config with SPRD arch, and set a default value for it, also leave other choices for EXPERT. Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/Kconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 8e8a09755d10..dec0dd88ec15 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -450,8 +450,10 @@ config MTK_TIMER
450 Support for Mediatek timer driver. 450 Support for Mediatek timer driver.
451 451
452config SPRD_TIMER 452config SPRD_TIMER
453 bool "Spreadtrum timer driver" if COMPILE_TEST 453 bool "Spreadtrum timer driver" if EXPERT
454 depends on HAS_IOMEM 454 depends on HAS_IOMEM
455 depends on (ARCH_SPRD || COMPILE_TEST)
456 default ARCH_SPRD
455 select TIMER_OF 457 select TIMER_OF
456 help 458 help
457 Enables support for the Spreadtrum timer driver. 459 Enables support for the Spreadtrum timer driver.