From: Piotr Dymacz Date: Tue, 28 Apr 2015 17:50:00 +0000 (+0200) Subject: Move serial_init function, that solves problems with support for configurable baudrat... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=96be7c92267299f89f836b62481d849bb9137650;p=oweals%2Fu-boot_mod.git Move serial_init function, that solves problems with support for configurable baudrates in compressed version --- diff --git a/u-boot/lib_bootstrap/bootstrap_board.c b/u-boot/lib_bootstrap/bootstrap_board.c index 35a8f40..8cc6dd3 100644 --- a/u-boot/lib_bootstrap/bootstrap_board.c +++ b/u-boot/lib_bootstrap/bootstrap_board.c @@ -117,7 +117,6 @@ static int init_func_ram(void){ typedef int(init_fnc_t)(void); init_fnc_t *init_sequence[] = { timer_init, - serial_init, init_func_ram, NULL, }; @@ -202,7 +201,6 @@ void bootstrap_board_init_f(ulong bootflag){ */ bd->bi_memstart = CFG_SDRAM_BASE; /* start of DRAM memory */ bd->bi_memsize = gd->ram_size; /* size of DRAM memory in bytes */ - bd->bi_baudrate = gd->baudrate; /* Console Baudrate */ memcpy(id, (void *)gd, sizeof(gd_t)); diff --git a/u-boot/lib_mips/board.c b/u-boot/lib_mips/board.c index 51dba36..cec1fcf 100644 --- a/u-boot/lib_mips/board.c +++ b/u-boot/lib_mips/board.c @@ -165,6 +165,7 @@ init_fnc_t *init_sequence[] = { timer_init, #else init_fnc_t *init_sequence[] = { env_init, /* initialize environment */ init_baudrate, /* initialze baudrate settings */ + serial_init, /* serial communications setup */ console_init_f, /* initialize console */ display_banner, /* say that we are here -> print baner */ NULL, };