aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s5p/s5p6440-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-s5p/s5p6440-init.c')
-rw-r--r--arch/arm/plat-s5p/s5p6440-init.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/s5p6440-init.c b/arch/arm/plat-s5p/s5p6440-init.c
new file mode 100644
index 000000000000..90178256cc28
--- /dev/null
+++ b/arch/arm/plat-s5p/s5p6440-init.c
@@ -0,0 +1,50 @@
1/* linux/arch/arm/plat-s5p/s5p6440-init.c
2 *
3 * Copyright (c) 2009 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9*/
10
11#include <linux/kernel.h>
12#include <linux/types.h>
13#include <linux/init.h>
14#include <linux/serial_core.h>
15
16#include <plat/cpu.h>
17#include <plat/devs.h>
18#include <plat/s5p6440.h>
19#include <plat/regs-serial.h>
20
21static struct s3c24xx_uart_clksrc s5p6440_serial_clocks[] = {
22 [0] = {
23 .name = "pclk_low",
24 .divisor = 1,
25 .min_baud = 0,
26 .max_baud = 0,
27 },
28 [1] = {
29 .name = "uclk1",
30 .divisor = 1,
31 .min_baud = 0,
32 .max_baud = 0,
33 },
34};
35
36/* uart registration process */
37void __init s5p6440_common_init_uarts(struct s3c2410_uartcfg *cfg, int no)
38{
39 struct s3c2410_uartcfg *tcfg = cfg;
40 u32 ucnt;
41
42 for (ucnt = 0; ucnt < no; ucnt++, tcfg++) {
43 if (!tcfg->clocks) {
44 tcfg->clocks = s5p6440_serial_clocks;
45 tcfg->clocks_size = ARRAY_SIZE(s5p6440_serial_clocks);
46 }
47 }
48
49 s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources, cfg, no);
50}