init.common.usb.rc: Do not hardcode sys.usb.controller property
Upstream commit eb9b7bfd5954 ("arm64: dts: qcom: Harmonize DWC
USB3 DT nodes name") (v5.14-rc1) changed the DTS USB node names,
breaking the sys.usb.controller property hardcoded in the
platfrom specific init.usb.common.rc
This script will get rid of the static/hardcoded proprty name
and set the property to the available on-board USB controller
from /sys/class/udc instead.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I1255cd9a3456510d93437989e7e378d9e6bc0c8b
diff --git a/db845c/device.mk b/db845c/device.mk
index 1b6907f..502b0fe 100644
--- a/db845c/device.mk
+++ b/db845c/device.mk
@@ -61,6 +61,7 @@
tqftpserv
PRODUCT_COPY_FILES += \
+ device/linaro/dragonboard/qcom/set_udc.sh:$(TARGET_COPY_OUT_VENDOR)/bin/set_udc.sh \
device/linaro/dragonboard/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc
# Install scripts to set Ethernet MAC address