diff options
Diffstat (limited to 'arch/arm/mach-s5pc100/cpu.c')
-rw-r--r-- | arch/arm/mach-s5pc100/cpu.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pc100/cpu.c b/arch/arm/mach-s5pc100/cpu.c index 0e718890da32..d79e7574a852 100644 --- a/arch/arm/mach-s5pc100/cpu.c +++ b/arch/arm/mach-s5pc100/cpu.c | |||
@@ -22,6 +22,8 @@ | |||
22 | #include <linux/serial_core.h> | 22 | #include <linux/serial_core.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | 24 | ||
25 | #include <asm/proc-fns.h> | ||
26 | |||
25 | #include <asm/mach/arch.h> | 27 | #include <asm/mach/arch.h> |
26 | #include <asm/mach/map.h> | 28 | #include <asm/mach/map.h> |
27 | #include <asm/mach/irq.h> | 29 | #include <asm/mach/irq.h> |
@@ -32,6 +34,7 @@ | |||
32 | 34 | ||
33 | #include <plat/cpu-freq.h> | 35 | #include <plat/cpu-freq.h> |
34 | #include <plat/regs-serial.h> | 36 | #include <plat/regs-serial.h> |
37 | #include <plat/regs-power.h> | ||
35 | 38 | ||
36 | #include <plat/cpu.h> | 39 | #include <plat/cpu.h> |
37 | #include <plat/devs.h> | 40 | #include <plat/devs.h> |
@@ -45,6 +48,23 @@ | |||
45 | static struct map_desc s5pc100_iodesc[] __initdata = { | 48 | static struct map_desc s5pc100_iodesc[] __initdata = { |
46 | }; | 49 | }; |
47 | 50 | ||
51 | static void s5pc100_idle(void) | ||
52 | { | ||
53 | unsigned long tmp; | ||
54 | |||
55 | tmp = __raw_readl(S5PC100_PWR_CFG); | ||
56 | tmp &= ~S5PC100_PWRCFG_CFG_DEEP_IDLE; | ||
57 | tmp &= ~S5PC100_PWRCFG_CFG_WFI_MASK; | ||
58 | tmp |= S5PC100_PWRCFG_CFG_WFI_DEEP_IDLE; | ||
59 | __raw_writel(tmp, S5PC100_PWR_CFG); | ||
60 | |||
61 | tmp = __raw_readl(S5PC100_OTHERS); | ||
62 | tmp |= S5PC100_PMU_INT_DISABLE; | ||
63 | __raw_writel(tmp, S5PC100_OTHERS); | ||
64 | |||
65 | cpu_do_idle(); | ||
66 | } | ||
67 | |||
48 | /* s5pc100_map_io | 68 | /* s5pc100_map_io |
49 | * | 69 | * |
50 | * register the standard cpu IO areas | 70 | * register the standard cpu IO areas |
@@ -55,6 +75,13 @@ void __init s5pc100_map_io(void) | |||
55 | iotable_init(s5pc100_iodesc, ARRAY_SIZE(s5pc100_iodesc)); | 75 | iotable_init(s5pc100_iodesc, ARRAY_SIZE(s5pc100_iodesc)); |
56 | 76 | ||
57 | /* initialise device information early */ | 77 | /* initialise device information early */ |
78 | s5pc100_default_sdhci0(); | ||
79 | s5pc100_default_sdhci1(); | ||
80 | s5pc100_default_sdhci2(); | ||
81 | |||
82 | /* the i2c devices are directly compatible with s3c2440 */ | ||
83 | s3c_i2c0_setname("s3c2440-i2c"); | ||
84 | s3c_i2c1_setname("s3c2440-i2c"); | ||
58 | } | 85 | } |
59 | 86 | ||
60 | void __init s5pc100_init_clocks(int xtal) | 87 | void __init s5pc100_init_clocks(int xtal) |
@@ -93,5 +120,7 @@ int __init s5pc100_init(void) | |||
93 | { | 120 | { |
94 | printk(KERN_DEBUG "S5PC100: Initialising architecture\n"); | 121 | printk(KERN_DEBUG "S5PC100: Initialising architecture\n"); |
95 | 122 | ||
123 | s5pc1xx_idle = s5pc100_idle; | ||
124 | |||
96 | return sysdev_register(&s5pc100_sysdev); | 125 | return sysdev_register(&s5pc100_sysdev); |
97 | } | 126 | } |