Kuninori Morimoto | 8459293 | 2012-07-05 01:25:58 -0700 | [diff] [blame^] | 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 */ |