diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-06-12 17:57:01 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-07-22 06:57:53 (GMT) |
commit | 99fc2221a059b2571aedf6ff27d7d17dac2b0994 (patch) | |
tree | 4aa601a08e60d47eebd7b1d3c60e05e15ab05710 /drivers | |
parent | 8d2f0039f00f6a07298545ec2b913ef9f5f5ce25 (diff) | |
download | u-boot-99fc2221a059b2571aedf6ff27d7d17dac2b0994.tar.xz |
usb: gadget: Weak board_usb_init/cleanup definitions in USB download gadget code
Weak versions of board_usb_init and board_usb_cleanup are defined in common USB
host code, but it is also used for USB device gadgets, so we also need a weak
definition of it when there is no USB host enabled.
Both weak definitions do not conflict.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Test HW: Odroid_XU3 (Exynos5422), trats (Exynos4210)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/g_dnl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index ee52a29..ad89a0d 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -12,6 +12,7 @@ #include <mmc.h> #include <part.h> +#include <usb.h> #include <g_dnl.h> #include <usb_mass_storage.h> @@ -148,6 +149,18 @@ static int g_dnl_config_register(struct usb_composite_dev *cdev) } __weak +int board_usb_init(int index, enum usb_init_type init) +{ + return 0; +} + +__weak +int board_usb_cleanup(int index, enum usb_init_type init) +{ + return 0; +} + +__weak int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name) { return 0; |