[PATCH 5/7] ARM: mx53-qsrb: enable USB OTG in host mode
Eric Bénard
eric at eukrea.com
Mon Feb 10 03:28:54 EST 2014
Hi Sascha,
Le Mon, 10 Feb 2014 09:16:17 +0100,
Sascha Hauer <s.hauer at pengutronix.de> a écrit :
> On Sat, Feb 08, 2014 at 03:16:10PM +0100, Eric Bénard wrote:
> > &usbotg {
> > - status = "okay";
> > + phy_type = "utmi";
> > + dr_mode = "host";
> > + status = "okay";
> > };
>
> Do we need a barebox specific option to specify dr_mode? I mean barebox
> cannot do otg, so we need to specify dr_mode to host or device, but with
> the above change Linux is limited to host mode aswell.
>
in chipidea-imx.c there is :
mode = of_usb_get_dr_mode(ci->dev->device_node, NULL);
switch (mode) {
case USB_DR_MODE_HOST:
default:
ci->mode = IMX_USB_MODE_HOST;
break;
case USB_DR_MODE_PERIPHERAL:
ci->mode = IMX_USB_MODE_DEVICE;
break;
}
so we could omit the dr_mode=host as it will default to host.
Eric
More information about the barebox
mailing list