1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 22:59:40 +02:00

[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>
This commit is contained in:
Xiangfu Liu 2010-10-18 15:06:06 +08:00
parent ad57f3602b
commit d1f331bc79
3 changed files with 7 additions and 7 deletions

View File

@ -24,10 +24,6 @@
#include <asm/io.h>
#define mdelay(n) udelay((n)*1000)
#define NR_PALETTE 256
struct lcd_desc{
unsigned int next_desc; /* LCDDAx */
unsigned int databuf; /* LCDSAx */

View File

@ -51,7 +51,7 @@ static void gpio_init(void)
}
/* enable the TP4, TP5 as UART0 */
REG_GPIO_PXSELS(2) = 0x80000000;
__gpio_jtag_to_uart0();
/*
* Initialize UART0 pins, in Ben NanoNote uart0 and keyin8 use the

View File

@ -348,6 +348,8 @@ static void gpio_init(void)
* Initialize UART0 pins
*/
__gpio_as_uart0();
__gpio_jtag_to_uart0();
}
static int is_usb_boot()
@ -372,10 +374,12 @@ void nand_boot(void)
*/
gpio_init();
pll_init();
REG_GPIO_PXSELS(2) = 0x80000000;
serial_init();
sdram_init();
serial_puts("\n\nNAND Secondary Program Loader\n\n");
jz_nand_init();
serial_puts("\nNAND Boot\n");
#if defined(CONFIG_NANONOTE)
if(is_usb_boot()) {