1fbb35286SLarry Finger // SPDX-License-Identifier: GPL-2.0
2fbb35286SLarry Finger /* Copyright(c) 2009-2013  Realtek Corporation.*/
3f1d2b4d3SLarry Finger 
4f1d2b4d3SLarry Finger #include "../pwrseqcmd.h"
5f1d2b4d3SLarry Finger #include "pwrseq.h"
6f1d2b4d3SLarry Finger 
7f1d2b4d3SLarry Finger /* drivers should parse below arrays and do the corresponding actions */
8f1d2b4d3SLarry Finger /*3 Power on  Array*/
9f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_power_on_flow[RTL8188EE_TRANS_CARDEMU_TO_ACT_STEPS
10f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_END_STEPS] = {
11f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_CARDEMU_TO_ACT
12f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
13f1d2b4d3SLarry Finger };
14f1d2b4d3SLarry Finger 
15f1d2b4d3SLarry Finger /*3Radio off GPIO Array */
16f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_radio_off_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
17f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_END_STEPS] = {
18f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_ACT_TO_CARDEMU
19f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
20f1d2b4d3SLarry Finger };
21f1d2b4d3SLarry Finger 
22f1d2b4d3SLarry Finger /*3Card Disable Array*/
23f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_card_disable_flow
24f1d2b4d3SLarry Finger 		[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +
25f1d2b4d3SLarry Finger 		 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +
26f1d2b4d3SLarry Finger 		 RTL8188EE_TRANS_END_STEPS] = {
27f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_ACT_TO_CARDEMU
28f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_CARDEMU_TO_CARDDIS
29f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
30f1d2b4d3SLarry Finger };
31f1d2b4d3SLarry Finger 
32f1d2b4d3SLarry Finger /*3 Card Enable Array*/
33f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_card_enable_flow
34f1d2b4d3SLarry Finger 		[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +
35f1d2b4d3SLarry Finger 		 RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +
36f1d2b4d3SLarry Finger 		 RTL8188EE_TRANS_END_STEPS] = {
37f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_CARDDIS_TO_CARDEMU
38f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_CARDEMU_TO_ACT
39f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
40f1d2b4d3SLarry Finger };
41f1d2b4d3SLarry Finger 
42f1d2b4d3SLarry Finger /*3Suspend Array*/
43f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_suspend_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
44f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
45f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_END_STEPS] = {
46f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_ACT_TO_CARDEMU
47f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_CARDEMU_TO_SUS
48f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
49f1d2b4d3SLarry Finger };
50f1d2b4d3SLarry Finger 
51f1d2b4d3SLarry Finger /*3 Resume Array*/
52f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_resume_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
53f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
54f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_END_STEPS] = {
55f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_SUS_TO_CARDEMU
56f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_CARDEMU_TO_ACT
57f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
58f1d2b4d3SLarry Finger };
59f1d2b4d3SLarry Finger 
60f1d2b4d3SLarry Finger /*3HWPDN Array*/
61f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_hwpdn_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
62f1d2b4d3SLarry Finger 				+ RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS
63f1d2b4d3SLarry Finger 				+ RTL8188EE_TRANS_END_STEPS] = {
64f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_ACT_TO_CARDEMU
65f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_CARDEMU_TO_PDN
66f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
67f1d2b4d3SLarry Finger };
68f1d2b4d3SLarry Finger 
69f1d2b4d3SLarry Finger /*3 Enter LPS */
70f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_enter_lps_flow[RTL8188EE_TRANS_ACT_TO_LPS_STEPS
71f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_END_STEPS] = {
72f1d2b4d3SLarry Finger 	/*FW behavior*/
73f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_ACT_TO_LPS
74f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
75f1d2b4d3SLarry Finger };
76f1d2b4d3SLarry Finger 
77f1d2b4d3SLarry Finger /*3 Leave LPS */
78f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8188ee_leave_lps_flow[RTL8188EE_TRANS_LPS_TO_ACT_STEPS
79f1d2b4d3SLarry Finger 					+ RTL8188EE_TRANS_END_STEPS] = {
80f1d2b4d3SLarry Finger 	/*FW behavior*/
81f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_LPS_TO_ACT
82f1d2b4d3SLarry Finger 	RTL8188EE_TRANS_END
83f1d2b4d3SLarry Finger };
84