1 From 8a7a4cf3860910e460e2c3ca467b1dabf7ce9827 Mon Sep 17 00:00:00 2001
2 From: Claudiu Beznea <claudiu.beznea@microchip.com>
3 Date: Thu, 15 Apr 2021 13:49:52 +0300
4 Subject: [PATCH 202/247] ARM: at91: pm: use r7 instead of tmp1
6 Use r7 instead of tmp1 in macros. This prepares the filed for
9 Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
10 Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
11 Link: https://lore.kernel.org/r/20210415105010.569620-7-claudiu.beznea@microchip.com
13 arch/arm/mach-at91/pm_suspend.S | 18 ++++++++++++------
14 1 file changed, 12 insertions(+), 6 deletions(-)
16 --- a/arch/arm/mach-at91/pm_suspend.S
17 +++ b/arch/arm/mach-at91/pm_suspend.S
18 @@ -31,30 +31,36 @@ tmp3 .req r6
21 * Wait until master oscillator has stabilized.
23 + * Side effects: overwrites r7
26 -1: ldr tmp1, [pmc, #AT91_PMC_SR]
27 - tst tmp1, #AT91_PMC_MOSCS
28 +1: ldr r7, [pmc, #AT91_PMC_SR]
29 + tst r7, #AT91_PMC_MOSCS
34 * Wait for main oscillator selection is done
36 + * Side effects: overwrites r7
39 -1: ldr tmp1, [pmc, #AT91_PMC_SR]
40 - tst tmp1, #AT91_PMC_MOSCSELS
41 +1: ldr r7, [pmc, #AT91_PMC_SR]
42 + tst r7, #AT91_PMC_MOSCSELS
47 * Put the processor to enter the idle state
49 + * Side effects: overwrites r7
53 #if defined(CONFIG_CPU_V7)
54 - mov tmp1, #AT91_PMC_PCK
55 - str tmp1, [pmc, #AT91_PMC_SCDR]
56 + mov r7, #AT91_PMC_PCK
57 + str r7, [pmc, #AT91_PMC_SCDR]