Skip to content

Commit 236c5ac

Browse files
ioannisggalak
authored andcommitted
soc: arm: remove default selection of system timer for ARM platforms
We shall not enable by default a system timer in ARM platforms, namely the SysTick, the Nordic, or the SAM0 RTC timer, simply by assessing the hardware capabilities (e.g. by conditioning on CPU_CORTEX_M_HAS_SYSTICK). Instead, now, all ARM platforms needs to explicitly set their system timer module. Note that this has already been the case for ca 80% of the ARM platforms. This clean-up allows us to decouple HW capabilities from system configuration (for example, Nordic platforms may enable option CPU_CORTEX_M_HAS_SYSTICK, and still use the platform-specific RTC timer for system timing). Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 894eca5 commit 236c5ac

File tree

26 files changed

+26
-2
lines changed

26 files changed

+26
-2
lines changed

boards/arm/96b_carbon/96b_carbon_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
CONFIG_ARM=y
44
CONFIG_SOC_SERIES_STM32F4X=y
55
CONFIG_SOC_STM32F401XE=y
6+
CONFIG_CORTEX_M_SYSTICK=y
7+
68
# 84MHz system clock
79
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
810
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

boards/arm/96b_stm32_sensor_mez/96b_stm32_sensor_mez_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ARM=y
44
CONFIG_BOARD_96B_STM32_SENSOR_MEZ=y
55
CONFIG_SOC_SERIES_STM32F4X=y
66
CONFIG_SOC_STM32F446XE=y
7+
CONFIG_CORTEX_M_SYSTICK=y
78

89
# 84MHz system clock
910
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000

boards/arm/mikroe_mini_m4_for_stm32/mikroe_mini_m4_for_stm32_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ CONFIG_BOARD_MIKROE_MINI_M4_FOR_STM32=y
33
CONFIG_SOC_SERIES_STM32F4X=y
44
CONFIG_SOC_STM32F415RG=y
55
# 168MHz system clock
6+
CONFIG_CORTEX_M_SYSTICK=y
67
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
78
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
89

boards/arm/nucleo_f207zg/nucleo_f207zg_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ARM=y
44
CONFIG_BOARD_NUCLEO_F207ZG=y
55
CONFIG_SOC_SERIES_STM32F2X=y
66
CONFIG_SOC_STM32F207XG=y
7+
CONFIG_CORTEX_M_SYSTICK=y
78
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=120000000
89
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
910

boards/arm/nucleo_f302r8/nucleo_f302r8_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
CONFIG_ARM=y
44
CONFIG_SOC_SERIES_STM32F3X=y
55
CONFIG_SOC_STM32F302X8=y
6+
CONFIG_CORTEX_M_SYSTICK=y
67
# 72 MHz system clock
78
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
89
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

boards/arm/nucleo_f401re/nucleo_f401re_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ARM=y
44
CONFIG_BOARD_NUCLEO_F401RE=y
55
CONFIG_SOC_SERIES_STM32F4X=y
66
CONFIG_SOC_STM32F401XE=y
7+
CONFIG_CORTEX_M_SYSTICK=y
78
# 84MHz system clock
89
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
910
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

boards/arm/nucleo_f411re/nucleo_f411re_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ARM=y
44
CONFIG_BOARD_NUCLEO_F411RE=y
55
CONFIG_SOC_SERIES_STM32F4X=y
66
CONFIG_SOC_STM32F411XE=y
7+
CONFIG_CORTEX_M_SYSTICK=y
78
# 96MHz system clock (highest value to get a precise USB clock)
89
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
910
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

boards/arm/nucleo_f412zg/nucleo_f412zg_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ARM=y
44
CONFIG_BOARD_NUCLEO_F412ZG=y
55
CONFIG_SOC_SERIES_STM32F4X=y
66
CONFIG_SOC_STM32F412ZG=y
7+
CONFIG_CORTEX_M_SYSTICK=y
78
# 96MHz system clock (highest value to get a precise USB clock)
89
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
910
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

boards/arm/nucleo_f413zh/nucleo_f413zh_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ARM=y
44
CONFIG_BOARD_NUCLEO_F413ZH=y
55
CONFIG_SOC_SERIES_STM32F4X=y
66
CONFIG_SOC_STM32F413XX=y
7+
CONFIG_CORTEX_M_SYSTICK=y
78
# 96MHz system clock (highest value to get a precise USB clock)
89
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
910
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

boards/arm/nucleo_f429zi/nucleo_f429zi_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
CONFIG_ARM=y
44
CONFIG_SOC_SERIES_STM32F4X=y
55
CONFIG_SOC_STM32F429XI=y
6+
CONFIG_CORTEX_M_SYSTICK=y
67
# 168MHz system clock (highest value to get a precise USB clock)
78
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
89
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

0 commit comments

Comments
 (0)