Skip to content

Commit

Permalink
timer: allow for configuring it out
Browse files Browse the repository at this point in the history
Some configurations have the system timer driver hardwired in.
Let's make them compatible with CONFIG_SYS_CLOCK_EXISTS=n.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
  • Loading branch information
Nicolas Pitre authored and Umar Nisar committed Aug 15, 2023
1 parent a663f37 commit c99b3ac
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion boards/posix/native_posix/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

config BOARD_NATIVE_POSIX
bool
select NATIVE_POSIX_TIMER
imply NATIVE_POSIX_TIMER
select POSIX_ARCH_CONSOLE
select NATIVE_APPLICATION

Expand Down
2 changes: 1 addition & 1 deletion soc/arm/nuvoton_numaker/m46x/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config SOC_SERIES_M46X
select CPU_CORTEX_M_HAS_DWT
select CPU_HAS_FPU
select CPU_HAS_ARM_MPU
select CORTEX_M_SYSTICK
select CORTEX_M_SYSTICK if SYS_CLOCK_EXISTS
select SOC_FAMILY_NUMAKER
help
Enable support for Nuvoton M46X MCU series
2 changes: 1 addition & 1 deletion soc/arm/nxp_s32/s32ze/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
config SOC_SERIES_S32ZE_R52
bool "NXP S32Z/E series"
select ARM
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
select CPU_CORTEX_R52
select CPU_HAS_DCLS
select CPU_HAS_ARM_MPU
Expand Down
2 changes: 1 addition & 1 deletion soc/arm64/bcm_vk/viper/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ config SOC_BCM58402_A72
bool "Broadcom BCM58402 A72"
select ARM64
select CPU_CORTEX_A72
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS

endchoice
6 changes: 3 additions & 3 deletions soc/arm64/nxp_imx/mimx8m/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config SOC_MIMX8MM_A53
bool "NXP i.MX8MM A53"
select ARM64
select CPU_CORTEX_A53
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
select HAS_MCUX if CLOCK_CONTROL
select HAS_MCUX_CCM if CLOCK_CONTROL
select HAS_MCUX_IOMUXC if PINCTRL
Expand All @@ -18,7 +18,7 @@ config SOC_MIMX8MP_A53
bool "NXP i.MX8MP A53"
select ARM64
select CPU_CORTEX_A53
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
select HAS_MCUX if CLOCK_CONTROL
select HAS_MCUX_CCM if CLOCK_CONTROL
select HAS_MCUX_IOMUXC if PINCTRL
Expand All @@ -27,7 +27,7 @@ config SOC_MIMX8MN_A53
bool "NXP i.MX8MN A53"
select ARM64
select CPU_CORTEX_A53
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
select HAS_MCUX if CLOCK_CONTROL
select HAS_MCUX_CCM if CLOCK_CONTROL
select HAS_MCUX_IOMUXC if PINCTRL
Expand Down
2 changes: 1 addition & 1 deletion soc/arm64/nxp_imx/mimx9/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config SOC_MIMX93_A55
bool "NXP i.MX93 A55"
select ARM64
select CPU_CORTEX_A55
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
select HAS_MCUX if CLOCK_CONTROL
select HAS_MCUX_CCM if CLOCK_CONTROL
select HAS_MCUX_IOMUXC if PINCTRL
Expand Down
2 changes: 1 addition & 1 deletion soc/arm64/nxp_layerscape/ls1046a/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ config SOC_LS1046A
bool "NXP ls1046a"
select ARM64
select CPU_CORTEX_A72
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS

endchoice
2 changes: 1 addition & 1 deletion soc/arm64/renesas_rcar/gen3/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ config SOC_SERIES_RCAR_GEN3
select ARM64
select CPU_CORTEX_A57
select SOC_FAMILY_RCAR
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
select CLOCK_CONTROL_RCAR_CPG_MSSR if CLOCK_CONTROL
help
Enable support for Renesas RCar Gen3 SoC series
2 changes: 1 addition & 1 deletion soc/arm64/rockchip/rk3399/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ config SOC_RK3399
bool "Rockchip RK3399"
select ARM64
select CPU_CORTEX_A53
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS

endchoice
2 changes: 1 addition & 1 deletion soc/arm64/ti_k3/am6x/Kconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ config SOC_SERIES_AM6X_A53
select SOC_FAMILY_TI_K3
select ARM64
select CPU_CORTEX_A53
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
help
Enable support for AM6X A53 Series.
2 changes: 1 addition & 1 deletion soc/arm64/xenvm/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
config SOC_XENVM
bool "Xen virtual machine on aarch64"
select ARM64
select ARM_ARCH_TIMER
select ARM_ARCH_TIMER if SYS_CLOCK_EXISTS
select CPU_CORTEX_A72

config XEN_INITIAL_DOMAIN
Expand Down

0 comments on commit c99b3ac

Please sign in to comment.