diff options
author | Simon Glass <sjg@chromium.org> | 2019-04-01 13:38:38 -0700 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2019-05-24 10:13:44 -0700 |
commit | c9d7542bf3014f46ce55e212122f02b77dd651a1 (patch) | |
tree | c7274686ba92ce95dc24f9200838e986d99717fc /arch | |
parent | f6ac3fab9ba2aa4b352fd8c8799c4b5091fc376c (diff) | |
download | u-boot-c9d7542bf3014f46ce55e212122f02b77dd651a1.tar.gz |
tegra: Add a delay in clock_start_periph_pll()
This function enables a peripheral clock and then immediately sets its
divider. Add a delay to allow the clock to settle first. This matches the
delay in other places which do a similar thing.
Without this, the I2S device on Nyan does not init properly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/clock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index 096330748f..dc5f16b41b 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c @@ -477,6 +477,7 @@ unsigned clock_start_periph_pll(enum periph_id periph_id, reset_set_enable(periph_id, 1); clock_enable(periph_id); + udelay(2); effective_rate = clock_adjust_periph_pll_div(periph_id, parent, rate, NULL); |