From ee1d2001ea7fbabb2b9256026dc5468f057337f8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Oct 2008 21:08:54 -0400 Subject: [PATCH] Blackfin: dont check baud if it wont actually get used Signed-off-by: Mike Frysinger --- cpu/blackfin/initcode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); -- 2.25.1