Skip to contentSkip to conversation

USB: ohci-at91: make OHCI work on at91sam9g10 SoC

PATCH New Bo Shen 2 participants 2 messages Apr 17, 2013

Subsystems (3)
lore
Share & tools
lore

Bo Shen

author
#0 lore raw

PATCH 1/1 USB: ohci-at91: make OHCI work on at91sam9g10 SoC

The at91sam9g10 need to configure HCK0 to make OHCI work

---
 drivers/usb/host/ohci-at91.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/host/ohci-at91.c +2 -2
index efd711d..aa5cf57 100644
@@ -55,7 +55,7 @@ int usb_cpu_init(void)
 
 	/* Enable USB host clock. */
 	writel(1 << ATMEL_ID_UHP, &pmc->pcer);
-#ifdef CONFIG_AT91SAM9261
+#if defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10)
 	writel(ATMEL_PMC_UHP | AT91_PMC_HCK0, &pmc->scer);
 #else
 	writel(ATMEL_PMC_UHP, &pmc->scer);
@@ -70,7 +70,7 @@ int usb_cpu_stop(void)
 
 	/* Disable USB host clock. */
 	writel(1 << ATMEL_ID_UHP, &pmc->pcdr);
-#ifdef CONFIG_AT91SAM9261
+#if defined(CONFIG_AT91SAM9261) || defined(CONFIG_AT91SAM9G10)
 	writel(ATMEL_PMC_UHP | AT91_PMC_HCK0, &pmc->scdr);
 #else
 	writel(ATMEL_PMC_UHP, &pmc->scdr);
Signature · 1 line
1.7.9.5
Applied
#1 lore raw

PATCH 1/1 USB: ohci-at91: make OHCI work on at91sam9g10 SoC

Dear Bo Shen,

Quoted 2 lines

The at91sam9g10 need to configure HCK0 to make OHCI work

Applied to usb/-next, thanks!

Best regards,
Marek Vasut