diff options
-rw-r--r-- | src/soc/mediatek/common/pcie.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <boot/coreboot_tables.h> #include <commonlib/stdlib.h> #include <console/console.h> #include <device/device.h> @@ -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); |