From: "Eric Bénard" <eric@eukrea.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/3] usb-imx28: fix enable
Date: Tue, 10 Sep 2013 19:57:54 +0200 [thread overview]
Message-ID: <1378835876-29402-1-git-send-email-eric@eukrea.com> (raw)
we need to power on the PLL when enabling the USB clock.
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
arch/arm/mach-mxs/usb-imx28.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mxs/usb-imx28.c b/arch/arm/mach-mxs/usb-imx28.c
index 61d59c3..e5b63c3 100644
--- a/arch/arm/mach-mxs/usb-imx28.c
+++ b/arch/arm/mach-mxs/usb-imx28.c
@@ -46,6 +46,7 @@
#define CLK_PLL0CTRL0 (IMX_CCM_BASE + 0x0)
#define CLK_PLL1CTRL0 (IMX_CCM_BASE + 0x20)
#define PLLCTRL0_EN_USB_CLKS (1 << 18)
+#define PLLCTRL0_POWER (1 << 17)
#define DIGCTRL_CTRL (IMX_DIGCTL_BASE + 0x0)
#define DIGCTL_CTRL_USB0_CLKGATE (1 << 2)
@@ -77,7 +78,7 @@ int imx28_usb_phy0_enable(void)
imx28_usb_phy_reset((void *)IMX_USBPHY0_BASE);
/* Turn on the USB clocks */
- writel(PLLCTRL0_EN_USB_CLKS, CLK_PLL0CTRL0 + SET);
+ writel(PLLCTRL0_EN_USB_CLKS | PLLCTRL0_POWER, CLK_PLL0CTRL0 + SET);
writel(DIGCTL_CTRL_USB0_CLKGATE, DIGCTRL_CTRL + CLR);
@@ -91,7 +92,7 @@ int imx28_usb_phy1_enable(void)
imx28_usb_phy_reset((void *)IMX_USBPHY1_BASE);
/* Turn on the USB clocks */
- writel(PLLCTRL0_EN_USB_CLKS, CLK_PLL1CTRL0 + SET);
+ writel(PLLCTRL0_EN_USB_CLKS | PLLCTRL0_POWER, CLK_PLL1CTRL0 + SET);
writel(DIGCTL_CTRL_USB1_CLKGATE, DIGCTRL_CTRL + CLR);
--
1.8.3.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2013-09-10 17:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 17:57 Eric Bénard [this message]
2013-09-10 17:57 ` [PATCH 2/3] imx28-regs: i.MX28 has 2 USB controllers Eric Bénard
2013-09-10 17:57 ` [PATCH 3/3] mx28-evk: enable USB Eric Bénard
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=1378835876-29402-1-git-send-email-eric@eukrea.com \
--to=eric@eukrea.com \
--cc=barebox@lists.infradead.org \
/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