* [U-Boot] rpi USB address question
@ 2015-07-06 12:35 Simon Glass
2015-07-06 13:10 ` Albert ARIBAUD
0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2015-07-06 12:35 UTC (permalink / raw)
To: u-boot
Hi Stephen,
I see in the kernel device tree that the rpi uses address 0x7e980000
for the DWC2 USB controller. But in U-Boot CONFIG_USB_DWC2_REG_ADDR is
set to 0x20980000. Is there some sort of translation going on here?
Regards,
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] rpi USB address question
2015-07-06 12:35 [U-Boot] rpi USB address question Simon Glass
@ 2015-07-06 13:10 ` Albert ARIBAUD
2015-07-07 13:52 ` Simon Glass
0 siblings, 1 reply; 3+ messages in thread
From: Albert ARIBAUD @ 2015-07-06 13:10 UTC (permalink / raw)
To: u-boot
Hello Simon,
On Mon, 6 Jul 2015 06:35:23 -0600, Simon Glass <sjg@chromium.org> wrote:
> Hi Stephen,
>
> I see in the kernel device tree that the rpi uses address 0x7e980000
> for the DWC2 USB controller. But in U-Boot CONFIG_USB_DWC2_REG_ADDR is
> set to 0x20980000. Is there some sort of translation going on here?
https://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf
Section 1.2.3 / page 6
"Physical addresses range from 0x20000000 to 0x20FFFFFF for peripherals.
The bus addresses for peripherals are set up to map onto the peripheral
bus address range starting at 0x7E000000. Thus a peripheral advertised
here at bus address 0x7Ennnnnn is available at physical address
0x20nnnnnn"
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] rpi USB address question
2015-07-06 13:10 ` Albert ARIBAUD
@ 2015-07-07 13:52 ` Simon Glass
0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2015-07-07 13:52 UTC (permalink / raw)
To: u-boot
Hi Albert,
On 6 July 2015 at 07:10, Albert ARIBAUD <albert.u.boot@aribaud.net> wrote:
> Hello Simon,
>
> On Mon, 6 Jul 2015 06:35:23 -0600, Simon Glass <sjg@chromium.org> wrote:
>> Hi Stephen,
>>
>> I see in the kernel device tree that the rpi uses address 0x7e980000
>> for the DWC2 USB controller. But in U-Boot CONFIG_USB_DWC2_REG_ADDR is
>> set to 0x20980000. Is there some sort of translation going on here?
>
> https://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf
>
> Section 1.2.3 / page 6
>
> "Physical addresses range from 0x20000000 to 0x20FFFFFF for peripherals.
> The bus addresses for peripherals are set up to map onto the peripheral
> bus address range starting at 0x7E000000. Thus a peripheral advertised
> here at bus address 0x7Ennnnnn is available at physical address
> 0x20nnnnnn"
Thanks for the link. It looks like I'll need to implement the 'ranges'
property for simple-bus, sadly.
Regards,
Simon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-07 13:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06 12:35 [U-Boot] rpi USB address question Simon Glass
2015-07-06 13:10 ` Albert ARIBAUD
2015-07-07 13:52 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox