148fa0b4dSLarry Finger // SPDX-License-Identifier: GPL-2.0
248fa0b4dSLarry Finger /* Copyright(c) 2009-2012  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 rtl8723A_power_on_flow
10f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_CARDEMU_TO_ACT_STEPS +
11f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
12f1d2b4d3SLarry Finger 	RTL8723A_TRANS_CARDEMU_TO_ACT
13f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
14f1d2b4d3SLarry Finger };
15f1d2b4d3SLarry Finger 
16f1d2b4d3SLarry Finger /*3Radio off GPIO Array */
17f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_radio_off_flow
18f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
19f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
20f1d2b4d3SLarry Finger 	RTL8723A_TRANS_ACT_TO_CARDEMU
21f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
22f1d2b4d3SLarry Finger };
23f1d2b4d3SLarry Finger 
24f1d2b4d3SLarry Finger /*3Card Disable Array*/
25f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_card_disable_flow
26f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
27f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_CARDEMU_TO_PDN_STEPS +
28f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
29f1d2b4d3SLarry Finger 	RTL8723A_TRANS_ACT_TO_CARDEMU
30f1d2b4d3SLarry Finger 	RTL8723A_TRANS_CARDEMU_TO_CARDDIS
31f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
32f1d2b4d3SLarry Finger };
33f1d2b4d3SLarry Finger 
34f1d2b4d3SLarry Finger /*3 Card Enable Array*/
35f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_card_enable_flow
36f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
37f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_CARDEMU_TO_PDN_STEPS +
38f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
39f1d2b4d3SLarry Finger 	RTL8723A_TRANS_CARDDIS_TO_CARDEMU
40f1d2b4d3SLarry Finger 	RTL8723A_TRANS_CARDEMU_TO_ACT
41f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
42f1d2b4d3SLarry Finger };
43f1d2b4d3SLarry Finger 
44f1d2b4d3SLarry Finger /*3Suspend Array*/
45f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_suspend_flow
46f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
47f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_CARDEMU_TO_SUS_STEPS +
48f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
49f1d2b4d3SLarry Finger 	RTL8723A_TRANS_ACT_TO_CARDEMU
50f1d2b4d3SLarry Finger 	RTL8723A_TRANS_CARDEMU_TO_SUS
51f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
52f1d2b4d3SLarry Finger };
53f1d2b4d3SLarry Finger 
54f1d2b4d3SLarry Finger /*3 Resume Array*/
55f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_resume_flow
56f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
57f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_CARDEMU_TO_SUS_STEPS +
58f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
59f1d2b4d3SLarry Finger 	RTL8723A_TRANS_SUS_TO_CARDEMU
60f1d2b4d3SLarry Finger 	RTL8723A_TRANS_CARDEMU_TO_ACT
61f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
62f1d2b4d3SLarry Finger };
63f1d2b4d3SLarry Finger 
64f1d2b4d3SLarry Finger /*3HWPDN Array*/
65f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_hwpdn_flow
66f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
67f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_CARDEMU_TO_PDN_STEPS +
68f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
69f1d2b4d3SLarry Finger 	RTL8723A_TRANS_ACT_TO_CARDEMU
70f1d2b4d3SLarry Finger 	RTL8723A_TRANS_CARDEMU_TO_PDN
71f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
72f1d2b4d3SLarry Finger };
73f1d2b4d3SLarry Finger 
74f1d2b4d3SLarry Finger /*3 Enter LPS */
75f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_enter_lps_flow
76f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_ACT_TO_LPS_STEPS +
77f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
78f1d2b4d3SLarry Finger 	/*FW behavior*/
79f1d2b4d3SLarry Finger 	RTL8723A_TRANS_ACT_TO_LPS
80f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
81f1d2b4d3SLarry Finger };
82f1d2b4d3SLarry Finger 
83f1d2b4d3SLarry Finger /*3 Leave LPS */
84f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723A_leave_lps_flow
85f1d2b4d3SLarry Finger 		[RTL8723A_TRANS_LPS_TO_ACT_STEPS +
86f1d2b4d3SLarry Finger 		 RTL8723A_TRANS_END_STEPS] = {
87f1d2b4d3SLarry Finger 	/*FW behavior*/
88f1d2b4d3SLarry Finger 	RTL8723A_TRANS_LPS_TO_ACT
89f1d2b4d3SLarry Finger 	RTL8723A_TRANS_END
90f1d2b4d3SLarry Finger };
91