提交 dedad4d2 编写于 作者: P Petr Cvek 提交者: Robert Jarzmik

ARM: pxa: magician: Optimize debug messages for LCD power

Optimize the debug messages for the LCD power.
Signed-off-by: NPetr Cvek <petr.cvek@tul.cz>
Acked-by: NPhilipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: NRobert Jarzmik <robert.jarzmik@free.fr>
上级 7f63a752
...@@ -266,10 +266,9 @@ static struct pxafb_mode_info samsung_modes[] = { ...@@ -266,10 +266,9 @@ static struct pxafb_mode_info samsung_modes[] = {
static void toppoly_lcd_power(int on, struct fb_var_screeninfo *si) static void toppoly_lcd_power(int on, struct fb_var_screeninfo *si)
{ {
pr_debug("Toppoly LCD power\n"); pr_debug("Toppoly LCD power: %s\n", on ? "on" : "off");
if (on) { if (on) {
pr_debug("on\n");
gpio_set_value(EGPIO_MAGICIAN_TOPPOLY_POWER, 1); gpio_set_value(EGPIO_MAGICIAN_TOPPOLY_POWER, 1);
gpio_set_value(GPIO106_MAGICIAN_LCD_POWER_3, 1); gpio_set_value(GPIO106_MAGICIAN_LCD_POWER_3, 1);
udelay(2000); udelay(2000);
...@@ -281,7 +280,6 @@ static void toppoly_lcd_power(int on, struct fb_var_screeninfo *si) ...@@ -281,7 +280,6 @@ static void toppoly_lcd_power(int on, struct fb_var_screeninfo *si)
udelay(2000); udelay(2000);
gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 1); gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 1);
} else { } else {
pr_debug("off\n");
msleep(15); msleep(15);
gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 0); gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 0);
udelay(500); udelay(500);
...@@ -294,10 +292,9 @@ static void toppoly_lcd_power(int on, struct fb_var_screeninfo *si) ...@@ -294,10 +292,9 @@ static void toppoly_lcd_power(int on, struct fb_var_screeninfo *si)
static void samsung_lcd_power(int on, struct fb_var_screeninfo *si) static void samsung_lcd_power(int on, struct fb_var_screeninfo *si)
{ {
pr_debug("Samsung LCD power\n"); pr_debug("Samsung LCD power: %s\n", on ? "on" : "off");
if (on) { if (on) {
pr_debug("on\n");
if (system_rev < 3) if (system_rev < 3)
gpio_set_value(GPIO75_MAGICIAN_SAMSUNG_POWER, 1); gpio_set_value(GPIO75_MAGICIAN_SAMSUNG_POWER, 1);
else else
...@@ -310,7 +307,6 @@ static void samsung_lcd_power(int on, struct fb_var_screeninfo *si) ...@@ -310,7 +307,6 @@ static void samsung_lcd_power(int on, struct fb_var_screeninfo *si)
gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 1); gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 1);
mdelay(10); mdelay(10);
} else { } else {
pr_debug("off\n");
mdelay(10); mdelay(10);
gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 0); gpio_set_value(GPIO105_MAGICIAN_LCD_POWER_2, 0);
mdelay(30); mdelay(30);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册