summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/common/block/gpio/gpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/gpio/gpio.c b/src/soc/intel/common/block/gpio/gpio.c
index 6e9ae72c58..ce867ceadc 100644
--- a/src/soc/intel/common/block/gpio/gpio.c
+++ b/src/soc/intel/common/block/gpio/gpio.c
@@ -384,7 +384,8 @@ int gpi_status_get(const struct gpi_status *sts, gpio_t pad)
const struct pad_community *comm = gpio_get_community(pad);
pad = pad - comm->first_pad;
- sts_index = pad / comm->max_pads_per_group;
+ sts_index = comm->gpi_status_offset;
+ sts_index += pad / comm->max_pads_per_group;
return !!(sts->grp[sts_index] &
(1 << pad % comm->max_pads_per_group));