Lines Matching +full:addr +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0
27 * Sleep mode is just plain "sleep" instruction
28 * Sleep Self-Refresh mode is above plus RAM put in Self-Refresh
29 * Standby Self-Refresh mode is above plus stopped clocks
37 * U-standby mode is unsupported since it needs bootloader hacks
46 void sh_mobile_call_standby(unsigned long mode) in sh_mobile_call_standby() argument
56 mode, NULL); in sh_mobile_call_standby()
59 if (mode & SUSP_SH_MMU) in sh_mobile_call_standby()
62 /* Let assembly snippet in on-chip memory handle the rest */ in sh_mobile_call_standby()
63 standby_onchip_mem(mode, RAM_BASE); in sh_mobile_call_standby()
66 mode, NULL); in sh_mobile_call_standby()
88 sdp->addr.stbcr = 0xa4150020; /* STBCR */ in sh_mobile_register_self_refresh()
89 sdp->addr.bar = 0xa4150040; /* BAR */ in sh_mobile_register_self_refresh()
90 sdp->addr.pteh = 0xff000000; /* PTEH */ in sh_mobile_register_self_refresh()
91 sdp->addr.ptel = 0xff000004; /* PTEL */ in sh_mobile_register_self_refresh()
92 sdp->addr.ttb = 0xff000008; /* TTB */ in sh_mobile_register_self_refresh()
93 sdp->addr.tea = 0xff00000c; /* TEA */ in sh_mobile_register_self_refresh()
94 sdp->addr.mmucr = 0xff000010; /* MMUCR */ in sh_mobile_register_self_refresh()
95 sdp->addr.ptea = 0xff000034; /* PTEA */ in sh_mobile_register_self_refresh()
96 sdp->addr.pascr = 0xff000070; /* PASCR */ in sh_mobile_register_self_refresh()
97 sdp->addr.irmcr = 0xff000078; /* IRMCR */ in sh_mobile_register_self_refresh()
98 sdp->addr.ccr = 0xff00001c; /* CCR */ in sh_mobile_register_self_refresh()
99 sdp->addr.ramcr = 0xff000074; /* RAMCR */ in sh_mobile_register_self_refresh()
102 /* part 1: common code to enter sleep mode */ in sh_mobile_register_self_refresh()
103 n = &sh_mobile_sleep_enter_end - &sh_mobile_sleep_enter_start; in sh_mobile_register_self_refresh()
107 /* part 2: board specific code to enter self-refresh mode */ in sh_mobile_register_self_refresh()
108 n = pre_end - pre_start; in sh_mobile_register_self_refresh()
110 sdp->sf_pre = (unsigned long)vp; in sh_mobile_register_self_refresh()
113 /* part 3: board specific code to resume from self-refresh mode */ in sh_mobile_register_self_refresh()
114 n = post_end - post_start; in sh_mobile_register_self_refresh()
116 sdp->sf_post = (unsigned long)vp; in sh_mobile_register_self_refresh()
119 /* part 4: common code to resume from sleep mode */ in sh_mobile_register_self_refresh()
122 n = &sh_mobile_sleep_resume_end - &sh_mobile_sleep_resume_start; in sh_mobile_register_self_refresh()
124 sdp->resume = (unsigned long)vp; in sh_mobile_register_self_refresh()
132 return -ENXIO; in sh_pm_enter()