From 7b7250dfaec967fd16dee641e1eb7943bf54a2c3 Mon Sep 17 00:00:00 2001 From: Yu-Ping Wu Date: Tue, 19 Jul 2022 17:43:29 +0800 Subject: mb/google/cherry: Introduce mainboard_needs_pcie_init Implement mainboard_needs_pcie_init() for cherry as a callback for mt8195 SoC to determine whether to initialize PCIe. When the SKU id is unknown or unprovisioned (for example at the beginning of the factory flow), we should still initialize PCIe. Otherwise the devices with NVMe will fail to boot. BUG=b:238850212 TEST=emerge-cherry coreboot BRANCH=cherry Change-Id: I2ed0ceeb37d2924ca16485fb2d130959a7eff102 Signed-off-by: Yu-Ping Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/65992 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin --- src/soc/mediatek/mt8195/include/soc/pcie.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/mediatek/mt8195/include/soc/pcie.h') diff --git a/src/soc/mediatek/mt8195/include/soc/pcie.h b/src/soc/mediatek/mt8195/include/soc/pcie.h index 21a66681e4d1..aa7502ecf217 100644 --- a/src/soc/mediatek/mt8195/include/soc/pcie.h +++ b/src/soc/mediatek/mt8195/include/soc/pcie.h @@ -4,8 +4,11 @@ #define SOC_MEDIATEK_MT8195_PCIE_H #include +#include void mtk_pcie_reset(uintptr_t reg, bool enable); void mtk_pcie_pre_init(void); +bool mainboard_needs_pcie_init(void); + #endif -- cgit v1.2.3