Skip to content

Commit 6ded4c1

Browse files
RtkFPcaiyi_zhong
authored andcommitted
drivers: clock_control: add clock control for RTS5817
Add clock control driver for RTS5817 Signed-off-by: Darcy Lu <darcy_lu@realsil.com.cn>
1 parent 242c936 commit 6ded4c1

File tree

8 files changed

+1686
-0
lines changed

8 files changed

+1686
-0
lines changed

drivers/clock_control/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,5 @@ zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_AST10X0 clock_control_ast10x0.
120120
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_MAX32 clock_control_max32.c)
121121
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_NRF_AUXPLL clock_control_nrf_auxpll.c)
122122
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_WCH_RCC clock_control_wch_rcc.c)
123+
124+
zephyr_library_sources_ifdef(CONFIG_CLOCK_CONTROL_RTS5817 clock_control_rts5817.c)

drivers/clock_control/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,6 @@ source "drivers/clock_control/Kconfig.wch_rcc"
114114

115115
source "drivers/clock_control/Kconfig.it51xxx"
116116

117+
source "drivers/clock_control/Kconfig.rts5817"
118+
117119
endif # CLOCK_CONTROL

drivers/clock_control/Kconfig.rts5817

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2024 Realtek Semiconductor, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config CLOCK_CONTROL_RTS5817
5+
bool "RTS5817 clock control"
6+
depends on DT_HAS_REALTEK_RTS5817_CLOCK_ENABLED
7+
default y
8+
help
9+
Enable driver for RTS5817 Clock Control.

0 commit comments

Comments
 (0)