net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / hal / rtl8703b / Hal8703BPwrSeq.c
1
2 /*++
3 Copyright (c) Realtek Semiconductor Corp. All rights reserved.
4
5 Module Name:
6         Hal8703BPwrSeq.c
7
8 Abstract:
9         This file includes all kinds of Power Action event for RTL8703B and corresponding hardware configurtions which are released from HW SD.
10
11 Major Change History:
12         When       Who               What
13         ---------- ---------------   -------------------------------
14         2014-12-24 Ivan                      Version1
15
16 --*/
17
18 #include "Hal8703BPwrSeq.h"
19
20
21 /*
22     drivers should parse below arrays and do the corresponding actions
23 */
24 /* 3 Power on  Array */
25 WLAN_PWR_CFG rtl8703B_power_on_flow[RTL8703B_TRANS_CARDEMU_TO_ACT_STEPS + RTL8703B_TRANS_END_STEPS] = {
26         RTL8703B_TRANS_CARDEMU_TO_ACT
27         RTL8703B_TRANS_END
28 };
29
30 /* 3Radio off GPIO Array */
31 WLAN_PWR_CFG rtl8703B_radio_off_flow[RTL8703B_TRANS_ACT_TO_CARDEMU_STEPS + RTL8703B_TRANS_END_STEPS] = {
32         RTL8703B_TRANS_ACT_TO_CARDEMU
33         RTL8703B_TRANS_END
34 };
35
36 /* 3Card Disable Array */
37 WLAN_PWR_CFG rtl8703B_card_disable_flow[RTL8703B_TRANS_ACT_TO_CARDEMU_STEPS + RTL8703B_TRANS_CARDEMU_TO_PDN_STEPS + RTL8703B_TRANS_END_STEPS] = {
38         RTL8703B_TRANS_ACT_TO_CARDEMU
39         RTL8703B_TRANS_CARDEMU_TO_CARDDIS
40         RTL8703B_TRANS_END
41 };
42
43 /* 3 Card Enable Array */
44 WLAN_PWR_CFG rtl8703B_card_enable_flow[RTL8703B_TRANS_ACT_TO_CARDEMU_STEPS + RTL8703B_TRANS_CARDEMU_TO_PDN_STEPS + RTL8703B_TRANS_END_STEPS] = {
45         RTL8703B_TRANS_CARDDIS_TO_CARDEMU
46         RTL8703B_TRANS_CARDEMU_TO_ACT
47         RTL8703B_TRANS_END
48 };
49
50 /* 3Suspend Array */
51 WLAN_PWR_CFG rtl8703B_suspend_flow[RTL8703B_TRANS_ACT_TO_CARDEMU_STEPS + RTL8703B_TRANS_CARDEMU_TO_SUS_STEPS + RTL8703B_TRANS_END_STEPS] = {
52         RTL8703B_TRANS_ACT_TO_CARDEMU
53         RTL8703B_TRANS_CARDEMU_TO_SUS
54         RTL8703B_TRANS_END
55 };
56
57 /* 3 Resume Array */
58 WLAN_PWR_CFG rtl8703B_resume_flow[RTL8703B_TRANS_ACT_TO_CARDEMU_STEPS + RTL8703B_TRANS_CARDEMU_TO_SUS_STEPS + RTL8703B_TRANS_END_STEPS] = {
59         RTL8703B_TRANS_SUS_TO_CARDEMU
60         RTL8703B_TRANS_CARDEMU_TO_ACT
61         RTL8703B_TRANS_END
62 };
63
64
65
66 /* 3HWPDN Array */
67 WLAN_PWR_CFG rtl8703B_hwpdn_flow[RTL8703B_TRANS_ACT_TO_CARDEMU_STEPS + RTL8703B_TRANS_CARDEMU_TO_PDN_STEPS + RTL8703B_TRANS_END_STEPS] = {
68         RTL8703B_TRANS_ACT_TO_CARDEMU
69         RTL8703B_TRANS_CARDEMU_TO_PDN
70         RTL8703B_TRANS_END
71 };
72
73 /* 3 Enter LPS */
74 WLAN_PWR_CFG rtl8703B_enter_lps_flow[RTL8703B_TRANS_ACT_TO_LPS_STEPS + RTL8703B_TRANS_END_STEPS] = {
75         /* FW behavior */
76         RTL8703B_TRANS_ACT_TO_LPS
77         RTL8703B_TRANS_END
78 };
79
80 /* 3 Leave LPS */
81 WLAN_PWR_CFG rtl8703B_leave_lps_flow[RTL8703B_TRANS_LPS_TO_ACT_STEPS + RTL8703B_TRANS_END_STEPS] = {
82         /* FW behavior */
83         RTL8703B_TRANS_LPS_TO_ACT
84         RTL8703B_TRANS_END
85 };