summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/tigerlake/gpio.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/soc/intel/tigerlake/gpio.c b/src/soc/intel/tigerlake/gpio.c
index f8d4abc3ae..313409736e 100644
--- a/src/soc/intel/tigerlake/gpio.c
+++ b/src/soc/intel/tigerlake/gpio.c
@@ -5,6 +5,8 @@
#include <soc/pcr_ids.h>
#include <soc/pmc.h>
+#define DEFAULT_VW_BASE 0x10
+
/*
* This file is created based on Intel Tiger Lake Processor PCH Datasheet
* Document number: 575857
@@ -42,6 +44,11 @@ static const struct pad_group tgl_community0_groups[] = {
INTEL_GPP_BASE(GPP_B0, GPP_A0, GPP_A24, 64), /* GPP_A */
};
+static const struct vw_entries tgl_community0_vw[] = {
+ {GPP_A0, GPP_A23},
+ {GPP_B0, GPP_B23},
+};
+
static const struct pad_group tgl_community1_groups[] = {
INTEL_GPP_BASE(GPP_S0, GPP_S0, GPP_S7, 96), /* GPP_S */
INTEL_GPP_BASE(GPP_S0, GPP_H0, GPP_H23, 128), /* GPP_H */
@@ -50,6 +57,11 @@ static const struct pad_group tgl_community1_groups[] = {
INTEL_GPP_BASE(GPP_S0, CNV_BTEN, vI2S2_RXD, 224), /* GPP_VGPIO */
};
+static const struct vw_entries tgl_community1_vw[] = {
+ {GPP_D0, GPP_D19},
+ {GPP_H0, GPP_H23},
+};
+
/* This community is not visible to the OS */
static const struct pad_group tgl_community2_groups[] = {
INTEL_GPP(GPD0, GPD0, GPD_DRAM_RESETB), /* GPD */
@@ -63,6 +75,12 @@ static const struct pad_group tgl_community4_groups[] = {
INTEL_GPP(GPP_C0, GPP_JTAG_TDO, GPP_DBG_PMODE), /* GPP_JTAG */
};
+static const struct vw_entries tgl_community4_vw[] = {
+ {GPP_F0, GPP_F23},
+ {GPP_C0, GPP_C23},
+ {GPP_E0, GPP_E23},
+};
+
static const struct pad_group tgl_community5_groups[] = {
INTEL_GPP_BASE(GPP_R0, GPP_R0, GPP_R7, 352), /* GPP_R */
INTEL_GPP(GPP_R0, GPP_SPI_IO_2, GPP_CLK_LOOPBK), /* GPP_SPI */
@@ -87,6 +105,9 @@ static const struct pad_community tgl_communities[] = {
.num_reset_vals = ARRAY_SIZE(rst_map),
.groups = tgl_community0_groups,
.num_groups = ARRAY_SIZE(tgl_community0_groups),
+ .vw_base = DEFAULT_VW_BASE,
+ .vw_entries = tgl_community0_vw,
+ .num_vw_entries = ARRAY_SIZE(tgl_community0_vw),
},
[COMM_1] = { /* GPP S, D, H, U, VGPIO */
.port = PID_GPIOCOM1,
@@ -106,6 +127,9 @@ static const struct pad_community tgl_communities[] = {
.num_reset_vals = ARRAY_SIZE(rst_map),
.groups = tgl_community1_groups,
.num_groups = ARRAY_SIZE(tgl_community1_groups),
+ .vw_base = DEFAULT_VW_BASE,
+ .vw_entries = tgl_community1_vw,
+ .num_vw_entries = ARRAY_SIZE(tgl_community1_vw),
},
[COMM_2] = { /* GPD */
.port = PID_GPIOCOM2,
@@ -144,6 +168,9 @@ static const struct pad_community tgl_communities[] = {
.num_reset_vals = ARRAY_SIZE(rst_map),
.groups = tgl_community4_groups,
.num_groups = ARRAY_SIZE(tgl_community4_groups),
+ .vw_base = DEFAULT_VW_BASE,
+ .vw_entries = tgl_community4_vw,
+ .num_vw_entries = ARRAY_SIZE(tgl_community4_vw),
},
[COMM_5] = { /* GPP R, SPI */
.port = PID_GPIOCOM5,