xref: /wlan-driver/qcacld-3.0/components/pmo/dispatcher/inc/wlan_pmo_wow_pulse_cfg.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2012-2018, 2020 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name #ifndef WLAN_PMO_WOW_PULSE_CFG_H__
20*5113495bSYour Name #define WLAN_PMO_WOW_PULSE_CFG_H__
21*5113495bSYour Name 
22*5113495bSYour Name #ifdef WLAN_FEATURE_WOW_PULSE
23*5113495bSYour Name /*
24*5113495bSYour Name  * <ini>
25*5113495bSYour Name  * gwow_pulse_support - WOW pulse feature configuration
26*5113495bSYour Name  * @Min: 0
27*5113495bSYour Name  * @Max: 1
28*5113495bSYour Name  * @Default: 0
29*5113495bSYour Name  *
30*5113495bSYour Name  * When set to 1 WOW pulse feature will be enabled.
31*5113495bSYour Name  *
32*5113495bSYour Name  * Related: gwow_pulse_pin, gwow_pulse_interval_low, gwow_pulse_interval_high
33*5113495bSYour Name  *
34*5113495bSYour Name  * Supported Feature: WOW pulse
35*5113495bSYour Name  *
36*5113495bSYour Name  * Usage: External
37*5113495bSYour Name  *
38*5113495bSYour Name  * </ini>
39*5113495bSYour Name  */
40*5113495bSYour Name #define CFG_PMO_WOW_PULSE_ENABLE CFG_INI_BOOL("gwow_pulse_support", \
41*5113495bSYour Name 					      0, \
42*5113495bSYour Name 					      "Enable wow pulse")
43*5113495bSYour Name 
44*5113495bSYour Name /*
45*5113495bSYour Name  * <ini>
46*5113495bSYour Name  * gwow_pulse_pin - GPIO pin for WOW pulse
47*5113495bSYour Name  * @Min: 0
48*5113495bSYour Name  * @Max: 254
49*5113495bSYour Name  * @Default: 35
50*5113495bSYour Name  *
51*5113495bSYour Name  * Which PIN to send the Pulse
52*5113495bSYour Name  *
53*5113495bSYour Name  * Supported Feature: WOW pulse
54*5113495bSYour Name  *
55*5113495bSYour Name  * Usage: External
56*5113495bSYour Name  *
57*5113495bSYour Name  * </ini>
58*5113495bSYour Name  */
59*5113495bSYour Name #define CFG_PMO_WOW_PULSE_PIN CFG_INI_UINT("gwow_pulse_pin", \
60*5113495bSYour Name 					   0, 254, 35, \
61*5113495bSYour Name 					   CFG_VALUE_OR_DEFAULT, \
62*5113495bSYour Name 					   "Pin for wow pulse")
63*5113495bSYour Name 
64*5113495bSYour Name /*
65*5113495bSYour Name  * <ini>
66*5113495bSYour Name  * gwow_pulse_interval_low - Pulse interval low
67*5113495bSYour Name  * @Min: 160
68*5113495bSYour Name  * @Max: 480
69*5113495bSYour Name  * @Default: 180
70*5113495bSYour Name  *
71*5113495bSYour Name  * The interval of low level in the pulse
72*5113495bSYour Name  *
73*5113495bSYour Name  * Supported Feature: WOW pulse
74*5113495bSYour Name  *
75*5113495bSYour Name  * Usage: External
76*5113495bSYour Name  *
77*5113495bSYour Name  * </ini>
78*5113495bSYour Name  */
79*5113495bSYour Name #define CFG_PMO_WOW_PULSE_LOW CFG_INI_UINT("gwow_pulse_interval_low", \
80*5113495bSYour Name 					   160, 480, 180, \
81*5113495bSYour Name 					   CFG_VALUE_OR_DEFAULT, \
82*5113495bSYour Name 					   "Interval of low pulse")
83*5113495bSYour Name 
84*5113495bSYour Name /*
85*5113495bSYour Name  * <ini>
86*5113495bSYour Name  * gwow_pulse_interval_high - Pulse interval high
87*5113495bSYour Name  * @Min: 20
88*5113495bSYour Name  * @Max: 40
89*5113495bSYour Name  * @Default: 20
90*5113495bSYour Name  *
91*5113495bSYour Name  * The interval of high level in the pulse
92*5113495bSYour Name  *
93*5113495bSYour Name  * Supported Feature: WOW pulse
94*5113495bSYour Name  *
95*5113495bSYour Name  * Usage: External
96*5113495bSYour Name  *
97*5113495bSYour Name  * </ini>
98*5113495bSYour Name  */
99*5113495bSYour Name #define CFG_PMO_WOW_PULSE_HIGH CFG_INI_UINT("gwow_pulse_interval_high", \
100*5113495bSYour Name 					    20, 40, 20, \
101*5113495bSYour Name 					    CFG_VALUE_OR_DEFAULT, \
102*5113495bSYour Name 					    "Interval of high pulse")
103*5113495bSYour Name 
104*5113495bSYour Name /*
105*5113495bSYour Name  * <ini>
106*5113495bSYour Name  * gwow_pulse_repeat_count - wow pulse repetition count
107*5113495bSYour Name  * @Min: 1
108*5113495bSYour Name  * @Max: 0xffffffff
109*5113495bSYour Name  * @Default: 1
110*5113495bSYour Name  *
111*5113495bSYour Name  * The repeat count of wow pin wave.
112*5113495bSYour Name  * Level low to level high is one time, 0xffffffff means endless.
113*5113495bSYour Name  *
114*5113495bSYour Name  * Supported Feature: WOW pulse
115*5113495bSYour Name  *
116*5113495bSYour Name  * Usage: External
117*5113495bSYour Name  *
118*5113495bSYour Name  * </ini>
119*5113495bSYour Name  */
120*5113495bSYour Name #define CFG_PMO_WOW_PULSE_REPEAT CFG_INI_UINT("gwow_pulse_repeat_count", \
121*5113495bSYour Name 					      1, 0xffffffff, 1, \
122*5113495bSYour Name 					      CFG_VALUE_OR_DEFAULT, \
123*5113495bSYour Name 					      "Pulse repetition count")
124*5113495bSYour Name 
125*5113495bSYour Name /*
126*5113495bSYour Name  * <ini>
127*5113495bSYour Name  * gwow_pulse_init_state - wow pulse init level
128*5113495bSYour Name  * @Min: 0
129*5113495bSYour Name  * @Max: 1
130*5113495bSYour Name  * @Default: 0
131*5113495bSYour Name  *
132*5113495bSYour Name  * The init level of wow pin, 1 is high level, 0 is low level.
133*5113495bSYour Name  *
134*5113495bSYour Name  * Supported Feature: WOW pulse
135*5113495bSYour Name  *
136*5113495bSYour Name  * Usage: External
137*5113495bSYour Name  *
138*5113495bSYour Name  * </ini>
139*5113495bSYour Name  */
140*5113495bSYour Name #define CFG_PMO_WOW_PULSE_INIT CFG_INI_UINT("gwow_pulse_init_state", \
141*5113495bSYour Name 					    0, 1, 1, \
142*5113495bSYour Name 					    CFG_VALUE_OR_DEFAULT, \
143*5113495bSYour Name 					    "Pulse init level")
144*5113495bSYour Name 
145*5113495bSYour Name #define CFG_WOW_PULSE_ALL \
146*5113495bSYour Name 	CFG(CFG_PMO_WOW_PULSE_ENABLE) \
147*5113495bSYour Name 	CFG(CFG_PMO_WOW_PULSE_PIN) \
148*5113495bSYour Name 	CFG(CFG_PMO_WOW_PULSE_LOW) \
149*5113495bSYour Name 	CFG(CFG_PMO_WOW_PULSE_HIGH) \
150*5113495bSYour Name 	CFG(CFG_PMO_WOW_PULSE_REPEAT) \
151*5113495bSYour Name 	CFG(CFG_PMO_WOW_PULSE_INIT)
152*5113495bSYour Name #else
153*5113495bSYour Name #define CFG_WOW_PULSE_ALL
154*5113495bSYour Name #endif /* WLAN_FEATURE_WOW_PULSE */
155*5113495bSYour Name #endif /* WLAN_PMO_WOW_PULSE_CFG_H__ */
156