Commit Graph

34 Commits

Author SHA1 Message Date
Ameya Thakur ae416ab5f5 init.qcom.usb.sh: Add support for APQ8084 + 9x35 based devices
USB composition is now set up for devices where ro.baseband is set
to mdm2.

Change-Id: I3f6b4b083ace33f6308ed54f4d8f1f21744c94b6
2013-11-26 12:44:28 -08:00
Biswajit Paul 2e2d79df93 Modified chown/chmod to not follow symlink.
Enable symlink to not follow target file if "-h" option is
provided.

CRs-fixed: 545883
Change-Id: I94dbc32e7635d06a2121b3a1b07cc2616d06b5a4
2013-11-20 13:53:51 -08:00
Pavankumar Kondeti dbfde4ef3a qcom: hsic: Unbind the unused HSIC on msm8226
When the HSIC is used on msm8226, the device will always be connected
during boot up. HSIC does not allow system suspend until a device is
detected. Hence unbind the HSIC during boot up if it is not connected
to any device.

Change-Id: Ifa97cfcf0013820eeeb9a51fe02f00124f7629f4
2013-10-24 14:24:36 -07:00
Vamsi Krishna 16ed0f8767 qcom: hsic: Unbind hsic for apq8084 standalone
As there is no usecase for HSIC on standalone configuration remove
hsic.

Change-Id: I4a01002fd40593c26591b323a38a99dcab02dca8
(cherry picked from commit f48c21f800fde04943687052a39d5d9af60028c7)
2013-10-24 14:07:10 -07:00
Jack Pham 456f23b7af Revert "qcom: usb: force apq8084 to diag,adb composition"
Switch back to full USB composition as USB 3.0 primary controller is
functional.
2013-09-17 21:35:33 -07:00
Jack Pham 126dbf5eb8 qcom: usb: force apq8084 to diag,adb composition
Currently apq8084 is booting using the USB 2.0 controller. However,
on this target, this controller is limited in the number of endpoints
supported, hence we can only support at most two or three functions.
Set the default composition to diag,adb for now until the USB 3.0
controller is fully functional.

Change-Id: Id01c0bf929e01120ca406abd57f0e492316ce11e
2013-09-16 00:21:23 -07:00
Manu Gautam a1e67e44d1 qcom: Cleanup init.qcom.usb.sh
Drop code relevant for unsupported targets and
define default usb compositions so that we don't
need to change this file for every new target.

Change-Id: Ib6ae26f9ffeb8b68e7703296fbea8372d17b1a64
2013-09-13 12:39:13 +05:30
Hemant Kumar d956ee6755 init.qcom.usb.sh: Enable 9031 composition for APQ8084
Enable 9031 as the default composition for APQ8084 which
comprises of following functions:
MSM DIAG + MDM DIAG + ADB + DUN + NMEA + RMNET + MSC
Previous composition was: DIAG + ADB

Change-Id: I11835d11a97e0fe7bdce6f9852388c42beb34331
2013-09-05 11:51:54 -07:00
jin bbba8ed40b CDROM: add cdrom to 8x10
support cdrom on 8x10,
Change-Id: I4d6234e8f6dd7083f72066eb3ac6de616c23cae8
2013-08-22 04:15:09 -07:00
Linux Build Service Account 57215715e1 Merge "init.qcom.usb.sh: Add support for lun0 as CDROM in mass-storage" 2013-07-03 00:25:23 -07:00
Pavankumar Kondeti 33b27af8a4 device: qcom: Modify owner attributes of modem_wait file at correct place
The /sys/devices/virtual/hsicctl/hsicctl0/modem_wait file is not
created during kernel initialization.  This file is created only
after user space initializes rmnet_data_init module parameter.

CRs-Fixed: 470113
Change-Id: I7fb1dca645f95c59ab622d4e507a215483b48128
2013-06-17 15:17:51 +05:30
Vamsi Krishna f2be8da59d apq8064: sglte2: enable embedded rmnet driver
Embedded rmnet driver is not enabled by default and enable it on
sglte2 platform

Change-Id: I9333cf61e1adbefc7d9ab0e34703a242f9dbb7ce
2013-06-17 15:17:42 +05:30
Mayank Rana df122dd003 init.qcom.usb.sh: Add Fusion3 SGLTE2 Default compositions
Fusion3 SGLTE2 USB compositions are supported as below:

(With ADB): Product ID 0x9065 having APQ DIAG, MDM DIAG, QSC DIAG,
ADB, MDM DUN, QSC DUN, MDM RMNET, QSC RMNET, MSC interfaces.

(Without ADB): Product ID 0x9066 having APQ DIAG, MDM DIAG, QSC DIAG,
MDM DUN, QSC DUN, MDM RMNET, QSC RMNET, MSC interfaces.

Change-Id: I656e74a9748ef3943e256ea6e7930f3a7f0e2e35
2013-06-17 15:17:27 +05:30
Hemant Kumar b8d7f73eb3 init.qcom.usb.sh: Initialize RmNet driver
RmNet USB driver needs to be configured before the interfaces
can be probed. Configuration parameters are based on the
ro.baseband and persist.rmnet.mux properties.

Change-Id: Ibae6c091b068a20121ab30947083e1dddace28c0
2013-06-17 15:17:14 +05:30
Hemant Kumar 3639808797 qcom: Add support for Fusion3 DSDA2 compositions
Fusion3 DSDAs USB compositions are supported by

Product ID 0x9065 having APQ DIAG, MDM DIAG, MDM2 DIAG, ADB, MDM DUN,
MDM2 DUN, MDM RMNET, MDM2 RMNET, MSC interfaces.

Product ID 0x9066 having APQ DIAG, MDM DIAG, MDM2 DIAG, MDM DUN,
MDM2 DUN, MDM RMNET, MDM2 RMNET, MSC interfaces.

Also, pass serial and rmnet transport clinet names for the usb
compositions using hsic transport. This allows dynamic assignment of
unique driver port names to handle multiple instances of driver using
same transport(e.g. MDM DUN & MDM2 DUN over hsic transport).

Change-Id: I58907705906c12a2365413f4a13a32d62643a43a
2013-06-17 15:16:46 +05:30
Rajkumar Raghupathy 29cdbea7ed init.qcom.usb.sh: Add support for lun0 as CDROM in mass-storage
Add cdrom as a LUN for mass-storage which can be used for storing
system required data.

CRs-Fixed: 432310
Change-Id: If3cbb26780b28144b29c80d374a3b8af0b069409
2013-05-10 21:02:51 +05:30
David Ng 1130a3b4a6 qcom: Add initial support for APQ8084 target
Add APQ8084 target to QCOM platform list and set default USB
enumeration/LCD density setting for initial device bring-up.

Change-Id: I57ebbcc5d510f1e41869ab3f3b72f5200dc67e9b
2013-04-25 19:06:37 -07:00
Vamsi Krishna a3e5bb084e usb: enable default composition
Enable usb default composition with diag, rmnet, dun and
mass-storage.

Change-Id: I5fd0e0862b2dceab3719d4fc20fa8ff9de6b1394
2013-04-09 14:16:08 -07:00
Vamsi Krishna fe95b613ca msm8226: usb: Add support for dun, rmnet, nmea and mass-storage
Enabling full composition as other functions are needed for modem
verification.

Change-Id: I4298c5e4e00188f0c3f73ea9c18674886c77ea0c
2013-03-08 15:47:53 -08:00
Duy Truong 0c0744e022 Update copyright to The Linux Foundation
Change-Id: Id084b09bf3a083ea5c0389900bbeb5ef149b3108
2013-02-10 06:35:11 -08:00
David Ng 0f87afbfb7 qcom: Add initial support msm8226 and rename msm8910 to msm8610
Add MSM8226 to QCOM platform list and set default USB
enumeration/LCD density setting for initial device bring-up.
Rename MSM8910 target to MSM8610.

Change-Id: Ice3679ddb38e3c8cf5aa27f1f8dbf5ce814e923e
2012-11-26 15:02:19 -08:00
Hemant Kumar 751ae21e56 init.qcom.usb: Rename diag_mdm channel to diag_qsc for sglte
Diag driver was using diag_mdm channel name for sglte target
which has QSC modem. In case of Fuiosn3 DSDA diag needs to
open both diag_mdm and diag_qsc channels. This requires the
renaming of the channel name used by sglte to diag_qsc as diag
driver needs to handle both channels separately.

Change-Id: I30979cb8c7035b00595298c3592bbabc9c61fdb9
2012-11-12 18:18:50 -08:00
David Ng 12f9679dcc qcom: Add initial support msm8910
Add MSM8910 to QCOM platform list and set default
USB enumeration/LCD density setting for initial
device bring-up.

Change-Id: Ic949f6df629a50b3718190f4eb08386fe836f6f8
2012-11-08 10:55:01 -08:00
Linux Build Service Account caa827ca2c Merge "qcom: Add support for Fusion3 DSDA compositions" 2012-11-06 11:18:30 -08:00
Manu Gautam 7c95238046 init.qcom.usb.sh: Enable USB3 BAM
Enable USB3 BAM as kernel driver is also now using USB3 as the
default USB port. Without this change USB BAM client e.g. QDSS
wouldn't function.

Change-Id: Ief7a2c047a92c731cfed320b7adbe7f90501c365
2012-11-02 11:01:42 +05:30
Hemant Kumar 6f880e712a qcom: Add support for Fusion3 DSDA compositions
Fusion3 DSDA USB compositions are supported by

Product ID 0x9065 having APQ DIAG, MDM DIAG, QSC DIAG, ADB, MDM DUN,
QSC DUN, MDM RMNET, QSC RMNET, MSC interfaces.

Product ID 0x9066 having APQ DIAG, MDM DIAG, QSC DIAG, MDM DUN,
QSC DUN, MDM RMNET, QSC RMNET, MSC interfaces.

Change-Id: I2945d4fc785c4260d9496df10f38bc38560f5e39
2012-10-31 15:02:14 -07:00
Mayank Rana 5b4ae82726 Revert "init.qcom.usb.sh: setprop sys.usb.config.extra to diag on boot"
Currently using sys.usb.config.extra with value as "diag" making RNDIS
default composition as RNDIS + DIAG + ADB for both fusion and non-fusion
platforms. Hence revert this change not make RNDIS + DIAG + ADB as default
composition on selecting tethering option.

This reverts commit e2ee00363c.

Change-Id: I49323fc92a750c83140f66e32c23173ad8137c22
CRs-Fixed: 399871
2012-09-20 10:18:18 +05:30
Pavankumar Kondeti 8fee70414e qcom: Add support for QDSS USB composition
Add support for DIAG+QDSS and DIAG+QDSS+ADB compositions.
There is no UI support to enable/disable QDSS. Hence, run
"setprop sys.usb.config=diag,qdss" command to enable QDSS,
and "setprop sys.usb.config=diag,qdss,adb" command to
enable ADB along with QDSS and DIAG.
This change also selects USB BAM type for QDSS.

Change-Id: If11ca512cc35f4e5da8231f255f28aa58647ac16
2012-09-11 10:39:16 -07:00
Chiranjeevi Velempati e2ee00363c init.qcom.usb.sh: setprop sys.usb.config.extra to diag on boot
This change allows to enumerate diag interface along with RNDIS
interface, when USB tethering is enabled from userspace.

Change-Id: I245e13ca159c244f40411eaaa54370584bd054dd
2012-09-05 15:40:59 +05:30
Manu Gautam 0a952da2b8 init.qcom.usb.sh: Enable 9025 composition for 8974
Enable 9025 as the default composition for 8974 which comprises
of following functions:
DIAG + MODEM + SERIAL + RMNET + MASS-STORAGE + ADB
Previous composition was: DIAG + ADB

Change-Id: Ib411a100d3a8606acf72289f46450244d4cf923f
2012-08-16 20:32:53 -07:00
Channagoud Kadabi e0f9ad85e0 common: Fix device serial number issue
Some of the devices do not have unique serial numbers, in such
case user can set property for the device 'persist.usb.serialno'
which will be taken as unique serial no. Fix the script to set
serial number in the order "persist prroperty-kernel command
line-default value".

Change-Id: I7f72ec01451b5ebef2fbeb73b47c5d4a06ad0c6f
CRs-Fixed: 384217
2012-08-03 16:45:58 +05:30
Rajkumar Raghupathy 59986c69ce init.qcom.usb.sh: Add support for lun0 as CDROM in mass-storage
Add cdrom as a LUN for mass-storage which can be used for storing
system required data.

Change-Id: I590cdf61a859dc6be0b06a5791b66c3dfb95bc18
2012-07-21 04:13:57 -06:00
David Ng 859381344b init.qcom.usb: Rename target 'copper' to 'msm8974'
MSM target 'copper' is renamed to 'msm8974' starting with
Android JB release.

Change-Id: I536df1ef1d1af8d54a3f49b2b65b3688a8bd74d4
2012-07-20 09:30:50 -07:00
Shashank Mittal b0aaab087e qcom: Add qcom init and ueventd scripts.
Change-Id: I388a154054c07631ca853e334ffaeea2451da6c1
2012-06-21 18:04:00 -07:00