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:
parent
7756809c97
commit
3c99a1e015
9 changed files with 105 additions and 24 deletions
|
@ -88,7 +88,7 @@ void z_x86_early_serial_init(void)
|
|||
{
|
||||
#if defined(DEVICE_MMIO_IS_IN_RAM) && !defined(CONFIG_UART_NS16550_ACCESS_IOPORT)
|
||||
#ifdef X86_SOC_EARLY_SERIAL_PCIDEV
|
||||
struct pcie_mbar mbar;
|
||||
struct pcie_bar mbar;
|
||||
pcie_get_mbar(X86_SOC_EARLY_SERIAL_PCIDEV, 0, &mbar);
|
||||
pcie_set_cmd(X86_SOC_EARLY_SERIAL_PCIDEV, PCIE_CONF_CMDSTAT_MEM, true);
|
||||
device_map(&mmio, mbar.phys_addr, mbar.size, K_MEM_CACHE_NONE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue