From a92008c17d13a902705da8caf787f9e9deb5ed26 Mon Sep 17 00:00:00 2001 From: Richard Wheatley Date: Tue, 5 Sep 2023 09:54:39 -0500 Subject: [PATCH] soc: arm: ambiq: apollo4: add simobuck init to apollo4 init Adds comments and simobuck init function for low power. Signed-off-by: Richard Wheatley --- soc/arm/ambiq/apollo4x/soc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/soc/arm/ambiq/apollo4x/soc.c b/soc/arm/ambiq/apollo4x/soc.c index 30288ad12c3..225f5013441 100644 --- a/soc/arm/ambiq/apollo4x/soc.c +++ b/soc/arm/ambiq/apollo4x/soc.c @@ -10,7 +10,14 @@ static int arm_apollo4_init(void) { + + /* Initialize for low power in the power control block */ am_hal_pwrctrl_low_power_init(); + + /* Enable SIMOBUCK for the Apollo4 Family */ + am_hal_pwrctrl_control(AM_HAL_PWRCTRL_CONTROL_SIMOBUCK_INIT, 0); + + /* Disable the RTC. */ am_hal_rtc_osc_disable(); return 0;