From: Bob Liu Date: Mon, 13 Aug 2012 06:22:08 +0000 (+0800) Subject: blackfin: add baudrate to bdinfo X-Git-Tag: v2013.07-rc1~1^2~53^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ddb5c5be1eddd38a47dc197cfacdbf149930740d;p=u-boot blackfin: add baudrate to bdinfo Signed-off-by: Bob Liu Signed-off-by: Sonic Zhang --- diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c index ccea3b9fb1..85b859df72 100644 --- a/arch/blackfin/lib/board.c +++ b/arch/blackfin/lib/board.c @@ -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; }