Path: blob/master/ALFA-W1F1/RTL8814AU/hal/rtl8814a/Hal8814PwrSeq.c
1307 views
/******************************************************************************1*2* Copyright(c) 2007 - 2017 Realtek Corporation.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2 of the GNU General Public License as6* published by the Free Software Foundation.7*8* This program is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for11* more details.12*13*****************************************************************************/1415#include "Hal8814PwrSeq.h"16#include <rtl8814a_hal.h>1718/*19drivers should parse below arrays and do the corresponding actions20*/21/* 3 Power on Array */22WLAN_PWR_CFG rtl8814A_power_on_flow[RTL8814A_TRANS_CARDEMU_TO_ACT_STEPS + RTL8814A_TRANS_END_STEPS] = {23RTL8814A_TRANS_CARDEMU_TO_ACT24RTL8814A_TRANS_END25};2627/* 3Radio off GPIO Array */28WLAN_PWR_CFG rtl8814A_radio_off_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_END_STEPS] = {29RTL8814A_TRANS_ACT_TO_CARDEMU30RTL8814A_TRANS_END31};3233/* 3Card Disable Array */34WLAN_PWR_CFG rtl8814A_card_disable_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_PDN_STEPS + RTL8814A_TRANS_END_STEPS] = {35RTL8814A_TRANS_ACT_TO_CARDEMU36RTL8814A_TRANS_CARDEMU_TO_CARDDIS37RTL8814A_TRANS_END38};3940/* 3 Card Enable Array */41WLAN_PWR_CFG rtl8814A_card_enable_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_PDN_STEPS + RTL8814A_TRANS_END_STEPS] = {42RTL8814A_TRANS_CARDDIS_TO_CARDEMU43RTL8814A_TRANS_CARDEMU_TO_ACT44RTL8814A_TRANS_END45};4647/* 3Suspend Array */48WLAN_PWR_CFG rtl8814A_suspend_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_SUS_STEPS + RTL8814A_TRANS_END_STEPS] = {49RTL8814A_TRANS_ACT_TO_CARDEMU50RTL8814A_TRANS_CARDEMU_TO_SUS51RTL8814A_TRANS_END52};5354/* 3 Resume Array */55WLAN_PWR_CFG rtl8814A_resume_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_SUS_STEPS + RTL8814A_TRANS_END_STEPS] = {56RTL8814A_TRANS_SUS_TO_CARDEMU57RTL8814A_TRANS_CARDEMU_TO_ACT58RTL8814A_TRANS_END59};60616263/* 3HWPDN Array */64WLAN_PWR_CFG rtl8814A_hwpdn_flow[RTL8814A_TRANS_ACT_TO_CARDEMU_STEPS + RTL8814A_TRANS_CARDEMU_TO_PDN_STEPS + RTL8814A_TRANS_END_STEPS] = {65RTL8814A_TRANS_ACT_TO_CARDEMU66RTL8814A_TRANS_CARDEMU_TO_PDN67RTL8814A_TRANS_END68};6970/* 3 Enter LPS */71WLAN_PWR_CFG rtl8814A_enter_lps_flow[RTL8814A_TRANS_ACT_TO_LPS_STEPS + RTL8814A_TRANS_END_STEPS] = {72/* FW behavior */73RTL8814A_TRANS_ACT_TO_LPS74RTL8814A_TRANS_END75};7677/* 3 Leave LPS */78WLAN_PWR_CFG rtl8814A_leave_lps_flow[RTL8814A_TRANS_LPS_TO_ACT_STEPS + RTL8814A_TRANS_END_STEPS] = {79/* FW behavior */80RTL8814A_TRANS_LPS_TO_ACT81RTL8814A_TRANS_END82};838485