[U-Boot] [PATCH v3 2/7] arm: usb: dra7xx: xHCI registers based on USB port index

Marek Vasut marex at denx.de
Sun Feb 26 10:13:28 UTC 2017


On 02/22/2017 01:58 PM, Uri Mashiach wrote:

[...]

>> Someone would have to put that effort in.
>>
>> I wonder if instead of defining INDEX0, INDEX1 ... this could be turned
>> into integer ...
>>
> 
> Something like the following?
> 
> #ifdef CONFIG_DRA7XX
> #if CONFIG_USB_XHCI_DRA7XX_INDEX == 1
> ...
> #elif CONFIG_USB_XHCI_DRA7XX_INDEX == 0
> ...
> #endif /* CONFIG_USB_XHCI_DRA7XX_INDEX == 1 */
> #elif defined CONFIG_AM43XX
> ...

Yes


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list