1
2
3
4 #ifndef __RTL8723BE_PWRSEQ_H__
5 #define __RTL8723BE_PWRSEQ_H__
6
7 #include "../pwrseqcmd.h"
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #define RTL8723B_TRANS_CARDEMU_TO_ACT_STEPS 23
30 #define RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS 15
31 #define RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS 15
32 #define RTL8723B_TRANS_SUS_TO_CARDEMU_STEPS 15
33 #define RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS 15
34 #define RTL8723B_TRANS_PDN_TO_CARDEMU_STEPS 15
35 #define RTL8723B_TRANS_ACT_TO_LPS_STEPS 15
36 #define RTL8723B_TRANS_LPS_TO_ACT_STEPS 15
37 #define RTL8723B_TRANS_END_STEPS 1
38
39 #define RTL8723B_TRANS_CARDEMU_TO_ACT \
40 \
41 \
42 \
43 \
44 {0x0020, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
45 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, \
46 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), BIT(0)}, \
47 \
48 {0x0067, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
49 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, \
50 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4), 0}, \
51 \
52 {0x0001, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
53 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, \
54 PWR_BASEADDR_MAC, PWR_CMD_DELAY, 1, PWRSEQ_DELAY_MS}, \
55 \
56 {0x0000, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
57 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, \
58 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(5), 0}, \
59 \
60 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
61 PWR_BASEADDR_MAC, PWR_CMD_WRITE, (BIT(4)|BIT(3)|BIT(2)), 0}, \
62 \
63 {0x0075, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
64 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0) , BIT(0)}, \
65 \
66 {0x0006, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
67 PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT(1), BIT(1)}, \
68 \
69 {0x0075, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
70 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0) , 0}, \
71 \
72 {0x0006, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
73 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), BIT(0)}, \
74 \
75 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
76 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(7), 0}, \
77 \
78 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
79 PWR_BASEADDR_MAC, PWR_CMD_WRITE, (BIT(4)|BIT(3)), 0}, \
80 \
81 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
82 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), BIT(0)}, \
83 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
84 PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT(0), 0}, \
85 \
86 {0x0010, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
87 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(6), BIT(6)}, \
88 \
89 {0x0049, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
90 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), BIT(1)}, \
91 \
92 {0x0063, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
93 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), BIT(1)}, \
94 \
95 {0x0062, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
96 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), 0}, \
97 \
98 {0x0058, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
99 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), BIT(0)}, \
100 \
101 {0x005A, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
102 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), BIT(1)}, \
103 \
104 {0x0068, PWR_CUT_TESTCHIP_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
105 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3), BIT(3)}, \
106 \
107 {0x0069, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
108 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(6), BIT(6)},
109
110 #define RTL8723B_TRANS_ACT_TO_CARDEMU \
111 \
112 \
113 \
114 \
115 {0x001F, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
116 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0}, \
117 \
118 \
119 {0x004F, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
120 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), 0}, \
121 \
122 {0x0049, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
123 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), 0}, \
124 \
125 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
126 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), BIT(1)}, \
127 \
128 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
129 PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT(1), 0}, \
130 \
131 {0x0010, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
132 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(6), 0}, \
133 \
134 {0x0000, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
135 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, \
136 PWR_CMD_WRITE, BIT(5), BIT(5)}, \
137 \
138 {0x0020, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
139 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, \
140 PWR_CMD_WRITE, BIT(0), 0},
141
142 #define RTL8723B_TRANS_CARDEMU_TO_SUS \
143 \
144 \
145 \
146 \
147 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
148 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4) | BIT(3), (BIT(4) | BIT(3))}, \
149 \
150 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
151 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, PWR_BASEADDR_MAC, \
152 PWR_CMD_WRITE, BIT(3) | BIT(4), BIT(3)}, \
153 \
154 {0x0023, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
155 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4), BIT(4)}, \
156 \
157 {0x0007, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
158 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0x20}, \
159 \
160 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
161 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3) | BIT(4), BIT(3) | BIT(4)},\
162 \
163 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
164 PWR_BASEADDR_SDIO, PWR_CMD_WRITE, BIT(0), BIT(0)}, \
165 \
166 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
167 PWR_BASEADDR_SDIO, PWR_CMD_POLLING, BIT(1), 0},
168
169 #define RTL8723B_TRANS_SUS_TO_CARDEMU \
170 \
171 \
172 \
173 \
174 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
175 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3) | BIT(7), 0}, \
176 \
177 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
178 PWR_BASEADDR_SDIO, PWR_CMD_WRITE, BIT(0), 0}, \
179 \
180 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
181 PWR_BASEADDR_SDIO, PWR_CMD_POLLING, BIT(1), BIT(1)}, \
182 \
183 {0x0023, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
184 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4), 0}, \
185 \
186 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
187 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3)|BIT(4), 0},
188
189 #define RTL8723B_TRANS_CARDEMU_TO_CARDDIS \
190 \
191 \
192 \
193 \
194 {0x0007, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
195 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0x20}, \
196 \
197 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
198 PWR_INTF_USB_MSK | PWR_INTF_SDIO_MSK, \
199 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3)|BIT(4), BIT(3)}, \
200 \
201 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
202 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(2), BIT(2)}, \
203 \
204 {0x004A, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, \
205 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), 1}, \
206 \
207 {0x0023, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
208 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4), BIT(4)}, \
209 \
210 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
211 PWR_BASEADDR_SDIO, PWR_CMD_WRITE, BIT(0), BIT(0)}, \
212 \
213 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
214 PWR_BASEADDR_SDIO, PWR_CMD_POLLING, BIT(1), 0},
215
216 #define RTL8723B_TRANS_CARDDIS_TO_CARDEMU \
217 \
218 \
219 \
220 \
221 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
222 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3) | BIT(7), 0}, \
223 \
224 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
225 PWR_BASEADDR_SDIO, PWR_CMD_WRITE, BIT(0), 0}, \
226 \
227 {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
228 PWR_BASEADDR_SDIO, PWR_CMD_POLLING, BIT(1), BIT(1)}, \
229 \
230 {0x004A, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, \
231 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), 0}, \
232 \
233 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
234 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3)|BIT(4), 0}, \
235 \
236 {0x0023, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
237 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4), 0}, \
238 \
239 {0x0301, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
240 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0},
241
242 #define RTL8723B_TRANS_CARDEMU_TO_PDN \
243 \
244 \
245 \
246 \
247 {0x0023, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
248 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4), BIT(4)}, \
249 \
250 {0x0007, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
251 PWR_INTF_SDIO_MSK | PWR_INTF_USB_MSK, PWR_BASEADDR_MAC, \
252 PWR_CMD_WRITE, 0xFF, 0x20}, \
253 \
254 {0x0006, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
255 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), 0}, \
256 \
257 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
258 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(7), BIT(7)},
259
260 #define RTL8723B_TRANS_PDN_TO_CARDEMU \
261 \
262 \
263 \
264 \
265 {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
266 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(7), 0},
267
268 #define RTL8723B_TRANS_ACT_TO_LPS \
269 \
270 \
271 \
272 \
273 {0x0301, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
274 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0xFF}, \
275 \
276 {0x0522, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
277 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0xFF}, \
278 \
279 {0x05F8, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
280 PWR_BASEADDR_MAC, PWR_CMD_POLLING, 0xFF, 0}, \
281 \
282 {0x05F9, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
283 PWR_BASEADDR_MAC, PWR_CMD_POLLING, 0xFF, 0}, \
284 \
285 {0x05FA, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
286 PWR_BASEADDR_MAC, PWR_CMD_POLLING, 0xFF, 0}, \
287 \
288 {0x05FB, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
289 PWR_BASEADDR_MAC, PWR_CMD_POLLING, 0xFF, 0}, \
290 \
291 {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
292 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), 0}, \
293 \
294 {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
295 PWR_BASEADDR_MAC, PWR_CMD_DELAY, 0, PWRSEQ_DELAY_US}, \
296 \
297 {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
298 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), 0}, \
299 \
300 {0x0100, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
301 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0x03}, \
302 \
303 {0x0101, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
304 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), 0}, \
305 \
306 {0x0093, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
307 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0x00}, \
308 \
309 {0x0553, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
310 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(5), BIT(5)},
311
312 #define RTL8723B_TRANS_LPS_TO_ACT \
313 \
314 \
315 \
316 \
317 {0x0080, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK, \
318 PWR_BASEADDR_SDIO, PWR_CMD_WRITE, 0xFF, 0x84}, \
319 \
320 {0xFE58, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK, \
321 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0x84}, \
322 \
323 {0x0361, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, \
324 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0x84}, \
325 \
326 {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
327 PWR_BASEADDR_MAC, PWR_CMD_DELAY, 0, PWRSEQ_DELAY_MS}, \
328 \
329 {0x0008, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
330 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(4), 0}, \
331 \
332 {0x0109, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
333 PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT(7), 0}, \
334 \
335 {0x0029, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
336 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(6)|BIT(7), 0}, \
337 \
338 {0x0101, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
339 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), BIT(1)}, \
340 \
341 {0x0100, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
342 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0xFF}, \
343 \
344 {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
345 PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1) | BIT(0), BIT(1) | BIT(0)}, \
346 \
347 {0x0522, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, \
348 PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0},
349
350 #define RTL8723B_TRANS_END \
351 \
352 \
353 \
354 {0xFFFF, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, 0, \
355 PWR_CMD_END, 0, 0},
356
357 extern struct wlan_pwr_cfg rtl8723B_power_on_flow
358 [RTL8723B_TRANS_CARDEMU_TO_ACT_STEPS +
359 RTL8723B_TRANS_END_STEPS];
360 extern struct wlan_pwr_cfg rtl8723B_radio_off_flow
361 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
362 RTL8723B_TRANS_END_STEPS];
363 extern struct wlan_pwr_cfg rtl8723B_card_disable_flow
364 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
365 RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +
366 RTL8723B_TRANS_END_STEPS];
367 extern struct wlan_pwr_cfg rtl8723B_card_enable_flow
368 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
369 RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +
370 RTL8723B_TRANS_END_STEPS];
371 extern struct wlan_pwr_cfg rtl8723B_suspend_flow
372 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
373 RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS +
374 RTL8723B_TRANS_END_STEPS];
375 extern struct wlan_pwr_cfg rtl8723B_resume_flow
376 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
377 RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS +
378 RTL8723B_TRANS_END_STEPS];
379 extern struct wlan_pwr_cfg rtl8723B_hwpdn_flow
380 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
381 RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +
382 RTL8723B_TRANS_END_STEPS];
383 extern struct wlan_pwr_cfg rtl8723B_enter_lps_flow
384 [RTL8723B_TRANS_ACT_TO_LPS_STEPS +
385 RTL8723B_TRANS_END_STEPS];
386 extern struct wlan_pwr_cfg rtl8723B_leave_lps_flow
387 [RTL8723B_TRANS_LPS_TO_ACT_STEPS +
388 RTL8723B_TRANS_END_STEPS];
389
390
391 #define RTL8723_NIC_PWR_ON_FLOW rtl8723B_power_on_flow
392 #define RTL8723_NIC_RF_OFF_FLOW rtl8723B_radio_off_flow
393 #define RTL8723_NIC_DISABLE_FLOW rtl8723B_card_disable_flow
394 #define RTL8723_NIC_ENABLE_FLOW rtl8723B_card_enable_flow
395 #define RTL8723_NIC_SUSPEND_FLOW rtl8723B_suspend_flow
396 #define RTL8723_NIC_RESUME_FLOW rtl8723B_resume_flow
397 #define RTL8723_NIC_PDN_FLOW rtl8723B_hwpdn_flow
398 #define RTL8723_NIC_LPS_ENTER_FLOW rtl8723B_enter_lps_flow
399 #define RTL8723_NIC_LPS_LEAVE_FLOW rtl8723B_leave_lps_flow
400
401 #endif