diff options
| author | Vishal Mahaveer <vishalm@ti.com> | 2026-01-21 13:53:38 -0600 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2026-01-28 15:54:41 -0600 |
| commit | d7550d01050c72edc548829dcc4d9a7494bf124b (patch) | |
| tree | 91c3cde4c4b745c7b0c287e302105c0949a88965 | |
| parent | c927eefd969d3714d55ac56e7a2ba34f923b9c1e (diff) | |
board: ti: am62x: 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/am62x/evm.c | 4 | ||||
| -rw-r--r-- | configs/am62x_evm_r5_defconfig | 2 |
2 files changed, 6 insertions, 0 deletions
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 |
