1 /* linux/arch/arm/mach-s3c2442/s3c2442.c
3 * Copyright (c) 2004-2005 Simtec Electronics
4 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk>
7 * S3C2442 core and lock support
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include <linux/init.h>
25 #include <linux/module.h>
26 #include <linux/kernel.h>
27 #include <linux/list.h>
28 #include <linux/errno.h>
29 #include <linux/err.h>
30 #include <linux/device.h>
31 #include <linux/syscore_ops.h>
32 #include <linux/interrupt.h>
33 #include <linux/ioport.h>
34 #include <linux/mutex.h>
35 #include <linux/gpio.h>
36 #include <linux/clk.h>
39 #include <mach/hardware.h>
40 #include <mach/gpio-samsung.h>
41 #include <linux/atomic.h>
44 #include <mach/regs-clock.h>
46 #include <plat/clock.h>
50 #include <plat/gpio-core.h>
51 #include <plat/gpio-cfg.h>
52 #include <plat/gpio-cfg-helpers.h>
56 static struct device s3c2442_dev
= {
57 .bus
= &s3c2442_subsys
,
60 int __init
s3c2442_init(void)
62 printk("S3C2442: Initialising architecture\n");
65 register_syscore_ops(&s3c2410_pm_syscore_ops
);
66 register_syscore_ops(&s3c24xx_irq_syscore_ops
);
68 register_syscore_ops(&s3c244x_pm_syscore_ops
);
70 return device_register(&s3c2442_dev
);
73 void __init
s3c2442_map_io(void)
77 s3c24xx_gpiocfg_default
.set_pull
= s3c24xx_gpio_setpull_1down
;
78 s3c24xx_gpiocfg_default
.get_pull
= s3c24xx_gpio_getpull_1down
;