projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e9c60
)
usb: dwc_otg_310: support battery charger detect for rk3288w
author
William Wu
<william.wu@rock-chips.com>
Tue, 1 Aug 2017 07:23:06 +0000
(15:23 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Wed, 2 Aug 2017 02:21:12 +0000
(10:21 +0800)
rk3288 and rk3288w use different compatible string, so add
"rockchip,rk3288w" to support rk3288w.
Change-Id: I828f09d26fea30921159f24ce9bdffd286df777a
Signed-off-by: William Wu <william.wu@rock-chips.com>
drivers/usb/dwc_otg_310/usbdev_bc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc_otg_310/usbdev_bc.c
b/drivers/usb/dwc_otg_310/usbdev_bc.c
index 79a08a0a44f92d4bbb0a14a8d67742d638de5349..748b9ee4a454bec73511facb9a8aff41775454a9 100755
(executable)
--- a/
drivers/usb/dwc_otg_310/usbdev_bc.c
+++ b/
drivers/usb/dwc_otg_310/usbdev_bc.c
@@
-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;