tegra: Init clocks even when SPL did not run
authorSimon Glass <sjg@chromium.org>
Wed, 31 May 2017 23:57:16 +0000 (17:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 19:39:32 +0000 (13:39 -0600)
commit46864cc8e82ade3523f4c474b7451bb960e4ad70
treea6988c39ce1c1b0548cf4bee3ccf395a325449b7
parent422f04b68f59a8348428a6a5628a00a5689d0168
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>
arch/arm/include/asm/arch-tegra/clock.h
arch/arm/mach-tegra/board2.c
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/tegra124/clock.c