From: Daniel Lezcano <hidden> Date: 2016-06-28 10:53:21
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: Daniel Lezcano <redacted>
---
drivers/clocksource/Kconfig | 2 +-
drivers/clocksource/armv7m_systick.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
@@ -250,7 +250,7 @@ config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCKUseARMglobaltimerclocksourceassched_clockconfigARMV7M_SYSTICK-bool+bool"Support for the ARMv7M system time"ifCOMPILE_TESTselectCLKSRC_OFifOFselectCLKSRC_MMIOhelp
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:53:19
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_BCM_KONA_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-bcm/Kconfig | 1 +
drivers/clocksource/Kconfig | 7 +++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:53:26
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_ATLAS7_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-prima2/Kconfig | 1 +
drivers/clocksource/Kconfig | 7 +++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:54:24
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_KEYSTONE_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-keystone/Kconfig | 2 +-
drivers/clocksource/Kconfig | 8 ++++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:54:28
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_U300_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Due on the delay specific code, this driver will compile only on the ARM
architecture.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-u300/Kconfig | 2 +-
drivers/clocksource/Kconfig | 8 ++++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:54:30
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_NSPIRE_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-nspire/Kconfig | 1 +
drivers/clocksource/Kconfig | 7 +++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:54:31
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_INTEGRATOR_AP_TIMER and is selected
by the platform. Then the clocksource's Kconfig is changed to make this
option selectable by the user if the COMPILE_TEST option is set. Otherwise,
it is up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-integrator/Kconfig | 2 +-
drivers/clocksource/Kconfig | 7 +++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
@@ -20,7 +20,7 @@ if ARCH_INTEGRATORconfigARCH_INTEGRATOR_APbool"Support Integrator/AP and Integrator/PP2 platforms"-selectCLKSRC_MMIO+selectINTEGRATOR_AP_TIMERselectMIGHT_HAVE_PCIselectSERIAL_AMBA_PL010ifTTYselectSERIAL_AMBA_PL010_CONSOLEifTTY
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:56:29
The driver includes the <asm/mach/time.h> header but it is pointless.
Remove it.
Signed-off-by: Daniel Lezcano <redacted>
---
drivers/clocksource/timer-prima2.c | 1 -
1 file changed, 1 deletion(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:56:31
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_MOXART_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-moxart/Kconfig | 2 +-
drivers/clocksource/Kconfig | 7 +++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:56:34
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_PRIMA2_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-prima2/Kconfig | 1 +
drivers/clocksource/Kconfig | 7 +++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:56:35
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_CLPS711X_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/Kconfig | 2 +-
drivers/clocksource/Kconfig | 7 +++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
From: Daniel Lezcano <hidden> Date: 2016-06-28 10:56:37
Change the Kconfig option logic to fullfil with the current approach.
A new Kconfig option is added, CONFIG_MXS_TIMER and is selected by the
platform. Then the clocksource's Kconfig is changed to make this option
selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
up to the platform's Kconfig to select the timer.
Signed-off-by: Daniel Lezcano <redacted>
---
arch/arm/mach-mxs/Kconfig | 2 +-
drivers/clocksource/Kconfig | 8 ++++++++
drivers/clocksource/Makefile | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)