[4/6] sunxi: musb: Hack dynamic fifo support for H3 OTG

Message ID 1515137821-30583-5-git-send-email-jun.nie@linaro.org
State Superseded
Headers show
Series
  • Add Bananapi Zero board with OTG supported
Related show

Commit Message

Jun Nie Jan. 5, 2018, 7:36 a.m.
Like other Allwinner SoC, the H3 is missing the config register
from the musb hardware block. Use a known working value for it
like other SoC.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
---
 drivers/usb/musb-new/musb_regs.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/drivers/usb/musb-new/musb_regs.h b/drivers/usb/musb-new/musb_regs.h
index a3cc38e..3e51003 100644
--- a/drivers/usb/musb-new/musb_regs.h
+++ b/drivers/usb/musb-new/musb_regs.h
@@ -432,7 +432,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_SUN8I_H3)
 	/* <Sigh> allwinner saves a reg, and we need to hardcode this */
 	return 0xde;
 #else