summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBryan Brattlof <bb@ti.com>2023-11-07 17:30:38 -0600
committerPraneeth Bajjuri <praneeth@ti.com>2023-11-07 17:55:03 -0600
commit5b41c7c481d1625cd54b593c5dd205ca37f45714 (patch)
treea26e6af8fe3002d4f09c3ed578d1433635d1a030 /board
parentd36ad81d25a9929a79aad63a56987625dac4131a (diff)
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 <bb@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/am62ax/evm.c5
1 files changed, 5 insertions, 0 deletions
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 <fdt_support.h>
#include <spl.h>
+#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;
}