diff options
| author | Vishal Mahaveer <vishalm@ti.com> | 2026-01-21 13:53:39 -0600 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2026-01-28 15:54:41 -0600 |
| commit | b259574e471dd632c31f7a8caea29102a3219fab (patch) | |
| tree | ea40eb48b52123dd9e65ff8cb9c35f27c44f9e93 | |
| parent | d7550d01050c72edc548829dcc4d9a7494bf124b (diff) | |
board: ti: am62ax/am62dx: Enable 32k crystal on the board
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>
| -rw-r--r-- | board/ti/am62ax/evm.c | 7 | ||||
| -rw-r--r-- | board/ti/am62dx/evm.c | 7 | ||||
| -rw-r--r-- | configs/am62ax_evm_r5_defconfig | 2 |
3 files changed, 16 insertions, 0 deletions
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/board/ti/am62dx/evm.c b/board/ti/am62dx/evm.c index 0924954c738..94d6043200a 100644 --- a/board/ti/am62dx/evm.c +++ b/board/ti/am62dx/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 36bd340305d..18488918c4a 100644 --- a/configs/am62ax_evm_r5_defconfig +++ b/configs/am62ax_evm_r5_defconfig @@ -103,3 +103,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 |
