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

Marek Vasut
2017-02-26T10:13:28Z

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