Skip to content

Commit c6235c4

Browse files
andy-shevwesteri
authored andcommitted
pinctrl: elkhartlake: Add support for DSW community
Hardware has a DSW (Deep Sleep Well) community that might be exposed by some BIOSes. Add support for it in the driver. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Mika Westerberg <[email protected]>
1 parent 4cbf2b6 commit c6235c4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

drivers/pinctrl/intel/pinctrl-elkhartlake.c

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,43 @@ static const struct intel_pinctrl_soc_data ehl_community1_soc_data = {
264264
.ncommunities = ARRAY_SIZE(ehl_community1),
265265
};
266266

267+
static const struct pinctrl_pin_desc ehl_community2_pins[] = {
268+
/* DSW */
269+
PINCTRL_PIN(0, "BATLOWB"),
270+
PINCTRL_PIN(1, "ACPRESENT"),
271+
PINCTRL_PIN(2, "LAN_WAKEB"),
272+
PINCTRL_PIN(3, "PWRBTNB"),
273+
PINCTRL_PIN(4, "SLP_S3B"),
274+
PINCTRL_PIN(5, "SLP_S4B"),
275+
PINCTRL_PIN(6, "SLP_AB"),
276+
PINCTRL_PIN(7, "GPD_7"),
277+
PINCTRL_PIN(8, "SUSCLK"),
278+
PINCTRL_PIN(9, "SLP_WLANB"),
279+
PINCTRL_PIN(10, "SLP_S5B"),
280+
PINCTRL_PIN(11, "LANPHYPC"),
281+
PINCTRL_PIN(12, "INPUT3VSEL"),
282+
PINCTRL_PIN(13, "SLP_LANB"),
283+
PINCTRL_PIN(14, "SLP_SUSB"),
284+
PINCTRL_PIN(15, "WAKEB"),
285+
PINCTRL_PIN(16, "DRAM_RESETB"),
286+
};
287+
288+
static const struct intel_padgroup ehl_community2_gpps[] = {
289+
EHL_GPP(0, 0, 16), /* DSW */
290+
};
291+
292+
static const struct intel_community ehl_community2[] = {
293+
EHL_COMMUNITY(0, 0, 16, ehl_community2_gpps),
294+
};
295+
296+
static const struct intel_pinctrl_soc_data ehl_community2_soc_data = {
297+
.uid = "2",
298+
.pins = ehl_community2_pins,
299+
.npins = ARRAY_SIZE(ehl_community2_pins),
300+
.communities = ehl_community2,
301+
.ncommunities = ARRAY_SIZE(ehl_community2),
302+
};
303+
267304
static const struct pinctrl_pin_desc ehl_community3_pins[] = {
268305
/* CPU */
269306
PINCTRL_PIN(0, "HDACPU_SDI"),
@@ -474,6 +511,7 @@ static const struct intel_pinctrl_soc_data ehl_community5_soc_data = {
474511
static const struct intel_pinctrl_soc_data *ehl_soc_data_array[] = {
475512
&ehl_community0_soc_data,
476513
&ehl_community1_soc_data,
514+
&ehl_community2_soc_data,
477515
&ehl_community3_soc_data,
478516
&ehl_community4_soc_data,
479517
&ehl_community5_soc_data,

0 commit comments

Comments
 (0)