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>
This commit is contained in:
Simon Glass 2019-04-01 13:38:38 -07:00 committed by Tom Warren
parent f6ac3fab9b
commit c9d7542bf3

View File

@ -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);