suspend.c (e5cbec617f1791256197ebaca8b04c0eb96fc574) suspend.c (6f024978e74bda616b27183adee029b65eb27032)
1/*
2 * Copyright (c) 2011-2014 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * EXYNOS - Suspend support
6 *
7 * Based on arch/arm/mach-s3c2410/pm.c
8 * Copyright (c) 2006 Simtec Electronics

--- 328 unchanged lines hidden (view full) ---

337{
338 /* Set value of power down register for sleep mode */
339 exynos_sys_powerdown_conf(SYS_SLEEP);
340 pmu_raw_writel(S5P_CHECK_SLEEP, S5P_INFORM1);
341}
342
343static void exynos_pm_prepare(void)
344{
1/*
2 * Copyright (c) 2011-2014 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * EXYNOS - Suspend support
6 *
7 * Based on arch/arm/mach-s3c2410/pm.c
8 * Copyright (c) 2006 Simtec Electronics

--- 328 unchanged lines hidden (view full) ---

337{
338 /* Set value of power down register for sleep mode */
339 exynos_sys_powerdown_conf(SYS_SLEEP);
340 pmu_raw_writel(S5P_CHECK_SLEEP, S5P_INFORM1);
341}
342
343static void exynos_pm_prepare(void)
344{
345 exynos_set_delayed_reset_assertion(false);
346
345 /* Set wake-up mask registers */
346 exynos_pm_set_wakeup_mask();
347
348 s3c_pm_do_save(exynos_core_save, ARRAY_SIZE(exynos_core_save));
349
350 exynos_pm_enter_sleep_mode();
351
352 /* ensure at least INFORM0 has the resume address */

--- 124 unchanged lines hidden (view full) ---

477 if (call_firmware_op(resume) == -ENOSYS
478 && cpuid == ARM_CPU_PART_CORTEX_A9)
479 exynos_cpu_restore_register();
480
481early_wakeup:
482
483 /* Clear SLEEP mode set in INFORM1 */
484 pmu_raw_writel(0x0, S5P_INFORM1);
347 /* Set wake-up mask registers */
348 exynos_pm_set_wakeup_mask();
349
350 s3c_pm_do_save(exynos_core_save, ARRAY_SIZE(exynos_core_save));
351
352 exynos_pm_enter_sleep_mode();
353
354 /* ensure at least INFORM0 has the resume address */

--- 124 unchanged lines hidden (view full) ---

479 if (call_firmware_op(resume) == -ENOSYS
480 && cpuid == ARM_CPU_PART_CORTEX_A9)
481 exynos_cpu_restore_register();
482
483early_wakeup:
484
485 /* Clear SLEEP mode set in INFORM1 */
486 pmu_raw_writel(0x0, S5P_INFORM1);
487 exynos_set_delayed_reset_assertion(true);
485}
486
487static void exynos3250_pm_resume(void)
488{
489 u32 cpuid = read_cpuid_part();
490
491 if (exynos_pm_central_resume())
492 goto early_wakeup;

--- 251 unchanged lines hidden ---
488}
489
490static void exynos3250_pm_resume(void)
491{
492 u32 cpuid = read_cpuid_part();
493
494 if (exynos_pm_central_resume())
495 goto early_wakeup;

--- 251 unchanged lines hidden ---