Skip to content

Commit a11da7d

Browse files
committed
Merge tag 'pm-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC power management and clock changes from Olof Johansson: "This branch contains a largeish set of updates of power management and clock setup. The bulk of it is for OMAP/AM33xx platforms, but also a few around hotplug/suspend/resume on Exynos. It includes a split-up of some of the OMAP clock data into separate files which adds to the diffstat, but gross delta is fairly reasonable." * tag 'pm-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (60 commits) ARM: OMAP: Move plat-omap/dma-omap.h to include/linux/omap-dma.h ASoC: OMAP: mcbsp fixes for enabling ARM multiplatform support watchdog: OMAP: fixup for ARM multiplatform support ARM: EXYNOS: Add flush_cache_all in suspend finisher ARM: EXYNOS: Remove scu_enable from cpuidle ARM: EXYNOS: Fix soft reboot hang after suspend/resume ARM: EXYNOS: Add support for rtc wakeup ARM: EXYNOS: fix the hotplug for Cortex-A15 ARM: OMAP2+: omap_device: Correct resource handling for DT boot ARM: OMAP2+: hwmod: Add possibility to count hwmod resources based on type ARM: OMAP2+: hwmod: Add support for per hwmod/module context lost count ARM: OMAP2+: PRM: initialize some PRM functions early ARM: OMAP2+: voltage: fixup oscillator handling when CONFIG_PM=n ARM: OMAP4: USB: power down MUSB PHY during boot ARM: OMAP2+: clock: Cleanup !CONFIG_COMMON_CLK parts ARM: OMAP2xxx: clock: drop obsolete clock data ARM: OMAP2: clock: Cleanup !CONFIG_COMMON_CLK parts ARM: OMAP3+: DPLL: drop !CONFIG_COMMON_CLK sections ARM: AM33xx: clock: drop obsolete clock data ARM: OMAP3xxx: clk: drop obsolete clock data ...
2 parents b8edf84 + 9c7466b commit a11da7d

131 files changed

Lines changed: 13015 additions & 14135 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/mach-exynos/common.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ void __init exynos5_init_irq(void)
680680
* uses GIC instead of VIC.
681681
*/
682682
s5p_init_irq(NULL, 0);
683+
684+
gic_arch_extn.irq_set_wake = s3c_irq_wake;
683685
}
684686

685687
struct bus_type exynos_subsys = {

‎arch/arm/mach-exynos/cpuidle.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ static int exynos4_enter_core0_aftr(struct cpuidle_device *dev,
116116
cpu_suspend(0, idle_finisher);
117117

118118
#ifdef CONFIG_SMP
119-
scu_enable(S5P_VA_SCU);
119+
if (!soc_is_exynos5250())
120+
scu_enable(S5P_VA_SCU);
120121
#endif
121122
cpu_pm_exit();
122123

‎arch/arm/mach-exynos/hotplug.c‎

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
#include <asm/smp_plat.h>
2121

2222
#include <mach/regs-pmu.h>
23+
#include <plat/cpu.h>
2324

2425
#include "common.h"
2526

26-
static inline void cpu_enter_lowpower(void)
27+
static inline void cpu_enter_lowpower_a9(void)
2728
{
2829
unsigned int v;
2930

@@ -45,6 +46,35 @@ static inline void cpu_enter_lowpower(void)
4546
: "cc");
4647
}
4748

49+
static inline void cpu_enter_lowpower_a15(void)
50+
{
51+
unsigned int v;
52+
53+
asm volatile(
54+
" mrc p15, 0, %0, c1, c0, 0\n"
55+
" bic %0, %0, %1\n"
56+
" mcr p15, 0, %0, c1, c0, 0\n"
57+
: "=&r" (v)
58+
: "Ir" (CR_C)
59+
: "cc");
60+
61+
flush_cache_louis();
62+
63+
asm volatile(
64+
/*
65+
* Turn off coherency
66+
*/
67+
" mrc p15, 0, %0, c1, c0, 1\n"
68+
" bic %0, %0, %1\n"
69+
" mcr p15, 0, %0, c1, c0, 1\n"
70+
: "=&r" (v)
71+
: "Ir" (0x40)
72+
: "cc");
73+
74+
isb();
75+
dsb();
76+
}
77+
4878
static inline void cpu_leave_lowpower(void)
4979
{
5080
unsigned int v;
@@ -103,11 +133,20 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious)
103133
void __ref exynos_cpu_die(unsigned int cpu)
104134
{
105135
int spurious = 0;
136+
int primary_part = 0;
106137

107138
/*
108-
* we're ready for shutdown now, so do it
139+
* we're ready for shutdown now, so do it.
140+
* Exynos4 is A9 based while Exynos5 is A15; check the CPU part
141+
* number by reading the Main ID register and then perform the
142+
* appropriate sequence for entering low power.
109143
*/
110-
cpu_enter_lowpower();
144+
asm("mrc p15, 0, %0, c0, c0, 0" : "=r"(primary_part) : : "cc");
145+
if ((primary_part & 0xfff0) == 0xc0f0)
146+
cpu_enter_lowpower_a15();
147+
else
148+
cpu_enter_lowpower_a9();
149+
111150
platform_do_lowpower(cpu, &spurious);
112151

113152
/*

‎arch/arm/mach-exynos/pm.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ static int exynos_cpu_suspend(unsigned long arg)
8181
outer_flush_all();
8282
#endif
8383

84+
if (soc_is_exynos5250())
85+
flush_cache_all();
86+
8487
/* issue the standby signal into the pm unit. */
8588
cpu_do_idle();
8689

@@ -312,6 +315,10 @@ static void exynos_pm_resume(void)
312315
}
313316

314317
early_wakeup:
318+
319+
/* Clear SLEEP mode set in INFORM1 */
320+
__raw_writel(0x0, S5P_INFORM1);
321+
315322
return;
316323
}
317324

‎arch/arm/mach-omap1/board-h2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <asm/mach/map.h>
4040

4141
#include <mach/mux.h>
42-
#include <plat-omap/dma-omap.h>
42+
#include <linux/omap-dma.h>
4343
#include <mach/tc.h>
4444
#include <mach/irda.h>
4545
#include <linux/platform_data/keypad-omap.h>

‎arch/arm/mach-omap1/board-h3.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include <mach/mux.h>
4444
#include <mach/tc.h>
4545
#include <linux/platform_data/keypad-omap.h>
46-
#include <plat-omap/dma-omap.h>
46+
#include <linux/omap-dma.h>
4747
#include <mach/flash.h>
4848

4949
#include <mach/hardware.h>

‎arch/arm/mach-omap1/board-palmte.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <mach/flash.h>
3838
#include <mach/mux.h>
3939
#include <mach/tc.h>
40-
#include <plat-omap/dma-omap.h>
40+
#include <linux/omap-dma.h>
4141
#include <mach/irda.h>
4242
#include <linux/platform_data/keypad-omap.h>
4343

‎arch/arm/mach-omap1/board-palmtt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
#include <mach/flash.h>
3838
#include <mach/mux.h>
39-
#include <plat-omap/dma-omap.h>
39+
#include <linux/omap-dma.h>
4040
#include <mach/tc.h>
4141
#include <mach/irda.h>
4242
#include <linux/platform_data/keypad-omap.h>

‎arch/arm/mach-omap1/board-palmz71.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
#include <mach/flash.h>
4040
#include <mach/mux.h>
41-
#include <plat-omap/dma-omap.h>
41+
#include <linux/omap-dma.h>
4242
#include <mach/tc.h>
4343
#include <mach/irda.h>
4444
#include <linux/platform_data/keypad-omap.h>

‎arch/arm/mach-omap1/board-sx1.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
#include <mach/flash.h>
3838
#include <mach/mux.h>
39-
#include <plat-omap/dma-omap.h>
39+
#include <linux/omap-dma.h>
4040
#include <mach/irda.h>
4141
#include <mach/tc.h>
4242
#include <mach/board-sx1.h>

0 commit comments

Comments
 (0)