[U-Boot] [PATCH 1/6] omap4: usb: Add omap-ehci support

Chris Lalancette clalancette at gmail.com
Wed Dec 14 14:38:43 CET 2011


On Wed, Dec 14, 2011 at 7:09 AM, Govindraj.R <govindraj.raja at ti.com> wrote:
> From: "Govindraj.R" <govindraj.raja at ti.com>
>
> Adds ehci-omap and two funcs omap_ehci_hcd_init/omap_ehci_hcd_stop
> Which can be called from any board file implementing the ehci_hcd_init/reset.
> One can pass the port modes from board file and configure the usb host
> to ulpi-phy mode or hsic mode.
>
> Signed-off-by: Govindraj.R <govindraj.raja at ti.com>
> ---
>  arch/arm/include/asm/ehci-omap.h |  168 +++++++++++++++++++++++++++++++
>  drivers/usb/host/Makefile        |    1 +
>  drivers/usb/host/ehci-omap.c     |  202 ++++++++++++++++++++++++++++++++++++++
>  3 files changed, 371 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/include/asm/ehci-omap.h
>  create mode 100644 drivers/usb/host/ehci-omap.c
>
> diff --git a/arch/arm/include/asm/ehci-omap.h b/arch/arm/include/asm/ehci-omap.h
> new file mode 100644
> index 0000000..c1af798
> --- /dev/null
> +++ b/arch/arm/include/asm/ehci-omap.h
> @@ -0,0 +1,168 @@
...
> +/* Alt CLK SRC FOR AUX CLK 3 to USB3220C external PHY */
> +#define SCRM_ALTCLKSRC 0x4a30A110UL
> +#define SCRM_AUXCLK3   0x4A30A31CUL

I'll just point out here that the patch I recently posted to enable
the USB hub on panda
(http://lists.denx.de/pipermail/u-boot/2011-December/113194.html) adds
an scrm structure that also has these registers.  Depending on which
order the patches go in, you might want to re-use that.

Chris Lalancette


More information about the U-Boot mailing list