| Date: | 2010-10-18 09:06:06 (2 years 7 months ago) |
|---|---|
| Author: | Xiangfu Liu |
| Commit: | d1f331bc797abcb02a6c5e73f624d2ad9547735d |
| Message: | [uboot-xburst] small cleanup about __gpio_jtag_to_uart0() use __gpio_jtag_to_uart0() instread of direct write value to GPIO. this __gpio_jtag_to_uart0() init the tp4 and tp5 of NanoNote to serial console. it's same with the serial console under battery, but which not share gpio with keyboard. Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc> |
| Files: |
package/uboot-xburst/files/arch/mips/cpu/xburst/nanonote_gpm940b0.h (1 diff) package/uboot-xburst/files/board/xburst/nanonote/nanonote.c (1 diff) package/uboot-xburst/files/nand_spl/nand_boot_jz4740.c (2 diffs) |
Change Details
| package/uboot-xburst/files/arch/mips/cpu/xburst/nanonote_gpm940b0.h | ||
|---|---|---|
| 24 | 24 | |
| 25 | 25 | #include <asm/io.h> |
| 26 | 26 | |
| 27 | #define mdelay(n) udelay((n)*1000) | |
| 28 | ||
| 29 | #define NR_PALETTE 256 | |
| 30 | ||
| 31 | 27 | struct lcd_desc{ |
| 32 | 28 | unsigned int next_desc; /* LCDDAx */ |
| 33 | 29 | unsigned int databuf; /* LCDSAx */ |
| package/uboot-xburst/files/board/xburst/nanonote/nanonote.c | ||
|---|---|---|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /* enable the TP4, TP5 as UART0 */ |
| 54 | REG_GPIO_PXSELS(2) = 0x80000000; | |
| 54 | __gpio_jtag_to_uart0(); | |
| 55 | 55 | |
| 56 | 56 | /* |
| 57 | 57 | * Initialize UART0 pins, in Ben NanoNote uart0 and keyin8 use the |
| package/uboot-xburst/files/nand_spl/nand_boot_jz4740.c | ||
|---|---|---|
| 348 | 348 | * Initialize UART0 pins |
| 349 | 349 | */ |
| 350 | 350 | __gpio_as_uart0(); |
| 351 | ||
| 352 | __gpio_jtag_to_uart0(); | |
| 351 | 353 | } |
| 352 | 354 | |
| 353 | 355 | static int is_usb_boot() |
| ... | ... | |
| 372 | 374 | */ |
| 373 | 375 | gpio_init(); |
| 374 | 376 | pll_init(); |
| 375 | REG_GPIO_PXSELS(2) = 0x80000000; | |
| 377 | ||
| 376 | 378 | serial_init(); |
| 377 | 379 | sdram_init(); |
| 378 | serial_puts("\n\nNAND Secondary Program Loader\n\n"); | |
| 380 | jz_nand_init(); | |
| 381 | ||
| 382 | serial_puts("\nNAND Boot\n"); | |
| 379 | 383 | |
| 380 | 384 | #if defined(CONFIG_NANONOTE) |
| 381 | 385 | if(is_usb_boot()) { |
