From ddb5c5be1eddd38a47dc197cfacdbf149930740d Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Mon, 13 Aug 2012 14:22:08 +0800 Subject: [PATCH] blackfin: add baudrate to bdinfo Signed-off-by: Bob Liu Signed-off-by: Sonic Zhang --- arch/blackfin/lib/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c index ccea3b9..85b859d 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; } -- 2.7.4