Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / mach-s3c / s3c2440.c
blobc6cdee4987e895377eee7b86c019b93ae28be470
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 <asm/irq.h>
28 #include "devs.h"
29 #include "cpu.h"
30 #include "pm.h"
32 #include "gpio-core.h"
33 #include "gpio-cfg.h"
34 #include "gpio-cfg-helpers.h"
35 #include "gpio-samsung.h"
37 #include "s3c24xx.h"
39 static struct device s3c2440_dev = {
40 .bus = &s3c2440_subsys,
43 int __init s3c2440_init(void)
45 printk("S3C2440: Initialising architecture\n");
47 /* change irq for watchdog */
49 s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
50 s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
52 /* register suspend/resume handlers */
54 #ifdef CONFIG_PM_SLEEP
55 register_syscore_ops(&s3c2410_pm_syscore_ops);
56 register_syscore_ops(&s3c24xx_irq_syscore_ops);
57 register_syscore_ops(&s3c244x_pm_syscore_ops);
58 #endif
60 /* register our system device for everything else */
62 return device_register(&s3c2440_dev);
65 void __init s3c2440_map_io(void)
67 s3c244x_map_io();
69 s3c24xx_gpiocfg_default.set_pull = s3c24xx_gpio_setpull_1up;
70 s3c24xx_gpiocfg_default.get_pull = s3c24xx_gpio_getpull_1up;