[U-Boot] [RFC] [UBOOT] [PATCH v2 2/4] USB: Adapt the usb-compat.h to uboot and fix compiler errors
Marek Vasut
marex at denx.de
Mon Jul 1 12:56:55 CEST 2013
Dear Dan Murphy,
> Adapt the usb-compat.h to uBoot.
>
> Use #ifndef __UBOOT__ for code that is not applicable to uBoot.
> Use #ifdef __UBOOT__ to add code that is uBoot specific.
>
> Create linux-compat.h - Linux kernel compatibility definitions that do not
> exist in the uBoot. Moved the compatibility definitions from
> lin_gadget_compat.h to this file as well.
>
> Create usb-mod-devicetable.h - Is a partial back port of mod_devicetable.h
> in the linux kernel only taking the portion needed for USB
>
> Already existing header files were modified to pick up the new header
> files.
>
> Currently musb will not compile.
>
> Signed-off-by: Dan Murphy <dmurphy at ti.com>
> ---
> drivers/usb/musb-new/musb_host.h | 1 +
> drivers/usb/musb-new/usb-compat.h | 30 ----
> include/linux/usb/gadget.h | 184 +++++++++++++++++++-----
> include/linux/usb/linux-compat.h | 234
> +++++++++++++++++++++++++++++++ include/linux/usb/usb-compat.h |
> 186 +++++++++++++++++++++--- include/linux/usb/usb-mod-devicetable.h |
> 131 +++++++++++++++++
> include/usb.h | 119 +---------------
> include/usb/lin_gadget_compat.h | 29 +---
> 8 files changed, 685 insertions(+), 229 deletions(-)
> create mode 100644 include/linux/usb/linux-compat.h
> create mode 100644 include/linux/usb/usb-mod-devicetable.h
Did you actually compile-test this so it doesn't break any USB gadgets?
Best regards,
Marek Vasut
More information about the U-Boot
mailing list