diff options
-rw-r--r-- | arch/arm/mach-exynos/include/mach/uncompress.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/include/mach/uncompress.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c64xx/include/mach/uncompress.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/include/mach/uncompress.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/include/mach/uncompress.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/uncompress.h | 6 |
6 files changed, 12 insertions, 7 deletions
diff --git a/arch/arm/mach-exynos/include/mach/uncompress.h b/arch/arm/mach-exynos/include/mach/uncompress.h index 2979995d5a6a..d405762be183 100644 --- a/arch/arm/mach-exynos/include/mach/uncompress.h +++ b/arch/arm/mach-exynos/include/mach/uncompress.h | |||
@@ -15,9 +15,6 @@ | |||
15 | #include <asm/mach-types.h> | 15 | #include <asm/mach-types.h> |
16 | 16 | ||
17 | #include <mach/map.h> | 17 | #include <mach/map.h> |
18 | |||
19 | volatile u8 *uart_base; | ||
20 | |||
21 | #include <plat/uncompress.h> | 18 | #include <plat/uncompress.h> |
22 | 19 | ||
23 | static unsigned int __raw_readl(unsigned int ptr) | 20 | static unsigned int __raw_readl(unsigned int ptr) |
diff --git a/arch/arm/mach-s3c24xx/include/mach/uncompress.h b/arch/arm/mach-s3c24xx/include/mach/uncompress.h index 8b283f847daa..7d2ce205dce8 100644 --- a/arch/arm/mach-s3c24xx/include/mach/uncompress.h +++ b/arch/arm/mach-s3c24xx/include/mach/uncompress.h | |||
@@ -49,6 +49,9 @@ static void arch_detect_cpu(void) | |||
49 | fifo_mask = S3C2410_UFSTAT_TXMASK; | 49 | fifo_mask = S3C2410_UFSTAT_TXMASK; |
50 | fifo_max = 15 << S3C2410_UFSTAT_TXSHIFT; | 50 | fifo_max = 15 << S3C2410_UFSTAT_TXSHIFT; |
51 | } | 51 | } |
52 | |||
53 | uart_base = (volatile u8 *) S3C_PA_UART + | ||
54 | (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT); | ||
52 | } | 55 | } |
53 | 56 | ||
54 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ | 57 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ |
diff --git a/arch/arm/mach-s3c64xx/include/mach/uncompress.h b/arch/arm/mach-s3c64xx/include/mach/uncompress.h index c6a82a20bf2a..1c956738b42d 100644 --- a/arch/arm/mach-s3c64xx/include/mach/uncompress.h +++ b/arch/arm/mach-s3c64xx/include/mach/uncompress.h | |||
@@ -23,6 +23,9 @@ static void arch_detect_cpu(void) | |||
23 | /* we do not need to do any cpu detection here at the moment. */ | 23 | /* we do not need to do any cpu detection here at the moment. */ |
24 | fifo_mask = S3C2440_UFSTAT_TXMASK; | 24 | fifo_mask = S3C2440_UFSTAT_TXMASK; |
25 | fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT; | 25 | fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT; |
26 | |||
27 | uart_base = (volatile u8 *)S3C_PA_UART + | ||
28 | (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT); | ||
26 | } | 29 | } |
27 | 30 | ||
28 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ | 31 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ |
diff --git a/arch/arm/mach-s5pc100/include/mach/uncompress.h b/arch/arm/mach-s5pc100/include/mach/uncompress.h index 01ccf535e76c..720e1339425c 100644 --- a/arch/arm/mach-s5pc100/include/mach/uncompress.h +++ b/arch/arm/mach-s5pc100/include/mach/uncompress.h | |||
@@ -23,6 +23,8 @@ static void arch_detect_cpu(void) | |||
23 | /* we do not need to do any cpu detection here at the moment. */ | 23 | /* we do not need to do any cpu detection here at the moment. */ |
24 | fifo_mask = S3C2440_UFSTAT_TXMASK; | 24 | fifo_mask = S3C2440_UFSTAT_TXMASK; |
25 | fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT; | 25 | fifo_max = 63 << S3C2440_UFSTAT_TXSHIFT; |
26 | |||
27 | uart_base = (volatile u8 *)S5P_PA_UART(CONFIG_S3C_LOWLEVEL_UART_PORT); | ||
26 | } | 28 | } |
27 | 29 | ||
28 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ | 30 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ |
diff --git a/arch/arm/mach-s5pv210/include/mach/uncompress.h b/arch/arm/mach-s5pv210/include/mach/uncompress.h index ef977ea8546d..231cb07de058 100644 --- a/arch/arm/mach-s5pv210/include/mach/uncompress.h +++ b/arch/arm/mach-s5pv210/include/mach/uncompress.h | |||
@@ -21,6 +21,8 @@ static void arch_detect_cpu(void) | |||
21 | /* we do not need to do any cpu detection here at the moment. */ | 21 | /* we do not need to do any cpu detection here at the moment. */ |
22 | fifo_mask = S5PV210_UFSTAT_TXMASK; | 22 | fifo_mask = S5PV210_UFSTAT_TXMASK; |
23 | fifo_max = 63 << S5PV210_UFSTAT_TXSHIFT; | 23 | fifo_max = 63 << S5PV210_UFSTAT_TXSHIFT; |
24 | |||
25 | uart_base = (volatile u8 *)S5P_PA_UART(CONFIG_S3C_LOWLEVEL_UART_PORT); | ||
24 | } | 26 | } |
25 | 27 | ||
26 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ | 28 | #endif /* __ASM_ARCH_UNCOMPRESS_H */ |
diff --git a/arch/arm/plat-samsung/include/plat/uncompress.h b/arch/arm/plat-samsung/include/plat/uncompress.h index 02b66d723d1a..2ace0d561446 100644 --- a/arch/arm/plat-samsung/include/plat/uncompress.h +++ b/arch/arm/plat-samsung/include/plat/uncompress.h | |||
@@ -21,6 +21,8 @@ typedef unsigned int upf_t; /* cannot include linux/serial_core.h */ | |||
21 | unsigned int fifo_mask; | 21 | unsigned int fifo_mask; |
22 | unsigned int fifo_max; | 22 | unsigned int fifo_max; |
23 | 23 | ||
24 | volatile u8 *uart_base; | ||
25 | |||
24 | /* forward declerations */ | 26 | /* forward declerations */ |
25 | 27 | ||
26 | static void arch_detect_cpu(void); | 28 | static void arch_detect_cpu(void); |
@@ -37,10 +39,6 @@ static void arch_detect_cpu(void); | |||
37 | /* how many bytes we allow into the FIFO at a time in FIFO mode */ | 39 | /* how many bytes we allow into the FIFO at a time in FIFO mode */ |
38 | #define FIFO_MAX (14) | 40 | #define FIFO_MAX (14) |
39 | 41 | ||
40 | #ifdef S3C_PA_UART | ||
41 | #define uart_base S3C_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT) | ||
42 | #endif | ||
43 | |||
44 | static __inline__ void | 42 | static __inline__ void |
45 | uart_wr(unsigned int reg, unsigned int val) | 43 | uart_wr(unsigned int reg, unsigned int val) |
46 | { | 44 | { |