From ef3a42983d4ade05881c398f5a6512fbeebecfd3 Mon Sep 17 00:00:00 2001 From: Jayesh Choudhary Date: Thu, 15 Feb 2024 12:41:12 +0530 Subject: 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 --- board/ti/j722s/evm.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- cgit v1.2.3