arm/dt: msm8226: Correct power settings for 8226

Start the GPU at nominal frequency for performance.
Remove the 8974 specific step multiplier.

Change-Id: Iad2a1468b7c7c48b651ee1f712b2c2db1cfbb192
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
slim_ngd: Support reserving message bandwidth for clients

Message bandwidth can be reserved by clients to do message-intensive
transactions over Slimbus. While slimbus framework supports that,
NGD driver was missing corresponding code to send this request to
master driver on ADSP. This patch adds that support.

Change-Id: If6a340746816658ac0aa1b4bd7c2270205eb6d4a
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
ASoC: msm: 8974: Fix error condition check

This change fixes the error check condition for
us-euro gpio switch.

Change-Id: I33fdb1f6379492aecd577055769e1ac5d24b4802
CRs-fixed: 476010
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
defconfig: msm8974: Enable HDMI audio playback

This change enables HDMI audio playback feature
for msm 8974

Change-Id: I1f83c559f83676e0d892e9f1f75d37c359396b3a
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
msm: clock-8610: Fix measurement for CPU and BIMC clocks

The CPU clock measurement code needs to be updated to
use correct mux and divider values. Also, the BIMC
clock being measured is the wrong one, so fix it.

Change-Id: I40007a641296bf371f15c1d630bee0f64b14d0a5
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: acpuclock-8226: Support 998MHz and 1.2GHz rates

The higher end rates of 998MHz and 1.2 GHz have been
tested and validated. Update the frequency tables to
allow these frequencies to be used for scaling.

Change-Id: I4a98c8e6a72cdda33ef5378e80ff256385e29c2b
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: pil-q6v5-mss: Make MSS regulator voting optional

On some chipsets, the modem is able to vote for its
own regulator and proxy voting takes care of the vote
during modem bootup. Make the regulator voting optional
in these cases.

Change-Id: I7a3dfc7dc41c823d574967981735d3bd80dd9410
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
arm/dt: msm8226/8610: Remove the vdd_mss-supply property

The vdd_mss-supply property is not required on the MSM8610
and MSM8226. This is because the modem is on the CX power
rail in these targets and is perfectly capable of voting
for CX on its own.

Change-Id: Ia2fe50b76856a3f27969fe2dcb31331defc5c563
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: kgsl: handle double free on timestamp

Make sure memory does not get freed twice if one of the
frees is free on timestamp.

Change-Id: Id03d69ae9b5cc598658794e65152a899b36fe314
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
input: synaptics_fw_update: Add firmware ID reading

- Fix issue of converting config id
- Support "Option 1 (bit0)" in image file header
  -- Query firmware build id from image file header

Change-Id: Iabd24d662762b67de7163ad7321f95f1c58f1459
Git-commit: 7e811dcd8eaf3fc0df765335d0ef14926f325f64
Git-repo: git://github.com/synaptics-touch/synaptics-dsx-i2c.git
[amaloche@codeaurora.org: only portion of patch taken.
 Custom changes were necessary to add for integration
 with mainline]
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
input: synaptics_fw_update: Add force update entry

Add sysfs entry option to force update firmware, regardless
of versioning.

Change-Id: I85a12c531ee3d64a74da272b6e73b514eafc136a
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
leds: leds-qpnp: Add masks for mode ctrl and source

Add masks for mode ctrl and source select, so that
settings must be correctly set in device tree.

Change-Id: Ie6a30e2fb52be2124320d11fc6a7d673fefccccb
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
msm: kgsl: Skip cff dump for certain functions when its disabled

Certain functions were generating CFF when CFF was disabled. Make
sure these functions do not dump CFF when it is disabled.

Change-Id: Ib5485b03b8a4d12f190f188b80c11ec6f552731d
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
msm: kgsl: Fix searching of memory object

Make sure that at least a size of 1 byte is searched when locating
the memory entry of a region. If size is 0 then a memory region
whose last address is equal to the start address of the memory being
searched will be returned which is wrong.

Change-Id: I643185d1fdd17296bd70fea483aa3c365e691bc5
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
msm: kgsl: If adreno start fails then restore state of device

Restore the state of the device back to what it was at the
start of the adreno_start function if this function fails to
execute successfully.

Change-Id: I5b279e5186b164d3361fba7c8f8d864395b794c8
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
msm: kgsl: Fix early exit condition in ringbuffer drain

The ringbuffer drain function can be called when the ringbuffer
start flag is not set. This happens on startup. Hence,
exiting the function early based on start flag is incorrect.
Simply execute this function regardless of the start flag.

Change-Id: Ibf2075847f8bb1a760bc1550309efb3c7aa1ca49
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
msm: kgsl: Do not return an error on NULL gpu address

If a NULL gpu address is passed to snapshot object tracking
function then do not treat this as an error and return 0. NULL
objects may be present in an IB so just skip over these objects
instead of exiting due to an error.

Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Change-Id: Ic253722c58b41f41d03f83c77017e58365da01a7
leds: leds-qpnp: Change torch trigger API

Change torch trigger API by adding a separate torch node in DT and
by controlling that torch node to turn on and turn off torch led.
This eliminated sysfs entry to turn on torch mode.

Change-Id: Ia443f4bb21262df2c1d394f05bd72db08a079b7e
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
arm/dt: msm8974: Add new node to DT for led torch

Add a separate node in DT to enable flash led be used as torch.

CRs-Fixed: 472007
Change-Id: I0a36d31370964d1fee0f4318945d9b206f5f176d
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
arm/dt: msm8610: Add trigger for backlight WLED

Add default trigger attribute in device tree for 8610 MTP and CDP.

Change-Id: I63acfd2578a04b775c5b19291f60a93a55d8e99b
Signed-off-by: Chun Zhang <chunz@codeaurora.org>