linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* mvebu: how to determine the address of the internal register window
@ 2018-12-10 17:09 Uwe Kleine-König
  2018-12-11  9:37 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2018-12-10 17:09 UTC (permalink / raw)
  To: Jason Cooper, Andrew Lunn, Gregory Clement, Sebastian Hesselbarth
  Cc: kernel, linux-arm-kernel


[-- Attachment #1.1.1: Type: text/plain, Size: 747 bytes --]

Hello,

using barebox on an mvebu machine the internal register window is moved
from 0xd0000000 to 0xf1000000. Compared to U-Boot the PCI Express BAR0
Internal Registers (on Armada 370: 0x40010 and 0x80010, on Armada XP a
few more) are not fixed which makes accessing pci devices fail. Instead
of letting barebox fix this up I'd like to make Linux ensure the
register is configured correctly.

I think the right place for that is mvebu_pcie_setup_wins which needs to do

	mvebu_writel(port, intregoffset, PCIE_BAR_LO_OFF(0));

I wonder however how I should determine the actual value to write here.
I didn't find a function that exports the offset of the internal
register window. Do you have a hint for me?

Best regards
Uwe


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2018-12-11  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-10 17:09 mvebu: how to determine the address of the internal register window Uwe Kleine-König
2018-12-11  9:37 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).