.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * PXA910 Power Management Routines |
---|
3 | | - * |
---|
4 | | - * This software program is licensed subject to the GNU General Public License |
---|
5 | | - * (GPL).Version 2,June 1991, available at http://www.fsf.org/copyleft/gpl.html |
---|
6 | 4 | * |
---|
7 | 5 | * (C) Copyright 2009 Marvell International Ltd. |
---|
8 | 6 | * All Rights Reserved |
---|
.. | .. |
---|
20 | 18 | #include <asm/mach-types.h> |
---|
21 | 19 | #include <asm/outercache.h> |
---|
22 | 20 | |
---|
23 | | -#include "cputype.h" |
---|
| 21 | +#include <linux/soc/mmp/cputype.h> |
---|
24 | 22 | #include "addr-map.h" |
---|
25 | 23 | #include "pm-pxa910.h" |
---|
26 | 24 | #include "regs-icu.h" |
---|
.. | .. |
---|
147 | 145 | case POWER_MODE_UDR: |
---|
148 | 146 | /* only shutdown APB in UDR */ |
---|
149 | 147 | apcr |= MPMU_APCR_STBYEN | MPMU_APCR_APBSD; |
---|
150 | | - /* fall through */ |
---|
| 148 | + fallthrough; |
---|
151 | 149 | case POWER_MODE_SYS_SLEEP: |
---|
152 | 150 | apcr |= MPMU_APCR_SLPEN; /* set the SLPEN bit */ |
---|
153 | 151 | apcr |= MPMU_APCR_VCTCXOSD; /* set VCTCXOSD */ |
---|
154 | | - /* fall through */ |
---|
| 152 | + fallthrough; |
---|
155 | 153 | case POWER_MODE_APPS_SLEEP: |
---|
156 | 154 | apcr |= MPMU_APCR_DDRCORSD; /* set DDRCORSD */ |
---|
157 | | - /* fall through */ |
---|
| 155 | + fallthrough; |
---|
158 | 156 | case POWER_MODE_APPS_IDLE: |
---|
159 | 157 | apcr |= MPMU_APCR_AXISD; /* set AXISDD bit */ |
---|
160 | | - /* fall through */ |
---|
| 158 | + fallthrough; |
---|
161 | 159 | case POWER_MODE_CORE_EXTIDLE: |
---|
162 | 160 | idle_cfg |= APMU_MOH_IDLE_CFG_MOH_IDLE; |
---|
163 | 161 | idle_cfg |= APMU_MOH_IDLE_CFG_MOH_PWRDWN; |
---|
164 | 162 | idle_cfg |= APMU_MOH_IDLE_CFG_MOH_PWR_SW(3) |
---|
165 | 163 | | APMU_MOH_IDLE_CFG_MOH_L2_PWR_SW(3); |
---|
166 | | - /* fall through */ |
---|
| 164 | + fallthrough; |
---|
167 | 165 | case POWER_MODE_CORE_INTIDLE: |
---|
168 | 166 | break; |
---|
169 | 167 | } |
---|