[U-Boot] Question regarding CONFIG_DM_USB

Simon Glass sjg at chromium.org
Wed Aug 19 05:01:59 CEST 2015


Hi Suriyan,

On 18 August 2015 at 19:31, Suriyan Ramasami <suriyan.r at gmail.com> wrote:
> Hi folks and Simon,
>     After moving to the driver model for USB, I see that the call to
> board_usb_init() is not done anymore. This has the board specific
> initialisation sequence. It used to be called before the driver model
> existed by usb_lowlevel_init(). Without it, usb fails to work.
>
>    I see that this call to board_usb_init() or something similar is missing
> (say in ehci-exynos.c  or dwc2.c etc). My question is, where is the right
> place to plug this call in ? should it be part of the .probe ?

You can put it in board_init() perhaps. You can also create your own
USB driver and use a probe() method. But if it is board init (like
pinmux and the like) then an expedient option is board_init().

Regards,
Simon


More information about the U-Boot mailing list