Skip to content

Commit 50cdc17

Browse files
sreeramIfxkartben
authored andcommitted
soc: infineon: cat1b: cyw20829: Enable SOC_EARLY_INIT_HOOK
Power management routine is initialized from the soc_early_init_hook, but this was not enabled previously. Signed-off-by: Sreeram Tatapudi <[email protected]>
1 parent b079140 commit 50cdc17

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

soc/infineon/cat1b/cyw20829/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ config SOC_SERIES_CYW20829
1414
select HAS_PM
1515
select BUILD_OUTPUT_HEX
1616
select BUILD_OUTPUT_BIN
17+
select SOC_EARLY_INIT_HOOK

soc/infineon/cat1b/cyw20829/soc.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,16 @@ void disable_mpu_rasr_xn(void)
8585
}
8686
#endif /* CONFIG_ARM_MPU */
8787

88-
static int init_cycfg_platform_wrapper(void)
88+
void soc_early_init_hook(void)
8989
{
9090
#ifdef CONFIG_ARM_MPU
9191
disable_mpu_rasr_xn();
9292
#endif /* CONFIG_ARM_MPU */
9393

9494
/* Initializes the system */
9595
SystemInit();
96-
return 0;
97-
}
98-
99-
SYS_INIT(init_cycfg_platform_wrapper, PRE_KERNEL_1, 0);
10096

10197
#ifdef CONFIG_PM
102-
void soc_early_init_hook(void)
103-
{
10498
ifx_pm_init();
105-
}
10699
#endif
100+
}

0 commit comments

Comments
 (0)