From e32f441ec87a320ed1f9b791602bf77e1295bae0 Mon Sep 17 00:00:00 2001 From: Bryan Brattlof Date: Tue, 7 Nov 2023 17:30:41 -0600 Subject: [PATCH] configs: am62px: setup the 32k RTC crystal The am62px utilizes the same 32k crystal for a more accurate RTC clock source. Enable the configuration to set this up for Linux. Signed-off-by: Bryan Brattlof --- board/ti/am62px/evm.c | 5 +++++ configs/am62px_evm_a53_defconfig | 1 + 2 files changed, 6 insertions(+) diff --git a/board/ti/am62px/evm.c b/board/ti/am62px/evm.c index 44793cbed6..60b5606dea 100644 --- a/board/ti/am62px/evm.c +++ b/board/ti/am62px/evm.c @@ -14,8 +14,13 @@ #include #include +#include "../common/rtc.c" + int board_init(void) { + if (IS_ENABLED(CONFIG_BOARD_HAS_32K_RTC_CRYSTAL)) + board_rtc_init(); + return 0; } diff --git a/configs/am62px_evm_a53_defconfig b/configs/am62px_evm_a53_defconfig index 1270c52600..7c10fc8e21 100644 --- a/configs/am62px_evm_a53_defconfig +++ b/configs/am62px_evm_a53_defconfig @@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_K3=y CONFIG_TI_SECURE_DEVICE=y CONFIG_SYS_MALLOC_F_LEN=0x8000 +CONFIG_BOARD_HAS_32K_RTC_CRYSTAL=y CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y