diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-31 23:57:16 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-09 19:39:32 (GMT) |
commit | 46864cc8e82ade3523f4c474b7451bb960e4ad70 (patch) | |
tree | a6988c39ce1c1b0548cf4bee3ccf395a325449b7 /arch/arm/mach-tegra/clock.c | |
parent | 422f04b68f59a8348428a6a5628a00a5689d0168 (diff) | |
download | u-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/clock.c')
-rw-r--r-- | arch/arm/mach-tegra/clock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index 3bb7233..76436d8 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c @@ -825,3 +825,8 @@ int clock_external_output(int clk_id) return 0; } + +__weak bool clock_early_init_done(void) +{ + return true; +} |