1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 06:53:21 +02:00

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
This commit is contained in:
lars 2010-04-28 19:59:53 +00:00
parent 0dc7fb2669
commit 99837ee6f8
2 changed files with 11 additions and 1 deletions

View File

@ -29,7 +29,7 @@ static void gpio_init(void)
/* /*
* Initialize LCD pins * Initialize LCD pins
*/ */
__gpio_as_lcd_18bit(); __gpio_as_lcd_8bit();
/* /*
* Initialize MSC pins * Initialize MSC pins

View File

@ -2810,6 +2810,16 @@ do { \
REG_GPIO_PXPES(3) = 0xc0000000; \ REG_GPIO_PXPES(3) = 0xc0000000; \
} while (0) } 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 * LCD_D0~LCD_D15, LCD_PCLK, LCD_HSYNC, LCD_VSYNC, LCD_DE
*/ */