diff mbox

[v3] OMAP: DMA: Fix omapfb/lcdc on OMAP1510 broken when PM set

Message ID 200911051951.32020.jkrzyszt@tis.icnet.pl (mailing list archive)
State Accepted
Commit 0b4dfc750f4bb1b4888939f206161080d5d27c5a
Delegated to: Tony Lindgren
Headers show

Commit Message

Janusz Krzysztofik Nov. 5, 2009, 6:51 p.m. UTC
None
diff mbox

Patch

--- linux-2.6.32-rc6/arch/arm/plat-omap/dma.c.orig	2009-11-03 20:37:49.000000000 +0100
+++ linux-2.6.32-rc6/arch/arm/plat-omap/dma.c	2009-11-05 19:30:39.000000000 +0100
@@ -1108,6 +1108,14 @@  int omap_dma_running(void)
 {
 	int lch;
 
+	/*
+	 * On OMAP1510, internal LCD controller will start the transfer
+	 * when it gets enabled, so assume DMA running if LCD enabled.
+	 */
+	if (cpu_is_omap1510())
+		if (omap_readw(0xfffec000 + 0x00) & (1 << 0))
+			return 1;
+
 	/* Check if LCD DMA is running */
 	if (cpu_is_omap16xx())
 		if (omap_readw(OMAP1610_DMA_LCD_CCR) & OMAP_DMA_CCR_EN)