Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / arm / mach-s3c24xx / s3c2440.c
blob451d9851b0a70b3b4118755a9e65fc832ca744b5
1 // SPDX-License-Identifier: GPL-2.0
2 //
3 // Copyright (c) 2004-2006 Simtec Electronics
4 // Ben Dooks <ben@simtec.co.uk>
5 //
6 // Samsung S3C2440 Mobile CPU support
8 #include <linux/kernel.h>
9 #include <linux/types.h>
10 #include <linux/interrupt.h>
11 #include <linux/list.h>
12 #include <linux/timer.h>
13 #include <linux/init.h>
14 #include <linux/platform_device.h>
15 #include <linux/serial_core.h>
16 #include <linux/device.h>
17 #include <linux/syscore_ops.h>
18 #include <linux/gpio.h>
19 #include <linux/clk.h>
20 #include <linux/io.h>
22 #include <asm/mach/arch.h>
23 #include <asm/mach/map.h>
24 #include <asm/mach/irq.h>
26 #include <mach/hardware.h>
27 #include <mach/gpio-samsung.h>
28 #include <asm/irq.h>
30 #include <plat/devs.h>
31 #include <plat/cpu.h>
32 #include <plat/pm.h>
34 #include <plat/gpio-core.h>
35 #include <plat/gpio-cfg.h>
36 #include <plat/gpio-cfg-helpers.h>
38 #include "common.h"
40 static struct device s3c2440_dev = {
41 .bus = &s3c2440_subsys,
44 int __init s3c2440_init(void)
46 printk("S3C2440: Initialising architecture\n");
48 /* change irq for watchdog */
50 s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
51 s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
53 /* register suspend/resume handlers */
55 #ifdef CONFIG_PM_SLEEP
56 register_syscore_ops(&s3c2410_pm_syscore_ops);
57 register_syscore_ops(&s3c24xx_irq_syscore_ops);
58 register_syscore_ops(&s3c244x_pm_syscore_ops);
59 #endif
61 /* register our system device for everything else */
63 return device_register(&s3c2440_dev);
66 void __init s3c2440_map_io(void)
68 s3c244x_map_io();
70 s3c24xx_gpiocfg_default.set_pull = s3c24xx_gpio_setpull_1up;
71 s3c24xx_gpiocfg_default.get_pull = s3c24xx_gpio_getpull_1up;