浏览代码

clocksource/drivers/rockchip: Add COMPILE_TEST option

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.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Daniel Lezcano 9 年之前
父节点
当前提交
40ada2aac5
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      drivers/clocksource/Kconfig

+ 4 - 1
drivers/clocksource/Kconfig

@@ -39,8 +39,11 @@ config DW_APB_TIMER_OF
 	select CLKSRC_OF
 	select CLKSRC_OF
 
 
 config ROCKCHIP_TIMER
 config ROCKCHIP_TIMER
-	bool
+	bool "Rockchip timer driver" if COMPILE_TEST
+	depends on ARM || ARM64
 	select CLKSRC_OF
 	select CLKSRC_OF
+	help
+	  Enables the support for the rockchip timer driver.
 
 
 config ARMADA_370_XP_TIMER
 config ARMADA_370_XP_TIMER
 	bool
 	bool