public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] arm: mx6: cm-fx6: force host mode on usb controller
Date: Sun, 30 Aug 2015 16:33:05 +0300	[thread overview]
Message-ID: <55E30611.1080308@compulab.co.il> (raw)
In-Reply-To: <1440938209-1731-2-git-send-email-nikita@compulab.co.il>



On 08/30/15 15:36, Nikita Kiryanov wrote:
> On some CM-FX6 modules U-Boot attempts to configure the usb0 controller in
> device mode, which renders it unavailable:
> 	USB0:   Port not available.
> and also causes usb stop to report an error
> 	EHCI failed to shut down host controller.
> 
> This happens mostly on MX6 Dual based modules, and is caused by the USBPHY_CTRL
> register reporting USBPHY_CTRL_OTG_ID to be 1, even when it is pulled down.
> Since we do not support device mode in cm-fx6 u-boot, force all controllers to
> be configured as hosts.
> 
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Igor Grinberg <grinberg@compulab.co.il>
> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>

Acked-by: Igor Grinberg <grinberg@compulab.co.il>

> ---
>  board/compulab/cm_fx6/cm_fx6.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
> index def821c..668d221 100644
> --- a/board/compulab/cm_fx6/cm_fx6.c
> +++ b/board/compulab/cm_fx6/cm_fx6.c
> @@ -14,6 +14,7 @@
>  #include <miiphy.h>
>  #include <netdev.h>
>  #include <errno.h>
> +#include <usb.h>
>  #include <fdt_support.h>
>  #include <sata.h>
>  #include <splash.h>
> @@ -349,6 +350,11 @@ static int cm_fx6_setup_usb_otg(void)
>  	return gpio_direction_output(SB_FX6_USB_OTG_PWR, 0);
>  }
>  
> +int board_usb_phy_mode(int port)
> +{
> +	return USB_INIT_HOST;
> +}
> +
>  int board_ehci_hcd_init(int port)
>  {
>  	int ret;
> 

-- 
Regards,
Igor.

  reply	other threads:[~2015-08-30 13:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-30 12:36 [U-Boot] [PATCH 0/3] cm-fx6 maintenance Nikita Kiryanov
2015-08-30 12:36 ` [U-Boot] [PATCH 1/3] arm: mx6: cm-fx6: force host mode on usb controller Nikita Kiryanov
2015-08-30 13:33   ` Igor Grinberg [this message]
2015-08-30 12:36 ` [U-Boot] [PATCH 2/3] arm: mx6: cm-fx6: print PCB revision Nikita Kiryanov
2015-08-30 13:33   ` Igor Grinberg
2015-08-30 12:36 ` [U-Boot] [PATCH 3/3] arm: mx6: cm-fx6: switch to usb kbd polling via int queue Nikita Kiryanov
2015-08-30 13:34   ` Igor Grinberg
2015-08-31 16:29 ` [U-Boot] [PATCH 0/3] cm-fx6 maintenance Stefano Babic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55E30611.1080308@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox