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>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

6 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)

6 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)

6 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)

6 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)

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

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

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

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

6 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

6 years agoasoc: rt5639: Test mode initialization
Scott Peterson [Mon, 9 Sep 2013 22:52:19 +0000]
asoc: rt5639: Test mode initialization

Make sure that test mode is not left enabled when
powering up the codec.

Change-Id: Ie3643220c81764f4f26903c7e88812150f2fc223

Signed-off-by: Scott Peterson <speterson@nvidia.com>
Change-Id: I1e3b216f84f87f36d05c9693f9a97d0444b68718
Reviewed-on: http://git-master/r/273276
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gabby Lee <galee@nvidia.com>
(cherry picked from commit fdaf1ff6e1d21bf00a53ee76b33cd08c3dc9106e)
Reviewed-on: http://git-master/r/281661
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agoasoc: codecs: rt5639: switch codec system clock
Simon Je [Fri, 2 Aug 2013 00:59:57 +0000]
asoc: codecs: rt5639: switch codec system clock

We need to switch the codec system clock to
internal clock only when bias level is OFF
when plugggin earjack.

Bug 1340840

Change-Id: I01ad0ccff952c1f811d24cb22fde70192753d77e
Signed-off-by: Simon Je <sje@nvidia.com>
(cherry picked from commit a438685c653c1cd79d1edb057a678276f2dc7cfe)
Reviewed-on: http://git-master/r/281660
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
Tested-by: Gabby Lee <galee@nvidia.com>

6 years agostaging: iio: light: cm3217: report valid events
Sri Krishna chowdary [Fri, 16 Aug 2013 13:02:28 +0000]
staging: iio: light: cm3217: report valid events

1. polling delay set by user should be greater than
minimum time that an ADC conversion of luminance happens.
Else sensor will simply report zero.

2. After enabling the sensor, wait for one polling delay
before start reading the luminance values.

Bug 1350036

Change-Id: I64facd1a6ee7ef1870ce1ef90942e444b9744a3a
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
(cherry picked from commit bfa4af9fb1499f04fc56b45d31e31b4db17f2f86)
Reviewed-on: http://git-master/r/281704
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Tested-by: David Yu (Engrg-SW) <davyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>

6 years agoinput: misc: akm8975: fix kernel panic on shutdown
David Yu [Wed, 11 Sep 2013 11:46:51 +0000]
input: misc: akm8975: fix kernel panic on shutdown

When device is full flashed then reboots, sometimes akm_probe() and
akm_shutdown() races. akm_shutdown() release all the resources thus kernel
panic can occur in akm_probe().

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

6 years agoinput: misc: mpu: fix nvi_pwr_mgmt_1_war
David Yu [Sun, 8 Sep 2013 03:20:36 +0000]
input: misc: mpu: fix nvi_pwr_mgmt_1_war

Interrupt is not generated after nvi_accl_enable intermittently.
Not reading i2c after i2c write failure fixes the issue.

Bug 1362994

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

6 years agoarm: tegra: add FIQ WAR for t11x non-secure
Xin Xie [Wed, 25 Sep 2013 01:04:29 +0000]
arm: tegra: add FIQ WAR for t11x non-secure

On Tegra T11x WDT FIQ is not routed to the GIC, so we cannot use Tegra
WDT for soft-hang debugging.

This WAR is to configure GIC group0 to generate the FIQ to CPU, and only
let WDT routed to GIC group0. All other normal IRQs will use GIC group1.
This WAR is only applicable to non-secure OS build; secure OS build will
treat FIQ as secure interrupt for enterring monitor.

This patch is based on previous work of Lucas Dai and Bo Yan.

bug 1277869
bug 1357562

Change-Id: Ie9a05f9f2974d2b9fb2d09f7847639e553917cb7
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/268797
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: add support for GIC FIQ WAR
Xin Xie [Wed, 25 Sep 2013 00:51:20 +0000]
arm: add support for GIC FIQ WAR

The FIQ WAR requires all the IRQs using the GIC group1, and let the FIQ
use GIC group0 only. This patch will set all the normal IRQs to group1
if GIC WAR is enabled.

bug 1277869
bug 1357562

Change-Id: I8993445850d2221f93b59d18e45d77d81903a616
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/278583
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agomisc: cec: defer suspend if init is in progress
Deepak Nibade [Tue, 24 Sep 2013 10:13:11 +0000]
misc: cec: defer suspend if init is in progress

- there is below race condition in cec driver :
  -tegra_cec_init() is in progress which is setting many registers
  -suspend is called at the same time
  -tegra_cec_suspend() disables clock before tegra_cec_init() completes
- above race condition hangs the system with trying to write cec
  register while clock is off
- fix this race condition by deferring suspend if init is still in
  progress

Bug 1360341

Change-Id: I0450db565e864f289d1ce5af13b43ee8ad4f0ee6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/278381
(cherry picked from commit 58effacbdd01c2b6e71023cae828b2eaddbbb4bf)
Reviewed-on: http://git-master/r/278324
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: Tegra: clock: Clock set latency tracing
Antti P Miettinen [Mon, 15 Apr 2013 12:46:56 +0000]
ARM: Tegra: clock: Clock set latency tracing

Add traces for clock set latency measurements.

Change-Id: I5bdd00145f32da59ed294c8414d44fba8f3a81ca
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/219386
(cherry picked from commit 44d36b249a3e7d21d044a5742e870da85605ea33)
Reviewed-on: http://git-master/r/277485
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agommc: tegra: Handle retune request case in tuning
R Raj Kumar [Thu, 19 Sep 2013 09:17:28 +0000]
mmc: tegra: Handle retune request case in tuning

Need to handle retune request case also in the tuning procedure.
We set retune flag if we remove (un-plug) SD card.
So, tuning should be done next time when SD card is inserted.

Bug 1371498

Reviewed-on: http://git-master/r/276608
(cherry picked from commit 81b476aa49803ef7373432c9a00f905c69354c4d)
Change-Id: I1c1232313aefe835f9c71dac10a2fe2034853d2a

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: I88edf3b74f419a0f09d2167d24b8bab8e68b11f1
Reviewed-on: http://git-master/r/278366
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agommc: tegra: full win should be 50% of partial win
R Raj Kumar [Wed, 17 Jul 2013 11:50:07 +0000]
mmc: tegra: full win should be 50% of partial win

Continue tuning procedure for full window calculation,
for the full window size is greater or equal to 50% of
partial window size, else choose partial window.

Bug 1368929

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/252339
(cherry picked from commit 9aec071afaa966a94c01f937ae67e0c4a54d455e)

Change-Id: Iaf3fc1dad0a1ee9928ab8c8eae795db048048a8e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/278239
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoArm: tegra: Update MCCPU actmon parameters
Puneet Saxena [Tue, 24 Sep 2013 06:36:51 +0000]
Arm: tegra: Update MCCPU actmon parameters

With existing MCCPU parameters Emc scales up
always from emc MAX value. This is not needed as
static cpu-emc ratio boosts emc immediately.

The change sets mccpu parameters as to scale emc freq
aggressively from a lower base value.

Bug 1352917

Change-Id: I784166833d0387c734c8e13fa633d96f2e345998
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/278197
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: Handle down interrupt of actmon
Karthik Ramakrishnan [Tue, 24 Sep 2013 04:47:26 +0000]
arm: tegra: Handle down interrupt of actmon

When the cpu load starts going down, the down interrupt is
disabled. This stops further interrupts and if missed, the emc
frequency is locked to high.

The change re-enables down watermark interrupts if gets disabled
due to emc lock.

Bug 1352917

Change-Id: I838eb05b313f9ddc287226c25f23e115fe117599
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/278131
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoarm: tegra: power: keep ldousb enable during lp0
Rick Song [Sat, 21 Sep 2013 03:23:30 +0000]
arm: tegra: power: keep ldousb enable during lp0

Need keep ldousb enable during lp0, otherwise the bus
state can't keep at suspend state, and will cause bus
reset from host during resume.

Bug 1361789

Change-Id: I7010bb0cfa564bac04add85bd9d99507c7fb547f
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/277462
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>

6 years agovideo: tegra: Include mutex to protect Kfuse reads
sharath [Fri, 2 Aug 2013 02:02:29 +0000]
video: tegra: Include mutex to protect Kfuse reads

Included a mutex to protect the simultaneous kfuse
reads by nvhost driver and nvhdcp driver.

bug 1179007

Change-Id: I780ead40352b081c5ffe533db9ea09f12d14c3e1
Signed-off-by: sharath <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/257206
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agothermal: Add palmas thermal support
Pradeep Goudagunta [Thu, 29 Aug 2013 10:55:42 +0000]
thermal: Add palmas thermal support

Palmas series pmic chip supports hot die interrupt configurable for
four different critical temperature thresholds.

Bug 1355680
Bug 1167941

Change-Id: I0167d5faf5be596018ec34d67911dd631d2cc71f
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/267913
(cherry picked from commit c102e29ad47ef3dfcdd12d49b58cf1dfeff26652)
Reviewed-on: http://git-master/r/276605
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomfd: palmas: Add palmas_thermal init
Pradeep Goudagunta [Mon, 2 Sep 2013 05:49:09 +0000]
mfd: palmas: Add palmas_thermal init

Initialize palmas_thermal driver, add palmas_thermal as mfd_cell
and irq resources.

Bug 1355680

Change-Id: Ia874afc435791bb905ea79b963b6e3412c343fc6
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/267914
(cherry picked from commit 856815055eb7b9864668ce6172fc26a3c86dc2aa)
Reviewed-on: http://git-master/r/276604
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Thu, 12 Sep 2013 17:30:36 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.08p5.40671

This version fixes the corruption of secure os(TF) stack which is caused by
unexpected hardware cache activities at the time of core #0 wakes up from
per-core power gating.
Caches ON while go to sleep and L1 cache is all cleaned before the sleep,
while L2 cache is selectively cleaned because it's preserved during
the sleep of the cores so L2 cache has some dirty lines from the secure world.
When core #0 wakes up, it turns on i-, d-caches but MMU is still off at this
moment. During this time the wake up process starts synching (flushing) cache
to SDRAM. Until MMU is ON, core #0 uses stacks data from SDRAM, not from the
data cache. It is enough to flush the old line of stack to SDRAM in order to
corrupt call-return linkage if it accidently happens during such stack usage.
To fix this issue, TF cleans the cache lines related to secure os stack
after they have been used last time just before returning to normal OS.

Bug 1330053
Bug 1356121

Change-Id: I1b8ba453f9e4e0f21e65667b54ed5ce4bcee8ff1
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/276089
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agocpufreq: interactive: Add consecutive I/O
Jinyoung Park [Wed, 21 Aug 2013 14:33:46 +0000]
cpufreq: interactive: Add consecutive I/O

Treat I/O wait as CPU busy if I/O processing is occurred on
the consecutive samples.

Bug 1332115
Bug 1351808

Change-Id: Ie47737a10b4896c8bef09181cca644f888ab2ac4
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/264419
(cherry picked from commit 5e0968a40df300cd2d43fcad80a0c1eff5025a0b)
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/272660
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: Dalmore: Enable pike gpios and irq
Ankita Garg [Thu, 19 Sep 2013 17:59:01 +0000]
ARM: tegra11: Dalmore: Enable pike gpios and irq

This patch enables the GPIOs and IRQ for the Pike module on
Dalmore. If the pike module is detected, it is enabled instead
of the camera and the motion sensors.

Bug 1312065

Change-Id: I4bb2878291af3d8ecffa1e36c20bbf5b39db06d1
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/256545
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: common: Add cmdline to detect Pike
Ankita Garg [Thu, 19 Sep 2013 17:55:24 +0000]
ARM: tegra11: common: Add cmdline to detect Pike

Add the kernel commandline parameter "pike" to detect
the presence of the Pike module

Bug 1312065

Change-Id: I66a1d8ad8a17eb71ef63cd627e56dee3ea5b479b
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/276778
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agonfc: return if NFC is in shutdown state
Rakesh Goyal [Tue, 17 Sep 2013 20:50:46 +0000]
nfc: return if NFC is in shutdown state

Bug 1362875
Change-Id: Ic5cac6b2e5899fb6eb63d873e567ee77bc8bc390
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/275969
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: ov9726 bad pixel cancellation
Hu He [Tue, 10 Sep 2013 21:24:43 +0000]
media: video: tegra: ov9726 bad pixel cancellation

Change a register setting for OV9726 to enable
sensor's black and white pixel cancellation.

Bug 1357956

Change-Id: I6ec49a90c7fda25d229e99bd5235fea4cb1bc17f
Signed-off-by: Hu He <hhe@nvidia.com>
Reviewed-on: http://git-master/r/272729
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>