Skip to content

Commit 46b5d05

Browse files
VynDragonkartben
authored andcommitted
drivers: clock_control: Introduce bl60x clock driver
This introduces a clock_control driver for bl60x Signed-off-by: Camille BAUD <mail@massdriver.space>
1 parent db1fe60 commit 46b5d05

File tree

11 files changed

+1051
-0
lines changed

11 files changed

+1051
-0
lines changed

drivers/clock_control/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_NRF_FLL16M clock_cont
5454
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_NRF54H_HFXO clock_control_nrf54h_hfxo.c)
5555
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_NRF_HSFLL_LOCAL clock_control_nrf_hsfll_local.c)
5656
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_NRF_LFCLK clock_control_nrf_lfclk.c)
57+
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_BOUFFALOLAB_BL60X clock_control_bl60x.c)
5758

5859
if(CONFIG_CLOCK_CONTROL_RENESAS_RZA2M_CPG)
5960
zephyr_library_sources(clock_control_renesas_rza2m_cpg.c)

drivers/clock_control/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ source "drivers/clock_control/Kconfig.stm32"
3232

3333
source "drivers/clock_control/Kconfig.beetle"
3434

35+
source "drivers/clock_control/Kconfig.bflb"
36+
3537
source "drivers/clock_control/Kconfig.fixed"
3638

3739
source "drivers/clock_control/Kconfig.lpc11u6x"

drivers/clock_control/Kconfig.bflb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config CLOCK_CONTROL_BOUFFALOLAB_BL60X
5+
bool "Bouffalolab BL60x Clock Control"
6+
default y
7+
depends on DT_HAS_BFLB_BL60X_CLOCK_CONTROLLER_ENABLED

0 commit comments

Comments
 (0)