Skip to content

Commit

Permalink
soc: silabs: Default to sleeptimer for OS timer on Series 2
Browse files Browse the repository at this point in the history
Disable BURTC timer in board defconfigs, as it's no longer used.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
  • Loading branch information
asmellby committed Oct 23, 2024
1 parent cad0b2c commit 0aaece0
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 26 deletions.
4 changes: 0 additions & 4 deletions boards/silabs/dev_kits/sltb010a/sltb010a_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ CONFIG_SOC_GECKO_EMU_DCDC=y
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_PINCTRL=y

# Use BURTC as system clock source
CONFIG_GECKO_BURTC_TIMER=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1024
4 changes: 0 additions & 4 deletions boards/silabs/dev_kits/sltb010a/thunderboard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@
status = "okay";
};

&burtc0 {
status = "okay";
};

&rtcc0 {
status = "okay";
};
Expand Down
1 change: 0 additions & 1 deletion boards/silabs/dev_kits/xg24_dk2601b/xg24_dk2601b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_GPIO=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_PINCTRL=y
Expand Down
4 changes: 0 additions & 4 deletions boards/silabs/dev_kits/xg27_dk2602a/thunderboard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@
status = "okay";
};

&burtc0 {
status = "okay";
};

&rtcc0 {
status = "okay";
};
Expand Down
4 changes: 0 additions & 4 deletions boards/silabs/dev_kits/xg27_dk2602a/xg27_dk2602a_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ CONFIG_SOC_GECKO_EMU_DCDC=y
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_PINCTRL=y

# Use BURTC as system clock source
CONFIG_GECKO_BURTC_TIMER=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1024
4 changes: 0 additions & 4 deletions boards/silabs/radio_boards/xg24_rb4187c/xg24_rb4187c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@
status = "okay";
};

&burtc0 {
status = "okay";
};

&sysrtc0 {
status = "okay";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ CONFIG_GPIO=y
CONFIG_SOC_GECKO_EMU_DCDC=y
CONFIG_SOC_GECKO_EMU_DCDC_MODE_ON=y
CONFIG_PINCTRL=y

# Use BURTC as system clock source
CONFIG_GECKO_BURTC_TIMER=y
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1024
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ CONFIG_ARM_MPU=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_CORTEX_M_SYSTICK=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=76800000
CONFIG_SOC_GECKO_EMU_DCDC=y
Expand Down
9 changes: 9 additions & 0 deletions soc/silabs/silabs_s2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if CORTEX_M_SYSTICK
default 32768

config SYS_CLOCK_TICKS_PER_SEC
default 1024 if SILABS_SLEEPTIMER_TIMER || GECKO_BURTC_TIMER

config SILABS_SLEEPTIMER_TIMER
default y

config CORTEX_M_SYSTICK
default n if SILABS_SLEEPTIMER_TIMER || GECKO_BURTC_TIMER

endif

0 comments on commit 0aaece0

Please sign in to comment.