]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: dmtimers need longer delay when changing source clock
authorJuha Yrjola <juha.yrjola@solidboot.com>
Tue, 20 Jun 2006 13:10:41 +0000 (16:10 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Tue, 20 Jun 2006 13:10:41 +0000 (16:10 +0300)
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>
arch/arm/plat-omap/dmtimer.c
drivers/spi/omap2_mcspi.c

index 804a53534370389a321077af34b3cb6ed625e949..808cce9b68057506415c213b3a9b374d0f28cf13 100644 (file)
@@ -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
index 2c7cd54fa85a76ef387a07bd7490a2e7ace9196a..1a72872d695afa543b9c6f460ded0bbfd1ed1822 100644 (file)
@@ -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;
                        }
                }