summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/ti/am62x/evm.c5
-rw-r--r--configs/am62x_evm_a53_defconfig1
2 files changed, 6 insertions, 0 deletions
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