usb: create new functions for uwb

uwb needs ACM port, create this function combination.

Bug: 187877902
Test: ACM port can be enabled.
Signed-off-by: Puma Hsu <pumahsu@google.com>
Change-Id: I14c6af95bbd5e9e0b2c4a17a1fffb6e04def2c9b
This commit is contained in:
Puma Hsu 2021-08-19 19:36:51 +08:00
parent 31cf630527
commit fbcb7ad5dc
3 changed files with 14 additions and 0 deletions

View file

@ -68,6 +68,9 @@ on early-boot
# etr_miu function
mkdir /config/usb_gadget/g1/functions/etr_miu.gs11
# acm function for uwb
mkdir /config/usb_gadget/g1/functions/acm.uwb0
setprop vendor.usb.functions.ready 1
on boot
@ -120,3 +123,6 @@ on property:sys.usb.config=charger && property:sys.usb.configfs=1
on property:vendor.usb.contaminantdisable=true
exec /vendor/bin/hw/disable_contaminant_detection.sh
on property:ro.bootmode=uwb
setprop persist.vendor.usb.usbradio.config uwb_acm