diff options
author | Jayesh Choudhary <j-choudhary@ti.com> | 2024-02-15 12:41:12 +0530 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2024-03-21 14:26:33 +0000 |
commit | ef3a42983d4ade05881c398f5a6512fbeebecfd3 (patch) | |
tree | 80608e7e7fcaf58a12190e6911f22d0313e82ce5 | |
parent | 4245ab5a06540207e7311371822be18d519bb616 (diff) |
board: ti: j722s: Enable 32k crystal for RTC
Currently, the rtc clock is being set to 32552 instead of exact 32k.
Enable the 32k crystal and setup debounce conf registers by invoking
board_rtc_init call so that rtc clock is set accurately to 32768.
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
-rw-r--r-- | board/ti/j722s/evm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/ti/j722s/evm.c b/board/ti/j722s/evm.c index 8469467b7d..81feb312e3 100644 --- a/board/ti/j722s/evm.c +++ b/board/ti/j722s/evm.c @@ -16,6 +16,7 @@ #include "../common/board_detect.h" #include "../common/k3-ddr-init.h" +#include "../common/rtc.h" #ifdef CONFIG_TI_I2C_BOARD_DETECT /* @@ -58,5 +59,8 @@ int checkboard(void) int board_init(void) { + if (IS_ENABLED(CONFIG_BOARD_HAS_32K_RTC_CRYSTAL)) + board_rtc_init(); + return 0; } |