1 /* linux/arch/arm/mach-s5p6440/init.c
3 * Copyright (c) 2009 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com/
6 * S5P6440 - Init support
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.
13 #include <linux/kernel.h>
14 #include <linux/types.h>
15 #include <linux/init.h>
16 #include <linux/serial_core.h>
19 #include <plat/devs.h>
20 #include <plat/s5p6440.h>
21 #include <plat/regs-serial.h>
23 static struct s3c24xx_uart_clksrc s5p6440_serial_clocks
[] = {
38 /* uart registration process */
39 void __init
s5p6440_common_init_uarts(struct s3c2410_uartcfg
*cfg
, int no
)
41 struct s3c2410_uartcfg
*tcfg
= cfg
;
44 for (ucnt
= 0; ucnt
< no
; ucnt
++, tcfg
++) {
46 tcfg
->clocks
= s5p6440_serial_clocks
;
47 tcfg
->clocks_size
= ARRAY_SIZE(s5p6440_serial_clocks
);
51 s3c24xx_init_uartdevs("s3c6400-uart", s5p_uart_resources
, cfg
, no
);