uboot-xburst: Add macro to initalize lcd pins for 8bit serial displays
authorlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Apr 2010 19:59:53 +0000 (19:59 +0000)
committerlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 28 Apr 2010 19:59:53 +0000 (19:59 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21241 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/uboot-xburst/files/board/nanonote/nanonote.c
package/uboot-xburst/files/include/asm-mips/jz4740.h

index 7defab8..96a3c7d 100644 (file)
@@ -29,7 +29,7 @@ static void gpio_init(void)
        /*
         * Initialize LCD pins
         */
-       __gpio_as_lcd_18bit();
+       __gpio_as_lcd_8bit();
 
        /*
         * Initialize MSC pins
index a752dcc..4098873 100644 (file)
@@ -2811,6 +2811,16 @@ do {                                             \
 } while (0)
 
 /*
+ * LCD_D0~LCD_D7, LCD_PCLK, LCD_HSYNC, LCD_VSYNC, LCD_DE
+ */
+#define __gpio_as_lcd_8bit()                   \
+do {                                           \
+       REG_GPIO_PXFUNS(2) = 0x003c00ff;        \
+       REG_GPIO_PXSELC(2) = 0x003c00ff;        \
+       REG_GPIO_PXPES(2) = 0x003c00ff;         \
+} while (0)
+
+/*
  * LCD_D0~LCD_D15, LCD_PCLK, LCD_HSYNC, LCD_VSYNC, LCD_DE
  */
 #define __gpio_as_lcd_16bit()                  \