Move serial_init function, that solves problems with support for configurable baudrat...
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 28 Apr 2015 17:50:00 +0000 (19:50 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Tue, 28 Apr 2015 17:50:00 +0000 (19:50 +0200)
u-boot/lib_bootstrap/bootstrap_board.c
u-boot/lib_mips/board.c

index 35a8f40ee07b89eab34a492140d6d269d5b33431..8cc6dd317702778351785946320559f4270fb0d5 100644 (file)
@@ -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));
 
index 51dba3668d9fc49bae575378d39ec8a97fa2e96a..cec1fcf17b9d108075a6e9b1836288cba0466f50 100644 (file)
@@ -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, };