aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-samsung/init.c')
-rw-r--r--arch/arm/plat-samsung/init.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/plat-samsung/init.c b/arch/arm/plat-samsung/init.c
index aa9511b6914a..a1f925f3121f 100644
--- a/arch/arm/plat-samsung/init.c
+++ b/arch/arm/plat-samsung/init.c
@@ -21,11 +21,10 @@
21#include <linux/interrupt.h> 21#include <linux/interrupt.h>
22#include <linux/ioport.h> 22#include <linux/ioport.h>
23#include <linux/serial_core.h> 23#include <linux/serial_core.h>
24#include <linux/serial_s3c.h>
24#include <linux/platform_device.h> 25#include <linux/platform_device.h>
25#include <linux/of.h> 26#include <linux/of.h>
26 27
27#include <mach/hardware.h>
28
29#include <asm/mach/arch.h> 28#include <asm/mach/arch.h>
30#include <asm/mach/map.h> 29#include <asm/mach/map.h>
31 30
@@ -33,8 +32,6 @@
33#include <plat/devs.h> 32#include <plat/devs.h>
34#include <plat/clock.h> 33#include <plat/clock.h>
35 34
36#include <plat/regs-serial.h>
37
38static struct cpu_table *cpu; 35static struct cpu_table *cpu;
39 36
40static struct cpu_table * __init s3c_lookup_cpu(unsigned long idcode, 37static struct cpu_table * __init s3c_lookup_cpu(unsigned long idcode,
@@ -97,7 +94,9 @@ void __init s3c24xx_init_clocks(int xtal)
97#if IS_ENABLED(CONFIG_SAMSUNG_ATAGS) 94#if IS_ENABLED(CONFIG_SAMSUNG_ATAGS)
98static int nr_uarts __initdata = 0; 95static int nr_uarts __initdata = 0;
99 96
97#ifdef CONFIG_SERIAL_SAMSUNG_UARTS
100static struct s3c2410_uartcfg uart_cfgs[CONFIG_SERIAL_SAMSUNG_UARTS]; 98static struct s3c2410_uartcfg uart_cfgs[CONFIG_SERIAL_SAMSUNG_UARTS];
99#endif
101 100
102/* s3c24xx_init_uartdevs 101/* s3c24xx_init_uartdevs
103 * 102 *
@@ -112,6 +111,7 @@ void __init s3c24xx_init_uartdevs(char *name,
112 struct s3c24xx_uart_resources *res, 111 struct s3c24xx_uart_resources *res,
113 struct s3c2410_uartcfg *cfg, int no) 112 struct s3c2410_uartcfg *cfg, int no)
114{ 113{
114#ifdef CONFIG_SERIAL_SAMSUNG_UARTS
115 struct platform_device *platdev; 115 struct platform_device *platdev;
116 struct s3c2410_uartcfg *cfgptr = uart_cfgs; 116 struct s3c2410_uartcfg *cfgptr = uart_cfgs;
117 struct s3c24xx_uart_resources *resp; 117 struct s3c24xx_uart_resources *resp;
@@ -134,6 +134,7 @@ void __init s3c24xx_init_uartdevs(char *name,
134 } 134 }
135 135
136 nr_uarts = no; 136 nr_uarts = no;
137#endif
137} 138}
138 139
139void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no) 140void __init s3c24xx_init_uarts(struct s3c2410_uartcfg *cfg, int no)