Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0cdbdd6 authored by Alexey Galakhov's avatar Alexey Galakhov Committed by Kukjin Kim
Browse files

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: default avatarAlexey Galakhov <agalakhov@gmail.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 1a4c2a19
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,8 @@
static void arch_detect_cpu(void)
static void arch_detect_cpu(void)
{
{
	/* we do not need to do any cpu detection here at the moment. */
	/* 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 */
#endif /* __ASM_ARCH_UNCOMPRESS_H */