[ARM] 4156/1: S3C24XX: Add CONFIG_S3C2410_GPIO
[deliverable/linux.git] / arch / arm / mach-s3c2410 / s3c2440.c
CommitLineData
1da177e4
LT
1/* linux/arch/arm/mach-s3c2410/s3c2440.c
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>
1da177e4 21#include <linux/sysdev.h>
f8ce2547 22#include <linux/clk.h>
1da177e4
LT
23
24#include <asm/mach/arch.h>
25#include <asm/mach/map.h>
26#include <asm/mach/irq.h>
27
28#include <asm/hardware.h>
29#include <asm/io.h>
30#include <asm/irq.h>
1da177e4 31
1da177e4 32#include "s3c2440.h"
1da177e4
LT
33#include "devs.h"
34#include "cpu.h"
1da177e4 35
1da177e4
LT
36static struct sys_device s3c2440_sysdev = {
37 .cls = &s3c2440_sysclass,
38};
39
96ce2385 40int __init s3c2440_init(void)
1da177e4 41{
96ce2385 42 printk("S3C2440: Initialising architecture\n");
1da177e4
LT
43
44 /* change irq for watchdog */
45
46 s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
47 s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
1da177e4 48
96ce2385 49 /* register our system device for everything else */
1da177e4 50
66a9b49a 51 return sysdev_register(&s3c2440_sysdev);
1da177e4 52}
This page took 0.180662 seconds and 5 git commands to generate.