drivers: pcie: reintroduce support for I/O BARs

Reintroduce support for accessing I/O BARs which was removed in
43d84147d9.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2022-10-21 10:23:42 +02:00 committed by Christopher Friedt
commit 3c99a1e015
9 changed files with 105 additions and 24 deletions

View file

@ -333,7 +333,7 @@ static int uart_ns16550_configure(const struct device *dev,
#ifndef CONFIG_UART_NS16550_ACCESS_IOPORT
#if DT_ANY_INST_ON_BUS_STATUS_OKAY(pcie)
if (dev_cfg->pcie) {
struct pcie_mbar mbar;
struct pcie_bar mbar;
if (!pcie_probe(dev_cfg->pcie_bdf, dev_cfg->pcie_id)) {
ret = -EINVAL;