Skip to content

Commit da4d0b2

Browse files
committed
Merge tag 'samsung-soc-5.3' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into arm/soc
Samsung mach/soc changes for v5.3 Only cleanups and minor fixes. * tag 'samsung-soc-5.3' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: ARM: exynos: Cleanup cppcheck shifting warning ARM: exynos: Only build MCPM support if used ARM: exynos: Make ARCH_EXYNOS3 a default option Signed-off-by: Olof Johansson <[email protected]>
2 parents a7d8814 + a55e040 commit da4d0b2

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

arch/arm/mach-exynos/Kconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ config S5P_DEV_MFC
4949

5050
config ARCH_EXYNOS3
5151
bool "SAMSUNG EXYNOS3"
52+
default y
5253
select ARM_CPU_SUSPEND if PM
5354
help
5455
Samsung EXYNOS3 (Cortex-A7) SoC based systems
@@ -106,7 +107,7 @@ config SOC_EXYNOS5420
106107
bool "SAMSUNG EXYNOS5420"
107108
default y
108109
depends on ARCH_EXYNOS5
109-
select MCPM if SMP
110+
select EXYNOS_MCPM if SMP
110111
select ARM_CCI400_PORT_CTRL
111112
select ARM_CPU_SUSPEND
112113

@@ -115,6 +116,10 @@ config SOC_EXYNOS5800
115116
default y
116117
depends on SOC_EXYNOS5420
117118

119+
config EXYNOS_MCPM
120+
bool
121+
select MCPM
122+
118123
config EXYNOS_CPU_SUSPEND
119124
bool
120125
select ARM_CPU_SUSPEND

arch/arm/mach-exynos/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ obj-$(CONFIG_PM_SLEEP) += suspend.o
1414

1515
obj-$(CONFIG_SMP) += platsmp.o headsmp.o
1616

17-
obj-$(CONFIG_MCPM) += mcpm-exynos.o
17+
obj-$(CONFIG_EXYNOS_MCPM) += mcpm-exynos.o
1818
CFLAGS_mcpm-exynos.o += -march=armv7-a

arch/arm/mach-exynos/suspend.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static int exynos5420_cpu_suspend(unsigned long arg)
268268
unsigned int cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
269269
unsigned int cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
270270

271-
if (IS_ENABLED(CONFIG_MCPM)) {
271+
if (IS_ENABLED(CONFIG_EXYNOS_MCPM)) {
272272
mcpm_set_entry_vector(cpu, cluster, exynos_cpu_resume);
273273
mcpm_cpu_suspend();
274274
}
@@ -285,7 +285,7 @@ static void exynos_pm_set_wakeup_mask(void)
285285
* Set wake-up mask registers
286286
* EXYNOS_EINT_WAKEUP_MASK is set by pinctrl driver in late suspend.
287287
*/
288-
pmu_raw_writel(exynos_irqwake_intmask & ~(1 << 31), S5P_WAKEUP_MASK);
288+
pmu_raw_writel(exynos_irqwake_intmask & ~BIT(31), S5P_WAKEUP_MASK);
289289
}
290290

291291
static void exynos_pm_enter_sleep_mode(void)
@@ -351,7 +351,7 @@ static void exynos5420_pm_prepare(void)
351351
exynos_pm_enter_sleep_mode();
352352

353353
/* ensure at least INFORM0 has the resume address */
354-
if (IS_ENABLED(CONFIG_MCPM))
354+
if (IS_ENABLED(CONFIG_EXYNOS_MCPM))
355355
pmu_raw_writel(__pa_symbol(mcpm_entry_point), S5P_INFORM0);
356356

357357
tmp = pmu_raw_readl(EXYNOS_L2_OPTION(0));
@@ -455,7 +455,7 @@ static void exynos5420_prepare_pm_resume(void)
455455
mpidr = read_cpuid_mpidr();
456456
cluster = MPIDR_AFFINITY_LEVEL(mpidr, 1);
457457

458-
if (IS_ENABLED(CONFIG_MCPM))
458+
if (IS_ENABLED(CONFIG_EXYNOS_MCPM))
459459
WARN_ON(mcpm_cpu_powered_up());
460460

461461
if (IS_ENABLED(CONFIG_HW_PERF_EVENTS) && cluster != 0) {

0 commit comments

Comments
 (0)