GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / mach-s3c2440 / s3c2440.c
blobd50f3ae6173d72a27d71ddefc941e0d1adc6bbec
1 /* linux/arch/arm/mach-s3c2440/s3c2440.c
3 * Copyright (c) 2004-2006 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * Samsung S3C2440 Mobile CPU support
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.
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>
26 #include <asm/mach/arch.h>
27 #include <asm/mach/map.h>
28 #include <asm/mach/irq.h>
30 #include <mach/hardware.h>
31 #include <asm/irq.h>
33 #include <plat/devs.h>
34 #include <plat/cpu.h>
35 #include <plat/s3c244x.h>
37 #include <plat/gpio-core.h>
38 #include <plat/gpio-cfg.h>
39 #include <plat/gpio-cfg-helpers.h>
41 static struct sys_device s3c2440_sysdev = {
42 .cls = &s3c2440_sysclass,
45 int __init s3c2440_init(void)
47 printk("S3C2440: Initialising architecture\n");
49 s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1up;
50 s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1up;
52 /* change irq for watchdog */
54 s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
55 s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
57 /* register our system device for everything else */
59 return sysdev_register(&s3c2440_sysdev);