diff options
author | Aaron Durbin <adurbin@chromium.org> | 2017-07-19 10:46:46 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-07-20 17:06:48 +0000 |
commit | ac8e4db246861b917513133aaf02a668cdfd0915 (patch) | |
tree | 71b04c5eabf3b422c835fc11bf7e67f74fd18ab3 /src/soc/intel/fsp_baytrail | |
parent | ea864f4a2d6ad85c97e78e36b8a30e605d3a5881 (diff) |
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>
Diffstat (limited to 'src/soc/intel/fsp_baytrail')
0 files changed, 0 insertions, 0 deletions