Root/
1 | /* linux/arch/arm/mach-s3c2440/s3c2440.c |
2 | * |
3 | * Copyright (c) 2004-2006 Simtec Electronics |
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. |
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/sysdev.h> |
22 | #include <linux/gpio.h> |
23 | #include <linux/clk.h> |
24 | #include <linux/io.h> |
25 | |
26 | #include <asm/mach/arch.h> |
27 | #include <asm/mach/map.h> |
28 | #include <asm/mach/irq.h> |
29 | |
30 | #include <mach/hardware.h> |
31 | #include <asm/irq.h> |
32 | |
33 | #include <plat/devs.h> |
34 | #include <plat/cpu.h> |
35 | #include <plat/s3c244x.h> |
36 | |
37 | #include <plat/gpio-core.h> |
38 | #include <plat/gpio-cfg.h> |
39 | #include <plat/gpio-cfg-helpers.h> |
40 | |
41 | static struct sys_device s3c2440_sysdev = { |
42 | .cls = &s3c2440_sysclass, |
43 | }; |
44 | |
45 | int __init s3c2440_init(void) |
46 | { |
47 | printk("S3C2440: Initialising architecture\n"); |
48 | |
49 | /* change irq for watchdog */ |
50 | |
51 | s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT; |
52 | s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT; |
53 | |
54 | /* register our system device for everything else */ |
55 | |
56 | return sysdev_register(&s3c2440_sysdev); |
57 | } |
58 | |
59 | void __init s3c2440_map_io(void) |
60 | { |
61 | s3c244x_map_io(); |
62 | |
63 | s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1up; |
64 | s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1up; |
65 | } |
66 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9