コード例 #1
0
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();
}
コード例 #2
0
ファイル: pm.c プロジェクト: 303750856/linux-3.1
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?");
}
コード例 #3
0
ファイル: pm.c プロジェクト: HappyASR/LinuxKernel2.6.27
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();
}
コード例 #4
0
ファイル: pm.c プロジェクト: 303750856/linux-3.1
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?");
}
コード例 #5
0
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();
}
コード例 #6
0
ファイル: pm-s3c2412.c プロジェクト: atixing/linux
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 */
}