From 99837ee6f859d04e556c268f59bf6ab381b43de6 Mon Sep 17 00:00:00 2001 From: lars Date: Wed, 28 Apr 2010 19:59:53 +0000 Subject: 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 --- package/uboot-xburst/files/include/asm-mips/jz4740.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'package/uboot-xburst/files/include') diff --git a/package/uboot-xburst/files/include/asm-mips/jz4740.h b/package/uboot-xburst/files/include/asm-mips/jz4740.h index a752dcc2a..4098873ec 100644 --- a/package/uboot-xburst/files/include/asm-mips/jz4740.h +++ b/package/uboot-xburst/files/include/asm-mips/jz4740.h @@ -2810,6 +2810,16 @@ do { \ REG_GPIO_PXPES(3) = 0xc0000000; \ } 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 */ -- cgit v1.2.3