Commit Graph

11 Commits

Author SHA1 Message Date
Lena Salman 5a11767bc9 usb_bam: changes for HSIC IPA functionality
Add support for HSIC device mode

Change-Id: Ibe20b01ef657cb820e3b94d4b85ace828fad58ba
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Lena Salman <esalman@codeaurora.org>
2014-09-01 15:53:37 +03:00
Jack Pham 8c9c7eb18f usb: bam: Return usb_pipe_mem_type from get_bam2bam_connection_info()
Some functions may need to know the pipe memory type, whether it
is allocated memory or a private region of internal peripheral
memory. Add an extra parameter to the get_bam2bam_connection_info()
function to return this value based on the preconfigured BAM pipes.

For most functions this info is unneeded. For QDSS, use this value
to determine whether to pass MSM_INTERNAL_MEM to the SPS params
when running on a device that requires it.

Change-Id: Ia9f5630b08a90cb66489a11707919d1855c36ec9
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2014-06-09 00:32:28 -07:00
Ido Shayevitz ad3cda77d1 usb: bam: Add max Mbps vote for IPA resources
Add a vote for IPA clock performance to enhance IPA clock
tuning according to the actual connection speed in use cases
which involve USB or HSIC connection to IPA.

For Bam2Bam mode we support USB high speed or super speed only, in each
there is different limitation of max mbps, therefore allow tuning
performance upon connection establishment.

CRs-Fixed: 637429
Change-Id: I7456a1d7bc6eb7c87df251acca1ba94e34caa805
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
2014-04-03 12:43:04 +03:00
Maya Erez b85824e27f usb: bam: associate usb_bam with the controller instead of the speed
Changes the usb_bam to be associated with the specific controller
that it is connected to in the hardware. This replaces the
existing paradigm where the association was made with prior
knowledge as to which controller can reach which speed (e.g. SSUSB_BAM).
This will allow supporting runtime LPM from the dwc3 controller, in
addition to the existing support for the CI controller.

Change-Id: I1fedda6d6e4605bf9444dc4833a51461875c669f
Signed-off-by: Dov Levenglick <dovl@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
2014-03-17 22:13:52 +02:00
Linux Build Service Account 26435ea079 Merge "usb: bam: add support for new ipa connect paramater" 2014-03-16 13:57:35 -07:00
Bar Weiner 18364b8461 usb: bam: add support for new ipa connect paramater
Adding support for the IPA keep awake (power save override)
feature. Per the IPA driver team's request - this parameter
is set to false for RMNet and to true for MBIM, ECM and RNDIS.

Change-Id: I66f4ef965fcfc0700b91f97eb18b287d7b64a369
Signed-off-by: Dov Levenglick <dovl@codeaurora.org>
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
2014-03-14 12:38:39 +02:00
Bar Weiner 17b10ed288 usb: bam: suspend/resume handshake with the IPA
When going to suspend, there is the need to perform
a handshake with the IPA. Furthermore, due to a
hardware bug in the DBM, there is also a need to
reset the DBM ep and corresponding BAM pipe.

This patch exposes the need (or lack thereof) to perform
the DBM and BAM reset, as well as incorporates this reset
into the overall flow of handshaking with the IPA

Change-Id: I4c7159bd292799122785ab019a844822efe46d5c
Signed-off-by: Dov Levenglick <dovl@codeaurora.org>
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
2014-03-13 23:58:04 -07:00
Linux Build Service Account e7ba90fd33 Merge "USB: usb_bam: Change the bam handle to ulong" 2014-03-12 20:12:41 -07:00
Bar Weiner 2955018ea9 usb: gadget: prevent sending packets to IPA when in suspend
Adds support for querying the IPA RM status before calling
ipa_tx_dp(), in order to avoid sending data to the IPA
when it is unclocked.

Change-Id: I8261e53de774099062972fbdd496d42cba8140f8
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
2014-03-09 14:27:17 +02:00
Sujeet Kumar 2d9e27fa48 USB: usb_bam: Change the bam handle to ulong
Change the bam handle data type from u32 to
unsigned long to match sps connect source
and destination.

Change-Id: I55ce477a40e4ab3d1306f8afd1acf491c22874e9
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
2014-03-08 05:22:15 +05:30
Sujeet Kumar af110c4d33 USB: mach: Move the mach headers to common location
As part of moving the headers from mach directory
to a common location compilation issues are arising.

Make the changes which are relevant for USB with
its own header files and also dependent header
files.

Change-Id: Ieef7d04ffdfda249f434e0676fec6da8d8b9cf2c
Signed-off-by: Sujeet Kumar <ksujeet@codeaurora.org>
2014-02-25 05:53:32 +05:30