aboutsummaryrefslogtreecommitdiffstats
path: root/package/uboot-xburst/files/include
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-04-28 19:59:53 +0000
committerLars-Peter Clausen <lars@metafoo.de>2010-04-28 19:59:53 +0000
commit5603c178d18f2860ca03f512f9f87f95e8362819 (patch)
tree654f71ce98f7162b388ab6aa20926fb8d8e72540 /package/uboot-xburst/files/include
parentc7d201a85e7a84600e6b4b335cdc53716a015e8e (diff)
downloadmaster-187ad058-5603c178d18f2860ca03f512f9f87f95e8362819.tar.gz
master-187ad058-5603c178d18f2860ca03f512f9f87f95e8362819.tar.bz2
master-187ad058-5603c178d18f2860ca03f512f9f87f95e8362819.zip
uboot-xburst: Add macro to initalize lcd pins for 8bit serial displays
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21241 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uboot-xburst/files/include')
-rw-r--r--package/uboot-xburst/files/include/asm-mips/jz4740.h10
1 files changed, 10 insertions, 0 deletions
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() \