summaryrefslogtreecommitdiff
path: root/src/soc/intel/tigerlake/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/tigerlake/Makefile.inc')
-rw-r--r--src/soc/intel/tigerlake/Makefile.inc16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/soc/intel/tigerlake/Makefile.inc b/src/soc/intel/tigerlake/Makefile.inc
index 22714e1166..d25c98e88f 100644
--- a/src/soc/intel/tigerlake/Makefile.inc
+++ b/src/soc/intel/tigerlake/Makefile.inc
@@ -18,12 +18,10 @@ bootblock-y += bootblock/bootblock.c
bootblock-y += bootblock/pch.c
bootblock-y += bootblock/report_platform.c
bootblock-y += espi.c
-bootblock-y += gpio.c
bootblock-y += p2sb.c
romstage-y += espi.c
romstage-y += meminit.c
-romstage-y += gpio.c
romstage-y += reset.c
ramstage-y += acpi.c
@@ -34,7 +32,6 @@ ramstage-y += elog.c
ramstage-y += espi.c
ramstage-y += finalize.c
ramstage-y += fsp_params.c
-ramstage-y += gpio.c
ramstage-y += lockdown.c
ramstage-y += me.c
ramstage-y += p2sb.c
@@ -45,7 +42,6 @@ ramstage-y += systemagent.c
ramstage-y += xhci.c
ramstage-$(CONFIG_SOC_INTEL_CRASHLOG) += crashlog_lib.c
-smm-y += gpio.c
smm-y += p2sb.c
smm-y += pmutil.c
smm-y += smihandler.c
@@ -53,7 +49,19 @@ smm-y += uart.c
smm-y += elog.c
smm-y += xhci.c
+ifeq ($(CONFIG_SOC_INTEL_TIGERLAKE_PCH_H),y)
+bootblock-y += gpio_pch_h.c
+romstage-y += gpio_pch_h.c
+ramstage-y += gpio_pch_h.c
+smm-y += gpio_pch_h.c
+verstage-y += gpio_pch_h.c
+else
+bootblock-y += gpio.c
+romstage-y += gpio.c
+ramstage-y += gpio.c
+smm-y += gpio.c
verstage-y += gpio.c
+endif
CPPFLAGS_common += -I$(src)/soc/intel/tigerlake
CPPFLAGS_common += -I$(src)/soc/intel/tigerlake/include