Commit 58af3dbc authored by Juha Yrjola's avatar Juha Yrjola

ARM: OMAP: dmtimers need longer delay when changing source clock

On OMAP2420, when running MPU at high frequencies, dmtimers need to
have a longer delay for the new functional clock to be active.
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent c4f2279e
......@@ -338,7 +338,7 @@ void omap_dm_timer_set_source(struct omap_dm_timer *timer, int source)
/* When the functional clock disappears, too quick writes seem to
* cause an abort. */
__delay(15000);
__delay(150000);
}
#endif
......
......@@ -426,7 +426,10 @@ static void omap2_mcspi_work(unsigned long arg)
omap2_mcspi_txrx(spi, t);
if (t->cs_change) {
omap2_mcspi_force_cs(spi, 0);
/* In the last transfer entry the flag means
* _leave_ CS on */
if (t->transfer_list.next != &m->transfers)
omap2_mcspi_force_cs(spi, 0);
cs_active = 0;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment