]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
blackfin: add baudrate to bdinfo
authorBob Liu <lliubbo@gmail.com>
Mon, 13 Aug 2012 06:22:08 +0000 (14:22 +0800)
committerSonic Zhang <sonic.zhang@analog.com>
Mon, 13 May 2013 07:47:24 +0000 (15:47 +0800)
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
arch/blackfin/lib/board.c

index ccea3b9fb1c9593700c815e93f8275bb4add539f..85b859df721c45e00f100c1a9caf04b7f5ff6665 100644 (file)
@@ -231,6 +231,8 @@ static int global_board_data_init(void)
        bd->bi_sclk = get_sclk();
        bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
        bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
+       bd->bi_baudrate = (gd->baudrate > 0)
+               ? simple_strtoul(gd->baudrate, NULL, 10) : CONFIG_BAUDRATE;
 
        return 0;
 }