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: Juha Yrjola <juha.yrjola@solidboot.com>
/* When the functional clock disappears, too quick writes seem to
* cause an abort. */
- __delay(15000);
+ __delay(150000);
}
#endif
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;
}
}