Skip to content

Commit

Permalink
ARM: S5PV210: Fix early uart output in fifo mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Galakhov authored and Kukjin Kim committed Feb 8, 2013
1 parent 1a4c2a1 commit f0cdbdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-s5pv210/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit f0cdbdd

Please sign in to comment.