[U-Boot] [PATCH v3] colibri_vf: Add board_usb_phy_mode function
Stefan Agner
stefan at agner.ch
Fri Oct 30 17:12:54 CET 2015
Hi All,
On 2015-10-30 05:26, Sanchayan Maity wrote:
> +
> +int board_usb_phy_mode(int port)
> +{
> + switch (port) {
> + case 0:
> + return gpio_get_value(USB_CDET_GPIO);
> + break;
> + case 1:
> + return USB_INIT_HOST;
> + break;
> + default:
> + return USB_INIT_HOST;
> + break;
One thing I would like to note in this whole discussion is that the old
setup is kind of the "default" role of each dual-role controller: The
boot ROM uses USB1 as client, the tower board uses this configuration
too... So maybe we could/should keep that default role at least in here?
--
Stefan
More information about the U-Boot
mailing list