summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-10-21 16:13:59 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-11-04 20:32:35 +0100
commitd9bef0ad2daa2f6f0b635be12518da755ddcbdc1 (patch)
tree4b19de31dd7964da2c8b9328e7e7892a814a94ae /drivers
parent32e4f6bf2e35e99e1742c005e1ede4e0cf5f066c (diff)
downloadblackbird-obmc-uboot-d9bef0ad2daa2f6f0b635be12518da755ddcbdc1.tar.gz
blackbird-obmc-uboot-d9bef0ad2daa2f6f0b635be12518da755ddcbdc1.zip
arm: atmel: at91sam9n12ek: add usb host support
Add usb host support for at91sam9n12ek board. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ohci-at91.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
index 9e90d59087..05d6ff2b69 100644
--- a/drivers/usb/host/ohci-at91.c
+++ b/drivers/usb/host/ohci-at91.c
@@ -20,11 +20,14 @@ int usb_cpu_init(void)
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
- defined(CONFIG_AT91SAM9261)
+ defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9N12)
/* Enable PLLB */
writel(get_pllb_init(), &pmc->pllbr);
while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB)
;
+#ifdef CONFIG_AT91SAM9N12
+ writel(AT91_PMC_USBS_USB_PLLB | AT91_PMC_USB_DIV_2, &pmc->usb);
+#endif
#elif defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
defined(CONFIG_AT91SAM9X5) || defined(CONFIG_SAMA5D3)
/* Enable UPLL */
@@ -71,7 +74,11 @@ int usb_cpu_stop(void)
#endif
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
- defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20)
+ defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
+ defined(CONFIG_AT91SAM9N12)
+#ifdef CONFIG_AT91SAM9N12
+ writel(0, &pmc->usb);
+#endif
/* Disable PLLB */
writel(0, &pmc->pllbr);
while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != 0)
OpenPOWER on IntegriCloud