Commit 584ecbaa authored by Mike Frysinger's avatar Mike Frysinger

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: default avatarMike Frysinger <vapier@gentoo.org>
parent 429e257e
...@@ -134,32 +134,6 @@ struct bfin_dpmc_platform_data { ...@@ -134,32 +134,6 @@ struct bfin_dpmc_platform_data {
unsigned short vr_settling_time; /* in us */ unsigned short vr_settling_time; /* in us */
}; };
#else
#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;\
#endif #endif
#endif /*_BLACKFIN_DPMC_H_*/ #endif /*_BLACKFIN_DPMC_H_*/
...@@ -268,6 +268,30 @@ ENDPROC(_test_pll_locked) ...@@ -268,6 +268,30 @@ ENDPROC(_test_pll_locked)
.section .text .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) ENTRY(_do_hibernate)
[--SP] = ( R7:0, P5:0 ); [--SP] = ( R7:0, P5:0 );
[--SP] = RETS; [--SP] = RETS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment