U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] vexpress64: Juno: Change PCI buss addresses for IO to start from zero.
@ 2016-11-22 11:19 Liviu Dudau
  2016-11-22 11:29 ` Sudeep Holla
  2016-11-29 18:02 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 8+ messages in thread
From: Liviu Dudau @ 2016-11-22 11:19 UTC (permalink / raw)
  To: u-boot

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 <Liviu.Dudau@foss.arm.com>
---
 board/armltd/vexpress64/pcie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/armltd/vexpress64/pcie.c b/board/armltd/vexpress64/pcie.c
index b3fb09c..0608a5a 100644
--- a/board/armltd/vexpress64/pcie.c
+++ b/board/armltd/vexpress64/pcie.c
@@ -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;
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-29 18:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-22 11:19 [U-Boot] [PATCH] vexpress64: Juno: Change PCI buss addresses for IO to start from zero Liviu Dudau
2016-11-22 11:29 ` Sudeep Holla
2016-11-22 12:08   ` Liviu Dudau
2016-11-22 15:08     ` Tom Rini
2016-11-22 15:54       ` Ryan Harkin
2016-11-22 16:10       ` Sudeep Holla
2016-11-28 17:11         ` Jeremy Linton
2016-11-29 18:02 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox