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 <bb@ti.com>
This commit is contained in:
Bryan Brattlof 2023-11-07 17:30:41 -06:00 committed by Praneeth Bajjuri
parent dee6f6f1c2
commit e32f441ec8
2 changed files with 6 additions and 0 deletions

View File

@ -14,8 +14,13 @@
#include <fdt_support.h> #include <fdt_support.h>
#include <spl.h> #include <spl.h>
#include "../common/rtc.c"
int board_init(void) int board_init(void)
{ {
if (IS_ENABLED(CONFIG_BOARD_HAS_32K_RTC_CRYSTAL))
board_rtc_init();
return 0; return 0;
} }

View File

@ -2,6 +2,7 @@ CONFIG_ARM=y
CONFIG_ARCH_K3=y CONFIG_ARCH_K3=y
CONFIG_TI_SECURE_DEVICE=y CONFIG_TI_SECURE_DEVICE=y
CONFIG_SYS_MALLOC_F_LEN=0x8000 CONFIG_SYS_MALLOC_F_LEN=0x8000
CONFIG_BOARD_HAS_32K_RTC_CRYSTAL=y
CONFIG_SPL_GPIO=y CONFIG_SPL_GPIO=y
CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y