Changeset 21241


Ignore:
Timestamp:
2010-04-28T21:59:53+02:00 (7 years ago)
Author:
lars
Message:

uboot-xburst: Add macro to initalize lcd pins for 8bit serial displays

Location:
trunk/package/uboot-xburst/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uboot-xburst/files/board/nanonote/nanonote.c

    r20832 r21241  
    3030         * Initialize LCD pins 
    3131         */ 
    32         __gpio_as_lcd_18bit(); 
     32        __gpio_as_lcd_8bit(); 
    3333 
    3434        /* 
  • trunk/package/uboot-xburst/files/include/asm-mips/jz4740.h

    r20832 r21241  
    28122812 
    28132813/* 
     2814 * LCD_D0~LCD_D7, LCD_PCLK, LCD_HSYNC, LCD_VSYNC, LCD_DE 
     2815 */ 
     2816#define __gpio_as_lcd_8bit()                    \ 
     2817do {                                            \ 
     2818        REG_GPIO_PXFUNS(2) = 0x003c00ff;        \ 
     2819        REG_GPIO_PXSELC(2) = 0x003c00ff;        \ 
     2820        REG_GPIO_PXPES(2) = 0x003c00ff;         \ 
     2821} while (0) 
     2822 
     2823/* 
    28142824 * LCD_D0~LCD_D15, LCD_PCLK, LCD_HSYNC, LCD_VSYNC, LCD_DE 
    28152825 */ 
Note: See TracChangeset for help on using the changeset viewer.