1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2010 Realtek Corporation.*/
4 #include "../pwrseqcmd.h"
7 /* drivers should parse below arrays and do the corresponding actions */
9 struct wlan_pwr_cfg rtl8812_power_on_flow
[RTL8812_TRANS_CARDEMU_TO_ACT_STEPS
+
10 RTL8812_TRANS_END_STEPS
] = {
11 RTL8812_TRANS_CARDEMU_TO_ACT
15 /* 3Radio off GPIO Array */
16 struct wlan_pwr_cfg rtl8812_radio_off_flow
[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS
+
17 RTL8812_TRANS_END_STEPS
] = {
18 RTL8812_TRANS_ACT_TO_CARDEMU
22 /* 3Card Disable Array */
23 struct wlan_pwr_cfg rtl8812_card_disable_flow
[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS
24 + RTL8812_TRANS_CARDEMU_TO_PDN_STEPS
25 + RTL8812_TRANS_END_STEPS
] = {
26 RTL8812_TRANS_ACT_TO_CARDEMU
27 RTL8812_TRANS_CARDEMU_TO_CARDDIS
31 /* 3 Card Enable Array */
32 struct wlan_pwr_cfg rtl8812_card_enable_flow
[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS
33 + RTL8812_TRANS_CARDEMU_TO_PDN_STEPS
34 + RTL8812_TRANS_END_STEPS
] = {
35 RTL8812_TRANS_CARDDIS_TO_CARDEMU
36 RTL8812_TRANS_CARDEMU_TO_ACT
41 struct wlan_pwr_cfg rtl8812_suspend_flow
[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS
+
42 RTL8812_TRANS_CARDEMU_TO_SUS_STEPS
+
43 RTL8812_TRANS_END_STEPS
] = {
44 RTL8812_TRANS_ACT_TO_CARDEMU
45 RTL8812_TRANS_CARDEMU_TO_SUS
50 struct wlan_pwr_cfg rtl8812_resume_flow
[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS
+
51 RTL8812_TRANS_CARDEMU_TO_SUS_STEPS
+
52 RTL8812_TRANS_END_STEPS
] = {
53 RTL8812_TRANS_SUS_TO_CARDEMU
54 RTL8812_TRANS_CARDEMU_TO_ACT
59 struct wlan_pwr_cfg rtl8812_hwpdn_flow
[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS
+
60 RTL8812_TRANS_CARDEMU_TO_PDN_STEPS
+
61 RTL8812_TRANS_END_STEPS
] = {
62 RTL8812_TRANS_ACT_TO_CARDEMU
63 RTL8812_TRANS_CARDEMU_TO_PDN
68 struct wlan_pwr_cfg rtl8812_enter_lps_flow
[RTL8812_TRANS_ACT_TO_LPS_STEPS
+
69 RTL8812_TRANS_END_STEPS
] = {
71 RTL8812_TRANS_ACT_TO_LPS
76 struct wlan_pwr_cfg rtl8812_leave_lps_flow
[RTL8812_TRANS_LPS_TO_ACT_STEPS
+
77 RTL8812_TRANS_END_STEPS
] = {
79 RTL8812_TRANS_LPS_TO_ACT
83 /* drivers should parse below arrays and do the corresponding actions */
85 struct wlan_pwr_cfg rtl8821A_power_on_flow
[RTL8821A_TRANS_CARDEMU_TO_ACT_STEPS
86 + RTL8821A_TRANS_END_STEPS
] = {
87 RTL8821A_TRANS_CARDEMU_TO_ACT
91 /*3Radio off GPIO Array */
92 struct wlan_pwr_cfg rtl8821A_radio_off_flow
[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS
93 + RTL8821A_TRANS_END_STEPS
] = {
94 RTL8821A_TRANS_ACT_TO_CARDEMU
98 /*3Card Disable Array*/
99 struct wlan_pwr_cfg rtl8821A_card_disable_flow
100 [RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS
101 + RTL8821A_TRANS_CARDEMU_TO_PDN_STEPS
102 + RTL8821A_TRANS_END_STEPS
] = {
103 RTL8821A_TRANS_ACT_TO_CARDEMU
104 RTL8821A_TRANS_CARDEMU_TO_CARDDIS
108 /*3 Card Enable Array*/
109 /*RTL8821A_TRANS_CARDEMU_TO_PDN_STEPS*/
110 struct wlan_pwr_cfg rtl8821A_card_enable_flow
111 [RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS
112 + RTL8821A_TRANS_CARDEMU_TO_ACT_STEPS
113 + RTL8821A_TRANS_END_STEPS
] = {
114 RTL8821A_TRANS_CARDDIS_TO_CARDEMU
115 RTL8821A_TRANS_CARDEMU_TO_ACT
120 struct wlan_pwr_cfg rtl8821A_suspend_flow
[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS
121 + RTL8821A_TRANS_CARDEMU_TO_SUS_STEPS
122 + RTL8821A_TRANS_END_STEPS
] = {
123 RTL8821A_TRANS_ACT_TO_CARDEMU
124 RTL8821A_TRANS_CARDEMU_TO_SUS
129 struct wlan_pwr_cfg rtl8821A_resume_flow
[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS
130 + RTL8821A_TRANS_CARDEMU_TO_SUS_STEPS
131 + RTL8821A_TRANS_END_STEPS
] = {
132 RTL8821A_TRANS_SUS_TO_CARDEMU
133 RTL8821A_TRANS_CARDEMU_TO_ACT
138 struct wlan_pwr_cfg rtl8821A_hwpdn_flow
[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS
139 + RTL8821A_TRANS_CARDEMU_TO_PDN_STEPS
140 + RTL8821A_TRANS_END_STEPS
] = {
141 RTL8821A_TRANS_ACT_TO_CARDEMU
142 RTL8821A_TRANS_CARDEMU_TO_PDN
147 struct wlan_pwr_cfg rtl8821A_enter_lps_flow
[RTL8821A_TRANS_ACT_TO_LPS_STEPS
148 + RTL8821A_TRANS_END_STEPS
] = {
150 RTL8821A_TRANS_ACT_TO_LPS
155 struct wlan_pwr_cfg rtl8821A_leave_lps_flow
[RTL8821A_TRANS_LPS_TO_ACT_STEPS
156 + RTL8821A_TRANS_END_STEPS
] = {
158 RTL8821A_TRANS_LPS_TO_ACT