From 545ed7ab3b2ad9e4fabeaae22fa4b7f07a6a9b1f Mon Sep 17 00:00:00 2001 From: Philipp Deppenwiese Date: Wed, 14 Feb 2018 16:47:12 +0100 Subject: drivers/i2c: Add i2c TPM support for different stages Change-Id: Ib0839933f8b59f0c87cdda4e5374828bd6f1099f Signed-off-by: Philipp Deppenwiese Reviewed-on: https://review.coreboot.org/23759 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: David Hendricks --- src/drivers/i2c/designware/Makefile.inc | 1 + src/mainboard/google/gale/Makefile.inc | 1 + src/mainboard/google/storm/Makefile.inc | 1 + src/soc/intel/apollolake/Makefile.inc | 1 + src/soc/intel/cannonlake/Makefile.inc | 3 +++ src/soc/intel/common/Makefile.inc | 1 + src/soc/intel/common/block/i2c/Makefile.inc | 1 + src/soc/intel/common/block/lpss/Makefile.inc | 1 + src/soc/intel/common/block/pmc/Makefile.inc | 1 + src/soc/intel/skylake/Makefile.inc | 1 + src/soc/mediatek/mt8173/Makefile.inc | 1 + src/soc/qualcomm/ipq40xx/Makefile.inc | 3 +++ src/soc/qualcomm/ipq806x/Makefile.inc | 3 +++ src/soc/rockchip/rk3288/Makefile.inc | 1 + src/soc/rockchip/rk3399/Makefile.inc | 1 + 15 files changed, 21 insertions(+) diff --git a/src/drivers/i2c/designware/Makefile.inc b/src/drivers/i2c/designware/Makefile.inc index 0e92f05cd2..b960a1cac4 100644 --- a/src/drivers/i2c/designware/Makefile.inc +++ b/src/drivers/i2c/designware/Makefile.inc @@ -4,5 +4,6 @@ bootblock-y += dw_i2c.c romstage-y += dw_i2c.c verstage-y += dw_i2c.c ramstage-y += dw_i2c.c +postcar-y += dw_i2c.c endif diff --git a/src/mainboard/google/gale/Makefile.inc b/src/mainboard/google/gale/Makefile.inc index 855e712914..acdca2b920 100644 --- a/src/mainboard/google/gale/Makefile.inc +++ b/src/mainboard/google/gale/Makefile.inc @@ -32,6 +32,7 @@ romstage-y += cdp.c romstage-y += chromeos.c romstage-y += mmu.c romstage-y += reset.c +romstage-y += blsp.c ramstage-y += boardid.c ramstage-y += cdp.c diff --git a/src/mainboard/google/storm/Makefile.inc b/src/mainboard/google/storm/Makefile.inc index b6039772c5..232ff487a6 100644 --- a/src/mainboard/google/storm/Makefile.inc +++ b/src/mainboard/google/storm/Makefile.inc @@ -30,6 +30,7 @@ romstage-y += cdp.c romstage-y += chromeos.c romstage-y += mmu.c romstage-y += reset.c +romstage-y += gsbi.c ramstage-y += boardid.c ramstage-y += cdp.c diff --git a/src/soc/intel/apollolake/Makefile.inc b/src/soc/intel/apollolake/Makefile.inc index cb66365ed6..8a37ae41e6 100644 --- a/src/soc/intel/apollolake/Makefile.inc +++ b/src/soc/intel/apollolake/Makefile.inc @@ -71,6 +71,7 @@ ramstage-y += sd.c postcar-y += memmap.c postcar-y += mmap_boot.c postcar-y += spi.c +postcar-y += i2c.c postcar-$(CONFIG_SOC_UART_DEBUG) += uart.c postcar-$(CONFIG_FSP_CAR) += exit_car_fsp.S diff --git a/src/soc/intel/cannonlake/Makefile.inc b/src/soc/intel/cannonlake/Makefile.inc index 0a09eb6780..013e86a922 100644 --- a/src/soc/intel/cannonlake/Makefile.inc +++ b/src/soc/intel/cannonlake/Makefile.inc @@ -65,6 +65,9 @@ smm-$(CONFIG_UART_DEBUG) += uart.c postcar-y += memmap.c postcar-y += pmutil.c +postcar-y += i2c.c +postcar-y += gspi.c +postcar-y += spi.c postcar-$(CONFIG_UART_DEBUG) += uart.c verstage-y += gspi.c diff --git a/src/soc/intel/common/Makefile.inc b/src/soc/intel/common/Makefile.inc index a897201690..11a457543b 100644 --- a/src/soc/intel/common/Makefile.inc +++ b/src/soc/intel/common/Makefile.inc @@ -30,6 +30,7 @@ bootblock-$(CONFIG_TPM_CR50) += tpm_tis.c verstage-$(CONFIG_TPM_CR50) += tpm_tis.c romstage-$(CONFIG_TPM_CR50) += tpm_tis.c ramstage-$(CONFIG_TPM_CR50) += tpm_tis.c +postcar-$(CONFIG_TPM_CR50) += tpm_tis.c ifeq ($(CONFIG_MMA),y) MMA_BLOBS_PATH = $(call strip_quotes,$(CONFIG_MMA_BLOBS_PATH)) diff --git a/src/soc/intel/common/block/i2c/Makefile.inc b/src/soc/intel/common/block/i2c/Makefile.inc index 9683210123..db26538b1a 100644 --- a/src/soc/intel/common/block/i2c/Makefile.inc +++ b/src/soc/intel/common/block/i2c/Makefile.inc @@ -3,6 +3,7 @@ ifeq ($(CONFIG_SOC_INTEL_COMMON_BLOCK_I2C),y) bootblock-y += i2c.c romstage-y += i2c.c verstage-y += i2c.c +postcar-y += i2c.c ramstage-y += i2c.c endif diff --git a/src/soc/intel/common/block/lpss/Makefile.inc b/src/soc/intel/common/block/lpss/Makefile.inc index 6ed654f750..a185492535 100644 --- a/src/soc/intel/common/block/lpss/Makefile.inc +++ b/src/soc/intel/common/block/lpss/Makefile.inc @@ -2,4 +2,5 @@ bootblock-$(CONFIG_SOC_INTEL_COMMON_BLOCK_LPSS) += lpss.c romstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_LPSS) += lpss.c verstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_LPSS) += lpss.c ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_LPSS) += lpss.c +postcar-$(CONFIG_SOC_INTEL_COMMON_BLOCK_LPSS) += lpss.c smm-$(CONFIG_SOC_INTEL_COMMON_BLOCK_LPSS) += lpss.c diff --git a/src/soc/intel/common/block/pmc/Makefile.inc b/src/soc/intel/common/block/pmc/Makefile.inc index 225311599d..965721714d 100644 --- a/src/soc/intel/common/block/pmc/Makefile.inc +++ b/src/soc/intel/common/block/pmc/Makefile.inc @@ -5,4 +5,5 @@ ramstage-y += pmc.c ramstage-y += pmclib.c smm-y += pmclib.c verstage-y += pmclib.c +postcar-y += pmclib.c endif diff --git a/src/soc/intel/skylake/Makefile.inc b/src/soc/intel/skylake/Makefile.inc index 89e48f1232..1060c2a11b 100644 --- a/src/soc/intel/skylake/Makefile.inc +++ b/src/soc/intel/skylake/Makefile.inc @@ -78,6 +78,7 @@ smm-$(CONFIG_UART_DEBUG) += uart.c postcar-y += memmap.c postcar-y += gspi.c postcar-y += spi.c +postcar-y += i2c.c postcar-$(CONFIG_UART_DEBUG) += uart.c # cpu_microcode_bins += ??? diff --git a/src/soc/mediatek/mt8173/Makefile.inc b/src/soc/mediatek/mt8173/Makefile.inc index 2aa7b8d978..20ca610b23 100644 --- a/src/soc/mediatek/mt8173/Makefile.inc +++ b/src/soc/mediatek/mt8173/Makefile.inc @@ -50,6 +50,7 @@ romstage-$(CONFIG_SPI_FLASH) += flash_controller.c romstage-y += ../common/pll.c pll.c romstage-y += ../common/timer.c romstage-y += timer.c +romstage-y += i2c.c romstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c romstage-y += ../common/cbmem.c diff --git a/src/soc/qualcomm/ipq40xx/Makefile.inc b/src/soc/qualcomm/ipq40xx/Makefile.inc index 08be7208a3..d66a3d80e1 100644 --- a/src/soc/qualcomm/ipq40xx/Makefile.inc +++ b/src/soc/qualcomm/ipq40xx/Makefile.inc @@ -38,6 +38,9 @@ romstage-$(CONFIG_SPI_FLASH) += spi.c romstage-y += timer.c romstage-$(CONFIG_DRIVERS_UART) += uart.c romstage-y += cbmem.c +romstage-y += i2c.c +romstage-y += blsp.c +romstage-y += qup.c ramstage-y += blobs_init.c ramstage-y += cbmem.c diff --git a/src/soc/qualcomm/ipq806x/Makefile.inc b/src/soc/qualcomm/ipq806x/Makefile.inc index 624b63322d..b14db038e5 100644 --- a/src/soc/qualcomm/ipq806x/Makefile.inc +++ b/src/soc/qualcomm/ipq806x/Makefile.inc @@ -37,6 +37,9 @@ romstage-$(CONFIG_SPI_FLASH) += spi.c romstage-y += timer.c romstage-$(CONFIG_DRIVERS_UART) += uart.c romstage-y += cbmem.c +romstage-y += i2c.c +romstage-y += gsbi.c +romstage-y += qup.c ramstage-y += blobs_init.c ramstage-y += cbmem.c diff --git a/src/soc/rockchip/rk3288/Makefile.inc b/src/soc/rockchip/rk3288/Makefile.inc index 75c2e240ee..100c00e059 100644 --- a/src/soc/rockchip/rk3288/Makefile.inc +++ b/src/soc/rockchip/rk3288/Makefile.inc @@ -54,6 +54,7 @@ romstage-y += sdram.c romstage-y += ../common/rk808.c romstage-y += ../common/pwm.c romstage-y += tsadc.c +romstage-y += ../common/i2c.c ramstage-y += soc.c ramstage-y += ../common/cbmem.c diff --git a/src/soc/rockchip/rk3399/Makefile.inc b/src/soc/rockchip/rk3399/Makefile.inc index b9c380390c..83936e830f 100644 --- a/src/soc/rockchip/rk3399/Makefile.inc +++ b/src/soc/rockchip/rk3399/Makefile.inc @@ -57,6 +57,7 @@ romstage-y += usb.c romstage-y += gpio.c romstage-y += saradc.c romstage-y += ../common/gpio.c +romstage-y += ../common/i2c.c ################################################################################ -- cgit v1.2.3