1 // SPDX-License-Identifier: GPL-2.0+
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 #include <linux/init.h>
10 #include <linux/module.h>
11 #include <linux/kernel.h>
12 #include <linux/list.h>
13 #include <linux/errno.h>
14 #include <linux/err.h>
15 #include <linux/device.h>
16 #include <linux/syscore_ops.h>
17 #include <linux/interrupt.h>
18 #include <linux/ioport.h>
19 #include <linux/mutex.h>
20 #include <linux/gpio.h>
21 #include <linux/clk.h>
24 #include <mach/hardware.h>
25 #include <mach/gpio-samsung.h>
26 #include <linux/atomic.h>
29 #include <mach/regs-clock.h>
34 #include <plat/gpio-core.h>
35 #include <plat/gpio-cfg.h>
36 #include <plat/gpio-cfg-helpers.h>
40 static struct device s3c2442_dev
= {
41 .bus
= &s3c2442_subsys
,
44 int __init
s3c2442_init(void)
46 printk("S3C2442: Initialising architecture\n");
48 #ifdef CONFIG_PM_SLEEP
49 register_syscore_ops(&s3c2410_pm_syscore_ops
);
50 register_syscore_ops(&s3c24xx_irq_syscore_ops
);
51 register_syscore_ops(&s3c244x_pm_syscore_ops
);
54 return device_register(&s3c2442_dev
);
57 void __init
s3c2442_map_io(void)
61 s3c24xx_gpiocfg_default
.set_pull
= s3c24xx_gpio_setpull_1down
;
62 s3c24xx_gpiocfg_default
.get_pull
= s3c24xx_gpio_getpull_1down
;