| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* linux/arch/arm/mach-s3c2410/s3c2440.c | 
 | 2 |  * | 
| Ben Dooks | 96ce238 | 2006-06-18 23:06:41 +0100 | [diff] [blame] | 3 |  * Copyright (c) 2004-2006 Simtec Electronics | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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. | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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> | 
| Russell King | d052d1b | 2005-10-29 19:07:23 +0100 | [diff] [blame] | 19 | #include <linux/platform_device.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #include <linux/sysdev.h> | 
| Russell King | f8ce254 | 2006-01-07 16:15:52 +0000 | [diff] [blame] | 21 | #include <linux/clk.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 |  | 
 | 23 | #include <asm/mach/arch.h> | 
 | 24 | #include <asm/mach/map.h> | 
 | 25 | #include <asm/mach/irq.h> | 
 | 26 |  | 
 | 27 | #include <asm/hardware.h> | 
 | 28 | #include <asm/io.h> | 
 | 29 | #include <asm/irq.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 |  | 
 | 31 | #include <asm/arch/regs-clock.h> | 
 | 32 | #include <asm/arch/regs-serial.h> | 
 | 33 | #include <asm/arch/regs-gpio.h> | 
 | 34 | #include <asm/arch/regs-gpioj.h> | 
 | 35 | #include <asm/arch/regs-dsc.h> | 
 | 36 |  | 
 | 37 | #include "s3c2440.h" | 
 | 38 | #include "clock.h" | 
 | 39 | #include "devs.h" | 
 | 40 | #include "cpu.h" | 
 | 41 | #include "pm.h" | 
 | 42 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | static struct sys_device s3c2440_sysdev = { | 
 | 44 | 	.cls		= &s3c2440_sysclass, | 
 | 45 | }; | 
 | 46 |  | 
| Ben Dooks | 96ce238 | 2006-06-18 23:06:41 +0100 | [diff] [blame] | 47 | int __init s3c2440_init(void) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | { | 
| Ben Dooks | 96ce238 | 2006-06-18 23:06:41 +0100 | [diff] [blame] | 49 | 	printk("S3C2440: Initialising architecture\n"); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 55 |  | 
| Ben Dooks | 96ce238 | 2006-06-18 23:06:41 +0100 | [diff] [blame] | 56 | 	/* register our system device for everything else */ | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 |  | 
| Ben Dooks | 66a9b49 | 2006-06-18 23:04:05 +0100 | [diff] [blame] | 58 | 	return sysdev_register(&s3c2440_sysdev); | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | } |