27 lines
543 B
C
27 lines
543 B
C
/*
|
|
* Copyright (c) 2023 Antmicro <www.antmicro.com>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <zephyr/init.h>
|
|
|
|
#include <am_mcu_apollo.h>
|
|
|
|
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;
|
|
}
|
|
|
|
SYS_INIT(arm_apollo4_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|