summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board2.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-01 02:57:16 +0300
committerSimon Glass <sjg@chromium.org>2017-06-09 22:39:32 +0300
commit46864cc8e82ade3523f4c474b7451bb960e4ad70 (patch)
treea6988c39ce1c1b0548cf4bee3ccf395a325449b7 /arch/arm/mach-tegra/board2.c
parent422f04b68f59a8348428a6a5628a00a5689d0168 (diff)
downloadu-boot-46864cc8e82ade3523f4c474b7451bb960e4ad70.tar.xz
tegra: Init clocks even when SPL did not run
At present early clock init happens in SPL. If SPL did not run (because for example U-Boot is chain-loaded from another boot loader) then the clocks are not set as U-Boot expects. Add a function to detect this and call the early clock init in U-Boot proper. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-tegra/board2.c')
-rw-r--r--arch/arm/mach-tegra/board2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board2.c b/arch/arm/mach-tegra/board2.c
index 84f1ee5035..1e627ba603 100644
--- a/arch/arm/mach-tegra/board2.c
+++ b/arch/arm/mach-tegra/board2.c
@@ -191,6 +191,9 @@ void gpio_early_init(void) __attribute__((weak, alias("__gpio_early_init")));
int board_early_init_f(void)
{
+ if (!clock_early_init_done())
+ clock_early_init();
+
#if defined(CONFIG_TEGRA_DISCONNECT_UDC_ON_BOOT)
#define USBCMD_FS2 (1 << 15)
{