Skip to content

Commit e42cbbe

Browse files
claudiubezneanoglitch
authored andcommitted
ARM: at91: pm: group constants and addresses loading
Group constants and addresses loading. This commit prepares the field for the next one. Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ef162ac commit e42cbbe

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

arch/arm/mach-at91/pm_suspend.S

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,15 @@ ENTRY(at91_pm_suspend_in_sram)
10141014
mov tmp1, #0
10151015
mcr p15, 0, tmp1, c7, c10, 4
10161016

1017+
ldr tmp1, [r0, #PM_DATA_PMC_MCKR_OFFSET]
1018+
str tmp1, .mckr_offset
1019+
ldr tmp1, [r0, #PM_DATA_PMC_VERSION]
1020+
str tmp1, .pmc_version
1021+
ldr tmp1, [r0, #PM_DATA_MEMCTRL]
1022+
str tmp1, .memtype
1023+
ldr tmp1, [r0, #PM_DATA_MODE]
1024+
str tmp1, .pm_mode
1025+
10171026
ldr tmp1, [r0, #PM_DATA_PMC]
10181027
str tmp1, .pmc_base
10191028
ldr tmp1, [r0, #PM_DATA_RAMC0]
@@ -1022,14 +1031,6 @@ ENTRY(at91_pm_suspend_in_sram)
10221031
str tmp1, .sramc1_base
10231032
ldr tmp1, [r0, #PM_DATA_RAMC_PHY]
10241033
str tmp1, .sramc_phy_base
1025-
ldr tmp1, [r0, #PM_DATA_MEMCTRL]
1026-
str tmp1, .memtype
1027-
ldr tmp1, [r0, #PM_DATA_MODE]
1028-
str tmp1, .pm_mode
1029-
ldr tmp1, [r0, #PM_DATA_PMC_MCKR_OFFSET]
1030-
str tmp1, .mckr_offset
1031-
ldr tmp1, [r0, #PM_DATA_PMC_VERSION]
1032-
str tmp1, .pmc_version
10331034
/* Both ldrne below are here to preload their address in the TLB */
10341035
ldr tmp1, [r0, #PM_DATA_SHDWC]
10351036
str tmp1, .shdwc

0 commit comments

Comments
 (0)