diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-04-28 19:59:53 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-04-28 19:59:53 +0000 |
commit | d427d303d4f606343ea286dddc58a45358ed0c24 (patch) | |
tree | 70cb644714b005d62633a0a10f0d3ecf96331cb6 /package/uboot-xburst/files/include | |
parent | 24726a0cdcb7477b5a6d17c5e6e7fa4680ded1c5 (diff) | |
download | mtk-20170518-d427d303d4f606343ea286dddc58a45358ed0c24.zip mtk-20170518-d427d303d4f606343ea286dddc58a45358ed0c24.tar.gz mtk-20170518-d427d303d4f606343ea286dddc58a45358ed0c24.tar.bz2 |
uboot-xburst: Add macro to initalize lcd pins for 8bit serial displays
SVN-Revision: 21241
Diffstat (limited to 'package/uboot-xburst/files/include')
-rw-r--r-- | package/uboot-xburst/files/include/asm-mips/jz4740.h | 10 |
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 a752dcc..4098873 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() \ |