coreboot/src/soc
Aaron Durbin ac8e4db246 soc/intel/common/gpio: fix gpi_status_get()
A pad number is passed into gpi_status_get() to determine if its
associated bit is set from a generated event. However, the
implementation wasn't taking into account the gpi_status_offset
which dictates the starting offset for each community. Additionally,
the max_pads_per_group field is per community as well -- not global.
Fix the code to properly take into account the community's
gpi_status_offset as well as the max_pads_per_group.

Change-Id: Ia18ac6cbac31e3da3ae0ce3764ac33aa9286ac63
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/20652
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hannah Williams <hannah.williams@intel.com>
2017-07-20 17:06:48 +00:00
..
amd soc/amd/stoneyridge:Fix IS_ENABLED() around Kconfig symbol references 2017-07-16 19:22:33 +00:00
broadcom/cygnus src/soc: add IS_ENABLED() around Kconfig symbol references 2017-07-16 19:22:25 +00:00
dmp/vortex86ex src/soc: add IS_ENABLED() around Kconfig symbol references 2017-07-16 19:22:25 +00:00
imgtec/pistachio Consolidate reset API, add generic reset_prepare mechanism 2017-06-13 20:53:09 +02:00
intel soc/intel/common/gpio: fix gpi_status_get() 2017-07-20 17:06:48 +00:00
lowrisc/lowrisc
marvell/mvmap2315 Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
mediatek/mt8173 src/soc: add IS_ENABLED() around Kconfig symbol references 2017-07-16 19:22:25 +00:00
nvidia src/soc: add IS_ENABLED() around Kconfig symbol references 2017-07-16 19:22:25 +00:00
qualcomm Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
rockchip rockchip/rk3399: Adjust gpio_t format to match ARM TF 2017-07-19 18:15:10 +00:00
samsung Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
ucb/riscv