hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-mmp/pm-pxa910.c
....@@ -1,8 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 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
64 *
75 * (C) Copyright 2009 Marvell International Ltd.
86 * All Rights Reserved
....@@ -20,7 +18,7 @@
2018 #include <asm/mach-types.h>
2119 #include <asm/outercache.h>
2220
23
-#include "cputype.h"
21
+#include <linux/soc/mmp/cputype.h>
2422 #include "addr-map.h"
2523 #include "pm-pxa910.h"
2624 #include "regs-icu.h"
....@@ -147,23 +145,23 @@
147145 case POWER_MODE_UDR:
148146 /* only shutdown APB in UDR */
149147 apcr |= MPMU_APCR_STBYEN | MPMU_APCR_APBSD;
150
- /* fall through */
148
+ fallthrough;
151149 case POWER_MODE_SYS_SLEEP:
152150 apcr |= MPMU_APCR_SLPEN; /* set the SLPEN bit */
153151 apcr |= MPMU_APCR_VCTCXOSD; /* set VCTCXOSD */
154
- /* fall through */
152
+ fallthrough;
155153 case POWER_MODE_APPS_SLEEP:
156154 apcr |= MPMU_APCR_DDRCORSD; /* set DDRCORSD */
157
- /* fall through */
155
+ fallthrough;
158156 case POWER_MODE_APPS_IDLE:
159157 apcr |= MPMU_APCR_AXISD; /* set AXISDD bit */
160
- /* fall through */
158
+ fallthrough;
161159 case POWER_MODE_CORE_EXTIDLE:
162160 idle_cfg |= APMU_MOH_IDLE_CFG_MOH_IDLE;
163161 idle_cfg |= APMU_MOH_IDLE_CFG_MOH_PWRDWN;
164162 idle_cfg |= APMU_MOH_IDLE_CFG_MOH_PWR_SW(3)
165163 | APMU_MOH_IDLE_CFG_MOH_L2_PWR_SW(3);
166
- /* fall through */
164
+ fallthrough;
167165 case POWER_MODE_CORE_INTIDLE:
168166 break;
169167 }