summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHal Feng <hal.feng@starfivetech.com>2023-08-22 04:58:05 +0300
committerHal Feng <hal.feng@starfivetech.com>2023-11-29 05:53:53 +0300
commit65a9e044bdbec0119d78efe1ab5464614bb2a698 (patch)
treed310bcd4bd60574f30369184916ee4ace1995839
parentd006806e64b0120df0c28272e4cb0c2e5c15bd9b (diff)
downloadu-boot-65a9e044bdbec0119d78efe1ab5464614bb2a698.tar.xz
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>
-rw-r--r--common/board_r.c3
-rw-r--r--include/init.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 630c2451a2..e75efc97ad 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -690,6 +690,9 @@ static init_fnc_t init_sequence_r[] = {
#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
initr_flash,
diff --git a/include/init.h b/include/init.h
index c781789e36..b29b6ecd98 100644
--- a/include/init.h
+++ b/include/init.h
@@ -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);