6 years agoARM: tegra: config: tegratab: Enable CONFIG.
Harry Hong [Wed, 23 Oct 2013 02:08:26 +0000]
ARM: tegra: config: tegratab: Enable CONFIG.

Enable CONFIG_TEGRA_INTERNAL_USB_CABLE_WAKE_SUPPORT.

without this config, invalid wakeup level is set on usb-otg.
it end up with un-expected wakeup from LP0.

Bug 1393627

Change-Id: I3b560386eb8163b22ae0e60913097f821d6499eb
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/302588
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: tegratab: KEY_UNKNOWN as default wakeup_key
Yong Goo Yi [Wed, 4 Sep 2013 05:35:01 +0000]
arm: tegra: tegratab: KEY_UNKNOWN as default wakeup_key

Key code of SW_LID is 0 same with KEY_RESERVED used as default value
when checking wakeup key so even though waking up by RTC or wl18xx,
gpio key driver works for SW_LID. It increases LP0 standby power.
Use KEY_UNKNOWN as default wakeup_key.

Bug 1361016

Change-Id: Id44f78214060eb702e3a44997c1722095c734195
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
(cherry picked from commit 92d89e9a95c077896ef60df08703475f284f26a1)
Reviewed-on: http://git-master/r/302280
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoarm: tegra: tegratab: change avdd_lcd to 3.16V
Yong Goo Yi [Wed, 7 Aug 2013 05:24:05 +0000]
arm: tegra: tegratab: change avdd_lcd to 3.16V

avdd_lcd(palmas smps6) need to be set to < 3.185V = 3.24V(Vsys min) - 0.055V
to prevent the dropout of smps6 output.

Bug 1343471

Change-Id: I8308abded2af4c5600302eaea959202f7086015b
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
(cherry picked from commit 7aa9884aeb6230ee5e892d261ccb24fd67607793)
Reviewed-on: http://git-master/r/302279
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agotegra: video: prevent duplicated enabling hdmi 5V
Yong Goo Yi [Fri, 9 Aug 2013 07:45:42 +0000]
tegra: video: prevent duplicated enabling hdmi 5V

smps10(supply of fixed_reg_vdd_hdmi_5v0) can't be boost off because of
duplicated enabling of vdd_hdmi_5v0 consumer.
It causes additional 1mA LP0 power.
Prevent the duplicated enabling of vdd_hdmi_5v0.

Bug 1344357

Change-Id: If57669e7b1f4a5753eb93d7486371fa6afc3934b
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
(cherry picked from commit 9efd1dcb05827003bcf335eb2b6135a2a3f8f97c)
Reviewed-on: http://git-master/r/302278
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoarm: tegra: tegratab: Turn off sd card vddio_sdmmc
Yong Goo Yi [Tue, 6 Aug 2013 07:57:33 +0000]
arm: tegra: tegratab: Turn off sd card vddio_sdmmc

Turn off vddio_sdmmc(Palmas LDO9) for sd card when
system reset and system shutdown.
If it is turned on during system reset, Palmas smps9(supply of LDO9)
is turned on during LP0 after reset then abnormally consume additional 22mA.

Bug 1341915

Change-Id: Idd0ca32482c9f8fcb67970d4d914810c35560fda
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
(cherry picked from commit 5b678f0beb2475887a803aaa3a88a74990bbbcad)
Reviewed-on: http://git-master/r/302277
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoarm: tegra: tegratab: disable OC2 powergood alarm
Yong Goo Yi [Tue, 9 Jul 2013 11:26:17 +0000]
arm: tegra: tegratab: disable OC2 powergood alarm

Disable PMIC powergood OC throttle(OC2 for P1640, OC4 for E1569).
PMIC powergood OC makes side effect of throttle SCPU when it's clock delivered from PLLX.
There can be noise during audio playback because of this side effect.

Bug 1322143
Bug 1302149

Change-Id: Ic942ae62940f1a1b0efd3ea68611fecc4e28ab40
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
(cherry picked from commit 1bd9f54ce22f1c3ec06d936a609d14177f2e8eeb)
Reviewed-on: http://git-master/r/302276
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: Tegra: TT-power: set battery id check flag
Hyongbin Kim [Tue, 15 Oct 2013 04:33:16 +0000]
ARM: Tegra: TT-power: set battery id check flag

Set battery id check flag of max17048 and add ADC pdata of Batt_ID channel.

Bug 1368059

Change-Id: I918a6e063fc01132931aaf84c9cb09deaaa16b6b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/299289
(cherry picked from commit 1d911020e42ab1a59233a71e167d6ca4082a91b2)
Reviewed-on: http://git-master/r/301646
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agomax17048: add sysfs for check battery capacity
Hyongbin Kim [Tue, 15 Oct 2013 03:36:10 +0000]
max17048: add sysfs for check battery capacity

For check battery capacity, read Battery ID from ADC.
User can check with below adb commend.
"cat /sys/class/i2c-dev/i2c-0/device/0-0036/battery_capacity"

Bug 1368059

Change-Id: I49ba1216244b85258fa3ef1ec8f60fd27a81e26b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/299269
(cherry picked from commit fd6efe4c23d6a4554643b582c5afc695dc0665b2)
Reviewed-on: http://git-master/r/301645
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agomax17048: update temp change promptly
Hyongbin Kim [Mon, 14 Oct 2013 05:48:55 +0000]
max17048: update temp change promptly

When battery temperature is changed over 1.5C or over hot/cold threshold,
update power supply for sending event to framwork.

Bug 1386890

Change-Id: I72ecda41b339a07a467ca31950643fb45b21b7d9
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/298845
(cherry picked from commit 1aa792d601dcc436e05d8d10033b714ee129a474)
Reviewed-on: http://git-master/r/301644
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agopower: max17048: add battery temperature property
Hyongbin Kim [Mon, 26 Aug 2013 07:08:45 +0000]
power: max17048: add battery temperature property

To show battery temperature in APP, add POWER_SUPPLY_PROP_TEMP and
POWER_SUPPLY_PROP_TEMP_AMBIENT in property.
Android temperature unit is 1/10 C.
And when battery temp is too hot(60) or too cold(-10),
change battery health property.

Bug 1302687
Bug 1355391

Change-Id: I530a7cd55e1abe8e7a1e3d12cfb2a95c169291d3
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/266047
(cherry picked from commit 50e2f7a6333ce75900995185c257d01d772173b9)
Reviewed-on: http://git-master/r/301643
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: tegratab: change VD_DDR_R to 1.38V
Yong Goo Yi [Thu, 26 Sep 2013 11:21:38 +0000]
ARM: tegra: tegratab: change VD_DDR_R to 1.38V

Change VD_DDR_R(smps7) to 1.38V for DDR3 stability

Bug 1280381

Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/279329
(cherry picked from commit 38b76140222697d71bb609cf944b7460a0ee8fb2)

Change-Id: I4735621fb53b490de2a58bc5218beb2d90ac38f6
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301059
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agodrivers: misc: therm_est: use late_initcall_sync
Jinyoung Park [Thu, 26 Sep 2013 06:43:16 +0000]
drivers: misc: therm_est: use late_initcall_sync

Changed module_init() to late_initcall_sync() for therm_est driver
to ensure therm_est driver registration after complete
all thermal_zone driver registration.

Bug 1375775

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/279213
(cherry picked from commit 92870f67cbaf5753b9f6f24787f11fce84399fbd)

Change-Id: I0b70d1d14a40540056dbf2b07a16657f766d00a3
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301046
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: dts: tegra114: tegratab: Update Micron dvfs table to v9.0
Jinyoung Park [Fri, 4 Oct 2013 01:51:13 +0000]
ARM: dts: tegra114: tegratab: Update Micron dvfs table to v9.0

Updated Micron 1GB MT41K128M16-125 dvfs table to v9.0.

Bug 1280381

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/281603
(cherry picked from commit 8a085cfdf5e596fb561f54eb54c334fa21245978)

Change-Id: Ibfc9fddc28c75785ff3df18193cb8d7c1751d473
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301045
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: dts: tegra114: tegratab: Update Micron dvfs table to v8.0
Jinyoung Park [Mon, 30 Sep 2013 11:55:33 +0000]
ARM: dts: tegra114: tegratab: Update Micron dvfs table to v8.0

Updated Micron 1GB MT41K128M16-125 dvfs table to v8.0.

Bug 1280381

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/280320
(cherry picked from commit 1c6d802064a31660b0c9457edac4af4eef494056)

Change-Id: Ibcaceb15de6a4b1d9c95c3e7fa81e65afc1830ca
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301044
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: dts: tegra114: Add tegratab dvfs table in DT
Jinyoung Park [Mon, 9 Sep 2013 09:05:33 +0000]
ARM: dts: tegra114: Add tegratab dvfs table in DT

Added tegratab dvfs table in device tree.
This DT dvfs table is including a ram-code property to support multiple
devices of emc.
- ram-code = 0: Micron 1GB
- ram-code = 1: Hynix 1GB

Bug 1352073

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/271985
(cherry picked from commit 523fe1547e63863e9e6aad55d570600af7599629)

Change-Id: I0353d9451043352c033cdcdee5b178d4c736f901
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301043
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: clock: Use ram code for TegraTab
Jinyoung Park [Wed, 11 Sep 2013 05:59:21 +0000]
ARM: tegra: clock: Use ram code for TegraTab

Use ram code depending on each TegraTab H/W revisions.

Bug 1352073

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/272929
(cherry picked from commit 6d4b08550e09ff55cc74e7620c44b2874af2dac1)

Change-Id: I92d6267c6f352f3bb788a47db661b4b3499e4327
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301042
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: clock: Correct wrong pointer passing
Jinyoung Park [Mon, 9 Sep 2013 09:13:22 +0000]
ARM: tegra: clock: Correct wrong pointer passing

Corrected a wrong device node pointer passing.

Bug 1352073

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/271984
(cherry picked from commit b4c1cbb7af55a8a67e32bc788138c731b5e1d239)

Change-Id: Ib4354e0b74d1babf671d141cea238e9a55299343
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301041
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: cpu: Ensure CPU freq with suspend freq during pre/post suspend
Jinyoung Park [Mon, 2 Sep 2013 06:02:05 +0000]
ARM: tegra: cpu: Ensure CPU freq with suspend freq during pre/post suspend

Tegra CPU driver fixes CPU freq with a selected suspend freq between
pre-suspend and post-suspend. In this pre/post suspend period, the Tegra
CPU driver ignores CPU freq scaling requests from the CPU freq governor.
But the CPU freq governor keep working until the system suspended.
So the CPU freq governor updates its status even if the system is in
the pre/post suspend period.
This makes unexpected CPU freq setting issue on post-suspend.
To ensure CPU freq with the selected suspend freq in the pre/post
suspend period, set a policy max freq on CPU freq governor to the
selected suspend freq via PM QoS at pre-suspend and release the setting
via PM QoS at post-suspend.

Bug 1354391

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268955
(cherry picked from commit 9c8338e70cddd6c4518f75944d20611c90e33ad5)

Change-Id: I8efa6dd438a37adc7cadfb1d36eb7340a4e85c79
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301040
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agocpufreq: Set same governor as a first CPU when CPU online
Jinyoung Park [Mon, 2 Sep 2013 05:50:30 +0000]
cpufreq: Set same governor as a first CPU when CPU online

Set governor for a newly online CPU with same governor as a first CPU.

Bug 1354391

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268954
(cherry picked from commit 57de2dbf25c025834fa7fbcd1d440b9e05179ce1)

Change-Id: I104ff8f61e89667f482f262d4cc3cb5ea1a1875a
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301039
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agocpufreq: conservative: Ensure requested_freq within policy min/max range
Jinyoung Park [Mon, 2 Sep 2013 05:39:34 +0000]
cpufreq: conservative: Ensure requested_freq within policy min/max range

Ensure requested_freq within policy min/max reage.

Bug 1354391

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268953
(cherry picked from commit 7f53b0accdf31b0e58b883e6bab1a4e71fa429be)

Change-Id: I55d0221a228c3cdeef3f9ced0a0ecb8bbdb21427
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301038
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: clock: Support EMC freq min/max constraints by PM QoS
Jinyoung Park [Tue, 20 Aug 2013 08:06:28 +0000]
ARM: tegra: clock: Support EMC freq min/max constraints by PM QoS

Support EMC frequency min/max constraints by PM QoS

Bug 1346293

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/263784
(cherry picked from commit 652a0736dbb6b24cc841d70c4ee3e5f3cfcec57b)

Change-Id: I6987235c72921fdf8229a2411eb212dd7ffa66f0
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301037
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoPM QoS: Add EMC freq min/max as PM QoS params
Jinyoung Park [Tue, 20 Aug 2013 07:39:25 +0000]
PM QoS: Add EMC freq min/max as PM QoS params

Added EMC frequency min/max as PM QoS parameters.

Bug 1346293

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/263783
(cherry picked from commit bdb8424de563a01dd37e53486c2297b4aa183cc7)

Change-Id: Ib9eb6977edd56420d8518231d06749b2fbf5c34c
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301036
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: tegratab: Set proper skin coeff to each P1640 revision
Jinyoung Park [Fri, 6 Sep 2013 06:00:38 +0000]
ARM: tegra: tegratab: Set proper skin coeff to each P1640 revision

Set proper skin coeff to each P1640 board revision.

Bug 1362155

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/271337
(cherry picked from commit 1427a4576f1163156f1229e2a97c7470ab29ef9e)

Change-Id: Ie3574f71961dec9441a7e8a6f0880385ae54a2b7
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301035
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: tegratab: Add Tskin coefficients for P1640 A02
Jinyoung Park [Mon, 5 Aug 2013 03:10:56 +0000]
ARM: tegra: tegratab: Add Tskin coefficients for P1640 A02

Added Tskin coefficients for P1640 A02.

Bug 1341945

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/257983
(cherry picked from commit a65f96ef3f5788c44db1dca63f1d825bb10622fa)

Change-Id: I6c48db541d19a63b07a8d3c1fedb995df4263ee7
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/301034
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: Tegra: TT-power: set sysedp throttle
Hyongbin Kim [Fri, 18 Oct 2013 07:18:10 +0000]
ARM: Tegra: TT-power: set sysedp throttle

At low SOC, set current threshold with INA230 is not enough.
Need to use sysedp capping in low soc.
set 10000mW under 4%, 10500mW under 8%

Bug 1316595

Change-Id: I1c1d1f81077740a449a2b1e6279b2d73ae7bdc0f
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/301071
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: enabling EDP_FRAMEWORK for tegratab
Bo Kim [Thu, 9 May 2013 05:12:47 +0000]
ARM: tegra: enabling EDP_FRAMEWORK for tegratab

Bug 1244384

Change-Id: Ifead355372b86c473f1308ede77affae98be9bf2
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/241415
(cherry picked from commit a9583234abe4a990b4e7b5928788cbef310f3414)
Reviewed-on: http://git-master/r/301070
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: adding tegratab sysedp core lite
Hyongbin Kim [Fri, 18 Oct 2013 05:06:25 +0000]
ARM: tegra: adding tegratab sysedp core lite

Bug 1316595

Change-Id: Ie9f016a561af12d6b156c49857120f07c78e273d
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/301069
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agopower: max17048: sysedp throttle in low SOC
Hyongbin Kim [Wed, 21 Aug 2013 03:22:27 +0000]
power: max17048: sysedp throttle in low SOC

When low SOC, limit freq of cpu, gpu, emc by sysedp_lite.

Bug 1316595

Change-Id: I112efb815d3c57731d7478bb2ab0589c10f72865
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/264167
(cherry picked from commit 51ac69e5b329f61d7c5ab4c37da4917e36ba256c)
Reviewed-on: http://git-master/r/301068
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoedp: tegra_core_lite: add tegra_core_lite
Hyongbin Kim [Tue, 20 Aug 2013 03:49:47 +0000]
edp: tegra_core_lite: add tegra_core_lite

When SOC is low, we need to limit clk of cpu, gpu, emc.
For simple use, set power directly and set edp limit.
Just use cpupri table.

Bug 1316595

Change-Id: I3f2644f8564735551be6e61248e916b2981e70ef
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/264166
(cherry picked from commit 903518c6b37d3a425345e42173b20c07875385ff)
Reviewed-on: http://git-master/r/301067
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: Tegra: usb_phy: WAR: Apple compatibility charger detect as NVcharger.
Hyongbin Kim [Thu, 20 Jun 2013 11:07:34 +0000]
ARM: Tegra: usb_phy: WAR: Apple compatibility charger detect as NVcharger.

NVcharger detection logic is defferent between BL and kernel.
Tegratab not use NVcharger, but apple chargers are detect as
NVcharger in BL and kernel can't detect apple compatibility
charger except iPad/iPhone5 charger.
It is better those are detected as NVcharger.
Tegratab charger IC support DPM(synamic Power Management) mode to
avoid over loading the adapter.

Bug 1308440
Bug 1299342

Change-Id: Idd36aee98c65350ca61b5237a25f9ac5ef81af2e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/240581
(cherry picked from commit 930109e1ec09f4de809c692faceb7a8282bc66a1)
Reviewed-on: http://git-master/r/300437
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: TT: Skip hdmi init in charger boot
Hyongbin Kim [Thu, 12 Sep 2013 08:39:56 +0000]
ARM: TT: Skip hdmi init in charger boot

To save charger boot mode boot time, skip hdmi init code.

Bug 1367030

Change-Id: I34ab00a1fa06c0d0819bb76e557860920f78892d
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/273601
(cherry picked from commit e6ca0e21fa04b4ac0e7b1d72563736bbbff60ccd)
Reviewed-on: http://git-master/r/300440
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: TT: Reduce charger mode boot time
Hyongbin Kim [Thu, 12 Sep 2013 08:34:32 +0000]
ARM: TT: Reduce charger mode boot time

In charger mode, sdhci2(External SD), sdhci0(Wifi) is not used.
Skip register to save boot time.

Bug 1367030

Change-Id: I297494976c8f0a50244638fc7c62916548c082e7
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/273600
(cherry picked from commit 5d675fa37bbf2f68a80314902f1b502c15b8166e)
Reviewed-on: http://git-master/r/300439
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: usb: reduce hs_squelch level
Hyongbin Kim [Tue, 1 Oct 2013 11:23:46 +0000]
ARM: tegra: usb: reduce hs_squelch level

For fix USB Device Receiver Sensitivity fail, reduce hs_squelch level
from 112.5mV(2b'10) to 100mV(2b'01).

Bug 1349951

Change-Id: I3588fc3a9b4ee2486274872d55a30e575cf6d5e2
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/280707
(cherry picked from commit d9e5a329f58ba1c77ef25ae804a8ebf27f49bd01)
Reviewed-on: http://git-master/r/300441
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: config: tegratab: Enable MMC freq scaling
David Yu [Wed, 19 Jun 2013 07:25:16 +0000]
ARM: tegra: config: tegratab: Enable MMC freq scaling

Bug 1307171

Change-Id: I4c9ea8fa83d697dc1fade1592778f7638a38024d
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/240053
(cherry picked from commit ada4a02dff42a741379ce031ac1e2e3796873363)
Reviewed-on: http://git-master/r/282561
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: mach-tegra: tegra11_emc: Set max emc rate to boot emc rate
Hyongbin Kim [Thu, 20 Jun 2013 01:41:19 +0000]
ARM: mach-tegra: tegra11_emc: Set max emc rate to boot emc rate

Set emc max clock to boot clock for reducing charger-mode-kernel
boot current.
Then we can set lower charger-mode-kernel boot threshold voltage.

Bug 1309060

Change-Id: I26519bf970d6521ad51fc2501b633d89e0eb4337
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/240422
(cherry picked from commit acd75476da525169f85e10146bf2a4e9722bb510)
Reviewed-on: http://git-master/r/299749
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoRevert "ARM: tegra: dc: program active mux for cursor"
Min-wuk Lee [Tue, 13 Aug 2013 01:07:45 +0000]
Revert "ARM: tegra: dc: program active mux for cursor"

This reverts commit 3bb0d7f08cde9ef74c7419218187a3ca53b961c1.
Cursor programming to ACTIVE copy directly is bad and not
desired programming sequence, which has caused unexpected
cursor window rendering across whole screen suddenly.
With this change, it programs to ASSEMBLY copy and latch
them into ACTIVE copy after GENERAL_ACT_REQ.

Bug 1314051

Change-Id: Ic40557f93db5a4503fbe4362c4d6b27a1ef0acd7
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/260852
(cherry picked from commit 80a8b1e4ebafa5167d2cfed8e3a35904f393aa76)
Reviewed-on: http://git-master/r/299451
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: tegratab: deliver charging info for pwm bl
Min-wuk Lee [Tue, 15 Oct 2013 11:02:00 +0000]
ARM: tegra: tegratab: deliver charging info for pwm bl

set is_charged to true if it is in charging mode for pwm
based backlight device. Based on this information, pwm
based backlight device has different default brightness
in charging mode.

Bug 1240921

Change-Id: Ia56a61d93f88b6ac7ec08433721aaa68b95e1c99
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/299450
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>

6 years agoARM: tegra: tegratab: Don't register touch driver if charger boot mode
Jinyoung Park [Fri, 30 Aug 2013 00:22:34 +0000]
ARM: tegra: tegratab: Don't register touch driver if charger boot mode

Don't register touch driver if charger boot mode to reduce power
consumption.

Change-Id: I7dcd120ecf2b7f6156aa40551c59aba88f815035
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/268203
(cherry picked from commit bef7010189b9b8778fb4b5f0df9b9b637e2687f7)
Reviewed-on: http://git-master/r/288757
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoRevert "usb: gadget: mtp: increase MTP buffers"
Alvin Park [Fri, 11 Oct 2013 04:58:37 +0000]
Revert "usb: gadget: mtp: increase MTP buffers"

This reverts commit b64b3f926455e9cfdff90291525f3d5264b97dd4.

Bug 1374649

Change-Id: Iae160042efef5512ab001cf56aaae54b957e9132
Signed-off-by: Alvin Park <apark@nvidia.com>
Reviewed-on: http://git-master/r/289520
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Kim <pekim@nvidia.com>
(cherry picked from commit 0d86d69ce00e6b93335cf56943a4237e5c7594ec)
Reviewed-on: http://git-master/r/299255
Reviewed-by: Jake Park <jakep@nvidia.com>

6 years agodriver: modified ov7695 orientation
Alvin Park [Wed, 2 Oct 2013 05:12:24 +0000]
driver: modified ov7695 orientation

Preview is showing as vertically-flipped in some camera apps.
Modified ov7695 orientation

Bug 1316532

Change-Id: I34e0949814c1414ed810c33f7a584859401cdb44
Signed-off-by: Alvin Park <apark@nvidia.com>
Reviewed-on: http://git-master/r/280973
Reviewed-by: Karl Kim <kkim@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Kim <pekim@nvidia.com>
(cherry picked from commit a9fbbeee1de1d61dda2510cc8eb55a0ade56d93b)
Reviewed-on: http://git-master/r/299261
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jake Park <jakep@nvidia.com>

6 years agoARM: tegra: dc: program active mux for cursor
Jon McCaffrey [Fri, 14 Jun 2013 20:56:56 +0000]
ARM: tegra: dc: program active mux for cursor

Write to the active mux for cursor updates to make the results visible
with minimal latency.  This adds the possibility of tearing, but that
should be acceptable for the cursor.

Bug 1213581

Change-Id: I064778ba598e50b335e8c41d32defba503503f21
Signed-off-by: Jon McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/239802
(cherry picked from commit 3bb0d7f08cde9ef74c7419218187a3ca53b961c1)
Reviewed-on: http://git-master/r/288787
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: Tegra: TT-power: set current threshold
Hyongbin Kim [Mon, 12 Aug 2013 05:35:46 +0000]
ARM: Tegra: TT-power: set current threshold

Set ina230 current threshold in low SOC.
1.8A under 4% SOC and 2.5A under 8% SOC.
This change has trade off against performence drop at low SOC.

Bug 1316595
Bug 1304204

Change-Id: I6e397277729f2570e29ee3f36170e9c6dfe08467
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/260356
(cherry picked from commit 73fe77b1752b75f5cfdfd5d3d332856791f81ec1)
Reviewed-on: http://git-master/r/289149
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: Tegra: TT-power: Apply TempCoCold, TempCoHot
Hyongbin Kim [Tue, 6 Aug 2013 09:53:15 +0000]
ARM: Tegra: TT-power: Apply TempCoCold, TempCoHot

For temperature compensation, apply TempCo values.
Set TempCoHot to -1.125
Set TempCoCold to -7.625

Bug 1304204
Bug 1317331

Change-Id: If48d934b02d85c0aeb58364ae82e214e7faaf91c
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/258674
(cherry picked from commit fbcc4164a7a2a75f4f55a5995856f2addac5fd30)
Reviewed-on: http://git-master/r/289148
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: Tegra: TT-power: new model data of max17048
Hyongbin Kim [Thu, 11 Jul 2013 02:44:49 +0000]
ARM: Tegra: TT-power: new model data of max17048

Bug 1304204

Change-Id: I1ee1539714011663b460f3627dd7b45edb0877ce
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/247543
(cherry picked from commit 6a24b3182ee126458e490291b42786c25b5e12c3)
Reviewed-on: http://git-master/r/289147
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: disable SC alert in LP0
Hyongbin Kim [Fri, 26 Jul 2013 02:44:58 +0000]
power: max17048: disable SC alert in LP0

For prevent system wakeup when SOC changed, clear CONFIG.ALSC when enter
suspend and re-set to 1 when resume.
In low SOC, we can wakeup from HD(SOC low) alert.

Bug 1333630

Change-Id: I535b6a29311d61a76c2984b8e413db50f3eced64
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/253969
(cherry picked from commit c9663967a8a691be0d9d08f01d764697bacd7980)
Reviewed-on: http://git-master/r/289146
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: set current threshold at low SOC
Hyongbin Kim [Mon, 15 Jul 2013 06:09:26 +0000]
power: max17048: set current threshold at low SOC

Support current threshold table for prevent sudden power off
or freeze under low SOC.

Bug 1304204
Bug 1316595

Change-Id: I4374c27a781a96d3f5b6a3f59af2ce3dcd55bbf3
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/249079
(cherry picked from commit 4c00c119bfbf79385da16ed228ce0125b4d9c43a)
Reviewed-on: http://git-master/r/289145
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agohwmon: ina230: add export set current threshold
Hyongbin Kim [Mon, 15 Jul 2013 05:21:52 +0000]
hwmon: ina230: add export set current threshold

At low SOC, we need to limit current for system stability.
When set low value to current threshold, should set minimum cpu number
to avoid power down of current monitor.

Bug 1304204
Bug 1316595

Change-Id: I52219755a62acbb5289a6d28237b5ac57fa1a54a
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/249078
(cherry picked from commit 2ea3fa785bf8d8fe753fa7653b6a5b46eb864f3e)
Reviewed-on: http://git-master/r/289144
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: Set default RCOMP when power off
Hyongbin Kim [Mon, 12 Aug 2013 10:46:55 +0000]
power: max17048: Set default RCOMP when power off

Reset to default RCOMP value when power off.

Bug 1341794

Change-Id: I4b5b4d375a39593c67bf38703e782ce2d1bec933
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/260486
(cherry picked from commit 8f74af093cd0e5859a9adce2b98ee0d316609a93)
Reviewed-on: http://git-master/r/289143
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: reduce debug message
Hyongbin Kim [Tue, 6 Aug 2013 09:49:01 +0000]
power: max17048: reduce debug message

For reduce debug massage, print VCELL and SOC when SOC is changed.
And add print temperature when temperature is changed over 1.5C.

Bug 1304204
Bug 1317331

Change-Id: I6966a79d7a7045b839a1cdde8520a231e4aa3b08
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/258673
(cherry picked from commit 6de902ba052fc1363a4c1701f96c2d6b0b57d55e)
Reviewed-on: http://git-master/r/289142
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: Use Tskin instead of Batt temp
Hyongbin Kim [Tue, 6 Aug 2013 09:47:28 +0000]
power: max17048: Use Tskin instead of Batt temp

In tegratab, we can use Tskin as battery temperature.
Acoording to thermal test, there is small gap between Tskin and Battery temp.
Tegratab has limitation by H/W to get real battery temp.

Bug 1304204
Bug 1317331

Change-Id: Ie0b996bcd7ba05a36c3a77870376b1e516729f4e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/258672
(cherry picked from commit 133893da47e2f420f61ae3b776c960ad45f0302e)
Reviewed-on: http://git-master/r/289141
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: apply RCOMP for temp compensation
Hyongbin Kim [Tue, 6 Aug 2013 09:11:17 +0000]
power: max17048: apply RCOMP for temp compensation

Fuel gauge need to compensate the RCOMP value according to Battery temperature
change. For best performance, reduce period to 10sec and apply new RCOMP
when temperature is changed over 1.5C.

Bug 1304204
Bug 1317331

Change-Id: I4e74d1e39d68297c5df9fccad0cb2879b7663e34
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/258671
(cherry picked from commit c63908df1cd20586cb2481ee8371092416581ae8)
Reviewed-on: http://git-master/r/289140
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: bq2419x: Sysfs for set charge complete SOC
Hyongbin Kim [Thu, 10 Oct 2013 05:49:11 +0000]
power: bq2419x: Sysfs for set charge complete SOC

Add sysfs for set charge complete SOC in user space.
When SOC is over set value, cut charger power.
When SOC is under set value, proceed charging.
Set value should be between 60 and 100.

Bug 1342684

Change-Id: Ic71d14b94dd2ba36abf497c803ffa3baa6f15ba8
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/289139
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: Tegra: TT-power: Set pdata value of bq24192x
Hyongbin Kim [Thu, 10 Oct 2013 05:41:03 +0000]
ARM: Tegra: TT-power: Set pdata value of bq24192x

1. Set soc, vcell, current check fuction.
2. Set charging complete SOC to 100.
3. Set charging restart time to 30 minute.

Bug 1310558
Bug 1316010

Change-Id: Ib73cc5045898dc4cda488ed586428f7f297337a0
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/289138
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoRevert "ARM: tegra: PMU POWER off when boot with charger mode"
Hyongbin Kim [Fri, 21 Jun 2013 04:10:09 +0000]
Revert "ARM: tegra: PMU POWER off when boot with charger mode"

Unplug charger while booting charger-mode-kernel, always make power off.
So, reboot and check charger in BL is needed.

Bug 1311525

This reverts commit 65198caacee0f8a273e80abeeadde496330e3c3f.

Change-Id: Ia39fbfdbef9d0b475899ded11f07a2b68a118e3c
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/240875
(cherry picked from commit 154cf9f6c4c94459bb56bd874d477786e177acf6)
Reviewed-on: http://git-master/r/289137
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agopower: bq2419x: Not use charging termination
Hyongbin Kim [Thu, 10 Oct 2013 05:21:39 +0000]
power: bq2419x: Not use charging termination

BQ2419x charger generate charging termination automatically when
Vbatt is under recharge threshold voltage(4208mA - 100mV = 4108mA) and
charging current is below ITERM(256mA).
For this reason, when Tegratab system spend more than charger power(5V*2A),
unexpect charging termination occur under 99% SOC.(around 93%~98%).
So we need to disable charging termination fuction and control charger manually.
Disable charging when SOC over 100%(set by chg_complete_soc) and
Batt voltage is over 4202mV and cahrging cuurent is under 256mA(over -256mA),
besides restart charging when SOC is under 99% or Batt voltage is under 4140V,
for prevent unexpected charging done.

Bug 1310558
Bug 1316010
Bug 1327301
Bug 1316646

Change-Id: I6f67bde43c9b209b31d4906d869f364300c846b1
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/289136
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: bq2419X: Support BQ24193 version
Hyongbin Kim [Thu, 10 Oct 2013 04:03:37 +0000]
power: bq2419X: Support BQ24193 version

BQ24193 support JEITA spec.
Set ISET=1 for charging 0.2C at T1~T2.
Set VSET=4.2V for 4.2V charging at T3~T5.

Bug 1324720

Change-Id: I17d144658706140bee1298edfa9792b2eb0f5605
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/289135
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: bq2419x: Set max charge current to 3.136A
Hyongbin Kim [Thu, 10 Oct 2013 03:55:10 +0000]
power: bq2419x: Set max charge current to 3.136A

When charging voltage is too high(ex 11.75V), charging current is over
battery spec.

Bug 1343646

Change-Id: I27ba26456947c0dd840d892b26aefe320d4bb7da
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/259986
Reviewed-on: http://git-master/r/289134
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agohwmon: ina230: add export get current fuction
Hyongbin Kim [Tue, 16 Jul 2013 04:54:46 +0000]
hwmon: ina230: add export get current fuction

Add get current function for check charging complete.

Change-Id: Ic19cd05699855237d5b6493c8370ac8e93e17d22
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/249535
(cherry picked from commit f8204b6aa8312b1de10d0fe829d81eef8422cf7f)
Reviewed-on: http://git-master/r/289133
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: fix show charging icon state
Hyongbin Kim [Mon, 8 Jul 2013 02:51:36 +0000]
power: max17048: fix show charging icon state

When SOC is over 100%, charging notification icon is displayed
even it is not charging state.

Bug 1320635

Change-Id: I4edaf618578259b8328fd9c537fe714a608c9d83
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/245960
(cherry picked from commit fc3444fa98ddd15ed58f3b4aabdaf0f637320368)
Reviewed-on: http://git-master/r/289132
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: Add export get vcell fuction
Hyongbin Kim [Mon, 1 Jul 2013 06:33:45 +0000]
power: max17048: Add export get vcell fuction

Chager driver need vcell value for better checking charing complete.

Bug 1310558

Change-Id: I9c19f3500e7a85478dc761668d58a5b3b1bafe5f
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/243892
(cherry picked from commit 16c098b17b2da48ef8f6f26d65c45766e20f37ed)
Reviewed-on: http://git-master/r/289131
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: Add export soc get fuction
Hyongbin Kim [Thu, 27 Jun 2013 07:07:38 +0000]
power: max17048: Add export soc get fuction

Remove forced set 100% SOC code when charging done.
Sometimes, charging termination is done under 98% SOC,
when tegratab spend whole power of charger and charging current
drop under ITERM.
Charger driver will check SOC and control charging.

Bug 1310558
Bug 1316010

Change-Id: I127665fc4c1fa68584080b879f2184687c6e692b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/243269
(cherry picked from commit 44cb7a367eef615a80fc33d0118d6950d2716d66)
Reviewed-on: http://git-master/r/289130
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: max17048: Clear repeated voltage low alert
Hyongbin Kim [Wed, 19 Jun 2013 08:32:59 +0000]
power: max17048: Clear repeated voltage low alert

When battery voltage is under ALRT.VALRTMIN, VL alert occurs.
But irq occur too many times in a row, VL alert need to clear.
And set again when SOC is changed and value is above 1%.

Bug 1309060

Change-Id: I0685c489323dce66b61428ec503882f07bf64859
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/240178
(cherry picked from commit 4009ead542bc703cb2d767901b31d6110a38173c)
Reviewed-on: http://git-master/r/289129
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agopower: bq2419x: Set DCP charging current to 2A.
Hyongbin Kim [Thu, 10 Oct 2013 03:05:54 +0000]
power: bq2419x: Set DCP charging current to 2A.

Tegratab charger is 2A-charger. And BQ24192 has DPM fuction,
it prevent charger voltage falls below input voltage limit
by reducing charging current even with lower-2A-charger is connected.

Bug 1302320
Bug 1285079
Bug 1299342

Change-Id: Ieaf0e7cc4bd3d8f475802239d3268ce40bfdfdde
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/289128
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: change default brightness
Min-wuk Lee [Tue, 24 Sep 2013 09:42:13 +0000]
ARM: dts: tegratab: change default brightness

Change default brightness to 153, which is 60% compared
to max brightness

Bug 1353323

Change-Id: Ia2e35da24ff2a71c192b8436cc16b909b4d68aaa
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/278300
(cherry picked from commit a1a095ba11fc456b7403c03d47cbd11e9f69dd15)
Reviewed-on: http://git-master/r/289850
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: update CMU calibration data
Min-wuk Lee [Wed, 11 Sep 2013 06:45:22 +0000]
ARM: dts: tegratab: update CMU calibration data

Update CMU calibration data. Normalized matrix is chosen
for CMU csc matrix.

Bug 1354492

Change-Id: I79dde8f33ff89bf261c70a65365eb5555a5e4cd5
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/272948
(cherry picked from commit d557dd08a3dd216afae0b4419f9eb7eaeeed3a63)
Reviewed-on: http://git-master/r/289849
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agotegra: video: hdmi: WAR: ensure hdcp register access with clk enabled
Min-wuk Lee [Fri, 6 Sep 2013 08:43:06 +0000]
tegra: video: hdmi: WAR: ensure hdcp register access with clk enabled

There is a race condition between hdcp upstream and hdmi disable
during suspend/resume stress with hdmi plugged-in. WAR by making
host1x/hdmi clk enabled and hdmi clk out of reset.

Bug 1349507

Change-Id: I6870066358900d6f6798b3e20bc59bf5645f25b8
Original-author: Roger Hsieh <rhsieh@nvidia.com>
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/271389
(cherry picked from commit 8a2f117c4472919ec22263c858fbac1a91ee5e72)
Reviewed-on: http://git-master/r/289848
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agotegra: video: lgd-wxga-7 avdd power sequence fix
Min-wuk Lee [Wed, 21 Aug 2013 05:32:49 +0000]
tegra: video: lgd-wxga-7 avdd power sequence fix

This change is fixing LGD WXGA 7 AVDD 3.3V power sequence. This
power rail on needs to be >1000ms after it is off.
Add 1000ms delay after this rail is turned off.

Bug 1349957

Change-Id: I2a1d7a2be2df38e2e5eb5a1976d59ca380c730b7
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/264194
(cherry picked from commit a052672cbc6a941b724664d20fb49c767989e5e6)
Reviewed-on: http://git-master/r/289753
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agotegra: video: bug fix for sd_brightness usage
Min-wuk Lee [Thu, 25 Jul 2013 11:47:38 +0000]
tegra: video: bug fix for sd_brightness usage

sd_brightness should be declared to extern variable since this symbol
is exported and used across kernel source, not only board file,
but also driver side.

Bug 1332997
Bug 1240921

Change-Id: Id8d33833d5eddca1b15132ee890b76089310687b
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/253434
(cherry picked from commit e3f1d225c267895b6779f70c3a7b83633f9b1d07)
Reviewed-on: http://git-master/r/289752
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: Set CMU csc matrix to normalized.
Min-wuk Lee [Wed, 24 Jul 2013 09:49:30 +0000]
ARM: dts: tegratab: Set CMU csc matrix to normalized.

Bug 1233941

Change-Id: Ic2192a16d40630bfdcb6b81507bdc34caa2d023d
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/252835
(cherry picked from commit 8fe7005af2f9ef2e0e5e135b5a598d790351f0b2)
Reviewed-on: http://git-master/r/289751
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: pwfm and pwm-bl node
Min-wuk Lee [Fri, 19 Jul 2013 11:27:46 +0000]
ARM: dts: tegratab: pwfm and pwm-bl node

Bug 1240921

Change-Id: I487bd8630fbd1e2bc05c04515e66b14530cd7cb6
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/251324
(cherry picked from commit 031418af2d1f7da38ab9f72185fd5b77c9e6eee8)
Reviewed-on: http://git-master/r/289750
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: tegra: tegratab: PWFM and pwm based backlight device with DT
Min-wuk Lee [Fri, 19 Jul 2013 11:14:23 +0000]
ARM: tegra: tegratab: PWFM and pwm based backlight device with DT

For PWFM and pwm based backlight device, platform device register
are not needed in board file since these two devices are registered
by device tree for Tegratab.

Bug 1240921

Change-Id: I300815237f8c0f3256b38816c46ca39f679b8c32
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/251321
(cherry picked from commit 1478bbe21519a238729263b6a0c39aeb493669e3)
Reviewed-on: http://git-master/r/289749
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agovideo: backlight: pwm_bl: device tree support for pwm_bl
Min-wuk Lee [Fri, 19 Jul 2013 10:21:02 +0000]
video: backlight: pwm_bl: device tree support for pwm_bl

Add device tree support for pwm based backlight driver.
Values for platform data required by pwm backlight driver
are parsed from device tree properties, directly.
For function pointers in platform data, separate devdata
generating driver is prepared. In order to construct functions,
it also parses values from different device tree node.
Backlight output array to make linear backlight response are
parsed in separate devdata generating driver.

Bug 1240921

Change-Id: Ie2b20efa368a0caa3a8a4d316482a2153cdaadc1
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/251313
(cherry picked from commit e1fa47428e164545237ba30a460308b146263ccd)
Reviewed-on: http://git-master/r/289748
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: Tegra11: add device tree support for PWFM
Min-wuk Lee [Fri, 19 Jul 2013 09:55:52 +0000]
ARM: Tegra11: add device tree support for PWFM

Add device tree support for PWFM.
This change is for Tegra114 only.

Bug 1240921

Change-Id: I7cda1e8a588c7403bc7f35e0f621933114d47d45
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/251280
(cherry picked from commit 2f00ddb17b2caa2d2bd92af9f0de10d20fb6c987)
Reviewed-on: http://git-master/r/289747
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agotegra: video: dc: set base resource in tegra_mipi_cal struct
Min-wuk Lee [Wed, 17 Jul 2013 10:50:47 +0000]
tegra: video: dc: set base resource in tegra_mipi_cal struct

Set base_res in tegra_mipi_cal struct since it was missed.

Bug 1240921
Bug 1301312

Change-Id: I136720b4d3652fa3d6542c6f6bca8c44daa342d2
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/250241
(cherry picked from commit 158652f0f288eec94b185fef4fa43aeec1112b06)
Reviewed-on: http://git-master/r/289746
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: pclk change
Min-wuk Lee [Tue, 2 Jul 2013 07:49:24 +0000]
ARM: dts: tegratab: pclk change

Before LP0 entry, pclk in tegra_dc_mode struct is referred to.
After LP0 exit, pclk is calculated with dc timing.
Because pclk is set differently, required emc bandwidth is
calculated differently as well beween two cases.

<Without this change>
Before LP0 entry
disp1.emc         $ on     1            102000000  (17751000+)

After LP0 exit
disp1.emc         $ on     1            102000000  (17667000+)

<With this change>
Before LP0 entry
disp1.emc         $ on     1            102000000  (17667000+)

After LP0 exit
disp1.emc         $ on     1            102000000  (17667000+)

Bug 1301312

Change-Id: Ibab5ed84d5c91f935884fb119ca1bac2d6ce68fa
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/244211
(cherry picked from commit 12d77a24d7b8bcc904d86a83578230c0edc323b1)
Reviewed-on: http://git-master/r/289745
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: Tegra11: Add DDR3 iso emc calculator
Min-wuk Lee [Wed, 10 Jul 2013 04:39:54 +0000]
ARM: Tegra11: Add DDR3 iso emc calculator

This is variable iso emc calculator for DDR3 + T114. With requested
iso bandwidth, it returns iso emc utilization percentage.

Bug 1313417

Change-Id: I9673b1b042b980a987c3f4a7ca21d418bd8956e3
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/245983
(cherry picked from commit 530ee13c90f9db1fce999d10dbe806545b350b0d)
Reviewed-on: http://git-master/r/289744
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: remove nvidia,out-hotplug-gpio
Min-wuk Lee [Tue, 2 Jul 2013 04:40:34 +0000]
ARM: dts: tegratab: remove nvidia,out-hotplug-gpio

Remove nvidia,out-hotplug-gpio since it is not used.
: nvidia,hpd-gpio property is right one.

Bug 1240921

Change-Id: I1e32437ce1f387a4e53289e43f5ead6e94fee426
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/244124
(cherry picked from commit 3f7457a05b2b7340c493df4ffed49ae176d165a8)
Reviewed-on: http://git-master/r/289700
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: hdmi tmds configurations
Min-wuk Lee [Mon, 1 Jul 2013 11:39:01 +0000]
ARM: dts: tegratab: hdmi tmds configurations

Bug 1315829
Bug 1240921

Change-Id: I54343307bb2706344f4f3493bb933d8585bef2ef
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/243883
(cherry picked from commit 33127eccd45654440252db452fd9e0cb38a9003b)
Reviewed-on: http://git-master/r/289699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agovideo: tegra: dc: tmds config from device tree
Min-wuk Lee [Tue, 2 Jul 2013 02:18:54 +0000]
video: tegra: dc: tmds config from device tree

With this change, hdmi tmds config can be set from device tree.

Bug 1315829
Bug 1240921

Change-Id: I2551b8012a14a478678fdd821f78beb27c9f779e
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/243864
(cherry picked from commit 1d24765041448f45926b2282b2873a392913fe16)
Reviewed-on: http://git-master/r/289698
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agovideo: tegra: nvsd: set zero aggressiveness in high priority
Min-wuk Lee [Fri, 28 Jun 2013 09:46:34 +0000]
video: tegra: nvsd: set zero aggressiveness in high priority

When smart dimmer zero aggressiveness of high priority is
requested, that should be superior to non zero one of
lower priority.

Bug 1297022

Change-Id: I1d10b6915699a0be90e1348da318f31223ccffa8
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/243362
(cherry picked from commit 59673cab9ca4bcd00bb6126cb843d122541cfe85)
Reviewed-on: http://git-master/r/289697
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: dc and panel DT node for E1569
Min-wuk Lee [Thu, 27 Jun 2013 07:38:39 +0000]
ARM: dts: tegratab: dc and panel DT node for E1569

Bug 1240921

Change-Id: Ib87fd2c8bb7c0d34004e4a8ba239b03a32607cba
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/242785
(cherry picked from commit 678cae8bda7b77dc0f804ef239e76495a0405c46)
Reviewed-on: http://git-master/r/289696
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agovideo: tegra: of_lcd_device_data: Fix lgd-wxga-7 power sequence
Min-wuk Lee [Tue, 25 Jun 2013 06:32:39 +0000]
video: tegra: of_lcd_device_data: Fix lgd-wxga-7 power sequence

This change is fixing panel power up/down sequence violation
for lgd wxga 7.0 panel.

Bug 1275024
Bug 1311536

Change-Id: I2e552377ce32cf70fb6b1b0c52614f769606b82b
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/241689
(cherry picked from commit 49178ad8b6616fd582ceec8ebd0fb8030124f90b)
Reviewed-on: http://git-master/r/289690
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoARM: dts: tegratab: Enable display controller and panel DT node
Min-wuk Lee [Mon, 20 May 2013 09:01:07 +0000]
ARM: dts: tegratab: Enable display controller and panel DT node

Bug 1240921

Change-Id: I1070280689b8c87d77abdfe77a68c09637239414
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/240025
(cherry picked from commit da035186775fbfe92f12aeee41014a5eb3cfd96f)
Reviewed-on: http://git-master/r/289669
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoarm: tegra: tegratab: display controller and panel with DT
Min-wuk Lee [Mon, 20 May 2013 08:32:03 +0000]
arm: tegra: tegratab: display controller and panel with DT

Instead of Disp0 and Disp1 platform data delivery by
platform_device_register from the board file, this change
will parse these data from device tree of display controller
node and panel node in tegratab dts.
Separate lcd device data generating driver with device tree
info is prepared.

Bug 1240921

Change-Id: I1f8c75822612c1611a7c0c2b716ebd4d65277109
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/240021
(cherry picked from commit 8c36af0d1fdc01814b3d4d939d149536368fb5ca)
Reviewed-on: http://git-master/r/289668
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agovideo: tegra: add device tree support for DC
Min-wuk Lee [Tue, 30 Apr 2013 14:11:25 +0000]
video: tegra: add device tree support for DC

Add device tree support for display controller.
This change is for Tegra114 only.

Bug 1240921

Change-Id: I28ddc2e3b9a9a818ebc330dcf90ee879420726ab
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/240006
(cherry picked from commit d27e77cadf76c4c38f12f476ad6c678b227ef8c4)
Reviewed-on: http://git-master/r/289667
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoarm: tegra: tegratab: disable prism in kernel side
Min-wuk Lee [Thu, 13 Jun 2013 05:03:53 +0000]
arm: tegra: tegratab: disable prism in kernel side

Set prism enable node to 0 in kernel side. Brightness change
and color saturation can be visible during kernel dc probe
depending on screen image since splash screen drawn in bootloader
didn't enable prism. Prism on / off will be handled
by power mode selection in user land.

Bug 1305726

Change-Id: I30b206331689714be03bbb87ba0d1282fe7c5e83
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/239627
(cherry picked from commit 516c4cb745585442a8e9e57c860f7d323fd0acc4)
Reviewed-on: http://git-master/r/289666
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Update to version 1.4.3, v29
Xiaohui Tao [Sat, 28 Sep 2013 17:50:42 +0000]
input: touch: maxim_sti: Update to version 1.4.3, v29

Description:
version 1.4.3 TegraTab bringup v29 DVT3+;

Improvement:
Noise performance is also improved in this version.

Bug 1353325
Bug 1367501

Change-Id: I50a08845d4232e2d462c25bf0f7ae91eb166a141
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/280094
(cherry picked from commit 4323e3b03238aafbf52831ae04a0df6e15a46f3f)
Reviewed-on: http://git-master/r/288765
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim: fix daemon crashing issue
David Jung [Wed, 25 Sep 2013 23:21:32 +0000]
input: touch: maxim: fix daemon crashing issue

Nvidia changes to fix the problem when the daemon crashes and the touch
is not responding after resume when display is off.

Bug 1353325

Change-Id: I4a2917ae2070a4a6500d7e03833218534c117250
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/279074
(cherry picked from commit 931518312b66555c862137dfbaaebc8e4265cafe)
Reviewed-on: http://git-master/r/288764
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Update to version v28
David Jung [Sat, 21 Sep 2013 03:59:08 +0000]
input: touch: maxim_sti: Update to version v28

Maxim code drop which is for
further improvements to resume.

Bug 1353325

Change-Id: Ic6a267e3db268453cb3454e91216a8f97b135ce7
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/277469
(cherry picked from commit 5ea5ab3e0910cf77d24a38f520bb03616afb11be)
Reviewed-on: http://git-master/r/288763
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: boot fusion from init
Xiaohui Tao [Tue, 17 Sep 2013 01:41:01 +0000]
input: touch: maxim_sti: boot fusion from init

Touch fusion process will be booted from init.*.rc instead of kernel.

Bug 1352711
Bug 1366179

Change-Id: Icf89f4e3285ba35f92c78552793b9bf5d9f78355
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/264601
(cherry picked from commit 06eef70f3568f781da609570d0dfb39c3a869439)
Reviewed-on: http://git-master/r/288762
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Check thread stop condition
Bo Kim [Fri, 13 Sep 2013 07:48:03 +0000]
input: touch: maxim_sti: Check thread stop condition

Problems:
If shutdown or remove is called when suspended, it could be stuck in
infinite loop.

Changes:
1. Check kthread_should_stop() in several loops should be helpful to
avoid infinite loop problem.
2. Add __pm_stay_awake() in resume() and __pm_relax() in suspend()
should be helpful to avoid messaging error touch fusion driver and touch
fusion daemon by user space freezing between suspend and resume.
3. shutdown()/remove() stops processing_thread() before killing daemon.

Bug 1366179

Change-Id: I68464164440418a53bd37ce1821e04b630c12aec
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/274196
(cherry picked from commit 62c978972b14446f49433e08552cd14972369013)
Reviewed-on: http://git-master/r/288761
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agotegratab: use touch_fusion for reversed panel
Bo Kim [Wed, 11 Sep 2013 06:01:02 +0000]
tegratab: use touch_fusion for reversed panel

We don't support DVT1(non reversed panel) device. So we don't need to
support touch_fusion and touch_fusion_rd together. We will use
touch_fusion for reversed panel.

Change-Id: I576f926463c69e1a033b763e5e5c2207e373baa6
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/272926
(cherry picked from commit 0298d60e90c617b9e2b130e6ce57b478cc5052d1)
Reviewed-on: http://git-master/r/288760
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Update to version 1.4.1, v25
Robert Collins [Sat, 7 Sep 2013 03:27:37 +0000]
input: touch: maxim_sti: Update to version 1.4.1, v25

Description:
version 1.2.0 TegraTab bringup v25 DVT3+;

Changes:
* Eraser starts as being reported as pen and then switches to eraser without an intervening lift of the pen.
* Touch panel not responsive after standby resume
* Stylus events on virtual keyboard are missing with v24 build.

Bug 1357895
Bug 1353325
Bug 1360030

Change-Id: I4c01e13165074f5c0cbd5a71cf961956a66c07b1
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/271801
(cherry picked from commit e803c70f49318301e41120e140cf466ed8faf025)
Reviewed-on: http://git-master/r/288759
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Shutdown safely
Bo Kim [Fri, 30 Aug 2013 08:41:04 +0000]
input: touch: maxim_sti: Shutdown safely

Current shutdown implementation seems to be unsafe. Sometimes it can be
locked up due to interrupt from the chip but the interrupt cannot be
processed and cleared.

Bug 1349939
Bug 1359386

Change-Id: I585c03c2398eb9ab94563d5fe379bbafad7dc03c
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/268420
(cherry picked from commit 87de1d533241169695c552e837f024208d98c670)
Reviewed-on: http://git-master/r/288758
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Update to version 1.4.1, v22
Robert Collins [Thu, 15 Aug 2013 16:44:35 +0000]
input: touch: maxim_sti: Update to version 1.4.1, v22

Changes:
 - Water Rejection: Multiple Stylus cursors are getting
   displayed when the water drops are there in screen
 - Water Rejection: Touch screen is not responding to
   stylus or manual touch in water droplet area

Bug 1301942
Bug 1302147

Change-Id: If5b403995ca2eeef0106b61553616fc0455351ff
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/261949
(cherry picked from commit 3e62d1ff63ef5bfd4cceedfa6cfc0906f9809116)
Reviewed-on: http://git-master/r/288756
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Update to version 1.4.0, v21
Robert Collins [Tue, 13 Aug 2013 02:37:12 +0000]
input: touch: maxim_sti: Update to version 1.4.0, v21

Changes:
- Fixed: Will respawn touch_fusion daemon in the event it crashes
  (bug 1316502/1339998).
- Fixed: Touch linearity issues fixed (Bug 1326822).
- Improved:  Linearity on edges (Bug 1333700).

Bug 1316502
Bug 1326822
Bug 1333700
Bug 1339998

Change-Id: I731da02b5912723b41da553eca19400885e10976
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/260856
(cherry picked from commit ae1911fa1caddd9d1daadffafd53bdf3028a9a97)
Reviewed-on: http://git-master/r/288755
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agomaxim_sti: stylus and finger mutual exclusion
Youngjin Kim [Thu, 8 Aug 2013 01:55:43 +0000]
maxim_sti: stylus and finger mutual exclusion

Android frameworks cannot handle input events properly when
there are two or more touch input devices if input events
are coming from two or more devices at the same time.

As a workaround, make stylus and finger events be mutually
exclusive when splitting input devices into two.

Also correct some #if usage and make it report lift event
for stylus and finger respectively when splitting input
devices.

Bug 1324291
Bug 1340004

Change-Id: I0dd5da29844433b79db2a00b352ffb50fe4e8a09
Signed-off-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-on: http://git-master/r/259409
(cherry picked from commit eabea86209c26957c7bfb5478806025a0e1db96b)
Reviewed-on: http://git-master/r/288754
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Update to version 1.3.1, v19
Robert Collins [Mon, 5 Aug 2013 18:12:32 +0000]
input: touch: maxim_sti: Update to version 1.3.1, v19

Changes:
- Fixes bug 1322007 We are seeing a halo of no touch/pen activity
  around a thumb on the screen.
- Fixes bug 1327520 Touch strokes are missing at intermittent
  soft keys on virtual keyboard soft key press.
- Improves bug 1327474 Drawing with finger suddenly starts to
  act as eraser if user changes the finger while drawing.
- Improves bug 1296212 Erasing angle is not consistent using
  stylus, sometimes draws during erase.

Bug 1322007
Bug 1327520
Bug 1327474
Bug 1296212

Change-Id: Ic5c909e9d3aa18e8dc5a3fb8fec06ab8ffedc7d6
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/258244
(cherry picked from commit 098cbf25ef437fa32950d81271a752bd8e23b07a)
Reviewed-on: http://git-master/r/288753
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: enable device splitting
Bo Kim [Thu, 1 Aug 2013 05:49:36 +0000]
input: touch: maxim_sti: enable device splitting

Many android apps cannot get the touch events correctly
due to they are looking for input device which has only
touchscreen source type instead of using bitmask.

This is to make the apps can get the touch events
correctly without fixing the apps by splitting input
devices for finger touch and stylus.

Bug 1324291
Bug 1340004

Change-Id: I1c9840f3ded9bc029f43029e46fff9c240ece75f
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/256821
(cherry picked from commit 5f8301f40dd8434d2e30d88e4b8f89130a7147df)
Reviewed-on: http://git-master/r/288752
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: touch: maxim_sti: Update to version 1.3.0, v17
Bo Kim [Wed, 24 Jul 2013 10:27:23 +0000]
input: touch: maxim_sti: Update to version 1.3.0, v17

Description:
- Finger separation
- Input device split option
- V15 sensitivity degrade fix
- Handling of unexpected TSC reset
- Marginal improvements in stylus and finger recognition
- Add robustness to Netlink backlog handling

Bug 1321258
Bug 1324688
Bug 1302894
Bug 1324917
Bug 1327474
Bug 1324291

Change-Id: I3e9a16cc15351c48f0c21cc2cc2065e846237daa
Signed-off-by: Bo Kim <bok@nvidia.com>
Reviewed-on: http://git-master/r/252842
(cherry-picked from commit c2a5cdb8a56de8498a8a76068932840d5508eb83)
Reviewed-on: http://git-master/r/288751
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>