Lines Matching +full:sync +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0 */
9 #define SC_MODE_EN (1<<31)
10 #define SC_CKE (1<<30)
11 #define SC_REF_EN (1<<28)
12 #define SC_SOFT_PRE (1<<1)
19 #define CDM_SDRAM (1<<3)
30 sync; \
39 /* ---------------------------------------------------------------------- */
40 /* low-power mode with help of M68HLC908QT1 */
48 /* setup wakeup address for u-boot at physical location 0x0 */
58 * 0xf0 (0xe0->0x100 gets overwritten when BDI connected;
60 * WARNING: self-refresh doesn't seem to work when BDI2000 is connected,
78 li r3, (sram_code_end - sram_code)/4
82 1:
87 bdnz 1b
97 sync; isync;
99 sync; isync;
114 sync
118 sync
123 sync
126 li r12, 1
130 * mode_en must not be set when enabling self-refresh
131 * send AR with CKE low (self-refresh)
136 sync
139 li r12, 1
147 sync
150 li r12, 1
157 sync
160 sync
162 sync
164 sync
173 sync
176 1:
177 b 1b
181 udelay: /* r11 - tb_ticks_per_usec, r12 - usecs, overwrites r13 */
185 1:
188 blt 1b
214 sync
224 sync; isync;
230 sync; isync;
232 sync; isync;
238 sync
254 /* ---------------------------------------------------------------------- */
260 SAVE_SPRN(DBAT##n##U, addr+1); \
270 SAVE_SR(n+1, addr+1); \
278 stmw r11, 0xc(r4) /* 0xc -> 0x5f, (0x18*4-1) */
292 SAVE_BAT(1, 0x24)
325 LOAD_SPRN(DBAT##n##U, addr+1); \
335 LOAD_SR(n+1, addr+1); \
354 * 0x18 - HID0
355 * 0x19 - HID1
356 * 0x1a - HID2
357 * 0x1b - MSR
358 * 0x1c - LR
359 * 0x1d - reserved by 0xf0 (BDI2000)
366 LOAD_BAT(1, 0x24)
411 1:
414 bdnz 1b