blob: f127c0cefbb89540662b80c152f657438de0c3c0 [file] [log] [blame]
Jongpill Leec9347102012-02-17 09:49:54 +09001/*
2 * Copyright (c) 2011-2012 Samsung Electronics Co., Ltd.
Jaecheol Lee16638952011-03-10 13:33:59 +09003 * http://www.samsung.com
4 *
Jongpill Leec9347102012-02-17 09:49:54 +09005 * EXYNOS - Power Management support
Jaecheol Lee16638952011-03-10 13:33:59 +09006 *
7 * Based on arch/arm/mach-s3c2410/pm.c
8 * Copyright (c) 2006 Simtec Electronics
9 * Ben Dooks <ben@simtec.co.uk>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
14*/
15
16#include <linux/init.h>
17#include <linux/suspend.h>
Rafael J. Wysockibb072c32011-04-22 22:03:21 +020018#include <linux/syscore_ops.h>
Daniel Lezcano85f9f902014-05-09 06:43:27 +090019#include <linux/cpu_pm.h>
Jaecheol Lee16638952011-03-10 13:33:59 +090020#include <linux/io.h>
Tomasz Figadd8ac692014-03-18 07:28:30 +090021#include <linux/irqchip/arm-gic.h>
Jaecheol Lee56c03d92011-07-18 19:25:13 +090022#include <linux/err.h>
23#include <linux/clk.h>
Jaecheol Lee16638952011-03-10 13:33:59 +090024
25#include <asm/cacheflush.h>
26#include <asm/hardware/cache-l2x0.h>
Shawn Guo63b870f2011-11-17 01:19:11 +090027#include <asm/smp_scu.h>
Tomasz Figad710aa32014-03-18 07:28:27 +090028#include <asm/suspend.h>
Jaecheol Lee16638952011-03-10 13:33:59 +090029
Tomasz Figad710aa32014-03-18 07:28:27 +090030#include <plat/pm-common.h>
Jaecheol Lee56c03d92011-07-18 19:25:13 +090031#include <plat/pll.h>
MyungJoo Hamb93cb912011-07-21 11:25:23 +090032#include <plat/regs-srom.h>
Jaecheol Lee16638952011-03-10 13:33:59 +090033
Kukjin Kim9c9239a2013-12-19 04:19:59 +090034#include <mach/map.h>
Kukjin Kimccd458c2012-12-31 10:06:48 -080035
36#include "common.h"
Kukjin Kim65c9a852013-12-19 04:06:56 +090037#include "regs-pmu.h"
Pankaj Dubey318fd202014-07-08 07:54:08 +090038#include "regs-sys.h"
Jaecheol Lee16638952011-03-10 13:33:59 +090039
Tomasz Figadd8ac692014-03-18 07:28:30 +090040/**
41 * struct exynos_wkup_irq - Exynos GIC to PMU IRQ mapping
42 * @hwirq: Hardware IRQ signal of the GIC
43 * @mask: Mask in PMU wake-up mask register
44 */
45struct exynos_wkup_irq {
46 unsigned int hwirq;
47 u32 mask;
48};
49
Abhilash Kesavan86ffb0e2012-11-20 18:20:45 +090050static struct sleep_save exynos5_sys_save[] = {
51 SAVE_ITEM(EXYNOS5_SYS_I2C_CFG),
52};
53
Jongpill Leec9347102012-02-17 09:49:54 +090054static struct sleep_save exynos_core_save[] = {
MyungJoo Hamb93cb912011-07-21 11:25:23 +090055 /* SROM side */
56 SAVE_ITEM(S5P_SROM_BW),
57 SAVE_ITEM(S5P_SROM_BC0),
58 SAVE_ITEM(S5P_SROM_BC1),
59 SAVE_ITEM(S5P_SROM_BC2),
60 SAVE_ITEM(S5P_SROM_BC3),
Jaecheol Lee16638952011-03-10 13:33:59 +090061};
62
Tomasz Figadd8ac692014-03-18 07:28:30 +090063/*
64 * GIC wake-up support
65 */
66
Tomasz Figad710aa32014-03-18 07:28:27 +090067static u32 exynos_irqwake_intmask = 0xffffffff;
Jaecheol Lee16638952011-03-10 13:33:59 +090068
Tomasz Figadd8ac692014-03-18 07:28:30 +090069static const struct exynos_wkup_irq exynos4_wkup_irq[] = {
70 { 76, BIT(1) }, /* RTC alarm */
71 { 77, BIT(2) }, /* RTC tick */
72 { /* sentinel */ },
73};
74
75static const struct exynos_wkup_irq exynos5250_wkup_irq[] = {
76 { 75, BIT(1) }, /* RTC alarm */
77 { 76, BIT(2) }, /* RTC tick */
78 { /* sentinel */ },
79};
80
81static int exynos_irq_set_wake(struct irq_data *data, unsigned int state)
82{
83 const struct exynos_wkup_irq *wkup_irq;
84
85 if (soc_is_exynos5250())
86 wkup_irq = exynos5250_wkup_irq;
87 else
88 wkup_irq = exynos4_wkup_irq;
89
90 while (wkup_irq->mask) {
91 if (wkup_irq->hwirq == data->hwirq) {
92 if (!state)
93 exynos_irqwake_intmask |= wkup_irq->mask;
94 else
95 exynos_irqwake_intmask &= ~wkup_irq->mask;
96 return 0;
97 }
98 ++wkup_irq;
99 }
100
101 return -ENOENT;
102}
103
Leela Krishna Amudalad3af6972014-05-16 04:23:24 +0900104/**
105 * exynos_core_power_down : power down the specified cpu
106 * @cpu : the cpu to power down
107 *
108 * Power down the specified cpu. The sequence must be finished by a
109 * call to cpu_do_idle()
110 *
111 */
112void exynos_cpu_power_down(int cpu)
113{
114 __raw_writel(0, EXYNOS_ARM_CORE_CONFIGURATION(cpu));
115}
116
117/**
118 * exynos_cpu_power_up : power up the specified cpu
119 * @cpu : the cpu to power up
120 *
121 * Power up the specified cpu
122 */
123void exynos_cpu_power_up(int cpu)
124{
125 __raw_writel(S5P_CORE_LOCAL_PWR_EN,
126 EXYNOS_ARM_CORE_CONFIGURATION(cpu));
127}
128
129/**
130 * exynos_cpu_power_state : returns the power state of the cpu
131 * @cpu : the cpu to retrieve the power state from
132 *
133 */
134int exynos_cpu_power_state(int cpu)
135{
136 return (__raw_readl(EXYNOS_ARM_CORE_STATUS(cpu)) &
137 S5P_CORE_LOCAL_PWR_EN);
138}
139
Abhilash Kesavan096d21c2014-05-16 04:23:26 +0900140/**
141 * exynos_cluster_power_down : power down the specified cluster
142 * @cluster : the cluster to power down
143 */
144void exynos_cluster_power_down(int cluster)
145{
146 __raw_writel(0, EXYNOS_COMMON_CONFIGURATION(cluster));
147}
148
149/**
150 * exynos_cluster_power_up : power up the specified cluster
151 * @cluster : the cluster to power up
152 */
153void exynos_cluster_power_up(int cluster)
154{
155 __raw_writel(S5P_CORE_LOCAL_PWR_EN,
156 EXYNOS_COMMON_CONFIGURATION(cluster));
157}
158
159/**
160 * exynos_cluster_power_state : returns the power state of the cluster
161 * @cluster : the cluster to retrieve the power state from
162 *
163 */
164int exynos_cluster_power_state(int cluster)
165{
166 return (__raw_readl(EXYNOS_COMMON_STATUS(cluster)) &
167 S5P_CORE_LOCAL_PWR_EN);
168}
169
Daniel Lezcano3681baf2014-05-09 06:53:00 +0900170#define EXYNOS_BOOT_VECTOR_ADDR (samsung_rev() == EXYNOS4210_REV_1_1 ? \
171 S5P_INFORM7 : (samsung_rev() == EXYNOS4210_REV_1_0 ? \
Daniel Lezcanocd245f52014-05-26 04:50:34 +0900172 (sysram_base_addr + 0x24) : S5P_INFORM0))
Daniel Lezcano3681baf2014-05-09 06:53:00 +0900173#define EXYNOS_BOOT_VECTOR_FLAG (samsung_rev() == EXYNOS4210_REV_1_1 ? \
174 S5P_INFORM6 : (samsung_rev() == EXYNOS4210_REV_1_0 ? \
Daniel Lezcanocd245f52014-05-26 04:50:34 +0900175 (sysram_base_addr + 0x20) : S5P_INFORM1))
Daniel Lezcano3681baf2014-05-09 06:53:00 +0900176
Daniel Lezcanoe30b1542014-05-09 06:56:24 +0900177#define S5P_CHECK_AFTR 0xFCBA0D10
178#define S5P_CHECK_SLEEP 0x00000BAD
Daniel Lezcano3681baf2014-05-09 06:53:00 +0900179
180/* Ext-GIC nIRQ/nFIQ is the only wakeup source in AFTR */
181static void exynos_set_wakeupmask(long mask)
182{
183 __raw_writel(mask, S5P_WAKEUP_MASK);
184}
185
186static void exynos_cpu_set_boot_vector(long flags)
187{
188 __raw_writel(virt_to_phys(exynos_cpu_resume), EXYNOS_BOOT_VECTOR_ADDR);
189 __raw_writel(flags, EXYNOS_BOOT_VECTOR_FLAG);
190}
191
192void exynos_enter_aftr(void)
193{
194 exynos_set_wakeupmask(0x0000ff3e);
195 exynos_cpu_set_boot_vector(S5P_CHECK_AFTR);
196 /* Set value of power down register for aftr mode */
197 exynos_sys_powerdown_conf(SYS_AFTR);
198}
199
Jaecheol Leef4ba4b02011-07-18 19:25:03 +0900200/* For Cortex-A9 Diagnostic and Power control register */
201static unsigned int save_arm_register[2];
202
Daniel Lezcano309e08c2014-05-09 06:43:27 +0900203static void exynos_cpu_save_register(void)
204{
205 unsigned long tmp;
206
207 /* Save Power control register */
208 asm ("mrc p15, 0, %0, c15, c0, 0"
209 : "=r" (tmp) : : "cc");
210
211 save_arm_register[0] = tmp;
212
213 /* Save Diagnostic register */
214 asm ("mrc p15, 0, %0, c15, c0, 1"
215 : "=r" (tmp) : : "cc");
216
217 save_arm_register[1] = tmp;
218}
219
220static void exynos_cpu_restore_register(void)
221{
222 unsigned long tmp;
223
224 /* Restore Power control register */
225 tmp = save_arm_register[0];
226
227 asm volatile ("mcr p15, 0, %0, c15, c0, 0"
228 : : "r" (tmp)
229 : "cc");
230
231 /* Restore Diagnostic register */
232 tmp = save_arm_register[1];
233
234 asm volatile ("mcr p15, 0, %0, c15, c0, 1"
235 : : "r" (tmp)
236 : "cc");
237}
238
Jongpill Leec9347102012-02-17 09:49:54 +0900239static int exynos_cpu_suspend(unsigned long arg)
Jaecheol Lee16638952011-03-10 13:33:59 +0900240{
Jongpill Lee60e49ca2012-02-17 12:23:51 +0900241#ifdef CONFIG_CACHE_L2X0
Jaecheol Lee16638952011-03-10 13:33:59 +0900242 outer_flush_all();
Jongpill Lee60e49ca2012-02-17 12:23:51 +0900243#endif
Jaecheol Lee16638952011-03-10 13:33:59 +0900244
Abhilash Kesavan573e5bb2012-11-22 14:46:40 +0900245 if (soc_is_exynos5250())
246 flush_cache_all();
247
Jaecheol Lee16638952011-03-10 13:33:59 +0900248 /* issue the standby signal into the pm unit. */
249 cpu_do_idle();
250
Abhilash Kesavand3fcacf2013-01-25 10:40:19 -0800251 pr_info("Failed to suspend the system\n");
252 return 1; /* Aborting suspend */
Jaecheol Lee16638952011-03-10 13:33:59 +0900253}
254
Jongpill Leec9347102012-02-17 09:49:54 +0900255static void exynos_pm_prepare(void)
Jaecheol Lee16638952011-03-10 13:33:59 +0900256{
Jongpill Lee60e49ca2012-02-17 12:23:51 +0900257 unsigned int tmp;
Jaecheol Lee16638952011-03-10 13:33:59 +0900258
Tomasz Figad710aa32014-03-18 07:28:27 +0900259 /* Set wake-up mask registers */
260 __raw_writel(exynos_get_eint_wake_mask(), S5P_EINT_WAKEUP_MASK);
261 __raw_writel(exynos_irqwake_intmask & ~(1 << 31), S5P_WAKEUP_MASK);
262
Jongpill Leec9347102012-02-17 09:49:54 +0900263 s3c_pm_do_save(exynos_core_save, ARRAY_SIZE(exynos_core_save));
Jaecheol Lee16638952011-03-10 13:33:59 +0900264
Tomasz Figae11d9192014-02-14 08:16:01 +0900265 if (soc_is_exynos5250()) {
Abhilash Kesavan86ffb0e2012-11-20 18:20:45 +0900266 s3c_pm_do_save(exynos5_sys_save, ARRAY_SIZE(exynos5_sys_save));
Jongpill Lee60e49ca2012-02-17 12:23:51 +0900267 /* Disable USE_RETENTION of JPEG_MEM_OPTION */
268 tmp = __raw_readl(EXYNOS5_JPEG_MEM_OPTION);
269 tmp &= ~EXYNOS5_OPTION_USE_RETENTION;
270 __raw_writel(tmp, EXYNOS5_JPEG_MEM_OPTION);
271 }
Jaecheol Lee16638952011-03-10 13:33:59 +0900272
273 /* Set value of power down register for sleep mode */
274
Jongpill Lee7d44d2b2012-02-17 09:51:31 +0900275 exynos_sys_powerdown_conf(SYS_SLEEP);
Jaecheol Lee16638952011-03-10 13:33:59 +0900276 __raw_writel(S5P_CHECK_SLEEP, S5P_INFORM1);
277
278 /* ensure at least INFORM0 has the resume address */
279
Tomasz Figad710aa32014-03-18 07:28:27 +0900280 __raw_writel(virt_to_phys(exynos_cpu_resume), S5P_INFORM0);
Jaecheol Lee16638952011-03-10 13:33:59 +0900281}
282
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900283static void exynos_pm_central_suspend(void)
Jaecheol Lee12974e92011-07-18 19:21:41 +0900284{
285 unsigned long tmp;
286
287 /* Setting Central Sequence Register for power down mode */
Jaecheol Lee12974e92011-07-18 19:21:41 +0900288 tmp = __raw_readl(S5P_CENTRAL_SEQ_CONFIGURATION);
289 tmp &= ~S5P_CENTRAL_LOWPWR_CFG;
290 __raw_writel(tmp, S5P_CENTRAL_SEQ_CONFIGURATION);
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900291}
292
293static int exynos_pm_suspend(void)
294{
295 unsigned long tmp;
296
297 exynos_pm_central_suspend();
Jaecheol Lee12974e92011-07-18 19:21:41 +0900298
Jongpill Lee60e49ca2012-02-17 12:23:51 +0900299 /* Setting SEQ_OPTION register */
300
301 tmp = (S5P_USE_STANDBY_WFI0 | S5P_USE_STANDBY_WFE0);
302 __raw_writel(tmp, S5P_CENTRAL_SEQ_OPTION);
303
Abhilash Kesavanc0c3c352014-06-18 08:08:49 +0900304 if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
Daniel Lezcano309e08c2014-05-09 06:43:27 +0900305 exynos_cpu_save_register();
Jongpill Lee00a351f2011-09-27 07:26:04 +0900306
Jaecheol Lee12974e92011-07-18 19:21:41 +0900307 return 0;
308}
309
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900310static int exynos_pm_central_resume(void)
Jaecheol Lee16638952011-03-10 13:33:59 +0900311{
Jaecheol Leee240ab12011-07-18 19:21:34 +0900312 unsigned long tmp;
313
314 /*
315 * If PMU failed while entering sleep mode, WFI will be
316 * ignored by PMU and then exiting cpu_do_idle().
317 * S5P_CENTRAL_LOWPWR_CFG bit will not be set automatically
318 * in this situation.
319 */
320 tmp = __raw_readl(S5P_CENTRAL_SEQ_CONFIGURATION);
321 if (!(tmp & S5P_CENTRAL_LOWPWR_CFG)) {
322 tmp |= S5P_CENTRAL_LOWPWR_CFG;
323 __raw_writel(tmp, S5P_CENTRAL_SEQ_CONFIGURATION);
Abhilash Kesavand3fcacf2013-01-25 10:40:19 -0800324 /* clear the wakeup state register */
325 __raw_writel(0x0, S5P_WAKEUP_STAT);
Jaecheol Leee240ab12011-07-18 19:21:34 +0900326 /* No need to perform below restore code */
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900327 return -1;
Jaecheol Leee240ab12011-07-18 19:21:34 +0900328 }
Jaecheol Leef4ba4b02011-07-18 19:25:03 +0900329
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900330 return 0;
331}
332
333static void exynos_pm_resume(void)
334{
335 if (exynos_pm_central_resume())
336 goto early_wakeup;
337
Abhilash Kesavanc0c3c352014-06-18 08:08:49 +0900338 if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
Daniel Lezcano309e08c2014-05-09 06:43:27 +0900339 exynos_cpu_restore_register();
Jaecheol Leee240ab12011-07-18 19:21:34 +0900340
Jaecheol Lee16638952011-03-10 13:33:59 +0900341 /* For release retention */
342
343 __raw_writel((1 << 28), S5P_PAD_RET_MAUDIO_OPTION);
344 __raw_writel((1 << 28), S5P_PAD_RET_GPIO_OPTION);
345 __raw_writel((1 << 28), S5P_PAD_RET_UART_OPTION);
346 __raw_writel((1 << 28), S5P_PAD_RET_MMCA_OPTION);
347 __raw_writel((1 << 28), S5P_PAD_RET_MMCB_OPTION);
348 __raw_writel((1 << 28), S5P_PAD_RET_EBIA_OPTION);
349 __raw_writel((1 << 28), S5P_PAD_RET_EBIB_OPTION);
350
Abhilash Kesavan86ffb0e2012-11-20 18:20:45 +0900351 if (soc_is_exynos5250())
352 s3c_pm_do_restore(exynos5_sys_save,
353 ARRAY_SIZE(exynos5_sys_save));
354
Jongpill Leec9347102012-02-17 09:49:54 +0900355 s3c_pm_do_restore_core(exynos_core_save, ARRAY_SIZE(exynos_core_save));
Jaecheol Lee16638952011-03-10 13:33:59 +0900356
Abhilash Kesavanc0c3c352014-06-18 08:08:49 +0900357 if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
Jongpill Lee60e49ca2012-02-17 12:23:51 +0900358 scu_enable(S5P_VA_SCU);
Jaecheol Lee16638952011-03-10 13:33:59 +0900359
Jaecheol Leee240ab12011-07-18 19:21:34 +0900360early_wakeup:
Inderpal Singhebee8542012-11-22 14:46:27 +0900361
362 /* Clear SLEEP mode set in INFORM1 */
363 __raw_writel(0x0, S5P_INFORM1);
364
Jaecheol Leee240ab12011-07-18 19:21:34 +0900365 return;
Jaecheol Lee16638952011-03-10 13:33:59 +0900366}
367
Jongpill Leec9347102012-02-17 09:49:54 +0900368static struct syscore_ops exynos_pm_syscore_ops = {
369 .suspend = exynos_pm_suspend,
370 .resume = exynos_pm_resume,
Jaecheol Lee16638952011-03-10 13:33:59 +0900371};
372
Tomasz Figad710aa32014-03-18 07:28:27 +0900373/*
374 * Suspend Ops
375 */
376
377static int exynos_suspend_enter(suspend_state_t state)
378{
379 int ret;
380
381 s3c_pm_debug_init();
382
383 S3C_PMDBG("%s: suspending the system...\n", __func__);
384
385 S3C_PMDBG("%s: wakeup masks: %08x,%08x\n", __func__,
386 exynos_irqwake_intmask, exynos_get_eint_wake_mask());
387
388 if (exynos_irqwake_intmask == -1U
389 && exynos_get_eint_wake_mask() == -1U) {
390 pr_err("%s: No wake-up sources!\n", __func__);
391 pr_err("%s: Aborting sleep\n", __func__);
392 return -EINVAL;
393 }
394
395 s3c_pm_save_uarts();
396 exynos_pm_prepare();
397 flush_cache_all();
398 s3c_pm_check_store();
399
400 ret = cpu_suspend(0, exynos_cpu_suspend);
401 if (ret)
402 return ret;
403
404 s3c_pm_restore_uarts();
405
406 S3C_PMDBG("%s: wakeup stat: %08x\n", __func__,
407 __raw_readl(S5P_WAKEUP_STAT));
408
409 s3c_pm_check_restore();
410
411 S3C_PMDBG("%s: resuming the system...\n", __func__);
412
413 return 0;
414}
415
416static int exynos_suspend_prepare(void)
417{
418 s3c_pm_check_prepare();
419
420 return 0;
421}
422
423static void exynos_suspend_finish(void)
424{
425 s3c_pm_check_cleanup();
426}
427
428static const struct platform_suspend_ops exynos_suspend_ops = {
429 .enter = exynos_suspend_enter,
430 .prepare = exynos_suspend_prepare,
431 .finish = exynos_suspend_finish,
432 .valid = suspend_valid_only_mem,
433};
434
Daniel Lezcano85f9f902014-05-09 06:43:27 +0900435static int exynos_cpu_pm_notifier(struct notifier_block *self,
436 unsigned long cmd, void *v)
437{
438 int cpu = smp_processor_id();
439
440 switch (cmd) {
441 case CPU_PM_ENTER:
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900442 if (cpu == 0) {
443 exynos_pm_central_suspend();
Abhilash Kesavanc0c3c352014-06-18 08:08:49 +0900444 if (read_cpuid_part_number() == ARM_CPU_PART_CORTEX_A9)
445 exynos_cpu_save_register();
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900446 }
Daniel Lezcano85f9f902014-05-09 06:43:27 +0900447 break;
448
449 case CPU_PM_EXIT:
Daniel Lezcano795537d2014-05-09 06:50:16 +0900450 if (cpu == 0) {
Abhilash Kesavanc0c3c352014-06-18 08:08:49 +0900451 if (read_cpuid_part_number() ==
452 ARM_CPU_PART_CORTEX_A9) {
Daniel Lezcano795537d2014-05-09 06:50:16 +0900453 scu_enable(S5P_VA_SCU);
Abhilash Kesavanc0c3c352014-06-18 08:08:49 +0900454 exynos_cpu_restore_register();
455 }
Daniel Lezcano0ebc13e2014-05-09 06:55:12 +0900456 exynos_pm_central_resume();
Daniel Lezcano795537d2014-05-09 06:50:16 +0900457 }
Daniel Lezcano85f9f902014-05-09 06:43:27 +0900458 break;
459 }
460
461 return NOTIFY_OK;
462}
463
464static struct notifier_block exynos_cpu_pm_notifier_block = {
465 .notifier_call = exynos_cpu_pm_notifier,
466};
467
Tomasz Figa559ba232014-03-18 07:28:22 +0900468void __init exynos_pm_init(void)
Jaecheol Lee16638952011-03-10 13:33:59 +0900469{
Tomasz Figa559ba232014-03-18 07:28:22 +0900470 u32 tmp;
471
Daniel Lezcano85f9f902014-05-09 06:43:27 +0900472 cpu_pm_register_notifier(&exynos_cpu_pm_notifier_block);
473
Tomasz Figadd8ac692014-03-18 07:28:30 +0900474 /* Platform-specific GIC callback */
475 gic_arch_extn.irq_set_wake = exynos_irq_set_wake;
476
Tomasz Figa559ba232014-03-18 07:28:22 +0900477 /* All wakeup disable */
478 tmp = __raw_readl(S5P_WAKEUP_MASK);
479 tmp |= ((0xFF << 8) | (0x1F << 1));
480 __raw_writel(tmp, S5P_WAKEUP_MASK);
Kukjin Kime085cad2013-06-26 22:29:44 +0900481
Jongpill Leec9347102012-02-17 09:49:54 +0900482 register_syscore_ops(&exynos_pm_syscore_ops);
Tomasz Figad710aa32014-03-18 07:28:27 +0900483 suspend_set_ops(&exynos_suspend_ops);
Jaecheol Lee16638952011-03-10 13:33:59 +0900484}