summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2021-05-03 13:05:12 -0600
committerTim Wawrzynczak <twawrzynczak@chromium.org>2021-05-06 04:12:13 +0000
commit8d3cc1bcc23a768af879dee160276eae489c5de8 (patch)
tree956049813765cfe6615f7b8359eeca7b23b54a73 /src
parent629ddfd265afed7a5198ddbe58aef66297be4c61 (diff)
soc/intel/tigerlake: Add known GPIO virtual wire information
GPIO communities 0, 1, and 4 have virtual wire indexes & bits for at least some of their groups; add the known information into the community definitions. Change-Id: Icc4581e61ee904cbd998738962d360a58d24bc35 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52589 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-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,