Merge "USB: init.qcom.usb.sh: Use target name from ro.board.platform"

This commit is contained in:
Linux Build Service Account 2014-10-17 10:37:03 -07:00 committed by Gerrit - the friendly Code Review server
commit e7559bc971
1 changed files with 4 additions and 8 deletions

View File

@ -78,7 +78,7 @@ for f in /sys/bus/esoc/devices/*; do
done done
fi fi
target=`getprop ro.product.device` target=`getprop ro.board.platform`
# #
# Allow USB enumeration with default PID/VID # Allow USB enumeration with default PID/VID
@ -117,12 +117,8 @@ case "$usb_config" in
setprop persist.sys.usb.config diag,diag_mdm,diag_mdm2,serial_hsic,serial_hsusb,rmnet_hsic,rmnet_hsusb,mass_storage,adb setprop persist.sys.usb.config diag,diag_mdm,diag_mdm2,serial_hsic,serial_hsusb,rmnet_hsic,rmnet_hsusb,mass_storage,adb
;; ;;
*) *)
echo $target case "$target" in
case "$target" in "msm8916")
"msm8916_32")
setprop persist.sys.usb.config diag,serial_smd,rmnet_bam,adb
;;
"msm8916_64")
setprop persist.sys.usb.config diag,serial_smd,rmnet_bam,adb setprop persist.sys.usb.config diag,serial_smd,rmnet_bam,adb
;; ;;
"msm8994") "msm8994")
@ -218,7 +214,7 @@ esac
cdromname="/system/etc/cdrom_install.iso" cdromname="/system/etc/cdrom_install.iso"
platformver=`cat /sys/devices/soc0/hw_platform` platformver=`cat /sys/devices/soc0/hw_platform`
case "$target" in case "$target" in
"msm8226" | "msm8610" | "msm8916" | "msm8916_32" | "msm8916_64") "msm8226" | "msm8610" | "msm8916")
case $platformver in case $platformver in
"QRD") "QRD")
echo "mounting usbcdrom lun" echo "mounting usbcdrom lun"