blackfin: add baudrate to bdinfo
Signed-off-by: Bob Liu <lliubbo@gmail.com> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
This commit is contained in:
parent
2e2ed3f4ff
commit
ddb5c5be1e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user