[U-Boot] [PATCH v1 2/4] fastboot: call board_usb_init() to enable usb
Dileep Katta
dileep.katta at linaro.org
Tue Mar 3 12:55:24 CET 2015
Corrected Tom Rini's mail id. And patch version. (My bad)
Regards, Dileep
On 3 March 2015 at 16:40, Dileep Katta <dileep.katta at linaro.org> wrote:
> g_dnl_gadget_register() fails for dra7xx dwc3 gadget
> when running cmd_fastboot.
> Calling board_usb_init() fixes this.
>
> Signed-off-by: Angela Stegmaier <angelabaker at ti.com>
> Signed-off-by: Dileep Katta <dileep.katta at linaro.org>
> ---
> common/cmd_fastboot.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
> index 346ab80..d7b8f6d 100644
> --- a/common/cmd_fastboot.c
> +++ b/common/cmd_fastboot.c
> @@ -10,11 +10,13 @@
> #include <common.h>
> #include <command.h>
> #include <g_dnl.h>
> +#include <usb.h>
>
> static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const
> argv[])
> {
> int ret;
>
> + board_usb_init(0, USB_INIT_DEVICE);
> g_dnl_clear_detach();
> ret = g_dnl_register("usb_dnl_fastboot");
> if (ret)
> --
> 1.8.3.2
>
>
More information about the U-Boot
mailing list