From: Alexey Galakhov Date: Fri, 8 Feb 2013 21:44:43 +0000 (-0800) Subject: ARM: S5PV210: Fix early uart output in fifo mode X-Git-Tag: upstream/snapshot3+hdmi~5692^2~2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0cdbdd6d8ada085199e6250cbf3b7fbe69392ac;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: S5PV210: Fix early uart output in fifo mode 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 Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/mach-s5pv210/include/mach/uncompress.h b/arch/arm/mach-s5pv210/include/mach/uncompress.h index 08ff2fd..ef977ea 100644 --- a/arch/arm/mach-s5pv210/include/mach/uncompress.h +++ b/arch/arm/mach-s5pv210/include/mach/uncompress.h @@ -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 */