From: Mike Frysinger Date: Tue, 21 Oct 2008 01:08:54 +0000 (-0400) Subject: Blackfin: dont check baud if it wont actually get used X-Git-Tag: v2009.03-rc1~129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee1d2001ea7fbabb2b9256026dc5468f057337f8;p=oweals%2Fu-boot.git Blackfin: dont check baud if it wont actually get used Signed-off-by: Mike Frysinger --- diff --git a/cpu/blackfin/initcode.c b/cpu/blackfin/initcode.c index e733dd20fd..6091f8cef1 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();