提交 e2146d86 编写于 作者: D Daniel Lezcano

clocksource/drivers/armv7m_systick: Add the COMPILE_TEST option

In order to increase the compilation test coverage, add the COMPILE_TEST
so the driver can be compiled even if it does not belong to the platform
or the architecture.

The io.h header inclusion is also added as it the driver does not compile
on UM platform.
Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
上级 2ea879a7
...@@ -250,7 +250,7 @@ config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK ...@@ -250,7 +250,7 @@ config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
Use ARM global timer clock source as sched_clock Use ARM global timer clock source as sched_clock
config ARMV7M_SYSTICK config ARMV7M_SYSTICK
bool bool "Support for the ARMv7M system time" if COMPILE_TEST
select CLKSRC_OF if OF select CLKSRC_OF if OF
select CLKSRC_MMIO select CLKSRC_MMIO
help help
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/clocksource.h> #include <linux/clocksource.h>
#include <linux/clockchips.h> #include <linux/clockchips.h>
#include <linux/io.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/clk.h> #include <linux/clk.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册