Skip to content

Commit a76ed22

Browse files
soburinashif
authored andcommitted
soc: rpi_pico: Set the default SYS_CLOCK_HW_CYCLES_PER_SEC from dt
Avoid the individual `CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC` for each board instead to referencing the dt value. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent c304da7 commit a76ed22

File tree

16 files changed

+10
-18
lines changed

16 files changed

+10
-18
lines changed

boards/adafruit/kb2040/adafruit_kb2040_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000
4-
53
# Enable UART driver
64
CONFIG_SERIAL=y
75
CONFIG_UART_INTERRUPT_DRIVEN=y

boards/adafruit/macropad_rp2040/adafruit_macropad_rp2040_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright (c) 2025 Benjamin Cabé <benjamin@zephyrproject.org>
22
# SPDX-License-Identifier: Apache-2.0
33

4-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000
54
CONFIG_SERIAL=y
65
CONFIG_CONSOLE=y
76
CONFIG_UART_CONSOLE=y

boards/adafruit/qt_py_rp2040/adafruit_qt_py_rp2040_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000
4-
53
# Enable UART driver
64
CONFIG_SERIAL=y
75
CONFIG_UART_INTERRUPT_DRIVEN=y

boards/kws/pico2_spe/pico2_spe_rp2350a_m33_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ CONFIG_CONSOLE=y
88
CONFIG_GPIO=y
99
CONFIG_RESET=y
1010
CONFIG_SERIAL=y
11-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=150000000
1211
CONFIG_UART_CONSOLE=y
1312
CONFIG_UART_INTERRUPT_DRIVEN=y
1413
CONFIG_USE_DT_CODE_PARTITION=y

boards/kws/pico_spe/pico_spe_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000
21
CONFIG_SERIAL=y
32
CONFIG_CONSOLE=y
43
CONFIG_UART_CONSOLE=y

boards/pimoroni/pico_plus2/pico_plus2_rp2350b_m33_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ CONFIG_CONSOLE=y
88
CONFIG_GPIO=y
99
CONFIG_RESET=y
1010
CONFIG_SERIAL=y
11-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=150000000
1211
CONFIG_UART_CONSOLE=y
1312
CONFIG_UART_INTERRUPT_DRIVEN=y
1413
CONFIG_USE_DT_CODE_PARTITION=y

boards/raspberrypi/rpi_pico/rpi_pico_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000
21
CONFIG_SERIAL=y
32
CONFIG_CONSOLE=y
43
CONFIG_UART_CONSOLE=y

boards/raspberrypi/rpi_pico/rpi_pico_rp2040_w_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000
21
CONFIG_SERIAL=y
32
CONFIG_CONSOLE=y
43
CONFIG_UART_CONSOLE=y

boards/raspberrypi/rpi_pico2/rpi_pico2_rp2350a_m33_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ CONFIG_CONSOLE=y
88
CONFIG_GPIO=y
99
CONFIG_RESET=y
1010
CONFIG_SERIAL=y
11-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=150000000
1211
CONFIG_UART_CONSOLE=y
1312
CONFIG_UART_INTERRUPT_DRIVEN=y
1413
CONFIG_USE_DT_CODE_PARTITION=y

boards/seeed/xiao_rp2040/xiao_rp2040_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=125000000
43
CONFIG_RESET=y
54

65
# Enable UART driver

0 commit comments

Comments
 (0)