MINI2440: Added new T35 (QVGA) and Innolux 5.6" (VGA) TFTs
[linux-2.6/mini2440.git] / arch / arm / mach-s5pc100 / cpu.c
blob0e718890da32febd0c6a0bb5f8db08da87217c23
1 /* linux/arch/arm/mach-s5pc100/cpu.c
3 * Copyright 2009 Samsung Electronics Co.
4 * Byungho Min <bhmin@samsung.com>
6 * Based on mach-s3c6410/cpu.c
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/clk.h>
20 #include <linux/io.h>
21 #include <linux/sysdev.h>
22 #include <linux/serial_core.h>
23 #include <linux/platform_device.h>
25 #include <asm/mach/arch.h>
26 #include <asm/mach/map.h>
27 #include <asm/mach/irq.h>
29 #include <mach/hardware.h>
30 #include <mach/map.h>
31 #include <asm/irq.h>
33 #include <plat/cpu-freq.h>
34 #include <plat/regs-serial.h>
36 #include <plat/cpu.h>
37 #include <plat/devs.h>
38 #include <plat/clock.h>
39 #include <plat/sdhci.h>
40 #include <plat/iic-core.h>
41 #include <plat/s5pc100.h>
43 /* Initial IO mappings */
45 static struct map_desc s5pc100_iodesc[] __initdata = {
48 /* s5pc100_map_io
50 * register the standard cpu IO areas
53 void __init s5pc100_map_io(void)
55 iotable_init(s5pc100_iodesc, ARRAY_SIZE(s5pc100_iodesc));
57 /* initialise device information early */
60 void __init s5pc100_init_clocks(int xtal)
62 printk(KERN_DEBUG "%s: initialising clocks\n", __func__);
63 s3c24xx_register_baseclocks(xtal);
64 s5pc1xx_register_clocks();
65 s5pc100_register_clocks();
66 s5pc100_setup_clocks();
69 void __init s5pc100_init_irq(void)
71 u32 vic_valid[] = {~0, ~0, ~0};
73 /* VIC0, VIC1, and VIC2 are fully populated. */
74 s5pc1xx_init_irq(vic_valid, ARRAY_SIZE(vic_valid));
77 struct sysdev_class s5pc100_sysclass = {
78 .name = "s5pc100-core",
81 static struct sys_device s5pc100_sysdev = {
82 .cls = &s5pc100_sysclass,
85 static int __init s5pc100_core_init(void)
87 return sysdev_class_register(&s5pc100_sysclass);
90 core_initcall(s5pc100_core_init);
92 int __init s5pc100_init(void)
94 printk(KERN_DEBUG "S5PC100: Initialising architecture\n");
96 return sysdev_register(&s5pc100_sysdev);