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

Sonic Zhang sonic.adi at gmail.com
Wed Feb 27 07:50:06 CET 2013


From: Bob Liu <lliubbo at gmail.com>

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

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;
 }
-- 
1.7.0.4




More information about the U-Boot mailing list