Commit fed2889b authored by Russell King's avatar Russell King

[ARM] Convert for() delay loops to udelay()

parent b82dccd9
...@@ -224,7 +224,7 @@ static int clps7111fb_blank(int blank, struct fb_info *info) ...@@ -224,7 +224,7 @@ static int clps7111fb_blank(int blank, struct fb_info *info)
clps_writeb(clps_readb(PDDR) & ~EDB_PD1_LCD_DC_DC_EN, PDDR); clps_writeb(clps_readb(PDDR) & ~EDB_PD1_LCD_DC_DC_EN, PDDR);
/* Delay for a little while (half a second). */ /* Delay for a little while (half a second). */
for (i=0; i<65536*4; i++); udelay(100);
/* Power off the LCD panel. */ /* Power off the LCD panel. */
clps_writeb(clps_readb(PDDR) & ~EDB_PD2_LCDEN, PDDR); clps_writeb(clps_readb(PDDR) & ~EDB_PD2_LCDEN, PDDR);
...@@ -235,24 +235,24 @@ static int clps7111fb_blank(int blank, struct fb_info *info) ...@@ -235,24 +235,24 @@ static int clps7111fb_blank(int blank, struct fb_info *info)
} }
} else { } else {
if (machine_is_edb7211()) { if (machine_is_edb7211()) {
int i; int i;
/* Power up the LCD controller. */ /* Power up the LCD controller. */
clps_writel(clps_readl(SYSCON1) | SYSCON1_LCDEN, clps_writel(clps_readl(SYSCON1) | SYSCON1_LCDEN,
SYSCON1); SYSCON1);
/* Power up the LCD panel. */ /* Power up the LCD panel. */
clps_writeb(clps_readb(PDDR) | EDB_PD2_LCDEN, PDDR); clps_writeb(clps_readb(PDDR) | EDB_PD2_LCDEN, PDDR);
/* Delay for a little while. */ /* Delay for a little while. */
for (i=0; i<65536*4; i++); udelay(100);
/* Power up the LCD DC-DC converter. */ /* Power up the LCD DC-DC converter. */
clps_writeb(clps_readb(PDDR) | EDB_PD1_LCD_DC_DC_EN, clps_writeb(clps_readb(PDDR) | EDB_PD1_LCD_DC_DC_EN,
PDDR); PDDR);
/* Turn on the LCD backlight. */ /* Turn on the LCD backlight. */
clps_writeb(clps_readb(PDDR) | EDB_PD3_LCDBL, PDDR); clps_writeb(clps_readb(PDDR) | EDB_PD3_LCDBL, PDDR);
} }
} }
return 0; return 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