]> git.sur5r.net Git - u-boot/commitdiff
USB: ohci-at91: make OHCI work on at91sam9g10 SoC
authorBo Shen <voice.shen@atmel.com>
Wed, 17 Apr 2013 00:09:51 +0000 (00:09 +0000)
committerMarek Vasut <marex@denx.de>
Sun, 5 May 2013 21:54:22 +0000 (23:54 +0200)
The at91sam9g10 need to configure HCK0 to make OHCI work

Signed-off-by: Bo Shen <voice.shen@atmel.com>
drivers/usb/host/ohci-at91.c

index efd711d489f4b36aa1a89345774b9fc6771aa4ee..aa5cf57aedaad332854c6083fa66b80398f429a9 100644 (file)
@@ -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);