common: board_r: Enable set_pmic()

The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
This commit is contained in:
Hal Feng 2023-08-22 09:58:05 +08:00
parent d006806e64
commit 65a9e044bd
2 changed files with 6 additions and 0 deletions

View file

@ -689,6 +689,9 @@ static init_fnc_t init_sequence_r[] = {
#endif
#ifdef CONFIG_ARCH_EARLY_INIT_R
arch_early_init_r,
#endif
#if CONFIG_IS_ENABLED(TARGET_STARFIVE_DEVKITS)
set_pmic,
#endif
power_init_board,
#ifdef CONFIG_MTD_NOR_FLASH

View file

@ -267,6 +267,9 @@ int cpu_init_r(void);
int last_stage_init(void);
int mac_read_from_eeprom(void);
int set_cpu_clk_info(void);
#if CONFIG_IS_ENABLED(TARGET_STARFIVE_DEVKITS)
int set_pmic(void);
#endif
int update_flash_size(int flash_size);
int arch_early_init_r(void);
int misc_init_r(void);