2 * r8a7740 power management support
4 * Copyright (C) 2012 Renesas Solutions Corp.
5 * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
11 #include <linux/console.h>
12 #include <mach/pm-rmobile.h>
15 static int r8a7740_pd_a4s_suspend(void)
18 * The A4S domain contains the CPU core and therefore it should
19 * only be turned off if the CPU is in use.
24 struct rmobile_pm_domain r8a7740_pd_a4s = {
27 .gov = &pm_domain_always_on_gov,
29 .suspend = r8a7740_pd_a4s_suspend,
32 static int r8a7740_pd_a3sp_suspend(void)
35 * Serial consoles make use of SCIF hardware located in A3SP,
36 * keep such power domain on if "no_console_suspend" is set.
38 return console_suspend_enabled ? 0 : -EBUSY;
41 struct rmobile_pm_domain r8a7740_pd_a3sp = {
44 .gov = &pm_domain_always_on_gov,
46 .suspend = r8a7740_pd_a3sp_suspend,
49 struct rmobile_pm_domain r8a7740_pd_a4lc = {
54 #endif /* CONFIG_PM */