[PATCH v2 2/4] board: ti: am62x: Enable 32k crystal on the board
Vishal Mahaveer
vishalm at ti.com
Thu Jan 8 15:37:11 CET 2026
Enable 32k crystal on the board. If external 32k source is not
used, 32k rc-osc comes into play, which is accurate to +-20%.
Signed-off-by: Vishal Mahaveer <vishalm at ti.com>
---
board/ti/am62x/evm.c | 4 ++++
configs/am62x_evm_r5_defconfig | 2 ++
2 files changed, 6 insertions(+)
diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c
index e9eba57eba7..2e8336900d1 100644
--- a/board/ti/am62x/evm.c
+++ b/board/ti/am62x/evm.c
@@ -24,6 +24,7 @@
#include "../common/board_detect.h"
#include "../common/fdt_ops.h"
+#include "../common/k3_32k_lfosc.h"
#define board_is_am62x_skevm() (board_ti_k3_is("AM62-SKEVM") || \
board_ti_k3_is("AM62B-SKEVM"))
@@ -139,6 +140,9 @@ int board_late_init(void)
#if defined(CONFIG_XPL_BUILD)
void spl_board_init(void)
{
+ if (IS_ENABLED(CONFIG_TI_K3_BOARD_LFOSC))
+ enable_32k_lfosc();
+
enable_caches();
if (IS_ENABLED(CONFIG_SPL_SPLASH_SCREEN) && IS_ENABLED(CONFIG_SPL_BMP))
splash_display();
diff --git a/configs/am62x_evm_r5_defconfig b/configs/am62x_evm_r5_defconfig
index dd3b4e58009..6d039f9acb6 100644
--- a/configs/am62x_evm_r5_defconfig
+++ b/configs/am62x_evm_r5_defconfig
@@ -119,3 +119,5 @@ CONFIG_SPL_TIMER=y
CONFIG_OMAP_TIMER=y
CONFIG_LIB_RATIONAL=y
CONFIG_SPL_LIB_RATIONAL=y
+CONFIG_SPL_BOARD_INIT=y
+CONFIG_TI_K3_BOARD_LFOSC=y
--
2.34.1
More information about the U-Boot
mailing list