[PATCH 1/5] usb-a926x: only provide the resource if the driver is enable
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sun Feb 3 13:32:33 EST 2013
On 16:24 Sun 03 Feb , Jean-Christophe PLAGNIOL-VILLARD wrote:
> usefull for bootstrap
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
ingore this patch
Best Regards,
J.
> arch/arm/boards/usb-a926x/init.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/boards/usb-a926x/init.c b/arch/arm/boards/usb-a926x/init.c
> index 0383280..e2da8ea 100644
> --- a/arch/arm/boards/usb-a926x/init.c
> +++ b/arch/arm/boards/usb-a926x/init.c
> @@ -246,6 +246,15 @@ static struct at91_udc_data __initdata ek_udc_data = {
> .pullup_pin = -EINVAL, /* pull-up driven by UDC */
> };
>
> +static void usb_a9260_add_device_usb(void)
> +{
> + at91_add_device_usbh_ohci(&ek_usbh_data);
> +}
> +#else
> +static void usb_a9260_add_device_usb(void) {}
> +#endif
> +
> +#ifdef CONFIG_USB_GADGET_DRIVER_AT91
> static void __init ek_add_device_udc(void)
> {
> if (machine_is_usb_a9260() || machine_is_usb_a9g20())
> --
> 1.7.10.4
>
More information about the barebox
mailing list