blob: 5b35978029be7fb4a006b4b210dcf835fd148102 [file] [log] [blame]
Kukjin Kim7d30e8b2011-02-14 16:33:10 +09001/* linux/arch/arm/mach-exynos4/init.c
Changhwan Youn2b12b5c2010-07-26 21:08:52 +09002 *
3 * Copyright (c) 2010 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/serial_core.h>
12
13#include <plat/cpu.h>
14#include <plat/devs.h>
15#include <plat/regs-serial.h>
16
Changhwan Youn2b12b5c2010-07-26 21:08:52 +090017/* uart registration process */
Kukjin Kim7d30e8b2011-02-14 16:33:10 +090018void __init exynos4_common_init_uarts(struct s3c2410_uartcfg *cfg, int no)
Changhwan Youn2b12b5c2010-07-26 21:08:52 +090019{
20 struct s3c2410_uartcfg *tcfg = cfg;
21 u32 ucnt;
22
Thomas Abrahamc3310fb2011-10-24 11:47:57 +020023 for (ucnt = 0; ucnt < no; ucnt++, tcfg++)
Thomas Abrahamafba7f92011-10-24 11:47:51 +020024 tcfg->has_fracval = 1;
Changhwan Youn2b12b5c2010-07-26 21:08:52 +090025
Thomas Abraham0cfb26e2011-10-24 12:08:42 +020026 s3c24xx_init_uartdevs("exynos4210-uart", s5p_uart_resources, cfg, no);
Changhwan Youn2b12b5c2010-07-26 21:08:52 +090027}