coreboot-kgpe-d16/src/soc
Aaron Durbin af030503e8 skylake: fix SMI GPI status handling
The current construction for processing SMI GPI events
didn't allow for the mainboard to query the state of a
particular GPI for the snapshotted SMI event. The
skylake part can route GPIs from any (there are design
limitations) GPIO group. Those status and enable registers
are within the GPIO community so one needs to gather
all the possibilities in order to query the state.

The call chain did this:
southbridge_smi_gpi(
	clear_alt_smi_status() -> reset_alt_smi_status() ->
	print_all_smi_status() -> return 0)

As a replacement the following functions and types are
introduced:

struct gpi_status - represent gpi status.
gpi_status_get() - per gpi query on struct gpi_status
gpi_clear_get_smi_status() - clear and retrieve SMI GPI status
mainboard_smi_gpi_handler() - mainboard handler using gpi_status

Also remove gpio_enable_all_smi() as that construct was never
used, but it also is quite heavy handed in that it would
enable SMI generation for all GPIs.

BUG=chrome-os-partner:43778
BRANCH=None
TEST=Built.

Original-Change-Id: Ief977e60de65d9964b8ee58f2433cae5c93872ca
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/291933
Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org>

Change-Id: Ida009393c6af88ffe910195dc79a4c0d2a4c029e
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/11208
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
2015-08-14 15:21:16 +02:00
..
broadcom/cygnus broadcom/cygnus: returning from verstage without having one is useless 2015-08-08 12:05:51 +02:00
imgtec/pistachio imgtech/pistacho: Add vboot2 memory region 2015-08-09 21:57:57 +02:00
intel skylake: fix SMI GPI status handling 2015-08-14 15:21:16 +02:00
marvell/bg4cd marvel/bg4cd: move timestamp init to SoC code 2015-07-07 20:07:41 +02:00
nvidia license headers: Drop FSF addresses again 2015-08-09 17:49:13 +02:00
qualcomm/ipq806x ipq8064: enable timestamp collection 2015-07-09 00:11:37 +02:00
rockchip/rk3288 rk3288: Fix & vs && mix up in hdmi driver 2015-07-09 00:31:14 +02:00
samsung samsung/exynos5250: Add vboot2 memory region 2015-08-09 21:58:05 +02:00
ucb/riscv