mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-08-06 19:38:28 +02:00
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>
This commit is contained in:
@@ -4,4 +4,6 @@ set -e
|
||||
|
||||
sleep 10
|
||||
|
||||
ls /sys/class/udc/ | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC
|
||||
ls /sys/class/udc/ | head -n 1 | xargs echo -n > /sys/kernel/config/usb_gadget/adb/UDC
|
||||
|
||||
bbnote "Setting UDC $(ls /sys/class/udc/ | head -n 1) for USB ADB Gadget usage"
|
||||
|
||||
Reference in New Issue
Block a user