Blackfin: dont check baud if it wont actually get used
authorMike Frysinger <vapier@gentoo.org>
Tue, 21 Oct 2008 01:08:54 +0000 (21:08 -0400)
committerMike 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

index e733dd20fd1c8653881ed5ea3b3b4bae2d6648b2..6091f8cef194a1b06fc7c248ccbf6fc995efac2f 100644 (file)
@@ -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();