soc: silabs: siwx91x: Fix coding style
There is no reason to place sli_siwx917_soc.h under #ifdef. Then, we can get rid of the #if in the body of soc_early_init_hook(). Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
This commit is contained in:
parent
c24936fc40
commit
1ee39b9823
@ -48,6 +48,7 @@ zephyr_include_directories(
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/cmsis_driver/config
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/cmsis_driver
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/drivers/cmsis_driver/CMSIS/Driver/Include
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/ahb_interface/inc
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/firmware_upgrade
|
||||
)
|
||||
|
||||
@ -165,7 +166,6 @@ if(CONFIG_WISECONNECT_NETWORK_STACK)
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/sl_net/inc
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/socket/inc
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/asynchronous_socket/inc
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/ahb_interface/inc
|
||||
${WISECONNECT_DIR}/components/device/silabs/si91x/mcu/core/chip/config
|
||||
${WISECONNECT_DIR}/components/protocol/wifi/inc
|
||||
${WISECONNECT_DIR}/components/service/network_manager/inc
|
||||
|
||||
@ -10,9 +10,7 @@
|
||||
#include <zephyr/sw_isr_table.h>
|
||||
|
||||
#include "em_device.h"
|
||||
#ifdef CONFIG_WISECONNECT_NETWORK_STACK
|
||||
#include "sli_siwx917_soc.h"
|
||||
#endif
|
||||
#include "sl_si91x_power_manager.h"
|
||||
|
||||
void soc_early_init_hook(void)
|
||||
@ -23,15 +21,16 @@ void soc_early_init_hook(void)
|
||||
.m4ss_ram_size_kb = (DT_REG_SIZE(DT_NODELABEL(sram0)) / 1024),
|
||||
.ulpss_ram_size_kb = 4,
|
||||
};
|
||||
|
||||
SystemInit();
|
||||
#if IS_ENABLED(CONFIG_SOC_SIWX91X_PM_BACKEND_PMGR)
|
||||
sli_si91x_platform_init();
|
||||
sl_si91x_power_manager_init();
|
||||
sl_si91x_power_manager_remove_peripheral_requirement(&peripheral_config);
|
||||
sl_si91x_power_manager_configure_ram_retention(&ram_configuration);
|
||||
sl_si91x_power_manager_add_ps_requirement(SL_SI91X_POWER_MANAGER_PS4);
|
||||
sl_si91x_power_manager_set_clock_scaling(SL_SI91X_POWER_MANAGER_PERFORMANCE);
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_SOC_SIWX91X_PM_BACKEND_PMGR)) {
|
||||
sli_si91x_platform_init();
|
||||
sl_si91x_power_manager_init();
|
||||
sl_si91x_power_manager_remove_peripheral_requirement(&peripheral_config);
|
||||
sl_si91x_power_manager_configure_ram_retention(&ram_configuration);
|
||||
sl_si91x_power_manager_add_ps_requirement(SL_SI91X_POWER_MANAGER_PS4);
|
||||
sl_si91x_power_manager_set_clock_scaling(SL_SI91X_POWER_MANAGER_PERFORMANCE);
|
||||
}
|
||||
}
|
||||
|
||||
/* SiWx917's bootloader requires IRQn 32 to hold payload's entry point address. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user