diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-06-26 14:11:24 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-07-23 01:18:28 -0400 |
commit | 584ecbaa258de953a9bc34ce4b978b0033e54dc4 (patch) | |
tree | bc93f7fe8eed1b85d763b12e563eb4d2d719f74d /arch/blackfin/mach-common | |
parent | 429e257ea3bdd14e2401ee3f92d2846773294273 (diff) | |
download | blackbird-op-linux-584ecbaa258de953a9bc34ce4b978b0033e54dc4.tar.gz blackbird-op-linux-584ecbaa258de953a9bc34ce4b978b0033e54dc4.zip |
Blackfin: dpmc: relocate hibernate helper macros
This defines only get used in the hibernate code, so remove them from the
global dpmc header as no one else cares.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-common')
-rw-r--r-- | arch/blackfin/mach-common/dpmc_modes.S | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/dpmc_modes.S b/arch/blackfin/mach-common/dpmc_modes.S index bebb01961622..a36ca3c8da97 100644 --- a/arch/blackfin/mach-common/dpmc_modes.S +++ b/arch/blackfin/mach-common/dpmc_modes.S @@ -268,6 +268,30 @@ ENDPROC(_test_pll_locked) .section .text +#define PM_PUSH(x) \ + R0 = [P0 + (x - SRAM_BASE_ADDRESS)];\ + [--SP] = R0;\ + +#define PM_POP(x) \ + R0 = [SP++];\ + [P0 + (x - SRAM_BASE_ADDRESS)] = R0;\ + +#define PM_SYS_PUSH(x) \ + R0 = [P0 + (x - PLL_CTL)];\ + [--SP] = R0;\ + +#define PM_SYS_POP(x) \ + R0 = [SP++];\ + [P0 + (x - PLL_CTL)] = R0;\ + +#define PM_SYS_PUSH16(x) \ + R0 = w[P0 + (x - PLL_CTL)];\ + [--SP] = R0;\ + +#define PM_SYS_POP16(x) \ + R0 = [SP++];\ + w[P0 + (x - PLL_CTL)] = R0;\ + ENTRY(_do_hibernate) [--SP] = ( R7:0, P5:0 ); [--SP] = RETS; |