mainboard/google/poppy: use intel common tis_plat_irq_status()
Utilize the intel/common code for tis_plat_irq_status() to remove dependencies and code duplication on for bringing up a board requiring tis_plat_irq_status(). Change-Id: I2aaa1d7d3ce171dc1788438ff9990fce533deb6c Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/19371 Tested-by: build bot (Jenkins)
This commit is contained in:
parent
9d9a121fa0
commit
3f98aadacd
|
@ -74,4 +74,11 @@ config VBOOT
|
||||||
select EC_GOOGLE_CHROMEEC_SWITCHES
|
select EC_GOOGLE_CHROMEEC_SWITCHES
|
||||||
select VBOOT_LID_SWITCH
|
select VBOOT_LID_SWITCH
|
||||||
|
|
||||||
|
config DRIVER_TPM_SPI_BUS
|
||||||
|
default 0x1
|
||||||
|
|
||||||
|
config TPM_TIS_ACPI_INTERRUPT
|
||||||
|
int
|
||||||
|
default 64 # GPE0_DW2_00 (GPP_E0)
|
||||||
|
|
||||||
endif # BOARD_GOOGLE_BASEBOARD_POPPY
|
endif # BOARD_GOOGLE_BASEBOARD_POPPY
|
||||||
|
|
|
@ -17,9 +17,7 @@
|
||||||
#include <baseboard/variants.h>
|
#include <baseboard/variants.h>
|
||||||
#include <gpio.h>
|
#include <gpio.h>
|
||||||
#include <rules.h>
|
#include <rules.h>
|
||||||
#include <soc/gpe.h>
|
|
||||||
#include <soc/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <tpm.h>
|
|
||||||
#include <vendorcode/google/chromeos/chromeos.h>
|
#include <vendorcode/google/chromeos/chromeos.h>
|
||||||
|
|
||||||
#include <variant/gpio.h>
|
#include <variant/gpio.h>
|
||||||
|
@ -56,8 +54,3 @@ void mainboard_chromeos_acpi_generate(void)
|
||||||
gpios = variant_cros_gpios(&num);
|
gpios = variant_cros_gpios(&num);
|
||||||
chromeos_acpi_gpio_generate(gpios, num);
|
chromeos_acpi_gpio_generate(gpios, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
int tis_plat_irq_status(void)
|
|
||||||
{
|
|
||||||
return acpi_get_gpe(GPE0_DW2_00);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue