]> git.sur5r.net Git - u-boot/commitdiff
musb: sunxi: Add support for H3/H5/A64
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 7 May 2018 07:33:25 +0000 (13:03 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 May 2018 11:10:43 +0000 (16:40 +0530)
Like other Allwinner SoC, the H3/H5/A64 is missing the config register
from the musb hardware block. Use a known working value for it
like other SoC.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Jun Nie <jun.nie@linaro.org>
drivers/usb/musb-new/musb_regs.h

index ab0d98e7c48c442ed210844b987c6fb6342a62f8..c4d7203b8514cb180555008daf05543cd02e7afe 100644 (file)
@@ -431,7 +431,8 @@ static inline u8 musb_read_ulpi_buscontrol(void __iomem *mbase)
 
 static inline u8 musb_read_configdata(void __iomem *mbase)
 {
-#if defined CONFIG_MACH_SUN8I_A33 || defined CONFIG_MACH_SUN8I_A83T
+#if defined CONFIG_MACH_SUN8I_A33 || defined CONFIG_MACH_SUN8I_A83T || \
+               defined CONFIG_MACH_SUNXI_H3_H5 || defined CONFIG_MACH_SUN50I
        /* <Sigh> allwinner saves a reg, and we need to hardcode this */
        return 0xde;
 #else