summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools
diff options
context:
space:
mode:
authorBhupesh Sharma <bhupesh.sharma@linaro.org>2022-10-27 14:21:05 +0530
committerKhem Raj <raj.khem@gmail.com>2022-10-28 17:26:16 -0700
commite87a9506f0494e6d7c420adeb77dff5b25965170 (patch)
tree3771d2986067e4384fbd2a37f996d9932eb0a34d /meta-oe/recipes-devtools
parentc6512403d1bc5089bdd586f5af761ced5fc65be1 (diff)
downloadmeta-openembedded-e87a9506f0494e6d7c420adeb77dff5b25965170.tar.gz
android-tools-conf-configfs: Allow handling two or more UDC controllers
Several Qualcomm platforms support setting two or more (or even all) UDC controllers in 'peripheral' mode. Modify the android-tools-conf-configfs scriptware to handle such cases. Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r--meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs/android-gadget-start4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs/android-gadget-start b/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs/android-gadget-start
index b73cb70b1..479f14ae7 100644
--- a/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs/android-gadget-start
+++ b/meta-oe/recipes-devtools/android-tools/android-tools-conf-configfs/android-gadget-start
@@ -4,4 +4,6 @@ set -e
4 4
5sleep 10 5sleep 10
6 6
7ls /sys/class/udc/ | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC 7ls /sys/class/udc/ | head -n 1 | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC
8
9bbnote "Setting UDC $(ls /sys/class/udc/ | head -n 1) for USB ADB Gadget usage"