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>
This commit is contained in:
committed by
Tom Rini
parent
c927eefd96
commit
d7550d0105
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user