summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/starfive/jh7100/jh7100.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/board/starfive/jh7100/jh7100.c b/board/starfive/jh7100/jh7100.c
index bf59cc32dc..286e00dbd8 100644
--- a/board/starfive/jh7100/jh7100.c
+++ b/board/starfive/jh7100/jh7100.c
@@ -1096,6 +1096,28 @@ INIT_FUNC_DEF(i2c3)
_CLEAR_RESET_rstgen_rstn_i2c3_core_;
}
+INIT_FUNC_DEF(timer)
+{
+ _ENABLE_CLOCK_clk_wdtimer_apb_;
+
+ _ENABLE_CLOCK_clk_timer0_coreclk_;
+ _ENABLE_CLOCK_clk_timer1_coreclk_;
+ _ENABLE_CLOCK_clk_timer2_coreclk_;
+ _ENABLE_CLOCK_clk_timer3_coreclk_;
+ _ENABLE_CLOCK_clk_timer4_coreclk_;
+ _ENABLE_CLOCK_clk_timer5_coreclk_;
+ _ENABLE_CLOCK_clk_timer6_coreclk_;
+
+ //_CLEAR_RESET_rstgen_rstn_wdtimer_apb_;
+ _CLEAR_RESET_rstgen_rstn_timer0_;
+ _CLEAR_RESET_rstgen_rstn_timer1_;
+ _CLEAR_RESET_rstgen_rstn_timer2_;
+ _CLEAR_RESET_rstgen_rstn_timer3_;
+ _CLEAR_RESET_rstgen_rstn_timer4_;
+ _CLEAR_RESET_rstgen_rstn_timer5_;
+ _CLEAR_RESET_rstgen_rstn_timer6_;
+}
+
/* disable, when we don't realy use it */
#if 0
INIT_FUNC_DEF(wdt)
@@ -1355,6 +1377,7 @@ int board_hw_init(void)
// INIT_FUNC_CALL(uart3);
INIT_FUNC_CALL(i2c2);
INIT_FUNC_CALL(i2c3);
+ INIT_FUNC_CALL(timer);
// INIT_FUNC_CALL(wdt);
INIT_FUNC_CALL(ptc);