mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
e87a9506f0
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>
10 lines
197 B
Bash
10 lines
197 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
sleep 10
|
|
|
|
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"
|