[U-Boot] [PATCH v1 8/9] usb: Add EHCI support for Armada 38x (mvebu)
Stefan Roese
sr at denx.de
Thu Jul 2 13:03:33 CEST 2015
Hi Marek,
On 29.06.2015 17:22, Marek Vasut wrote:
> On Monday, June 29, 2015 at 02:58:15 PM, Stefan Roese wrote:
>> This patch adds USB EHCI host support for the common mvebu platform.
>> Including the Armada 38x.
>>
>> Tested on DB-88F6280-GP eval board.
>>
>> Signed-off-by: Stefan Roese <sr at denx.de>
>> Cc: Marek Vasut <marex at denx.de>
>> Cc: Luka Perkov <luka.perkov at sartura.hr>
>
> Reviewed-by: Marek Vasut <marex at denx.de>
Thanks.
> [...]
>
>> +static void usb_brg_adrdec_setup(void)
>> +{
>> + const struct mbus_dram_target_info *dram;
>> + int i;
>> +
>> + dram = mvebu_mbus_dram_info();
>> +
>> + for (i = 0; i < 4; i++) {
>> + wrl(USB_WINDOW_CTRL(i), 0);
>> + wrl(USB_WINDOW_BASE(i), 0);
>> + }
>
> These wrl() accessors are a bit weird, but maybe there's some
> marvell magic behind this?
Not really. They are just adding the controller base address. Its used
in the current driver code - so I just used it here as well.
I'll send a patch to remove these macros (move to readl/writel) once all
this is in mainline.
Thanks,
Stefan
More information about the U-Boot
mailing list