qseecom: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: If78e8a3aa66209b93449569cc9bd670b8d21008c
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: Fix correct topology for qseecom bus scaling.

Currently, bus scaling topology for qseecom is incorrect.
 -Added the correct topology paths for accessing Crypto
  Engine which is controlled by QSEE.
 -Removed setting the clock frequency of DFAB. This is
  done by the bus driver.
 -Removed references to the dfab clock instance defined
  in clocks file.

Change-Id: Ib6953ea3bf5721d458bfe2aa06c54be329a8fdb9
Signed-off-by: Ramesh Masavarapu <rameshm@codeaurora.org>
qseecom:Fix race condition while voting for clocks

In the current functionality, if DFAB clock is already on and a
request is made to turn on SFPB clock, the DFAB clock is turned
off and SFPB clock is turned on and vice-versa.

The above situation can lead to unexpected errors. The current fix
makes sure that clocks that are on are not voted to be off without
explicit request.

(cherry picked from commit 8d7565828aca6023ca968d2e5350737bd6d86215)

Change-Id: I97e1dfa17d6aa617a6b86d741a433d7147a5e81f
Signed-off-by: Ramesh Masavarapu <rameshm@codeaurora.org>
blue: udpate board from CAF

* msm: Fix correct topology for qseecom bus scaling.
* qseecom:Fix race condition while voting for clocks

Change-Id: Idc71c0b362c3ba8ac5442a1efa887cc972c3f23b
msm: Export some iommu domain management functions

Several of the iommu virtual address space functions may
need to be accessed by modules. Export the symbol.

Change-Id: Ief99cbb63f729943b6d8b45ce9aed071d84decd1
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
msm: iommu: Remove the vcap iommu from 8960ab

There is no vcap iommu in the 8960ab platform.
Also, a cleaner separation between platforms is
obtained by re-organizing the gfx3d and vcap
structures by device block instead of by msm.

Change-Id: I9dbfceebe67d44c4ee65e960873e2f9a1811f913
Signed-off-by: Joel King <joelking@codeaurora.org>
msm: iommu: Fix SMR NSCFG configuration

When setting the NSCFG field, the S2CR register being
written needs to be indexed by the stream matching group,
not by the value of the SID being configured. Additionally,
there is no need to set CBACR for every SMR that is
programmed.

Change-Id: Ib79771a3bd87e4bd3b353bd5c6de9247138ca43e
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
iommu: msm: Configure memory attribute overrides

The default IOMMU memory attribute setting results in
reduced performance as a result of downgrading memory
attributes. Fix that.

Change-Id: Ie04175b8037855e4c962eac281f7f88901ae2034
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm: iommu: Support alternate core clocks

Refactor the IOMMU clock control code to always require a
core clock as well as an interface clock. Add support for
an optional alternate core clock and update device tree
bindings accordingly. Clean up the probe function to remove
needless enabling / disabling of clocks.

Change-Id: I4d744ffabc1e6fb123bacfda324f64408257cb25
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
iommu/msm: Print context name instead of device name

When probing the context devices, dev_info already prints
the device name, so printing it again is redundant. The
context name is more useful anyway, so print this instead.

Change-Id: Ibe2e33501baa1fd53f6ff45943226377eb61fd7e
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
ASoC: msm: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: Ie7400584e8688484f28b37bc281dcb41ed92ffd8
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: 8960: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: I6d05f982b35cbfed70bdd36c3b09fa1b37c88dfe
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: audio: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: Ida4e46d0f257e8c27467a8c13f7a0eb710dd3f5c
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: 8960: include msm-specific ion header

All msm_ion clients need to use <linux/msm_ion.h> instead of
<linux/ion.h>

Change-Id: Ia8cf2d01d72e30a9fa68a1608ecefb07867e6504
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
msm: vidc: Amend buffer size calculation

Amend the input and output buffer calculation to
reflect what the Venus core expects.

Change-Id: Ib3c600d0e838525e3a82a1b2c05803f86075ba15
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: vidc: Fixes polling on video driver.

poll should return all the available events
in one call. This change implements this
behavior.

Change-Id: I498b621cc5d8fca820376109ca4a5f1bd4c492b2
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
msm: vidc: Adds support for Intra Refresh

Adds Support for Intra refresh by setting
default values and calling right set_property.

Change-Id: Ibc04ec195b5265a1db60befb8109693a41f8fe51
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
msm: vidc: Adds support to send individual controls.

Adds support to set individual properties to Venus by
calling controls separately.

Change-Id: I4af3176ee009f202e62d566de3ce859b6a8d36c2
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
msm: vidc: Migration to new firmware version.

Adds support for the new firmware version by incorporating
the interface changes between driver and video firmware.
These changes make the driver compatible to new firmware
version.

FW_VERSION: 100100

Change-Id: I04e9457ac8a85a070f2e4c738ad3e4fc9cbfbaeb
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
msm: vidc: Adds support for VP8 Decoder.

Adds support for VP8 Decoder by adding VP8 codec
entry in vdec formats struct.

Change-Id: I93bca63e18ae2ba2a125e76584d230c0af1cc33a
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>