[U-Boot] [PATCH 10/27] Blackfin: dont check baud if it wont actually get used
Mike Frysinger
vapier at gentoo.org
Thu Jan 29 01:03:19 CET 2009
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
cpu/blackfin/initcode.c | 6 +++++-
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();
--
1.6.1.1
More information about the U-Boot
mailing list