Explorar el Código

Blackfin: dont check baud if it wont actually get used

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger hace 16 años
padre
commit
ee1d2001ea
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      cpu/blackfin/initcode.c

+ 5 - 1
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();