summaryrefslogtreecommitdiff
path: root/drivers/usb/musb-new
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2018-05-07 10:33:25 +0300
committerJagan Teki <jagan@amarulasolutions.com>2018-05-28 14:10:43 +0300
commit223278c6c921f4235ea71d18014e260ff7dc58f9 (patch)
tree686ca5ee0d2448eb83adfd5602c55f3ab622ead1 /drivers/usb/musb-new
parentfef73766d9ad4ca76b47faf6436f096ec40b3e7c (diff)
downloadu-boot-223278c6c921f4235ea71d18014e260ff7dc58f9.tar.xz
musb: sunxi: Add support for H3/H5/A64
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>
Diffstat (limited to 'drivers/usb/musb-new')
-rw-r--r--drivers/usb/musb-new/musb_regs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/musb_regs.h b/drivers/usb/musb-new/musb_regs.h
index ab0d98e7c4..c4d7203b85 100644
--- a/drivers/usb/musb-new/musb_regs.h
+++ b/drivers/usb/musb-new/musb_regs.h
@@ -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