static void s3c2416_cpu_suspend(void) { flush_cache_all(); /* enable wakeup sources regardless of battery state */ __raw_writel(S3C2443_PWRCFG_SLEEP, S3C2443_PWRCFG); /* set the mode as sleep, 2BED represents "Go to BED" */ __raw_writel(0x2BED, S3C2443_PWRMODE); s3c2412_sleep_enter(); }
static int s3c2416_cpu_suspend(unsigned long arg) { /* enable wakeup sources regardless of battery state */ __raw_writel(S3C2443_PWRCFG_SLEEP, S3C2443_PWRCFG); /* set the mode as sleep, 2BED represents "Go to BED" */ __raw_writel(0x2BED, S3C2443_PWRMODE); s3c2412_sleep_enter(); panic("sleep resumed to originator?"); }
static void s3c2412_cpu_suspend(void) { unsigned long tmp; /* set our standby method to sleep */ tmp = __raw_readl(S3C2412_PWRCFG); tmp |= S3C2412_PWRCFG_STANDBYWFI_SLEEP; __raw_writel(tmp, S3C2412_PWRCFG); s3c2412_sleep_enter(); }
static int s3c2412_cpu_suspend(unsigned long arg) { unsigned long tmp; /* set our standby method to sleep */ tmp = __raw_readl(S3C2412_PWRCFG); tmp |= S3C2412_PWRCFG_STANDBYWFI_SLEEP; __raw_writel(tmp, S3C2412_PWRCFG); s3c2412_sleep_enter(); panic("sleep resumed to originator?"); }
static void s3c2412_cpu_suspend(void) { unsigned long tmp; flush_cache_all(); tmp = __raw_readl(S3C2412_PWRCFG); tmp |= S3C2412_PWRCFG_STANDBYWFI_SLEEP; __raw_writel(tmp, S3C2412_PWRCFG); s3c2412_sleep_enter(); }
static int s3c2412_cpu_suspend(unsigned long arg) { unsigned long tmp; /* set our standby method to sleep */ tmp = __raw_readl(S3C2412_PWRCFG); tmp |= S3C2412_PWRCFG_STANDBYWFI_SLEEP; __raw_writel(tmp, S3C2412_PWRCFG); s3c2412_sleep_enter(); pr_info("Failed to suspend the system\n"); return 1; /* Aborting suspend */ }