Praveen Chidambaram | 42da9d2 | 2012-03-30 12:16:34 -0600 | [diff] [blame] | 1 | /* Copyright (c) 2012, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #include "pm.h" |
| 15 | |
| 16 | struct msm_pm_platform_data msm_pm_sleep_modes[] = { |
| 17 | [MSM_PM_MODE(0, MSM_PM_SLEEP_MODE_POWER_COLLAPSE)] = { |
| 18 | .idle_supported = 1, |
| 19 | .suspend_supported = 1, |
| 20 | .idle_enabled = 0, |
| 21 | .suspend_enabled = 0, |
| 22 | }, |
| 23 | |
| 24 | [MSM_PM_MODE(0, MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE)] = { |
| 25 | .idle_supported = 1, |
| 26 | .suspend_supported = 1, |
| 27 | .idle_enabled = 0, |
| 28 | .suspend_enabled = 0, |
| 29 | }, |
| 30 | |
Praveen Chidambaram | d3d844d | 2012-04-24 09:47:38 -0600 | [diff] [blame] | 31 | [MSM_PM_MODE(0, MSM_PM_SLEEP_MODE_RETENTION)] = { |
| 32 | .idle_supported = 1, |
| 33 | .suspend_supported = 1, |
| 34 | .idle_enabled = 0, |
| 35 | .suspend_enabled = 0, |
| 36 | }, |
| 37 | |
Praveen Chidambaram | 42da9d2 | 2012-03-30 12:16:34 -0600 | [diff] [blame] | 38 | [MSM_PM_MODE(0, MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT)] = { |
| 39 | .idle_supported = 1, |
| 40 | .suspend_supported = 1, |
| 41 | .idle_enabled = 1, |
| 42 | .suspend_enabled = 1, |
| 43 | }, |
| 44 | |
| 45 | [MSM_PM_MODE(1, MSM_PM_SLEEP_MODE_POWER_COLLAPSE)] = { |
| 46 | .idle_supported = 0, |
| 47 | .suspend_supported = 1, |
| 48 | .idle_enabled = 0, |
| 49 | .suspend_enabled = 0, |
| 50 | }, |
| 51 | |
| 52 | [MSM_PM_MODE(1, MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE)] = { |
| 53 | .idle_supported = 1, |
| 54 | .suspend_supported = 1, |
| 55 | .idle_enabled = 0, |
| 56 | .suspend_enabled = 0, |
| 57 | }, |
| 58 | |
Praveen Chidambaram | d3d844d | 2012-04-24 09:47:38 -0600 | [diff] [blame] | 59 | [MSM_PM_MODE(1, MSM_PM_SLEEP_MODE_RETENTION)] = { |
| 60 | .idle_supported = 1, |
| 61 | .suspend_supported = 1, |
| 62 | .idle_enabled = 0, |
| 63 | .suspend_enabled = 0, |
| 64 | }, |
| 65 | |
Praveen Chidambaram | 42da9d2 | 2012-03-30 12:16:34 -0600 | [diff] [blame] | 66 | [MSM_PM_MODE(1, MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT)] = { |
| 67 | .idle_supported = 1, |
| 68 | .suspend_supported = 0, |
| 69 | .idle_enabled = 1, |
| 70 | .suspend_enabled = 0, |
| 71 | }, |
| 72 | |
| 73 | [MSM_PM_MODE(2, MSM_PM_SLEEP_MODE_POWER_COLLAPSE)] = { |
| 74 | .idle_supported = 0, |
| 75 | .suspend_supported = 1, |
| 76 | .idle_enabled = 0, |
| 77 | .suspend_enabled = 0, |
| 78 | }, |
| 79 | |
| 80 | [MSM_PM_MODE(2, MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE)] = { |
| 81 | .idle_supported = 1, |
| 82 | .suspend_supported = 1, |
| 83 | .idle_enabled = 0, |
| 84 | .suspend_enabled = 0, |
| 85 | }, |
| 86 | |
Praveen Chidambaram | d3d844d | 2012-04-24 09:47:38 -0600 | [diff] [blame] | 87 | [MSM_PM_MODE(2, MSM_PM_SLEEP_MODE_RETENTION)] = { |
| 88 | .idle_supported = 1, |
| 89 | .suspend_supported = 1, |
| 90 | .idle_enabled = 0, |
| 91 | .suspend_enabled = 0, |
| 92 | }, |
| 93 | |
Praveen Chidambaram | 42da9d2 | 2012-03-30 12:16:34 -0600 | [diff] [blame] | 94 | [MSM_PM_MODE(2, MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT)] = { |
| 95 | .idle_supported = 1, |
| 96 | .suspend_supported = 0, |
| 97 | .idle_enabled = 1, |
| 98 | .suspend_enabled = 0, |
| 99 | }, |
| 100 | |
| 101 | [MSM_PM_MODE(3, MSM_PM_SLEEP_MODE_POWER_COLLAPSE)] = { |
| 102 | .idle_supported = 0, |
| 103 | .suspend_supported = 1, |
| 104 | .idle_enabled = 0, |
| 105 | .suspend_enabled = 0, |
| 106 | }, |
| 107 | |
| 108 | [MSM_PM_MODE(3, MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE)] = { |
| 109 | .idle_supported = 1, |
| 110 | .suspend_supported = 1, |
| 111 | .idle_enabled = 0, |
| 112 | .suspend_enabled = 0, |
| 113 | }, |
| 114 | |
Praveen Chidambaram | d3d844d | 2012-04-24 09:47:38 -0600 | [diff] [blame] | 115 | [MSM_PM_MODE(3, MSM_PM_SLEEP_MODE_RETENTION)] = { |
| 116 | .idle_supported = 1, |
| 117 | .suspend_supported = 1, |
| 118 | .idle_enabled = 0, |
| 119 | .suspend_enabled = 0, |
| 120 | }, |
| 121 | |
Praveen Chidambaram | 42da9d2 | 2012-03-30 12:16:34 -0600 | [diff] [blame] | 122 | [MSM_PM_MODE(3, MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT)] = { |
| 123 | .idle_supported = 1, |
| 124 | .suspend_supported = 0, |
| 125 | .idle_enabled = 1, |
| 126 | .suspend_enabled = 0, |
| 127 | }, |
| 128 | }; |