From 5b41c7c481d1625cd54b593c5dd205ca37f45714 Mon Sep 17 00:00:00 2001 From: Bryan Brattlof Date: Tue, 7 Nov 2023 17:30:38 -0600 Subject: [PATCH] configs: am62ax: setup the 32k RTC crystal The am62ax 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/am62ax/evm.c | 5 +++++ configs/am62ax_evm_a53_defconfig | 1 + 2 files changed, 6 insertions(+) diff --git a/board/ti/am62ax/evm.c b/board/ti/am62ax/evm.c index 9065038756..71fbc9e9c2 100644 --- a/board/ti/am62ax/evm.c +++ b/board/ti/am62ax/evm.c @@ -15,12 +15,17 @@ #include #include +#include "../common/rtc.c" + #define CTRLMMR_USB0_PHY_CTRL 0x43004008 #define CTRLMMR_USB1_PHY_CTRL 0x43004018 #define CORE_VOLTAGE 0x80000000 int board_init(void) { + if (IS_ENABLED(CONFIG_BOARD_HAS_32K_RTC_CRYSTAL)) + board_rtc_init(); + return 0; } diff --git a/configs/am62ax_evm_a53_defconfig b/configs/am62ax_evm_a53_defconfig index 9cb3a17449..45bbffada4 100644 --- a/configs/am62ax_evm_a53_defconfig +++ b/configs/am62ax_evm_a53_defconfig @@ -3,6 +3,7 @@ CONFIG_ARCH_K3=y CONFIG_TI_SECURE_DEVICE=y CONFIG_SPL_GPIO=y CONFIG_SYS_MALLOC_F_LEN=0x8000 +CONFIG_BOARD_HAS_32K_RTC_CRYSTAL=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=2