ARM: S5PV210: Fix early uart output in fifo mode
authorAlexey Galakhov <agalakhov@gmail.com>
Fri, 8 Feb 2013 21:44:43 +0000 (13:44 -0800)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 8 Feb 2013 21:44:43 +0000 (13:44 -0800)
Enabling UART FIFO in bootloader caused the kernel infinite
loop on S5PV210 due to uninitialized fifo_max and fifo_mask global
variables. This patch adds the correct initialization.

Signed-off-by: Alexey Galakhov <agalakhov@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s5pv210/include/mach/uncompress.h

index 08ff2fda1fb9a186030e196d10372fa05afb0ddf..ef977ea8546d63e3d858c19b82331f235f453907 100644 (file)
@@ -19,6 +19,8 @@
 static void arch_detect_cpu(void)
 {
        /* we do not need to do any cpu detection here at the moment. */
+       fifo_mask = S5PV210_UFSTAT_TXMASK;
+       fifo_max = 63 << S5PV210_UFSTAT_TXSHIFT;
 }
 
 #endif /* __ASM_ARCH_UNCOMPRESS_H */