]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: ti: am62px: Enable 32k crystal on the board
authorVishal Mahaveer <vishalm@ti.com>
Wed, 21 Jan 2026 19:53:40 +0000 (13:53 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jan 2026 21:54:41 +0000 (15:54 -0600)
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@ti.com>
board/ti/am62px/evm.c
configs/am62px_evm_r5_defconfig

index 85c332b9339ba3143f81cf53a4cd4351af5fe41f..8fde47fb1be433fba9856cfad4bd26e64ea8eb35 100644 (file)
@@ -16,6 +16,7 @@
 #include <spl.h>
 #include <asm/arch/k3-ddr.h>
 #include "../common/fdt_ops.h"
+#include "../common/k3_32k_lfosc.h"
 
 struct efi_fw_image fw_images[] = {
        {
@@ -45,6 +46,9 @@ struct efi_capsule_update_info update_info = {
 #if IS_ENABLED(CONFIG_SPL_BUILD)
 void spl_board_init(void)
 {
+       if (IS_ENABLED(CONFIG_TI_K3_BOARD_LFOSC))
+               enable_32k_lfosc();
+
        enable_caches();
 }
 #endif
index 378ba21137ed5c7a1bd7cfb506a982f1b324a587..f1b3687786f5d5f07dcadfeb0c4d0e633f546b26 100644 (file)
@@ -122,3 +122,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