[U-Boot,v1,5/6] blackfin: add baudrate to bdinfo

Submitted by Sonic Zhang on Feb. 27, 2013, 6:50 a.m.

Details

Message ID 1361947807-27384-6-git-send-email-sonic.adi@gmail.com
State Accepted
Delegated to: Sonic Zhang
Headers show

Commit Message

Sonic Zhang Feb. 27, 2013, 6:50 a.m.
From: Bob Liu <lliubbo@gmail.com>

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
 arch/blackfin/lib/board.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c
index 288dc82..c1e14e2 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;
 }