msm: acpuclock-8974: Update CPU, L2 and bus scaling data

Update the CPU->L2->Bus/DDR request mappings to achieve a better
power and performance balance.

Change-Id: I30ef1aa3a5a536056813d07cbdab66cb5f34eb4c
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Asoc:msm8974:Fix crash on audio stack due to re initialization

Assigment of the pre_buck 5v and docking device structure to NULL was
done twice. Second time is after sound card registration. This causes
docking device structure to be NULL instead of valid pointer.

Change-Id: I208cddb6781e6e7cd17bb81f5bf974702eeb44fc
Signed-off-by: Tanya Finkel <tfinkel@codeaurora.org>
msm: camera: Improve ISP configuration APIs

Change command structure to improve readablity
Replace write and clear mask function with config mask
Add DMI table support

Change-Id: I4efb78ddbf88cdbd1a7defcbdac3d591c725e1c1
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
msm: display: video_info_code metadata setting

video_info_code is used for HDMI mode setting, setting
via metadata ioctl to get rid of reserved field usage

Change-Id: Ia2ab79c184fd6161740f28ee36afbc4e82917b89
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
msm: kgsl: Fix hang detection to be 50ms or more

In current design waittimestamp can trigger hang detection
in less than 50ms. Check if hang detection was called less than
50ms ago, if true do no attempt hang detection.

Change-Id: Iaeb2501316c4194957fbe211b6023eeb869bd0d5
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
ASoC: wcd9xxx: Export wcd9320_registers.h to user space

Add wcd9320_registers.h to UAPI so that it is accesible
to user space components that need it.

CRs-fixed: 430428
Change-Id: I56b69fd9e2af1ac9e1af8739e843f8c7d1f3a93d
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
msm: krait-regulator: turn off mdd when ldo is not used

The MDD (master droop detector) unit consumes around 300uA per core.
It is required only when the LDO is being used by the cpu. It can
be safely turned off while in BHS mode. This will save upto 1.2mA
of rock bottom current.

Note that if the cpu is entering retention mode, we turn on the MDD
so the spm can turn on LDO safely when retention is activated. Since
we have to call a out of band api to turn on/off MDD for a given core
associate a cpu number with a krait regulator node. This helps us to get
the necessary data structure quickly and access that core's registers
to turn its MDD on/off.

Change-Id: I03ab80bd979bef05c6c3d39f43788e6ec9f02510
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
ASoC: msm: Correct Incall recording dai capability

Incall recording RX path dai has capture capability.
Change fixes the capability of dai driver.

Change-Id: Ic25325f97c0eacadeff933a12b88b61c5931db8d
CRs-fixed: 449893
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Revert "arm/dt: msm8974: Modify L2 state in low power modes"

This reverts commit d343034240cb9eb6496c96d198199101c9569e98.
Reverting this patch to fix stability issues seen due to leaving Krait
FTS on all the time. This patch will allow L2 PC in idle which will flush
L2 and also power collapse the FTS.

Change-Id: Ic88a6ad6c56e99852bf1ba824ae26474d43795bb
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
arm/dt: Rename PM8026 files to PM8226 to reflect change in product name

The PM8026 device name is being changed to PM8226.  The dtsi file is
being renamed to reflect this change.

Change-Id: I0cda54fc752074c8e6af56a82623ab33b8e8996c
Signed-off-by: Kenneth Heitke <kheitke@codeaurora.org>
power: qpnp-charger: add system thermal levels

Some userspace daemons may want to limit the charge
current based on system level temperature.

Add support for this by exposing the POWER_SUPPLY_SYSTEM_TEMP_LEVEL
property and mapping it to the qcom,chg-thermal-mitigation array
in the device tree.

Change-Id: I604cf38f01a410abc23c9b87f686a40bc19b3123
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
arm/dt: msm-pm8941: add thermal-mitigation

Add array with thermal mitigation levels for charger
devices on PM8941.

Change-Id: Ic0f53e45c0ed9731318443f3f2e45e0a3b4c4b39
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
power: qpnp-charger: enable analog ir drop compensation

On PM8941 IR drop compensation can be simply enabled
by selecting the appropriate buck regulation node.

Enable this in the hardware initialization routine.

Change-Id: I21214f422d404c0c306973a756e9d4ab87fbc9b4
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
msm: lpm-levels: Do RPM/MPM communication only during PC.

When the system isn't entering RPM assisted power collapse, do not
perform RPM/MPM communication. Otherwise, this would result in increased
boot delays as the latency associated with entering shallow low power
modes is increased.

Change-Id: I1fb3c89a904bf888b89960ea1bdd5c7f8fdc2212
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
msm: 8974: Add coresight properties to device-tree file

Enable registration of NoCs and BIMC with coresight for
bus profiling, by adding the coresight properties
to the bus devices.

Change-Id: I53a78fd7c594471a472fcf55862af42a8f6e175b
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
msm: clock-8974: Support L2 and Krait clock measurement for 8974v2

The clock measurement debug mux network is laid out and configured
differently than on previous versions of msm8974 hardware. Update
the measurement code to support both configurations.

Change-Id: I691c32b76c17805c6e92e63fd7f22e61bc02ae66
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
msm: vidc: Move register presets to dtsi file

Some register settings for venus, like QoS settings, change between
different hardware versions. Moving those settings to dtsi file.

Change-Id: I8acbd8c319a460a913f90953f9bda9cb9639dd67
Signed-off-by: Shalaj Jain <shalajj@codeaurora.org>
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
msm: 8610: i2c: Configure I2C controller on BLSP-1 QUP-3

Add I2C controller device and set its clocks and GPIOs such that it may
access the EEPROM device. The EEPROM device is commonly used to verify I2C.

Change-Id: I92549fb4e0b2106ef990b1c8c71a35c31a988ea1
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
cne: Add support for tcp reference count.

Enable INET_DIAG, socket diagnostics are used for
tracked sockets in the WQE(wifi quality estimation)
module.
reference count is used to garbage collect the stale
tracked sockets.

Change-Id: I4d5c4aa6a3b2ec2957376a354f802bd79a2d14c6
Signed-off-by: Susheel Yadagiri <syadagir@codeaurora.org>
ASoC: WCD9306: Add support for new functions and update parameters

Replace the old function SOC_SINGLE_S8_TLV() with its new variant
SOC_SINGLE_SX_TLV() and update the list of parameters.
Also, update list of parameters for function
snd_soc_dapm_mux_update_power() to fix compilation errors.

Change-Id: I9f7e964d027dac591bd7d1e8c70299303fd92e20
Signed-off-by: Banajit Goswami <bgoswa@codeaurora.org>