]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: clock: Fix EHCI and OHCI clocks on A64
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 8 Jun 2018 02:23:38 +0000 (19:23 -0700)
committerMarek Vasut <marex@denx.de>
Wed, 13 Jun 2018 05:33:42 +0000 (07:33 +0200)
EHCI0 is bit 24, EHCI1 - 25, OHCI0 - 28, OHCI1 - 29

Fixes commit fef73766d9ad ("sunxi: clock: Fix OHCI clock gating for H3/H5")

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
arch/arm/include/asm/arch-sunxi/clock_sun6i.h

index 8acf79fbba320c3a7bd711f78e275d9e68aae8ca..8afeaf872e2547e961a56c3731ceb6a3495404af 100644 (file)
@@ -280,8 +280,10 @@ struct sunxi_ccm_reg {
 #define AHB_GATE_OFFSET_USB_EHCI1      26
 #define AHB_GATE_OFFSET_USB_EHCI0      24
 #elif defined(CONFIG_MACH_SUN50I)
-#define AHB_GATE_OFFSET_USB_OHCI0      29
-#define AHB_GATE_OFFSET_USB_EHCI0      25
+#define AHB_GATE_OFFSET_USB_OHCI0      28
+#define AHB_GATE_OFFSET_USB_OHCI1      29
+#define AHB_GATE_OFFSET_USB_EHCI0      24
+#define AHB_GATE_OFFSET_USB_EHCI1      25
 #else
 #define AHB_GATE_OFFSET_USB_OHCI1      30
 #define AHB_GATE_OFFSET_USB_OHCI0      29