From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/6] usb: am437x: Add support for am437x xhci USB host
Date: Thu, 10 Oct 2013 02:33:15 +0200 [thread overview]
Message-ID: <201310100233.15466.marex@denx.de> (raw)
In-Reply-To: <1381339171-31647-6-git-send-email-dmurphy@ti.com>
Dear Dan Murphy,
> Add the support for the am437x xhci usb host.
>
> The xHCI host on AM437 is connected to a usb2 phy so need to
> add support to enable those clocks.
>
> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> ---
> arch/arm/include/asm/arch-am33xx/hardware_am43xx.h | 10 +++++++++
> drivers/usb/phy/omap_usb_phy.c | 23
> ++++++++++++++++++++ include/configs/am43xx_evm.h |
> 11 ++++++++++ include/linux/usb/xhci-omap.h | 4
> ++++
> 4 files changed, 48 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h
> b/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h index
> 303c594..3b665e6 100644
> --- a/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h
> +++ b/arch/arm/include/asm/arch-am33xx/hardware_am43xx.h
> @@ -51,4 +51,14 @@
> /* RTC base address */
> #define RTC_BASE 0x44E3E000
>
> +/* USB Clock Control */
> +#define PRM_PER_USB_OTG_SS0_CLKCTRL (CM_PER + 0x260)
> +#define PRM_PER_USB_OTG_SS1_CLKCTRL (CM_PER + 0x268)
> +#define USBOTGSSX_CLKCTRL_MODULE_EN (1 << 2)
> +#define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 (1 << 8)
> +
> +#define PRM_PER_USBPHYOCP2SCP0_CLKCTRL (CM_PER + 0x5b8)
> +#define PRM_PER_USBPHYOCP2SCP1_CLKCTRL (CM_PER + 0x5c0)
> +#define USBPHYOCPSCP_MODULE_EN (1 << 2)
> +
> #endif /* __AM43XX_HARDWARE_AM43XX_H */
> diff --git a/drivers/usb/phy/omap_usb_phy.c
> b/drivers/usb/phy/omap_usb_phy.c index f1da73d..20c4805 100644
> --- a/drivers/usb/phy/omap_usb_phy.c
> +++ b/drivers/usb/phy/omap_usb_phy.c
> @@ -207,6 +207,25 @@ void usb_phy_power(int on)
> }
> #endif /* CONFIG_OMAP_USB2PHY2_HOST */
>
> +#ifdef CONFIG_AM437X_USB2PHY2_HOST
> +static void am437x_enable_usb2_phy2(struct omap_xhci *omap)
> +{
> + int usb_otg_ss_clk_val = (USBOTGSSX_CLKCTRL_MODULE_EN |
> + USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960);
Other than that it should be "const", it should also be at least unsigned. And
prefferably u32 .
Best regards,
Marek Vasut
next prev parent reply other threads:[~2013-10-10 0:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-09 17:19 [U-Boot] TI xHCI updates Dan Murphy
2013-10-09 17:19 ` [U-Boot] [PATCH 1/6] usb: omap: Move the xhci-omap header file to common location Dan Murphy
2013-10-09 23:37 ` Marek Vasut
2013-10-10 0:22 ` Dan Murphy
2013-10-10 0:34 ` Marek Vasut
2013-10-09 17:19 ` [U-Boot] [PATCH 2/6] usb: omap5: Change the board_usb_init api to board_xhci_usb_init Dan Murphy
2013-10-09 23:38 ` Marek Vasut
2013-10-10 0:26 ` Dan Murphy
2013-10-09 17:19 ` [U-Boot] [PATCH 3/6] usb: omap: Move the usb phy code to the usb/phy directory Dan Murphy
2013-10-09 23:38 ` Marek Vasut
2013-10-10 0:21 ` Dan Murphy
2013-10-10 0:35 ` Marek Vasut
2013-10-10 0:36 ` Dan Murphy
2013-10-09 17:19 ` [U-Boot] [PATCH 4/6] usb: dra7xx: Add support for dra7xx xhci USB host Dan Murphy
2013-10-09 17:19 ` [U-Boot] [PATCH 5/6] usb: am437x: Add support for am437x " Dan Murphy
2013-10-10 0:33 ` Marek Vasut [this message]
2013-10-09 17:19 ` [U-Boot] [PATCH 6/6] ARM: omap5-evm: Move MAC creation to misc_init Dan Murphy
2013-10-09 17:21 ` [U-Boot] TI xHCI updates Dan Murphy
2013-10-09 17:26 ` Jagan Teki
2013-10-10 0:27 ` Dan Murphy
2013-10-10 0:34 ` 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=201310100233.15466.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox