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:
400f577
)
Blackfin: dont check baud if it wont actually get used
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 21 Oct 2008 01:08:54 +0000
(21:08 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Mon, 2 Feb 2009 17:24:31 +0000
(12:24 -0500)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
cpu/blackfin/initcode.c
patch
|
blob
|
history
diff --git
a/cpu/blackfin/initcode.c
b/cpu/blackfin/initcode.c
index e733dd20fd1c8653881ed5ea3b3b4bae2d6648b2..6091f8cef194a1b06fc7c248ccbf6fc995efac2f 100644
(file)
--- a/
cpu/blackfin/initcode.c
+++ b/
cpu/blackfin/initcode.c
@@
-61,7
+61,11
@@
static inline uint32_t serial_init(void)
}
#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) {
serial_early_init();