summaryrefslogtreecommitdiff
path: root/arch/blackfin/lib
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-08-13 14:22:08 +0800
committerSonic Zhang <sonic.zhang@analog.com>2013-05-13 15:47:24 +0800
commitddb5c5be1eddd38a47dc197cfacdbf149930740d (patch)
tree57a4095be1a358cca189bd7f120336e9eec95406 /arch/blackfin/lib
parent2e2ed3f4ff5f21a5c39394c55d361e826238ce2d (diff)
downloadu-boot-imx-ddb5c5be1eddd38a47dc197cfacdbf149930740d.zip
u-boot-imx-ddb5c5be1eddd38a47dc197cfacdbf149930740d.tar.gz
u-boot-imx-ddb5c5be1eddd38a47dc197cfacdbf149930740d.tar.bz2
blackfin: add baudrate to bdinfo
Signed-off-by: Bob Liu <lliubbo@gmail.com> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'arch/blackfin/lib')
-rw-r--r--arch/blackfin/lib/board.c2
1 files changed, 2 insertions, 0 deletions
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;
}