projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e2ed3f
)
blackfin: add baudrate to bdinfo
author
Bob Liu
<lliubbo@gmail.com>
Mon, 13 Aug 2012 06:22:08 +0000
(14:22 +0800)
committer
Sonic 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
patch
|
blob
|
history
diff --git
a/arch/blackfin/lib/board.c
b/arch/blackfin/lib/board.c
index ccea3b9fb1c9593700c815e93f8275bb4add539f..85b859df721c45e00f100c1a9caf04b7f5ff6665 100644
(file)
--- 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;
}