mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
Blackfin: dont check baud if it wont actually get used
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
400f5778f3
commit
ee1d2001ea
1 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,11 @@ static inline uint32_t serial_init(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint32_t old_baud = serial_early_get_baud();
|
uint32_t old_baud;
|
||||||
|
if (BFIN_DEBUG_EARLY_SERIAL || CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_UART)
|
||||||
|
old_baud = serial_early_get_baud();
|
||||||
|
else
|
||||||
|
old_baud = CONFIG_BAUDRATE;
|
||||||
|
|
||||||
if (BFIN_DEBUG_EARLY_SERIAL) {
|
if (BFIN_DEBUG_EARLY_SERIAL) {
|
||||||
serial_early_init();
|
serial_early_init();
|
||||||
|
|
Loading…
Add table
Reference in a new issue