From 851aa09d1e18ce79b7527b059f3f4003a661c341 Mon Sep 17 00:00:00 2001 From: Bryan Brattlof Date: Tue, 7 Nov 2023 17:30:39 -0600 Subject: [PATCH] configs: am62x: move 32K RTC crystal to common The am62x 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/am62x/evm.c | 5 +++++ configs/am62x_evm_a53_defconfig | 1 + 2 files changed, 6 insertions(+) diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c index 82dd767d65..4c95622eda 100644 --- a/board/ti/am62x/evm.c +++ b/board/ti/am62x/evm.c @@ -27,6 +27,8 @@ #include "../common/board_detect.h" +#include "../common/rtc.c" + DECLARE_GLOBAL_DATA_PTR; #define AM62X_MAX_DAUGHTER_CARDS 8 @@ -75,6 +77,9 @@ int splash_screen_prepare(void) int board_init(void) { + if (IS_ENABLED(CONFIG_BOARD_HAS_32K_RTC_CRYSTAL)) + board_rtc_init(); + return 0; } diff --git a/configs/am62x_evm_a53_defconfig b/configs/am62x_evm_a53_defconfig index cc91adf496..64927f02c2 100644 --- a/configs/am62x_evm_a53_defconfig +++ b/configs/am62x_evm_a53_defconfig @@ -4,6 +4,7 @@ CONFIG_TI_SECURE_DEVICE=y CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_TI_I2C_BOARD_DETECT=y CONFIG_SPL_GPIO=y +CONFIG_BOARD_HAS_32K_RTC_CRYSTAL=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_NR_DRAM_BANKS=2