Browse Source

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>
Hal Feng 8 months ago
parent
commit
65a9e044bd
2 changed files with 6 additions and 0 deletions
  1. 3 0
      common/board_r.c
  2. 3 0
      include/init.h

+ 3 - 0
common/board_r.c

@@ -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

+ 3 - 0
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);