85 lines · c
1// SPDX-License-Identifier: GPL-2.02/* Copyright(c) 2009-2014 Realtek Corporation.*/3 4#include "../pwrseqcmd.h"5#include "pwrseq.h"6 7 8/* drivers should parse below arrays and do the corresponding actions */9/*3 Power on Array*/10struct wlan_pwr_cfg rtl8723B_power_on_flow[RTL8723B_TRANS_CARDEMU_TO_ACT_STEPS +11 RTL8723B_TRANS_END_STEPS] = {12 RTL8723B_TRANS_CARDEMU_TO_ACT13 RTL8723B_TRANS_END14};15 16/*3Radio off GPIO Array */17struct wlan_pwr_cfg rtl8723B_radio_off_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS18 + RTL8723B_TRANS_END_STEPS] = {19 RTL8723B_TRANS_ACT_TO_CARDEMU20 RTL8723B_TRANS_END21};22 23/*3Card Disable Array*/24struct wlan_pwr_cfg rtl8723B_card_disable_flow25 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +26 RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +27 RTL8723B_TRANS_END_STEPS] = {28 RTL8723B_TRANS_ACT_TO_CARDEMU29 RTL8723B_TRANS_CARDEMU_TO_CARDDIS30 RTL8723B_TRANS_END31};32 33/*3 Card Enable Array*/34struct wlan_pwr_cfg rtl8723B_card_enable_flow35 [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +36 RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +37 RTL8723B_TRANS_END_STEPS] = {38 RTL8723B_TRANS_CARDDIS_TO_CARDEMU39 RTL8723B_TRANS_CARDEMU_TO_ACT40 RTL8723B_TRANS_END41};42 43/*3Suspend Array*/44struct wlan_pwr_cfg rtl8723B_suspend_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +45 RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS +46 RTL8723B_TRANS_END_STEPS] = {47 RTL8723B_TRANS_ACT_TO_CARDEMU48 RTL8723B_TRANS_CARDEMU_TO_SUS49 RTL8723B_TRANS_END50};51 52/*3 Resume Array*/53struct wlan_pwr_cfg rtl8723B_resume_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +54 RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS +55 RTL8723B_TRANS_END_STEPS] = {56 RTL8723B_TRANS_SUS_TO_CARDEMU57 RTL8723B_TRANS_CARDEMU_TO_ACT58 RTL8723B_TRANS_END59};60 61/*3HWPDN Array*/62struct wlan_pwr_cfg rtl8723B_hwpdn_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS +63 RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS +64 RTL8723B_TRANS_END_STEPS] = {65 RTL8723B_TRANS_ACT_TO_CARDEMU66 RTL8723B_TRANS_CARDEMU_TO_PDN67 RTL8723B_TRANS_END68};69 70/*3 Enter LPS */71struct wlan_pwr_cfg rtl8723B_enter_lps_flow[RTL8723B_TRANS_ACT_TO_LPS_STEPS +72 RTL8723B_TRANS_END_STEPS] = {73 /*FW behavior*/74 RTL8723B_TRANS_ACT_TO_LPS75 RTL8723B_TRANS_END76};77 78/*3 Leave LPS */79struct wlan_pwr_cfg rtl8723B_leave_lps_flow[RTL8723B_TRANS_LPS_TO_ACT_STEPS +80 RTL8723B_TRANS_END_STEPS] = {81 /*FW behavior*/82 RTL8723B_TRANS_LPS_TO_ACT83 RTL8723B_TRANS_END84};85