How to modify the low-speed crystal oscillator type and power supply mode in the code?

NCS2.7.0

board:nrf54L15

We need a hardware to equip the nrf54l15 hardware, such as using internal or external low-speed crystal, power supply method is DCDC or LDO, etc.

Just like the old SDK, you can modify these in the code, but ncs can change it in the configuration file.

eg:

1. burn param to uicr

2. read uicr param 

3. code set param(xtal rc or dcdc ldo)

 
 change dcdc or ldo
old SDK
sd_power_dcdc_mode_set NRF_POWER_DCDC_ENABLE
change xtal or rc
old SDK
I can modify clock_lf_cfg to decide whether to use internal or external crystal.
sd_softdevice_enable clock_lf_cfg,app_error_fault_handler);
I found that ncs uses clock control, but I don't know how to change it. Please give me some suggestions.
I tried restarting the clock this way but I don't know if it's possible.
Related