Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
s3c2440.c
Go to the documentation of this file.
1 /* linux/arch/arm/mach-s3c2440/s3c2440.c
2  *
3  * Copyright (c) 2004-2006 Simtec Electronics
4  * Ben Dooks <[email protected]>
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.
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>
19 #include <linux/platform_device.h>
20 #include <linux/serial_core.h>
21 #include <linux/device.h>
22 #include <linux/syscore_ops.h>
23 #include <linux/gpio.h>
24 #include <linux/clk.h>
25 #include <linux/io.h>
26 
27 #include <asm/mach/arch.h>
28 #include <asm/mach/map.h>
29 #include <asm/mach/irq.h>
30 
31 #include <mach/hardware.h>
32 #include <asm/irq.h>
33 
34 #include <plat/devs.h>
35 #include <plat/cpu.h>
36 #include <plat/s3c244x.h>
37 #include <plat/pm.h>
38 
39 #include <plat/gpio-core.h>
40 #include <plat/gpio-cfg.h>
41 #include <plat/gpio-cfg-helpers.h>
42 
43 static struct device s3c2440_dev = {
44  .bus = &s3c2440_subsys,
45 };
46 
48 {
49  printk("S3C2440: Initialising architecture\n");
50 
51  /* change irq for watchdog */
52 
53  s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
54  s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
55 
56  /* register suspend/resume handlers */
57 
58 #ifdef CONFIG_PM
60 #endif
63 
64  /* register our system device for everything else */
65 
66  return device_register(&s3c2440_dev);
67 }
68 
70 {
72 
75 }