diff --git a/src/soc/mediatek/common/pcie.c b/src/soc/mediatek/common/pcie.c index bcae4b5dd6..febb76dc77 100644 --- a/src/soc/mediatek/common/pcie.c +++ b/src/soc/mediatek/common/pcie.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include #include #include #include @@ -210,6 +211,15 @@ void mtk_pcie_domain_set_resources(struct device *dev) pci_domain_set_resources(dev); } +enum cb_err lb_fill_pcie(struct lb_pcie *pcie) +{ + if (!pci_root_bus()) + return CB_ERR; + + pcie->ctrl_base = mtk_pcie_get_controller_base(0); + return CB_SUCCESS; +} + void mtk_pcie_domain_enable(struct device *dev) { const mtk_soc_config_t *config = config_of(dev);