Skip to content

Commit 7596aef

Browse files
committed
drivers: clock_control: SAM D5x/E5x: add more functionality
Add more functionality in clock control driver. Implement bootup clock initialization, async on and set_rate API. Signed-off-by: Sunil Abraham <[email protected]>
1 parent 4de6953 commit 7596aef

File tree

3 files changed

+1982
-168
lines changed

3 files changed

+1982
-168
lines changed

drivers/clock_control/Kconfig.mchp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,37 @@ config CLOCK_CONTROL_MCHP_SAM_D5X_E5X
1616

1717
if CLOCK_CONTROL_MCHP_COMMON
1818

19+
config CLOCK_CONTROL_MCHP_CONFIG_BOOTUP
20+
bool "Bootup clock configuration"
21+
default y
22+
help
23+
This option enables bootup clock configuration from device tree node.
24+
25+
config CLOCK_CONTROL_MCHP_CONFIG_RUNTIME
26+
bool "Runtime clock configuration"
27+
default y
28+
help
29+
This option enables runtime clock configuration using API.
30+
31+
config CLOCK_CONTROL_MCHP_ASYNC_ON
32+
bool "Async clock on"
33+
default n
34+
help
35+
This option enables async on API.
36+
1937
config CLOCK_CONTROL_MCHP_GET_RATE
2038
bool "Get clock rate"
2139
default y
2240
help
2341
Enable support for retrieving the clock rate. This may increase
2442
code size, depending on the depth of clock source hierarchy.
2543

44+
config CLOCK_CONTROL_MCHP_SET_RATE
45+
bool "Set clock rate"
46+
default n
47+
depends on CLOCK_CONTROL_MCHP_GET_RATE
48+
help
49+
This option enables set rate API. This may increase
50+
code size, depending on the depth of clock source hierarchy.
51+
2652
endif # CLOCK_CONTROL_MCHP_COMMON

0 commit comments

Comments
 (0)