arm/dt: hammerhead: add vbus drop threshold value for charger

Add vbus drop threshold node for use of adaptive input current
limit setting in charger driver.

Change-Id: I315fdeffc7db78e1faf963fa70c7646d77fbc088
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
arm: ftrace: ftrace_modify_code should make kernel text writable for update

STRICT_MEMORY_RWX write-protects the kernel text section, hence with
STRICT_MEMORY_RWX enabled ftrace need to make kernel text section
temporarily writable.

Change-Id: I67fef0ee1d81dd259bae623d7bf0ea2760ae7284
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
panic: force console_unlock() in panic()

If panic() is called when console is locked,
oops message can't be printed in console.
Especially, android ram_console doesn't have any information in this case.
Thus, console_unlock() in panic() if console is locked.

Change-Id: Ifbac48875ac189c35ed380b67734d0411bed2c08
Signed-off-by: Bongkyu Kim <bongkyu.kim@lge.com>
net: wireless: bcmdhd: Enable p2p support bits for p2p device

Change-Id: I62102ead0e72be41d591f9562f3ac27c41b9e395
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
video: slimport: optimize output signal quality to meet the CTS spec

Set registers which are related to slimport output signal quality,
including swing and pre-emphasis.

Change-Id: I39a6594118205c51829d621a4cefb5b04e784caf
Signed-off-by: jihyun.seong <jihyun.seong@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
video: slimport: enable HDCP

Change-Id: I9574da80912d15b98ea52839583862ae6fd2977e
Signed-off-by: jihyun.seong <jihyun.seong@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
video: slimport: wait until hdmi connection is stable

Change-Id: Ia1148e346e47fbc5fe47dfd5e8153df70d286877
Signed-off-by: jihyun.seong <jihyun.seong@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
arm/dt: hammerhead: Disable the Invensense IIO based Sensors

Use QCOM Sensors instead

Change-Id: I0f478a26de6f5811614d90cfb6218e7f64044055
Signed-off-by: kangsik.shin <kangsik.shin@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
hammerhead_defconfig: Disable the Invensense IIO based sensors

Use QCOM sensors instead

Change-Id: I201497aae1716e5bc9440c0e63df6edf4f9f4b27
Signed-off-by: kangsik.shin <kangsik.shin@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
arm/dt: hammerhead: Set the warm-up delay to 25ms

Previous value was 15ms. We use 25ms to improve the haptic response.
Becuase HH uses coin motor and the motor starts to vibe slowly compared
with linear motor.

Change-Id: I4f1e6ea1e700bc6325fb8b525621b564ed4430a3
Signed-off-by: Devin Kim <dojip.kim@lge.com>
msm8974_pwm_vibrator: Improve the haptic response

Remove the unnecessary using atomic values. and Fix the incorrect clock
control.

Previously the driver controlled the clocks in atomic. But the clock
control might be sleepable. So use mutex instead of spinlock for locking.

Change-Id: I8fe1b1e39973d9d8b5505c02491bfabea731d3c3
Signed-off-by: Devin Kim <dojip.kim@lge.com>
arm/dt: hammerhead: reduce charging current for wireless charging

To mitigate heating during wireless charing, reduce charging
current from 768mA to 704mA.

Change-Id: Ie5fb88982d0a7bcb114d09f4495eb6ba3c06ac28
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
arm/dt: hammerhead: add step down current and vin limit for wlc

For use of step charging in wireless charging, add step down
current and input volatge limit of wireless charger to dt.

Change-Id: Ia13f192f426bdeb6dec42d5dfe8d8b28236bb4c8
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
power: bq24192: use step charging in case of wireless charging

The step charging during wireless charging help to reduce
heating and prevent wireless charger disconnection by system
load. Since the increased charging time is not much, apply
step charging to wireless charging.

Change-Id: I57fa6df1655e7d80ae25c7d56cc1271f98fdd0c6
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
arm/dt: hammerhead: Set the backlight max current to 18.5mA

Change-Id: I943c4903bd3da6aa6bc537e0704bb5e7bf4865ff
Signed-off-by: sooduek.kim <sooduek.kim@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
Input: Propagate hardware event timestamp to evdev.

Convey hardware timestamp associated with the current event packet.
The use of these event codes by hardware drivers is optional.
Used to reduce jitter and improve velocity tracking in ABS_MT devices.

Change-Id: I89f3a958944f6a2979964ee372e61bad448061b6
Signed-off-by: Sasha Levitskiy <sanek@google.com>
Touch: Synaptics: Report touch alert timestamp to the input subsystem.

Change-Id: I3da30b952e540ab7d327290000127631d94113ff
Signed-off-by: Sasha Levitskiy <sanek@google.com>
Sensors: Apply ALS tuning value

Change-Id: I08330a18323baf81854adceac28f18faddc28ac9
Signed-off-by: Devin Kim <dojip.kim@lge.com>
arm/dt: hammerhead: Apply ALS tuning value

Change-Id: I809bcb8b4dedc7e39612f3b86c990093870226c3
Signed-off-by: Devin Kim <dojip.kim@lge.com>
video: slimport: fix incorrect edid reading request

Previous value might cause that edid specific command
(reset DDC channel of MyDP RX) was not sent correctly.
And then screen blinking issue happened on HDCP failure.

This fixes this issues.

Change-Id: I29b587309c0acc3fd29751ad30907bfb327066b4
Signed-off-by: jihyun.seong <jihyun.seong@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>