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: v2025.01-rc5-pxa1908~21539 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=ee1d2001ea7fbabb2b9256026dc5468f057337f8;p=u-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();