ARM: shmobile: r8a7740: add A4S pm domain support
[deliverable/linux.git] / arch / arm / mach-shmobile / pm-r8a7740.c
1 /*
2 * r8a7740 power management support
3 *
4 * Copyright (C) 2012 Renesas Solutions Corp.
5 * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
6 *
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
9 * for more details.
10 */
11 #include <mach/pm-rmobile.h>
12
13 #ifdef CONFIG_PM
14 static int r8a7740_pd_a4s_suspend(void)
15 {
16 /*
17 * The A4S domain contains the CPU core and therefore it should
18 * only be turned off if the CPU is in use.
19 */
20 return -EBUSY;
21 }
22
23 struct rmobile_pm_domain r8a7740_pd_a4s = {
24 .genpd.name = "A4S",
25 .bit_shift = 10,
26 .gov = &pm_domain_always_on_gov,
27 .no_debug = true,
28 .suspend = r8a7740_pd_a4s_suspend,
29 };
30 #endif /* CONFIG_PM */
This page took 0.031969 seconds and 5 git commands to generate.