summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Protsenko2018-10-04 23:10:00 -0500
committerPraneeth Bajjuri2018-10-04 17:14:42 -0500
commitf1e42cf82a084d8c04a456359b4342a40e2d3a20 (patch)
tree92299777da8c064ac34e212afdbeddf6de626c66
parent34da81718c666fb16286f047299584d1b8a8ecb0 (diff)
downloaddevice-ti-am65xevm-f1e42cf82a084d8c04a456359b4342a40e2d3a20.tar.gz
device-ti-am65xevm-f1e42cf82a084d8c04a456359b4342a40e2d3a20.tar.xz
device-ti-am65xevm-f1e42cf82a084d8c04a456359b4342a40e2d3a20.zip
am65x_evm: workaround: Set UDC controller manually
Ideally should have been done in Android init.cpp But due to loading dwc3.ko dynamically we can't rely on it as set_usb_controller() executed before early-init This workaround needs to be removed once dwc3 can work as built-in Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r--init.am65xevmboard.rc2
-rw-r--r--init.am65xevmboard.usb.rc6
2 files changed, 7 insertions, 1 deletions
diff --git a/init.am65xevmboard.rc b/init.am65xevmboard.rc
index a932853..bb93bb9 100644
--- a/init.am65xevmboard.rc
+++ b/init.am65xevmboard.rc
@@ -2,7 +2,7 @@ import /vendor/etc/init/hw/init.am65xevmboard.usb.rc
2on fs 2on fs
3 mount_all /vendor/etc/fstab.am65xevmboard 3 mount_all /vendor/etc/fstab.am65xevmboard
4 4
5on boot 5on early-init
6 # Load modules 6 # Load modules
7 exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d \ 7 exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d \
8 /vendor/lib/modules xhci-plat-hcd.ko phy-omap-usb2.ko dwc3.ko dwc3-of-simple.ko 8 /vendor/lib/modules xhci-plat-hcd.ko phy-omap-usb2.ko dwc3.ko dwc3-of-simple.ko
diff --git a/init.am65xevmboard.usb.rc b/init.am65xevmboard.usb.rc
index 748253f..10c136a 100644
--- a/init.am65xevmboard.usb.rc
+++ b/init.am65xevmboard.usb.rc
@@ -51,3 +51,9 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.ffs.mtp.ready=1 && property:
51 51
52on property:sys.usb.config=adb && property:sys.usb.configfs=1 52on property:sys.usb.config=adb && property:sys.usb.configfs=1
53 write /config/usb_gadget/g1/idProduct 0xD101 53 write /config/usb_gadget/g1/idProduct 0xD101
54
55# FIXME: remove this line later; it's done in init.cpp
56# but due to loading dwc3.ko dynamically we can't rely on it
57# as set_usb_controller() executed before early-init
58on late-init
59 setprop sys.usb.controller "4030000.usb"