Date:2010-10-18 09:06:06 (9 years 8 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
2424
2525#include <asm/io.h>
2626
27#define mdelay(n) udelay((n)*1000)
28
29#define NR_PALETTE 256
30
3127struct lcd_desc{
3228    unsigned int next_desc; /* LCDDAx */
3329    unsigned int databuf; /* LCDSAx */
package/uboot-xburst/files/board/xburst/nanonote/nanonote.c
5151    }
5252
5353    /* enable the TP4, TP5 as UART0 */
54    REG_GPIO_PXSELS(2) = 0x80000000;
54    __gpio_jtag_to_uart0();
5555
5656    /*
5757     * Initialize UART0 pins, in Ben NanoNote uart0 and keyin8 use the
package/uboot-xburst/files/nand_spl/nand_boot_jz4740.c
348348     * Initialize UART0 pins
349349     */
350350    __gpio_as_uart0();
351
352    __gpio_jtag_to_uart0();
351353}
352354
353355static int is_usb_boot()
...... 
372374     */
373375    gpio_init();
374376    pll_init();
375    REG_GPIO_PXSELS(2) = 0x80000000;
377
376378    serial_init();
377379    sdram_init();
378    serial_puts("\n\nNAND Secondary Program Loader\n\n");
380    jz_nand_init();
381
382    serial_puts("\nNAND Boot\n");
379383
380384#if defined(CONFIG_NANONOTE)
381385    if(is_usb_boot()) {

Archive Download the corresponding diff file



interactive