1*93121c03SLarry Finger // SPDX-License-Identifier: GPL-2.0 2*93121c03SLarry Finger /* Copyright(c) 2009-2014 Realtek Corporation.*/ 3f1d2b4d3SLarry Finger 4f1d2b4d3SLarry Finger #include "../pwrseqcmd.h" 5f1d2b4d3SLarry Finger #include "pwrseq.h" 6f1d2b4d3SLarry Finger 7f1d2b4d3SLarry Finger 8f1d2b4d3SLarry Finger /* drivers should parse below arrays and do the corresponding actions */ 9f1d2b4d3SLarry Finger /*3 Power on Array*/ 10f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_power_on_flow[RTL8723B_TRANS_CARDEMU_TO_ACT_STEPS + 11f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 12f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_ACT 13f1d2b4d3SLarry Finger RTL8723B_TRANS_END 14f1d2b4d3SLarry Finger }; 15f1d2b4d3SLarry Finger 16f1d2b4d3SLarry Finger /*3Radio off GPIO Array */ 17f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_radio_off_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS 18f1d2b4d3SLarry Finger + RTL8723B_TRANS_END_STEPS] = { 19f1d2b4d3SLarry Finger RTL8723B_TRANS_ACT_TO_CARDEMU 20f1d2b4d3SLarry Finger RTL8723B_TRANS_END 21f1d2b4d3SLarry Finger }; 22f1d2b4d3SLarry Finger 23f1d2b4d3SLarry Finger /*3Card Disable Array*/ 24f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_card_disable_flow 25f1d2b4d3SLarry Finger [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 26f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS + 27f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 28f1d2b4d3SLarry Finger RTL8723B_TRANS_ACT_TO_CARDEMU 29f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_CARDDIS 30f1d2b4d3SLarry Finger RTL8723B_TRANS_END 31f1d2b4d3SLarry Finger }; 32f1d2b4d3SLarry Finger 33f1d2b4d3SLarry Finger /*3 Card Enable Array*/ 34f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_card_enable_flow 35f1d2b4d3SLarry Finger [RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 36f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS + 37f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 38f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDDIS_TO_CARDEMU 39f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_ACT 40f1d2b4d3SLarry Finger RTL8723B_TRANS_END 41f1d2b4d3SLarry Finger }; 42f1d2b4d3SLarry Finger 43f1d2b4d3SLarry Finger /*3Suspend Array*/ 44f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_suspend_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 45f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS + 46f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 47f1d2b4d3SLarry Finger RTL8723B_TRANS_ACT_TO_CARDEMU 48f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_SUS 49f1d2b4d3SLarry Finger RTL8723B_TRANS_END 50f1d2b4d3SLarry Finger }; 51f1d2b4d3SLarry Finger 52f1d2b4d3SLarry Finger /*3 Resume Array*/ 53f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_resume_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 54f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_SUS_STEPS + 55f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 56f1d2b4d3SLarry Finger RTL8723B_TRANS_SUS_TO_CARDEMU 57f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_ACT 58f1d2b4d3SLarry Finger RTL8723B_TRANS_END 59f1d2b4d3SLarry Finger }; 60f1d2b4d3SLarry Finger 61f1d2b4d3SLarry Finger /*3HWPDN Array*/ 62f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_hwpdn_flow[RTL8723B_TRANS_ACT_TO_CARDEMU_STEPS + 63f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_PDN_STEPS + 64f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 65f1d2b4d3SLarry Finger RTL8723B_TRANS_ACT_TO_CARDEMU 66f1d2b4d3SLarry Finger RTL8723B_TRANS_CARDEMU_TO_PDN 67f1d2b4d3SLarry Finger RTL8723B_TRANS_END 68f1d2b4d3SLarry Finger }; 69f1d2b4d3SLarry Finger 70f1d2b4d3SLarry Finger /*3 Enter LPS */ 71f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_enter_lps_flow[RTL8723B_TRANS_ACT_TO_LPS_STEPS + 72f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 73f1d2b4d3SLarry Finger /*FW behavior*/ 74f1d2b4d3SLarry Finger RTL8723B_TRANS_ACT_TO_LPS 75f1d2b4d3SLarry Finger RTL8723B_TRANS_END 76f1d2b4d3SLarry Finger }; 77f1d2b4d3SLarry Finger 78f1d2b4d3SLarry Finger /*3 Leave LPS */ 79f1d2b4d3SLarry Finger struct wlan_pwr_cfg rtl8723B_leave_lps_flow[RTL8723B_TRANS_LPS_TO_ACT_STEPS + 80f1d2b4d3SLarry Finger RTL8723B_TRANS_END_STEPS] = { 81f1d2b4d3SLarry Finger /*FW behavior*/ 82f1d2b4d3SLarry Finger RTL8723B_TRANS_LPS_TO_ACT 83f1d2b4d3SLarry Finger RTL8723B_TRANS_END 84f1d2b4d3SLarry Finger }; 85