Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /* Copyright(c) 2009-2014  Realtek Corporation.*/
0003 
0004 #include "../pwrseqcmd.h"
0005 #include "pwrseq.h"
0006 
0007 
0008 /* drivers should parse below arrays and do the corresponding actions */
0009 /*3 Power on  Array*/
0010 struct wlan_pwr_cfg rtl8723B_power_on_flow[RTL8723B_TRANS_CARDEMU_TO_ACT_STEPS +
0011                        RTL8723B_TRANS_END_STEPS] = {
0012     RTL8723B_TRANS_CARDEMU_TO_ACT
0013     RTL8723B_TRANS_END
0014 };
0015 
0016 /*3Radio off GPIO Array */
0017 struct wlan_pwr_cfg rtl8723B_radio_off_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS
0018                         + RTL8723B_TRANS_END_STEPS] = {
0019     RTL8723B_TRANS_ACT_TO_CARDEMU
0020     RTL8723B_TRANS_END
0021 };
0022 
0023 /*3Card Disable Array*/
0024 struct wlan_pwr_cfg rtl8723B_card_disable_flow
0025                 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
0026                  RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +
0027                  RTL8723B_TRANS_END_STEPS] = {
0028     RTL8723B_TRANS_ACT_TO_CARDEMU
0029     RTL8723B_TRANS_CARDEMU_TO_CARDDIS
0030     RTL8723B_TRANS_END
0031 };
0032 
0033 /*3 Card Enable Array*/
0034 struct wlan_pwr_cfg rtl8723B_card_enable_flow
0035                 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
0036                  RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +
0037                  RTL8723B_TRANS_END_STEPS] = {
0038     RTL8723B_TRANS_CARDDIS_TO_CARDEMU
0039     RTL8723B_TRANS_CARDEMU_TO_ACT
0040     RTL8723B_TRANS_END
0041 };
0042 
0043 /*3Suspend Array*/
0044 struct wlan_pwr_cfg rtl8723B_suspend_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
0045                       RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS +
0046                       RTL8723B_TRANS_END_STEPS] = {
0047     RTL8723B_TRANS_ACT_TO_CARDEMU
0048     RTL8723B_TRANS_CARDEMU_TO_SUS
0049     RTL8723B_TRANS_END
0050 };
0051 
0052 /*3 Resume Array*/
0053 struct wlan_pwr_cfg rtl8723B_resume_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
0054                      RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS +
0055                      RTL8723B_TRANS_END_STEPS] = {
0056     RTL8723B_TRANS_SUS_TO_CARDEMU
0057     RTL8723B_TRANS_CARDEMU_TO_ACT
0058     RTL8723B_TRANS_END
0059 };
0060 
0061 /*3HWPDN Array*/
0062 struct wlan_pwr_cfg rtl8723B_hwpdn_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +
0063                     RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +
0064                     RTL8723B_TRANS_END_STEPS] = {
0065     RTL8723B_TRANS_ACT_TO_CARDEMU
0066     RTL8723B_TRANS_CARDEMU_TO_PDN
0067     RTL8723B_TRANS_END
0068 };
0069 
0070 /*3 Enter LPS */
0071 struct wlan_pwr_cfg rtl8723B_enter_lps_flow[RTL8723B_TRANS_ACT_TO_LPS_STEPS +
0072                         RTL8723B_TRANS_END_STEPS] = {
0073     /*FW behavior*/
0074     RTL8723B_TRANS_ACT_TO_LPS
0075     RTL8723B_TRANS_END
0076 };
0077 
0078 /*3 Leave LPS */
0079 struct wlan_pwr_cfg rtl8723B_leave_lps_flow[RTL8723B_TRANS_LPS_TO_ACT_STEPS +
0080                         RTL8723B_TRANS_END_STEPS] = {
0081     /*FW behavior*/
0082     RTL8723B_TRANS_LPS_TO_ACT
0083     RTL8723B_TRANS_END
0084 };