device: qcom: Add QDSS USB compositions for Fusion targets
Add the following USB PID compositions, which support QDSS trace and debug interfaces along with both APQ/MSM and MDM Diag interfaces found on Fusion targets. * 0x9098: MSM DIAG + MDM DIAG + QDSS Trace + QDSS Debug + ADB * 0x9099: MSM DIAG + MDM DIAG + QDSS Trace + QDSS Debug * 0x909A: MSM DIAG + MDM DIAG + QDSS Trace + QDSS Debug + ADB + RmNet * 0x909B: MSM DIAG + MDM DIAG + QDSS Trace + QDSS Debug + RmNet As there is no user interface to enable QDSS, these must be manually selected using "setprop sys.usb.config" on the command line. CRs-Fixed: 591224 Change-Id: Id65f67634d52b080d072d382d8030f93802b4533
This commit is contained in:
parent
5d71b32f0c
commit
b5fd682c0c
|
@ -676,6 +676,25 @@ on property:sys.usb.config=diag,qdss,adb
|
|||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,qdss
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9099
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions diag,qdss
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,qdss,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 9098
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/functions diag,qdss,adb
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,qdss,rmnet_bam
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
|
@ -698,6 +717,28 @@ on property:sys.usb.config=diag,qdss,rmnet_bam,adb
|
|||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,qdss,rmnet_bam
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 909B
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,qdss,rmnet
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=diag,diag_mdm,qdss,rmnet_bam,adb
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
write /sys/class/android_usb/android0/idProduct 909A
|
||||
write /sys/class/android_usb/android0/f_diag/clients diag,diag_mdm
|
||||
write /sys/class/android_usb/android0/f_rmnet/transports smd,bam
|
||||
write /sys/class/android_usb/android0/functions diag,qdss,adb,rmnet
|
||||
write /sys/module/dwc3/parameters/tx_fifo_resize_enable 1
|
||||
write /sys/class/android_usb/android0/enable 1
|
||||
start adbd
|
||||
setprop sys.usb.state ${sys.usb.config}
|
||||
|
||||
on property:sys.usb.config=rndis,diag,qdss
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
|
|
Loading…
Reference in New Issue