summaryrefslogtreecommitdiff
path: root/cpu/blackfin/initcode.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-20 21:08:54 -0400
committerMike Frysinger <vapier@gentoo.org>2009-02-02 12:24:31 -0500
commitee1d2001ea7fbabb2b9256026dc5468f057337f8 (patch)
treebc35bd7672b1d4c90905edb3363d24abc78a87d6 /cpu/blackfin/initcode.c
parent400f5778f375bc99c73c8488c555def261ccfab7 (diff)
downloadu-boot-imx-ee1d2001ea7fbabb2b9256026dc5468f057337f8.zip
u-boot-imx-ee1d2001ea7fbabb2b9256026dc5468f057337f8.tar.gz
u-boot-imx-ee1d2001ea7fbabb2b9256026dc5468f057337f8.tar.bz2
Blackfin: dont check baud if it wont actually get used
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'cpu/blackfin/initcode.c')
-rw-r--r--cpu/blackfin/initcode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/blackfin/initcode.c b/cpu/blackfin/initcode.c
index e733dd2..6091f8c 100644
--- 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();