Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;
ENTRY(_hibernate_mode)
[--SP] = ( R7:0, P5:0 );
ENTRY(_hibernate_mode)
[--SP] = ( R7:0, P5:0 );
IDLE;
.Lforever:
jump .Lforever;
IDLE;
.Lforever:
jump .Lforever;
+ENDPROC(_hibernate_mode)
ENTRY(_deep_sleep)
[--SP] = ( R7:0, P5:0 );
ENTRY(_deep_sleep)
[--SP] = ( R7:0, P5:0 );
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;
ENTRY(_sleep_deeper)
[--SP] = ( R7:0, P5:0 );
ENTRY(_sleep_deeper)
[--SP] = ( R7:0, P5:0 );
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;
ENTRY(_set_dram_srfs)
/* set the dram to self refresh mode */
ENTRY(_set_dram_srfs)
/* set the dram to self refresh mode */
ENTRY(_unset_dram_srfs)
/* set the dram out of self refresh mode */
ENTRY(_unset_dram_srfs)
/* set the dram out of self refresh mode */
+ENDPROC(_unset_dram_srfs)
ENTRY(_set_sic_iwr)
#if defined(CONFIG_BF54x) || defined(CONFIG_BF52x) || defined(CONFIG_BF561)
ENTRY(_set_sic_iwr)
#if defined(CONFIG_BF54x) || defined(CONFIG_BF52x) || defined(CONFIG_BF561)
ENTRY(_set_rtc_istat)
#ifndef CONFIG_BF561
ENTRY(_set_rtc_istat)
#ifndef CONFIG_BF561
ENTRY(_test_pll_locked)
P0.H = hi(PLL_STAT);
ENTRY(_test_pll_locked)
P0.H = hi(PLL_STAT);
CC = BITTST(R0,5);
IF !CC JUMP 1b;
RTS;
CC = BITTST(R0,5);
IF !CC JUMP 1b;
RTS;
+ENDPROC(_test_pll_locked)
ENTRY(_do_hibernate)
[--SP] = ( R7:0, P5:0 );
[--SP] = RETS;
ENTRY(_do_hibernate)
[--SP] = ( R7:0, P5:0 );
[--SP] = RETS;
R0.H = 0xDEAD; /* Hibernate Magic */
R0.L = 0xBEEF;
[P0++] = R0; /* Store Hibernate Magic */
R0.H = 0xDEAD; /* Hibernate Magic */
R0.L = 0xBEEF;
[P0++] = R0; /* Store Hibernate Magic */
- R0.H = pm_resume_here;
- R0.L = pm_resume_here;
+ R0.H = .Lpm_resume_here;
+ R0.L = .Lpm_resume_here;
[P0++] = R0; /* Save Return Address */
[P0++] = SP; /* Save Stack Pointer */
P0.H = _hibernate_mode;
[P0++] = R0; /* Save Return Address */
[P0++] = SP; /* Save Stack Pointer */
P0.H = _hibernate_mode;
R0 = R2;
call (P0); /* Goodbye */
R0 = R2;
call (P0); /* Goodbye */
/* Restore Core Registers */
SEQSTAT = [sp++];
/* Restore Core Registers */
SEQSTAT = [sp++];
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;
RETS = [SP++];
( R7:0, P5:0 ) = [SP++];
RTS;