Merge branch 'linux-4.7' of git://github.com/skeggsb/linux into drm-fixes
[deliverable/linux.git] / arch / arm / mach-s3c24xx / s3c2440.c
CommitLineData
a21765a7 1/* linux/arch/arm/mach-s3c2440/s3c2440.c
1da177e4 2 *
96ce2385 3 * Copyright (c) 2004-2006 Simtec Electronics
1da177e4
LT
4 * Ben Dooks <ben@simtec.co.uk>
5 *
6 * Samsung S3C2440 Mobile CPU support
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
1da177e4
LT
11*/
12
13#include <linux/kernel.h>
14#include <linux/types.h>
15#include <linux/interrupt.h>
16#include <linux/list.h>
17#include <linux/timer.h>
18#include <linux/init.h>
d052d1be 19#include <linux/platform_device.h>
b6d1f542 20#include <linux/serial_core.h>
4a858cfc 21#include <linux/device.h>
bb072c3c 22#include <linux/syscore_ops.h>
1ec7269f 23#include <linux/gpio.h>
f8ce2547 24#include <linux/clk.h>
fced80c7 25#include <linux/io.h>
1da177e4
LT
26
27#include <asm/mach/arch.h>
28#include <asm/mach/map.h>
29#include <asm/mach/irq.h>
30
a09e64fb 31#include <mach/hardware.h>
b0161caa 32#include <mach/gpio-samsung.h>
1da177e4 33#include <asm/irq.h>
1da177e4 34
a2b7ba9c
BD
35#include <plat/devs.h>
36#include <plat/cpu.h>
bb072c3c 37#include <plat/pm.h>
1da177e4 38
1ec7269f
BD
39#include <plat/gpio-core.h>
40#include <plat/gpio-cfg.h>
41#include <plat/gpio-cfg-helpers.h>
42
d8fdec16
HS
43#include "common.h"
44
4a858cfc
KS
45static struct device s3c2440_dev = {
46 .bus = &s3c2440_subsys,
1da177e4
LT
47};
48
96ce2385 49int __init s3c2440_init(void)
1da177e4 50{
96ce2385 51 printk("S3C2440: Initialising architecture\n");
1da177e4
LT
52
53 /* change irq for watchdog */
54
55 s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
56 s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
1da177e4 57
bb072c3c
RW
58 /* register suspend/resume handlers */
59
4f506daf 60#ifdef CONFIG_PM_SLEEP
bb072c3c 61 register_syscore_ops(&s3c2410_pm_syscore_ops);
d8fdec16 62 register_syscore_ops(&s3c24xx_irq_syscore_ops);
bb072c3c 63 register_syscore_ops(&s3c244x_pm_syscore_ops);
4f506daf 64#endif
bb072c3c 65
96ce2385 66 /* register our system device for everything else */
1da177e4 67
4a858cfc 68 return device_register(&s3c2440_dev);
1da177e4 69}
812c4e40
VK
70
71void __init s3c2440_map_io(void)
72{
73 s3c244x_map_io();
74
782d8a3c
KK
75 s3c24xx_gpiocfg_default.set_pull = s3c24xx_gpio_setpull_1up;
76 s3c24xx_gpiocfg_default.get_pull = s3c24xx_gpio_getpull_1up;
812c4e40 77}
This page took 1.074076 seconds and 5 git commands to generate.