mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 02:46:43 +07:00
f0cdbdd6d8
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>
27 lines
703 B
C
27 lines
703 B
C
/* linux/arch/arm/mach-s5pv210/include/mach/uncompress.h
|
|
*
|
|
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com/
|
|
*
|
|
* S5PV210 - uncompress code
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_UNCOMPRESS_H
|
|
#define __ASM_ARCH_UNCOMPRESS_H
|
|
|
|
#include <mach/map.h>
|
|
#include <plat/uncompress.h>
|
|
|
|
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 */
|