summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mxc/uncompress.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-mxc/uncompress.h')
-rw-r--r--include/asm-arm/arch-mxc/uncompress.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/include/asm-arm/arch-mxc/uncompress.h b/include/asm-arm/arch-mxc/uncompress.h
index cbb0e262ac1f..b10d7cdc983b 100644
--- a/include/asm-arm/arch-mxc/uncompress.h
+++ b/include/asm-arm/arch-mxc/uncompress.h
@@ -25,7 +25,7 @@
#define __MXC_BOOT_UNCOMPRESS
-#include <asm/arch/hardware.h>
+#include <asm/hardware.h>
unsigned int system_rev;
@@ -50,15 +50,17 @@ static void putc(int ch)
{
static unsigned long serial_port = 0;
- if (unlikely(serial_port == 0)) do {
- serial_port = UART1_BASE_ADDR;
- if (UART(UCR1) & UCR1_UARTEN)
- break;
- serial_port = UART2_BASE_ADDR;
- if (UART(UCR1) & UCR1_UARTEN)
- break;
- return;
- } while (0);
+ if (unlikely(serial_port == 0)) {
+ do {
+ serial_port = UART1_BASE_ADDR;
+ if (UART(UCR1) & UCR1_UARTEN)
+ break;
+ serial_port = UART2_BASE_ADDR;
+ if (UART(UCR1) & UCR1_UARTEN)
+ break;
+ return;
+ } while (0);
+ }
while (!(UART(USR2) & USR2_TXFE))
barrier();