Lines Matching +full:sync +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0 */
11 #define SC_MODE_EN (1<<31)
12 #define SC_CKE (1<<30)
13 #define SC_REF_EN (1<<28)
14 #define SC_SOFT_PRE (1<<1)
21 #define CDM_SDRAM (1<<3)
32 sync; \
41 /* ---------------------------------------------------------------------- */
42 /* low-power mode with help of M68HLC908QT1 */
50 /* setup wakeup address for u-boot at physical location 0x0 */
60 * 0xf0 (0xe0->0x100 gets overwritten when BDI connected;
62 * WARNING: self-refresh doesn't seem to work when BDI2000 is connected,
80 li r3, (sram_code_end - sram_code)/4
84 1:
89 bdnz 1b
99 sync; isync;
101 sync; isync;
116 sync
120 sync
125 sync
128 li r12, 1
132 * mode_en must not be set when enabling self-refresh
133 * send AR with CKE low (self-refresh)
138 sync
141 li r12, 1
149 sync
152 li r12, 1
159 sync
162 sync
164 sync
166 sync
175 sync
178 1:
179 b 1b
184 /* r11 - tb_ticks_per_usec, r12 - usecs, overwrites r13 */
188 1:
191 blt 1b
219 sync
229 sync; isync;
235 sync; isync;
237 sync; isync;
243 sync
259 /* ---------------------------------------------------------------------- */
265 SAVE_SPRN(DBAT##n##U, addr+1); \
275 SAVE_SR(n+1, addr+1); \
283 stmw r11, 0xc(r4) /* 0xc -> 0x5f, (0x18*4-1) */
298 SAVE_BAT(1, 0x24)
332 LOAD_SPRN(DBAT##n##U, addr+1); \
342 LOAD_SR(n+1, addr+1); \
361 * 0x18 - HID0
362 * 0x19 - HID1
363 * 0x1a - HID2
364 * 0x1b - MSR
365 * 0x1c - LR
366 * 0x1d - reserved by 0xf0 (BDI2000)
373 LOAD_BAT(1, 0x24)
419 1:
422 bdnz 1b