public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] mx53loco: add end enable USB host support on port 1
Date: Thu, 24 Nov 2011 04:01:06 +0100	[thread overview]
Message-ID: <201111240401.06614.marek.vasut@gmail.com> (raw)
In-Reply-To: <1321016618-23541-5-git-send-email-wg@denx.de>

> Signed-off-by: Wolfgang Grandegger <wg@denx.de>
> CC: Jason Liu <r64343@freescale.com>
> ---
>  board/freescale/mx53loco/mx53loco.c |   10 ++++++++++
>  include/configs/mx53loco.h          |   13 +++++++++++++
>  2 files changed, 23 insertions(+), 0 deletions(-)
> 
> diff --git a/board/freescale/mx53loco/mx53loco.c
> b/board/freescale/mx53loco/mx53loco.c index b4c7f33..7bccfa9 100644
> --- a/board/freescale/mx53loco/mx53loco.c
> +++ b/board/freescale/mx53loco/mx53loco.c
> @@ -78,6 +78,16 @@ static void setup_iomux_uart(void)
>  				PAD_CTL_ODE_OPENDRAIN_ENABLE);
>  }
> 
> +#ifdef CONFIG_USB_EHCI_MX5
> +void board_ehci_hcd_init(int port)
> +{
> +	/* request VBUS power enable pin, GPIO[8}, gpio7 */
> +	mxc_request_iomux(MX53_PIN_ATA_DA_2, IOMUX_CONFIG_ALT1);
> +	gpio_direction_output(IMX_GPIO_NR(7, 8), 0);
> +	gpio_set_value(IMX_GPIO_NR(7, 8), 1);

We don't have this GPIO defined by standard means?

> +}
> +#endif
> +
>  static void setup_iomux_fec(void)
>  {
>  	/*FEC_MDIO*/
> diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h
> index d699010..9ce43d7 100644
> --- a/include/configs/mx53loco.h
> +++ b/include/configs/mx53loco.h
> @@ -72,6 +72,19 @@
>  #define CONFIG_CMD_MII
>  #define CONFIG_CMD_NET
> 
> +/* USB Configs */
> +#define CONFIG_CMD_USB
> +#define CONFIG_CMD_FAT
> +#define CONFIG_USB_EHCI
> +#define CONFIG_USB_EHCI_MX5
> +#define CONFIG_USB_STORAGE
> +#define CONFIG_USB_HOST_ETHER
> +#define CONFIG_USB_ETHER_ASIX
> +#define CONFIG_USB_ETHER_SMSC95XX
> +#define CONFIG_MXC_USB_PORT	1
> +#define CONFIG_MXC_USB_PORTSC	(PORT_PTS_UTMI | PORT_PTS_PTW)
> +#define CONFIG_MXC_USB_FLAGS	0
> +
>  /* allow to overwrite serial and ethaddr */
>  #define CONFIG_ENV_OVERWRITE
>  #define CONFIG_CONS_INDEX		1

  parent reply	other threads:[~2011-11-24  3:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 13:03 [U-Boot] [PATCH 0/5] mx5: USB host support for mx51evk and mx53loco Wolfgang Grandegger
2011-11-11 13:03 ` [U-Boot] [PATCH 1/5] mx5: add helper functions to enable USB clocks Wolfgang Grandegger
2011-11-11 13:03 ` [U-Boot] [PATCH 2/5] mx5: add helper function to retrieve the GPIO number Wolfgang Grandegger
2011-11-11 13:03 ` [U-Boot] [PATCH 3/5] mx5: add generic USB EHCI support for mx51 and mx53 Wolfgang Grandegger
2011-11-11 14:22   ` Fabio Estevam
2011-11-14  8:39     ` Wolfgang Grandegger
2011-11-11 13:03 ` [U-Boot] [PATCH 4/5] mx53loco: add end enable USB host support on port 1 Wolfgang Grandegger
2011-11-16  7:22   ` Jason Liu
2011-11-24  3:01   ` Marek Vasut [this message]
2011-11-11 13:03 ` [U-Boot] [PATCH 5/5] mx51evk: " Wolfgang Grandegger
2011-11-11 21:44 ` [U-Boot] [PATCH 0/5] mx5: USB host support for mx51evk and mx53loco Marek Vasut
2011-11-14  8:50   ` Wolfgang Grandegger
2011-11-14 10:46     ` Marek Vasut
2011-11-14 10:55       ` Wolfgang Grandegger
2011-11-11 23:34 ` Jana Rapava
2011-11-14  9:01   ` Wolfgang Grandegger

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=201111240401.06614.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --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