blob: b91b114374499958ca3746d4f4d7d0209f83df0d [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* linux/arch/arm/mach-s3c2410/s3c2440.c
2 *
Ben Dooks96ce2382006-06-18 23:06:41 +01003 * Copyright (c) 2004-2006 Simtec Electronics
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 * 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.
Linus Torvalds1da177e2005-04-16 15:20:36 -070011*/
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>
Russell Kingd052d1b2005-10-29 19:07:23 +010019#include <linux/platform_device.h>
Ben Dooksb6d1f542006-12-17 23:22:26 +010020#include <linux/serial_core.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#include <linux/sysdev.h>
Russell Kingf8ce2542006-01-07 16:15:52 +000022#include <linux/clk.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
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>
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
32#include <asm/arch/regs-clock.h>
33#include <asm/arch/regs-serial.h>
34#include <asm/arch/regs-gpio.h>
35#include <asm/arch/regs-gpioj.h>
36#include <asm/arch/regs-dsc.h>
37
38#include "s3c2440.h"
39#include "clock.h"
40#include "devs.h"
41#include "cpu.h"
42#include "pm.h"
43
Linus Torvalds1da177e2005-04-16 15:20:36 -070044static struct sys_device s3c2440_sysdev = {
45 .cls = &s3c2440_sysclass,
46};
47
Ben Dooks96ce2382006-06-18 23:06:41 +010048int __init s3c2440_init(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070049{
Ben Dooks96ce2382006-06-18 23:06:41 +010050 printk("S3C2440: Initialising architecture\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
52 /* change irq for watchdog */
53
54 s3c_device_wdt.resource[1].start = IRQ_S3C2440_WDT;
55 s3c_device_wdt.resource[1].end = IRQ_S3C2440_WDT;
Linus Torvalds1da177e2005-04-16 15:20:36 -070056
Ben Dooks96ce2382006-06-18 23:06:41 +010057 /* register our system device for everything else */
Linus Torvalds1da177e2005-04-16 15:20:36 -070058
Ben Dooks66a9b492006-06-18 23:04:05 +010059 return sysdev_register(&s3c2440_sysdev);
Linus Torvalds1da177e2005-04-16 15:20:36 -070060}