soc: silabs: Initialize DCDC from device tree
The DC-DC converter was unconditionally initialized with default settings on Series 2. Add device tree binding and nodes, and guard call to init function. Map DT options to config header from HAL. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
parent
60462266e3
commit
3d0909ed18
16 changed files with 196 additions and 2 deletions
|
@ -4,4 +4,5 @@
|
|||
add_subdirectory(common)
|
||||
zephyr_include_directories(${SOC_FAMILY}/${SOC_SERIES})
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_SOC_FAMILY_SILABS_S2 silabs_s2)
|
||||
add_subdirectory_ifdef(CONFIG_SOC_SERIES_SIM3U silabs_sim3/sim3u)
|
||||
|
|
|
@ -214,7 +214,9 @@ void soc_early_init_hook(void)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_SOC_GECKO_DEV_INIT
|
||||
sl_device_init_dcdc();
|
||||
if (DT_HAS_COMPAT_STATUS_OKAY(silabs_series2_dcdc)) {
|
||||
sl_device_init_dcdc();
|
||||
}
|
||||
sl_device_init_hfxo();
|
||||
sl_device_init_dpll();
|
||||
|
||||
|
|
2
soc/silabs/silabs_s2/CMakeLists.txt
Normal file
2
soc/silabs/silabs_s2/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Copyright (c) 2024 Silicon Laboratories Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
Loading…
Add table
Add a link
Reference in a new issue