summaryrefslogtreecommitdiff
path: root/package/uboot-xburst
diff options
context:
space:
mode:
Diffstat (limited to 'package/uboot-xburst')
-rw-r--r--package/uboot-xburst/files/board/nanonote/nanonote.c2
-rw-r--r--package/uboot-xburst/files/include/asm-mips/jz4740.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/package/uboot-xburst/files/board/nanonote/nanonote.c b/package/uboot-xburst/files/board/nanonote/nanonote.c
index 7defab8d5e..96a3c7da00 100644
--- a/package/uboot-xburst/files/board/nanonote/nanonote.c
+++ b/package/uboot-xburst/files/board/nanonote/nanonote.c
@@ -29,7 +29,7 @@ static void gpio_init(void)
/*
* Initialize LCD pins
*/
- __gpio_as_lcd_18bit();
+ __gpio_as_lcd_8bit();
/*
* Initialize MSC pins
diff --git a/package/uboot-xburst/files/include/asm-mips/jz4740.h b/package/uboot-xburst/files/include/asm-mips/jz4740.h
index a752dcc2a1..4098873ecc 100644
--- a/package/uboot-xburst/files/include/asm-mips/jz4740.h
+++ b/package/uboot-xburst/files/include/asm-mips/jz4740.h
@@ -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() \