diff options
Diffstat (limited to 'arch/arm/mach-s5p64x0/init.c')
-rw-r--r-- | arch/arm/mach-s5p64x0/init.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/arm/mach-s5p64x0/init.c b/arch/arm/mach-s5p64x0/init.c index 79833caf8165..659a66c131a1 100644 --- a/arch/arm/mach-s5p64x0/init.c +++ b/arch/arm/mach-s5p64x0/init.c | |||
@@ -23,36 +23,7 @@ | |||
23 | #include <plat/s5p6450.h> | 23 | #include <plat/s5p6450.h> |
24 | #include <plat/regs-serial.h> | 24 | #include <plat/regs-serial.h> |
25 | 25 | ||
26 | static struct s3c24xx_uart_clksrc s5p64x0_serial_clocks[] = { | ||
27 | [0] = { | ||
28 | .name = "pclk_low", | ||
29 | .divisor = 1, | ||
30 | .min_baud = 0, | ||
31 | .max_baud = 0, | ||
32 | }, | ||
33 | [1] = { | ||
34 | .name = "uclk1", | ||
35 | .divisor = 1, | ||
36 | .min_baud = 0, | ||
37 | .max_baud = 0, | ||
38 | }, | ||
39 | }; | ||
40 | |||
41 | /* uart registration process */ | 26 | /* uart registration process */ |
42 | |||
43 | void __init s5p64x0_common_init_uarts(struct s3c2410_uartcfg *cfg, int no) | ||
44 | { | ||
45 | struct s3c2410_uartcfg *tcfg = cfg; | ||
46 | u32 ucnt; | ||
47 | |||
48 | for (ucnt = 0; ucnt < no; ucnt++, tcfg++) { | ||
49 | if (!tcfg->clocks) { | ||
50 | tcfg->clocks = s5p64x0_serial_clocks; | ||
51 | tcfg->clocks_size = ARRAY_SIZE(s5p64x0_serial_clocks); | ||
52 | } | ||
53 | } | ||
54 | } | ||
55 | |||
56 | void __init s5p6440_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 27 | void __init s5p6440_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
57 | { | 28 | { |
58 | int uart; | 29 | int uart; |
@@ -62,12 +33,10 @@ void __init s5p6440_init_uarts(struct s3c2410_uartcfg *cfg, int no) | |||
62 | s5p_uart_resources[uart].resources->end = S5P6440_PA_UART(uart) + S5P_SZ_UART; | 33 | s5p_uart_resources[uart].resources->end = S5P6440_PA_UART(uart) + S5P_SZ_UART; |
63 | } | 34 | } |
64 | 35 | ||
65 | s5p64x0_common_init_uarts(cfg, no); | ||
66 | s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no); | 36 | s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no); |
67 | } | 37 | } |
68 | 38 | ||
69 | void __init s5p6450_init_uarts(struct s3c2410_uartcfg *cfg, int no) | 39 | void __init s5p6450_init_uarts(struct s3c2410_uartcfg *cfg, int no) |
70 | { | 40 | { |
71 | s5p64x0_common_init_uarts(cfg, no); | ||
72 | s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no); | 41 | s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no); |
73 | } | 42 | } |