5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 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>

5 years agoinput: touch: maxim_sti: Update to version 1.2.0, v16
Robert Collins [Thu, 18 Jul 2013 04:48:21 +0000]
input: touch: maxim_sti: Update to version 1.2.0, v16

Description:
Reduce number of SPI interrupts while touch is present.  Reduces
from 5000 interrupts per second to 800-1200 interrupts per
second when a touch is present.

Bug 1308711

Change-Id: I1d88a062d0538526fa24374c5d38d52813857a33
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/250534
(cherry picked from commit 62f6c47cbb70746b5e365fb69a4a7c5b725710db)
Reviewed-on: http://git-master/r/288750
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>

5 years agoinput: touch: maxim_sti: Update to version 1.2.0, v14
Robert Collins [Tue, 16 Jul 2013 06:26:19 +0000]
input: touch: maxim_sti: Update to version 1.2.0, v14

Description:
Fixes bug 1301375 LP0 suspend/resume issues.
Fixes bug 1293278 by adding more manufacturing tests.
Fixes bug 1318848.  Adds CPUBoost flag.

Bug 1293278
Bug 1301375
Bug 1318848

Change-Id: I78ca8f6119aa948d7d9a57a912bc9946fccba0c6
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/249532
(cherry picked from commit afead9e9e3fd56bc5e94a6fbf4967a1c3b243b1d)
Reviewed-on: http://git-master/r/288749
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>

5 years agoinput: touch: maxim: add trace point
Yogish Kulkarni [Wed, 26 Jun 2013 11:56:44 +0000]
input: touch: maxim: add trace point

Add trace point in IRQ handler for profiling.

Bug 1313953

Change-Id: I832efacf17603ae85cd03b455c8d17828fbeeec5
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/242431
(cherry picked from commit b610c9798db8c302887a4494ae86a4be6880a329)
Reviewed-on: http://git-master/r/288748
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>

5 years agoinput: touch: maxim: detect and notify out of idle
Yogish Kulkarni [Wed, 26 Jun 2013 10:24:01 +0000]
input: touch: maxim: detect and notify out of idle

Detect no spi interrupt for 50ms as idle. On first interrupt after
idle report miscellaneous input event MSC_ACTIVITY. This event will
serve as early notification for actual input event and will allow
cpu frequency governor to boost CPU clk early.

Bug 1313953

Change-Id: I2c0cd037dc0de7d4209bfd2a0dba0601852e5e2c
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/242430
(cherry picked from commit 52a2f541e687659b6b12575f12fabee0d6a0cc76)
Reviewed-on: http://git-master/r/288747
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>

5 years agoinput: touch: maxim: set device capability
Yogish Kulkarni [Tue, 25 Jun 2013 11:12:23 +0000]
input: touch: maxim: set device capability

Mark device as capable of emitting MSC_ACTIVITY.

Bug 1313953

Change-Id: Ibc240c34f1d66ddc924a5ed662c81f323f429eaf
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/242429
(cherry picked from commit 5c82e83a697bdc15db4f7d00f3a6b89e6d16e90a)
Reviewed-on: http://git-master/r/288746
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>

5 years agoinput-cfboost: monitor input events from stylus
Yogish Kulkarni [Tue, 25 Jun 2013 10:31:22 +0000]
input-cfboost: monitor input events from stylus

Add signature of stylus type devices to id table so as to
provide cpu boost for input events from such devices.

Bug 1313953

Change-Id: I8efa286a02f0953c4887673c8edc9ad8cf8651e3
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/242427
(cherry picked from commit 93879ea65d4fef06fca3f95dbb1eeb4248d402e0)
Reviewed-on: http://git-master/r/288745
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoARM: tegra: nct: add serial number entries for LBH
Woojung Min [Mon, 19 Aug 2013 18:17:03 +0000]
ARM: tegra: nct: add serial number entries for LBH

Bugi 1346871

Change-Id: I20e523a89d214f1265009abc10e183f4dcce67cf
Signed-off-by: Woojung Min <wmin@nvidia.com>
Reviewed-on: http://git-master/r/265928
(cherry picked from commit 9386e7c3d7a5324053ca9f41c3d932e076c3b4ce)
Reviewed-on: http://git-master/r/288979
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kurt Yi <kyi@nvidia.com>

5 years agoarm: tegra: fuse: printing RAM strapping info
Harry Hong [Thu, 29 Aug 2013 10:49:39 +0000]
arm: tegra: fuse: printing RAM strapping info

To be aware of RAM strapping info,
print it at kernel init by default.

bug 1352073

Change-Id: Ia0462392d6a2ca06b68fcced1b39ec7d68110c74
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/267903
(cherry picked from commit 1f8fa18c03f135d8d12116528971d71cb0d670c6)
Reviewed-on: http://git-master/r/288821
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agomisc: ti-st: enable wakeup device
Harry Hong [Wed, 28 Aug 2013 07:32:42 +0000]
misc: ti-st: enable wakeup device

- enable st_host_wake device as wakeup device
- set device_wakeup_enabe by default
- don't freq irq if irq is not registered
 in this driver

bug 1347948

Change-Id: Id8467cadc21270f73154e32711818111b8eb10c0
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/267128
(cherry picked from commit a6477db2ef36ac1662b539492e1f654858ee60ed)
Reviewed-on: http://git-master/r/288820
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agomisc: ti-st: Adding IORESOURCE_IRQ_OPTIONAL case
Harry Hong [Mon, 26 Aug 2013 05:53:01 +0000]
misc: ti-st: Adding IORESOURCE_IRQ_OPTIONAL case

if flag is IORESOURCE_IRQ_OPTIONAL, don't request irq
because this irq need to be registered in another driver.

bug 1347948

Change-Id: I3178aca5b09421b5f6c53d28b6327f530d405e9c
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/265925
(cherry picked from commit a69c29fc91cf581fdd678fa05a6b33568ef9ccc7)
Reviewed-on: http://git-master/r/288819
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agotty: serial: enable irq_wake
Harry Hong [Mon, 5 Aug 2013 04:35:51 +0000]
tty: serial: enable irq_wake

enable irq_wake for uart interrupt if wakeup from lp0
is required.
ex) BT host-wake pin is connected to uart3_cts.
so, making uart interrupt as wake irq.

bug 1328470

Change-Id: I11f7ea8a627a84972c5d734d256a253cad2bc0af
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/257237
(cherry picked from commit 3c99642533c4d0279c79ef7df502e65623ff7a71)
Reviewed-on: http://git-master/r/288816
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoARM: tegra: config: tegratab: Enable CONFIG_HIDRAW
Harry Hong [Mon, 8 Jul 2013 06:33:24 +0000]
ARM: tegra: config: tegratab: Enable CONFIG_HIDRAW

Enable CONFIG_HIDRAW to support some of the
usb numpads which are getting detected as HIDRAW.

Bug 1267142

Change-Id: I804f1c78b9931279db667d4a40b84af74cf143ef
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/245987
(cherry picked from commit 3b610623648601bf7fc43f40328cc505de569bcc)
Reviewed-on: http://git-master/r/288793
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoARM: tegra: tegratab: P1640 A02 support
Harry Hong [Thu, 11 Jul 2013 07:14:18 +0000]
ARM: tegra: tegratab: P1640 A02 support

use pmic 32k clk as wifi 32 clk source if board revision
is beyond P1640 A00.

bug 13237718

Change-Id: I44581be980c89aa5bcc8080e7473418c3a64ad01
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/247684
(cherry picked from commit 051e83a2f01b803183de316d3d5536e6127c6904)
Reviewed-on: http://git-master/r/288791
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoarch: arm: tegratab: Set poweron_lpk to restart.
Harry Hong [Tue, 18 Jun 2013 07:27:27 +0000]
arch: arm: tegratab: Set poweron_lpk to restart.

By long press key, the system need to be restarted
instead of power off.

bug 1308187

Change-Id: Ib570f2c6f51eb8fe40990e0022e788e90f84e889
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/239622
(cherry picked from commit 996d8c3e9a2889f86f701c48775b27fce69a7389)
Reviewed-on: http://git-master/r/288789
Reviewed-by: Peter Kim <pekim@nvidia.com>
Tested-by: Peter Kim <pekim@nvidia.com>

5 years agoarm: tegra: tegratab: set INT_UARTC as st_host_wakup
Harry Hong [Mon, 26 Aug 2013 05:45:17 +0000]
arm: tegra: tegratab: set INT_UARTC as st_host_wakup

- add IORESOURCE_IRQ_OPTIONAL in st host wakeup irq resource.
if it's set, don't request irq.
INT_UARTC need to be requested in hsuard driver.
So, don't request it in st host wake drvier. only doing
enable/disable irq in that driver.
- set INT_UARTC as st_host_wakeup irq

bug 1347948

Change-Id: Id6ee39b7307dcbbdc812e531ae743a9e14be03b1
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/265923
(cherry picked from commit 2d6b66dda6650ba55ebc6cb8bed55891be41c29e)
Reviewed-on: http://git-master/r/288818
Reviewed-by: Peter Kim <pekim@nvidia.com>

5 years agoarch: arm: tegratab: Set ocr_mask to 2.8V.
Harry Hong [Tue, 20 Aug 2013 22:57:46 +0000]
arch: arm: tegratab: Set ocr_mask to 2.8V.

bug 1351377

Change-Id: I73fb063219907e11c07166516731cc19d4145fbf
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/264098
(cherry picked from commit 0db751c2fb918edfe383131a63cbecdc8b329a28)
Reviewed-on: http://git-master/r/288817
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Kim <pekim@nvidia.com>

5 years agoARM: tegra: enable uart3_cts irq as wakeup source
Harry Hong [Fri, 2 Aug 2013 05:24:10 +0000]
ARM: tegra: enable uart3_cts irq as wakeup source

bug 1328470

Change-Id: I4290bf99942efc2e78a494e25a123de01c73ca91
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/257236
(cherry picked from commit f0fc356449c817a77cdb2f6343ae008ae9c3b696)

5 years agoARM: tegra: config: tegratab: Enable CONFIG_HIDRAW
Harry Hong [Mon, 8 Jul 2013 06:33:24 +0000]
ARM: tegra: config: tegratab: Enable CONFIG_HIDRAW

Enable CONFIG_HIDRAW to support some of the
usb numpads which are getting detected as HIDRAW.

Bug 1267142

Change-Id: I804f1c78b9931279db667d4a40b84af74cf143ef
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/245987
(cherry picked from commit 3b610623648601bf7fc43f40328cc505de569bcc)

5 years agoARM: tegra: tegratab: P1640 A02 support
Harry Hong [Thu, 11 Jul 2013 07:14:18 +0000]
ARM: tegra: tegratab: P1640 A02 support

use pmic 32k clk as wifi 32 clk source if board revision
is beyond P1640 A00.

bug 13237718

Change-Id: I44581be980c89aa5bcc8080e7473418c3a64ad01
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/247684
(cherry picked from commit 051e83a2f01b803183de316d3d5536e6127c6904)

5 years agoarch: arm: tegratab: Set poweron_lpk to restart.
Harry Hong [Tue, 18 Jun 2013 07:27:27 +0000]
arch: arm: tegratab: Set poweron_lpk to restart.

By long press key, the system need to be restarted
instead of power off.

bug 1308187

Change-Id: Ib570f2c6f51eb8fe40990e0022e788e90f84e889
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/239622
(cherry picked from commit 996d8c3e9a2889f86f701c48775b27fce69a7389)

5 years agonvhdcp: avoid i2c transfer retry on suspend
David Yu [Thu, 29 Aug 2013 05:51:01 +0000]
nvhdcp: avoid i2c transfer retry on suspend

Bug 1346938

Change-Id: I95d8806a6cd4fbb6060f0b6e5bcebc27f1c846fc
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/267718
(cherry picked from commit edf22c31968ec0658e1315f9c6d468f3961c9e1e)
Reviewed-on: http://git-master/r/282193
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agostaging: android: lowmemorykiller: Add config option to support oom_adj values
Arve Hjønnevåg [Wed, 26 Sep 2012 00:37:14 +0000]
staging: android: lowmemorykiller: Add config option to support oom_adj values

The conversion to use oom_score_adj instead of the deprecated oom_adj
values breaks existing user-space code. Add a config option to convert
oom_adj values written to oom_score_adj values if they appear to be
valid oom_adj values.

Change-Id: I68308125059b802ee2991feefb07e9703bc48549
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/261325
(cherry picked from commit 8a38dd632283585d882be5973a461b5c4c4de502)
Reviewed-on: http://git-master/r/282183
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agostaging: iio: cm3217: send every value
David Yu [Wed, 21 Aug 2013 09:01:13 +0000]
staging: iio: cm3217: send every value

Bug 1352802

Change-Id: Ia4929456b5d595d435db623a103592b5cc2071ad
Signed-off-by: David Yu <davyu@nvidia.com>
(cherry picked from commit 9d15c8b15cfcaa2a5d558a259c7ffcf30396c2b4)
Reviewed-on: http://git-master/r/281705
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

5 years agoinput: misc: mpu: remove unnecessary close()
David Yu [Thu, 25 Jul 2013 05:48:06 +0000]
input: misc: mpu: remove unnecessary close()

Bug 1322187

Change-Id: I9adb3d260ed7e62052b7fc37f98547e2b792dd4d
Signed-off-by: David Yu <davyu@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/253226
(cherry picked from commit b76356a5c3277e84b4710c7b8c6a7ef6cad7ac1a)
Reviewed-on: http://git-master/r/281085
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>

5 years agoasoc: rt5639: Set Speaker OVCD to default
Simon Je [Fri, 4 Oct 2013 04:54:03 +0000]
asoc: rt5639: Set Speaker OVCD to default

Set the speaker over-voltage protection value
to the power on reset value.

Set OVCD to low value when audio is not playing.

Make sure codec mclk is enabled when writing the
codec registers.

Change-Id: Ib673d667af54f3b4fd7bf3183cbde1759838ae4a
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/274022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>
(cherry picked from commit 2e0cd932ce9c116b5a0e07a3ce5ad865a63121b3)
Reviewed-on: http://git-master/r/281662