From: Bo Shen <voice.shen@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv2 4/4] at91sam9x5ek: add USB configuration
Date: Thu, 29 Nov 2012 13:22:25 +0800 [thread overview]
Message-ID: <50B6F111.4060103@atmel.com> (raw)
In-Reply-To: <1354103289-967-5-git-send-email-richard.genoud@gmail.com>
On 11/28/2012 19:48, Richard Genoud wrote:
> Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
> ---
> include/configs/at91sam9x5ek.h | 24 ++++++++++++++++++++++++
> 1 files changed, 24 insertions(+), 0 deletions(-)
>
> diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h
> index 5e5f9c1..fd2586d 100644
> --- a/include/configs/at91sam9x5ek.h
> +++ b/include/configs/at91sam9x5ek.h
> @@ -91,6 +91,14 @@
> #define CONFIG_CMD_SF
> #define CONFIG_CMD_MMC
> #define CONFIG_CMD_FAT
> +#define CONFIG_CMD_USB
> +
> +/*
> + * define CONFIG_USB_EHCI to enable USB Hi-Speed (aka 2.0)
> + * NB: in this case, USB 1.1 devices won't be recognized.
> + */
> +#undef CONFIG_USB_EHCI
> +
Nowhere defined it, so no need undefined it.
>
> /* SDRAM */
> #define CONFIG_NR_DRAM_BANKS 1
> @@ -158,6 +166,22 @@
> #define CONFIG_NET_RETRY_COUNT 20
> #define CONFIG_MACB_SEARCH_PHY
>
> +/* USB */
> +#ifdef CONFIG_CMD_USB
> +#ifdef CONFIG_USB_EHCI
> +#define CONFIG_USB_EHCI_ATMEL
> +#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 2
> +#else
> +#define CONFIG_USB_OHCI_NEW
> +#define CONFIG_SYS_USB_OHCI_CPU_INIT
> +#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00600000 /* ATMEL_BASE_OHCI */
This has defined in arch/arm/include/asm/arch-at91/at91sam9x5.h.
You can use it directly.
> +#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9x5"
> +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 3
> +#endif
> +#define CONFIG_USB_ATMEL
> +#define CONFIG_USB_STORAGE
> +#endif
> +
> #define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */
>
> #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
>
prev parent reply other threads:[~2012-11-29 5:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 11:48 [U-Boot] [PATCHv2 0/4]enable USB OHCI on sam9x5ek boards Richard Genoud
2012-11-28 11:48 ` [U-Boot] [PATCHv2 1/4] usb documentation: fix typo Richard Genoud
2012-11-28 11:48 ` [U-Boot] [PATCHv2 2/4] at91sam9x5: enable USB support for 9x5ek board Richard Genoud
2012-11-29 5:22 ` Bo Shen
2012-11-30 9:06 ` Richard Genoud
2012-11-28 11:48 ` [U-Boot] [PATCHv2 3/4] at91sam9x5ek: regroup FAT/DOS features Richard Genoud
2012-11-28 11:48 ` [U-Boot] [PATCHv2 4/4] at91sam9x5ek: add USB configuration Richard Genoud
2012-11-29 5:22 ` Bo Shen [this message]
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=50B6F111.4060103@atmel.com \
--to=voice.shen@atmel.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 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.