common: init.qcom.usb: Add DPL USB composition rules
Add the rules for the following compositions in which DPL works over BAM2BAM_IPA. 0x90B7 - DIAG + DUN + RMNET + DPL 0x90B8 - DIAG + DUN + RMNET + DPL + ADB Change-Id: I788c0681fdd49d50b48610b2b6feff43179a0ede
This commit is contained in:
parent
2581d60974
commit
0eb9bf1afe
|
@ -1318,3 +1318,34 @@ on property:sys.usb.config=midi,adb
|
|||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_smd,rmnet_ipa,dpl
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 90B7
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd
|
||||
# DPL is implemented using QDSS
|
||||
write /sys/class/android_usb/android0/f_qdss/debug_intf 0
|
||||
write /sys/class/android_usb/android0/f_qdss/transports qti,bam2bam_ipa
|
||||
write /sys/class/android_usb/android0/f_qdss/transport_names qdss_bam
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports qti,bam2bam_ipa
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,qdss
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,serial_smd,rmnet_ipa,dpl,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 90B8
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag
|
||||
write /sys/class/android_usb/android0/f_serial/transports smd
|
||||
# DPL is implemented using QDSS
|
||||
write /sys/class/android_usb/android0/f_qdss/debug_intf 0
|
||||
write /sys/class/android_usb/android0/f_qdss/transports qti,bam2bam_ipa
|
||||
write /sys/class/android_usb/android0/f_qdss/transport_names qdss_bam
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports qti,bam2bam_ipa
|
||||
write /sys/class/android_usb/android0/functions diag,serial,rmnet,qdss,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
|
Loading…
Reference in New Issue