hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/mach-mmp/pm-mmp2.c
....@@ -1,8 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * MMP2 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 2012 Marvell International Ltd.
86 * All Rights Reserved
....@@ -19,7 +17,7 @@
1917 #include <linux/interrupt.h>
2018 #include <asm/mach-types.h>
2119
22
-#include "cputype.h"
20
+#include <linux/soc/mmp/cputype.h>
2321 #include "addr-map.h"
2422 #include "pm-mmp2.h"
2523 #include "regs-icu.h"
....@@ -125,19 +123,19 @@
125123 case POWER_MODE_SYS_SLEEP:
126124 apcr |= MPMU_PCR_PJ_SLPEN; /* set the SLPEN bit */
127125 apcr |= MPMU_PCR_PJ_VCTCXOSD; /* set VCTCXOSD */
128
- /* fall through */
126
+ fallthrough;
129127 case POWER_MODE_CHIP_SLEEP:
130128 apcr |= MPMU_PCR_PJ_SLPEN;
131
- /* fall through */
129
+ fallthrough;
132130 case POWER_MODE_APPS_SLEEP:
133131 apcr |= MPMU_PCR_PJ_APBSD; /* set APBSD */
134
- /* fall through */
132
+ fallthrough;
135133 case POWER_MODE_APPS_IDLE:
136134 apcr |= MPMU_PCR_PJ_AXISD; /* set AXISDD bit */
137135 apcr |= MPMU_PCR_PJ_DDRCORSD; /* set DDRCORSD bit */
138136 idle_cfg |= APMU_PJ_IDLE_CFG_PJ_PWRDWN; /* PJ power down */
139137 apcr |= MPMU_PCR_PJ_SPSD;
140
- /* fall through */
138
+ fallthrough;
141139 case POWER_MODE_CORE_EXTIDLE:
142140 idle_cfg |= APMU_PJ_IDLE_CFG_PJ_IDLE; /* set the IDLE bit */
143141 idle_cfg &= ~APMU_PJ_IDLE_CFG_ISO_MODE_CNTRL_MASK;