All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] axs103: add support of generic OHCI USB 1.1 controller
Date: Wed, 16 Dec 2015 17:52:50 +0100	[thread overview]
Message-ID: <201512161752.50526.marex@denx.de> (raw)
In-Reply-To: <1450281915-16471-1-git-send-email-abrodkin@synopsys.com>

On Wednesday, December 16, 2015 at 05:05:15 PM, Alexey Brodkin wrote:
> This commit adds support of USB 1.1 storage media on AXS103 board.
> For some yet unknown reason USB 2.0 doesn't work on AXS103 board issuing
> messages like this:
> ------------------------>8-------------------
> AXS# usb start
> starting USB...
> USB0:   USB EHCI 1.00
> scanning bus 0 for devices... EHCI timed out on TD - token=0x80008c80
> unable to get device descriptor (error=-1)
> 1 USB Device(s) found
> ------------------------>8-------------------

Try defining CONFIG_EHCI_IS_TDI , that _might_ help.

> As a work-around we're falling back to USB 1.1.
> Indeed it is much slower but at least USB storage devices are usable on
> AXS103.
> 
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  arch/arc/dts/axs10x.dts  | 6 ++++++
>  configs/axs103_defconfig | 3 +--
>  include/configs/axs101.h | 6 ++++++
>  3 files changed, 13 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arc/dts/axs10x.dts b/arch/arc/dts/axs10x.dts
> index 80e6d6b..391d067 100644
> --- a/arch/arc/dts/axs10x.dts
> +++ b/arch/arc/dts/axs10x.dts
> @@ -48,4 +48,10 @@
>  		reg = < 0xe0040000 0x100 >;
>  		interrupts = < 8 >;
>  	};
> +
> +	ohci at 0xe0060000 {
> +		compatible = "generic-ohci";
> +		reg = < 0xe0060000 0x100 >;
> +		interrupts = < 8 >;
> +	};
>  };
> diff --git a/configs/axs103_defconfig b/configs/axs103_defconfig
> index 3c65c83..a208a27 100644
> --- a/configs/axs103_defconfig
> +++ b/configs/axs103_defconfig
> @@ -21,7 +21,6 @@ CONFIG_ETH_DESIGNWARE=y
>  CONFIG_SYS_NS16550=y
>  CONFIG_USB=y
>  CONFIG_DM_USB=y
> -CONFIG_USB_EHCI_HCD=y
> -CONFIG_USB_EHCI_GENERIC=y
> +CONFIG_USB_OHCI_GENERIC=y
>  CONFIG_USB_STORAGE=y
>  CONFIG_USE_PRIVATE_LIBGCC=y
> diff --git a/include/configs/axs101.h b/include/configs/axs101.h
> index 650d97d..c92cca2 100644
> --- a/include/configs/axs101.h
> +++ b/include/configs/axs101.h
> @@ -105,6 +105,12 @@
>  #define CONFIG_DW_AUTONEG
> 
>  /*
> + * USB 1.1 configuration
> + */
> +#define CONFIG_USB_OHCI_NEW
> +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
> +
> +/*
>   * Commands still not supported in Kconfig
>   */
>  #define CONFIG_CMD_FAT

  reply	other threads:[~2015-12-16 16:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-16 16:05 [U-Boot] [PATCH] axs103: add support of generic OHCI USB 1.1 controller Alexey Brodkin
2015-12-16 16:52 ` Marek Vasut [this message]
2015-12-16 19:54   ` Alexey Brodkin
2015-12-17  4:01     ` Marek Vasut
2015-12-17 13:32       ` Alexey Brodkin
2015-12-17 15:08         ` Marek Vasut
2015-12-17 15:24           ` Alexey Brodkin
2015-12-21 20:34           ` Alexey Brodkin
2015-12-21 22:18             ` Marek Vasut
2015-12-23 11:59               ` Alexey Brodkin
2015-12-24  9:51                 ` Marek Vasut

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=201512161752.50526.marex@denx.de \
    --to=marex@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.