]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sh/boards/mach-migor/lcd_qvga.c
sh: Migrate common board headers to mach-common/.
[linux-2.6-omap-h63xx.git] / arch / sh / boards / mach-migor / lcd_qvga.c
index 6e960959644825daba418076b68c6a70ab753087..de9014a8a93ed3fffa961582f6bbfe960d33803a 100644 (file)
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <asm/sh_mobile_lcdc.h>
-#include <asm/migor.h>
+#include <linux/gpio.h>
+#include <video/sh_mobile_lcdc.h>
+#include <cpu/sh7722.h>
+#include <mach/migor.h>
 
 /* LCD Module is a PH240320T according to board schematics. This module
  * is made up of a 240x320 LCD hooked up to a R61505U (or HX8347-A01?)
@@ -30,9 +32,9 @@
 
 static void reset_lcd_module(void)
 {
-       ctrl_outb(ctrl_inb(PORT_PHDR) & ~0x04, PORT_PHDR);
+       gpio_set_value(GPIO_PTH2, 0);
        mdelay(2);
-       ctrl_outb(ctrl_inb(PORT_PHDR) | 0x04, PORT_PHDR);
+       gpio_set_value(GPIO_PTH2, 1);
        mdelay(1);
 }