ARM: s5p64x0: avoid build warning for uncompress.h
[profile/common/kernel-common.git] / arch / arm / mach-s5p64x0 / include / mach / uncompress.h
1 /* linux/arch/arm/mach-s5p64x0/include/mach/uncompress.h
2  *
3  * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
4  *              http://www.samsung.com
5  *
6  * S5P64X0 - uncompress code
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11 */
12
13 #ifndef __ASM_ARCH_UNCOMPRESS_H
14 #define __ASM_ARCH_UNCOMPRESS_H
15
16 #include <mach/map.h>
17 #include <plat/uncompress.h>
18
19 static void arch_detect_cpu(void)
20 {
21         unsigned int chipid;
22
23         chipid = *(const volatile unsigned int __force *) 0xE0100118;
24
25         if ((chipid & 0xff000) == 0x50000)
26                 uart_base = (volatile u8 *)S5P6450_PA_UART(CONFIG_S3C_LOWLEVEL_UART_PORT);
27         else
28                 uart_base = (volatile u8 *)S5P6440_PA_UART(CONFIG_S3C_LOWLEVEL_UART_PORT);
29
30         fifo_mask = S3C2440_UFSTAT_TXMASK;
31         fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT;
32 }
33
34 #endif /* __ASM_ARCH_UNCOMPRESS_H */