usb: dwc_otg_310: support battery charger detect for rk3288w
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc_otg_310 / usbdev_bc.c
index 79a08a0a44f92d4bbb0a14a8d67742d638de5349..748b9ee4a454bec73511facb9a8aff41775454a9 100755 (executable)
@@ -41,7 +41,8 @@ static inline void *get_grf_base(struct device_node *np)
 
        if (of_machine_is_compatible("rockchip,rk3188"))
                grf_base -= 0xac;
-       else if (of_machine_is_compatible("rockchip,rk3288"))
+       else if (of_machine_is_compatible("rockchip,rk3288") ||
+                of_machine_is_compatible("rockchip,rk3288w"))
                grf_base -= 0x284;
 
        return grf_base;