* changes:
msm: board: Add ION heap for Audio
msm: board: Increase ION MM heap size
msm: board: Restore SF and MM heap to PMEM sizes
gpu: ion: Add new heap for qse comm
Change will delay mapping of buffers until bus bandwidth is
requested by video driver
Change-Id: Ibb6867baf6b3e821ec3ceafcdcab1e9225a5b109
Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org>
Check the service availability event to indicate the signal strength
of the tuned station.
Change-Id: I7d1c1f3de13351222cfdc27bc2d80dd08aadfdf2
CRs-Fixed: 331137
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
Add PMIC VBUS notification support for peripheral only mode and
allow PHY retention and power collapse. This patch also makes
changes to probe function to request PMIC ID IRQ in only OTG mode.
CRs-fixed: 330349
Change-Id: I4a5a6c50b0a3b56dcf78aea5b23499a264b3c9d5
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
The video driver should enable iommu clocks for vcodec, mdp and
rotator for content protection playback. Expose clocks to video
driver to enable for secure playback.
Change-Id: I2037cf5825d0b9cc7f37cf7fe56396163cb1db24
Signed-off-by: Gopikrishnaiah Anandan <gopikr@codeaurora.org>
The MBHC headset specific calibration data is stored in the filesystem
as a firmware file. Read this data during initializing MBHC and
perform calibration. If this data is not found, fallback to using
default data provided by the machine driver.
Change-Id: I1cabfb2bb19ef379cdce14ed6b1af8a62e34c790
Signed-off-by: Patrick Lai <plai@codeaurora.org>
Add 2.72MB ION heap for Audio to enable Audio
to use ION for memory management. This ION heap
will replace pmem_audio pmem device.
Change-Id: Icc844d30873dc60e6f8c41b24ea98de021a75205
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Increase ION MM heap size to 120MB to allow Camera
to work at 8MP with 5 snapshots.
Change-Id: I527768f02b39c6a97e1ea06b5e3e171d14e2e1e4
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
SF and MM heap are currently incorrectly sized.
Clients of these two heaps will run out of memory
and start failing.
Restore the SF and MM heap sizes to PMEM sizes. SF
heap will be 64MB if HDMI is configured as primary
otherwise 40MB. MM heap will be 66MB.
Change-Id: If1cd6dda58195ab6e4b71d111a017e1c59249849
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Printing to debugfs is done from a centralized location for
all the heaps managed by ion. This architecture is not
sustainable in the long run since different heaps have different
requirements for what should be printed.
Refactor the debugfs printing for ion so that each heap is
responsible for printing its information.
Change-Id: I1dbe13432a4ab07f27ea4756c3be7fa01ad1df92
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Add error message when allocation from ion fails.
Change-Id: If2efa95c563c9f076b85958a70ea66afa3983325
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
The ion client name used for debugging were being
allocated on the stack for user space clients. This
causes the name to be garbled when later printed.
Instead, allocate the name from the heap.
Change-Id: Id299d224192f127197bef2eeb22d881b3a31795c
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Add decrement of mapping count when mapping fails
and corresponding SMI release region call.
Change-Id: I81fb7eeee9973c770a65f02236c5358ce313e3a0
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Remove duplicate logging message for failure to create
a heap. Add logging message with name, base address, and
size of each heap created.
Change-Id: Id3a3706d914ffa72b0ecd84eb98785a678ceda9a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
The SCM call message size used to protect and
unprotect memory is incorrect. The interface expects
13 bytes but 16 bytes is sent due to padding of the
message struct.
Pack the message structure to force the size of the
structure to 13 bytes.
Change-Id: Iecb7b40aa7e94454620c19cd70c3106392d2d311
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
ION has to guarantee that two of the heaps are
adjacent to each other. This is due to a limitation
in the hardware. Add code to ensure these heaps
are adjacent.
Change-Id: Icc18437a50e1d872112468d02b61ab47fd70acc9
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Embedded rmnet driver is setting skb protocol to ethernet link layer
protocol, which causes the IP stack to drop the packets if it is set
to raw IP link layer protocol mode. Hence set the SKB protocol based
on the RMNET link layer protocol mode.
Change-Id: Ife1243feec54a50c00ec833b6ed72f59bf883b94
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
For wifi display, the writeback panel is needed to capture the output of
mdp. Setting this config enables the writeback panel.
Change-Id: I51006b74f63d286af6ca62bd95aa4fe2129f9fe4
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
During the probe for writeback panel, for MDP hardware versions
earlier than 4.3 an incorrect goto call un registers the bus scale handle
that primary panel uses. This is causing the boot failures because the
primary panel turn on sequence triggers the bus scale update request on
already unregistered handle.
Change-Id: Ie604b0ba5606d9664d2aeff28b8bea131965de61
Signed-off-by: Rajesh Sastrula <vrajesh@codeaurora.org>
Add memory map for RPM, SAW L2 and SAW CPU registers for
cores 2 and 3 in a quad core system.
Change-Id: I6adf24ec072f09390d15596b8e267fcd9ee0acec
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
With the revert of "of/irq: of_irq_find_parent: check for parent equal to
child" (dc9372808412edb), we need another way to handle parent node equal
to the child node. This can simply be handled in of_irq_init by checking
for this condition.
Change-Id: Iab2aff3db1e3eb61982102053806c44aceb5008b
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>