[PATCH v2 3/4] board: ti: am62ax: Enable 32k crystal on the board
Vishal Mahaveer
vishalm at ti.com
Thu Jan 8 15:37:12 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/am62ax/evm.c | 7 +++++++
configs/am62ax_evm_r5_defconfig | 2 ++
2 files changed, 9 insertions(+)
diff --git a/board/ti/am62ax/evm.c b/board/ti/am62ax/evm.c
index da6c31176cd..4916eec3b2b 100644
--- a/board/ti/am62ax/evm.c
+++ b/board/ti/am62ax/evm.c
@@ -15,6 +15,7 @@
#include <asm/arch/k3-ddr.h>
#include "../common/fdt_ops.h"
+#include "../common/k3_32k_lfosc.h"
#if defined(CONFIG_XPL_BUILD)
void spl_perform_board_fixups(struct spl_image_info *spl_image)
@@ -26,6 +27,12 @@ void spl_perform_board_fixups(struct spl_image_info *spl_image)
fixup_memory_node(spl_image);
}
}
+
+void spl_board_init(void)
+{
+ if (IS_ENABLED(CONFIG_TI_K3_BOARD_LFOSC))
+ enable_32k_lfosc();
+}
#endif
#ifdef CONFIG_BOARD_LATE_INIT
diff --git a/configs/am62ax_evm_r5_defconfig b/configs/am62ax_evm_r5_defconfig
index 9336392a5ed..a94ae0cef1d 100644
--- a/configs/am62ax_evm_r5_defconfig
+++ b/configs/am62ax_evm_r5_defconfig
@@ -102,3 +102,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