Skip to content

Commit

Permalink
vexpress64: Juno: Change PCI buss addresses for IO to start from zero.
Browse files Browse the repository at this point in the history
Juno uses a 1:1 mapping between CPU and PCI addresses for IO. First,
that will trip devices that cannot use more than 16 bits of addresses
for IO, second it is un-necessary as the system can handle zero-based
PCI addresses just fine.

Change the mapping to start IO bus addresses from zero.

Signed-off-by: Liviu Dudau <[email protected]>
  • Loading branch information
dliviu authored and trini committed Nov 29, 2016
1 parent 1bcf7a3 commit 88e0d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/armltd/vexpress64/pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void xr3pci_setup_atr(void)
base += XR3PCI_ATR_TABLE_SIZE;

/* setup IO space translation */
xr3pci_set_atr_entry(base, XR3_PCI_IOSPACE_START, XR3_PCI_IOSPACE_START,
xr3pci_set_atr_entry(base, XR3_PCI_IOSPACE_START, 0,
XR3_PCI_IOSPACE_SIZE, XR3PCI_ATR_TRSLID_PCIE_IO);

base += XR3PCI_ATR_TABLE_SIZE;
Expand Down

0 comments on commit 88e0d59

Please sign in to comment.