6 years agoasoc: tegra: aic326x: Don't disable clock if call is active
Rahul Mittal [Wed, 17 Apr 2013 07:00:37 +0000]
asoc: tegra: aic326x: Don't disable clock if call is active

Don't disable codec clock if voice call is going on
Bug 1272679

Change-Id: I80e9e6922cdfd728128486c492299c08ea745f3c
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/220089
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

6 years agommc: core: Make devfreq_init call conditional
Pavan Kunapuli [Wed, 17 Apr 2013 08:19:28 +0000]
mmc: core: Make devfreq_init call conditional

devfreq_init should be called only if the host indicates support for
dynamic frequency scaling by setting MMC_CAP2_FREQ_SCALING flag.

Change-Id: Ifa6c78fba310cafb7644a1cdc8ed9c7fd1784b22
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/219841
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoARM: tegra: xusb: fix ss port mapping
Ajay Gupta [Mon, 15 Apr 2013 17:14:43 +0000]
ARM: tegra: xusb: fix ss port mapping

Bug 1271698

Change-Id: I692281c8d1aa5c659490c7b5000015ff1974dbe2
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/219460
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoconfig: tegra3: Turn off R8169 firmware loading
Mursalin Akon [Thu, 11 Apr 2013 18:00:35 +0000]
config: tegra3: Turn off R8169 firmware loading

The firmware is not being in use currently.
So, turn the loading code off.

Bug 1236060

Change-Id: Id41cf762b59502d0ece470e315ac75d93e3b6b39
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/218613
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoMake firmware loading of R8169 optional
Mursalin Akon [Thu, 11 Apr 2013 17:28:07 +0000]
Make firmware loading of R8169 optional

According to Realtek, the firmware provides
power optimizations. The driver works without
the firmware. Plus, there are scenarios where
the firmware is not available, which makes the
driver wait at request_firmware call (i.e.,
60 sec wait).

Bug 1236060

Change-Id: Ifad95b9eb9e161c77171df3e65351aff80e4a4ad
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/218609
Reviewed-by: Eric Brower <ebrower@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoARM: tegra11: clock: Rearrange initial XUSB clocks parents
Alex Frid [Thu, 4 Apr 2013 03:26:19 +0000]
ARM: tegra11: clock: Rearrange initial XUSB clocks parents

Bug 1250832

Change-Id: I72868656b285bb96a07c18d7ec32824bdee76cca
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216362
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: dvfs: Update XUSB SS and HS dvfs table
Alex Frid [Thu, 4 Apr 2013 02:48:21 +0000]
ARM: tegra11: dvfs: Update XUSB SS and HS dvfs table

Update XUSB SS and HS clocks dvfs table and maximum rate limits.

Bug 1250832

Change-Id: Ie18fae844c87a529be7cd2dbd956ce30aa9ee07d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216361
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: clock: Change XUSB HS clock source
Alex Frid [Wed, 3 Apr 2013 03:29:28 +0000]
ARM: tegra11: clock: Change XUSB HS clock source

Used XUSB SS clock (with fixed 1:2 divider) as HS clock source instead
of PLLU secondary divider.

Bug 1250832

Change-Id: Iafc24b9a9208ea4184f5a3c04deca48a24ca73c4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216360
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Dalmore: Toggle DDC pull down with hpd
Graziano Misuraca [Mon, 1 Apr 2013 23:27:00 +0000]
ARM: Tegra: Dalmore: Toggle DDC pull down with hpd

Only set DDC_SDA and DDC_SCL pull downs to be active
when we detect a hotplug. Otherwise keep them disabled.

Bug 1237421

Change-Id: I1944584169a1a3c55794e84e8e103158188b3199
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/215268
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agodrivers: misc: therm_est: Add DT support
Jinyoung Park [Fri, 12 Apr 2013 14:25:42 +0000]
drivers: misc: therm_est: Add DT support

Add DT support and documentation for thermal estimator.

Bug 1173854
Bug 1240803

Change-Id: I4631fc499cb042d7649681fe097a9087aa5c5098
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/211125
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegratab: Enable NCT feature config
Joshua Cha [Tue, 16 Apr 2013 04:28:08 +0000]
ARM: tegratab: Enable NCT feature config

Bug 1223662

Change-Id: Iae03dedb53821e007fd8fcef060d79ac36cca081
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/219633
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoinput: misc: compass: akm89xx: add support for device tree
David Yu [Thu, 11 Apr 2013 04:07:37 +0000]
input: misc: compass: akm89xx: add support for device tree

Bug 1260300
Bug 1173064

Change-Id: I1cd32f31126ed08e13c731e3d40ceb2ca6052048
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/218488
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: pluto: enable thermal and low system voltage interrupts
Laxman Dewangan [Tue, 16 Apr 2013 10:51:13 +0000]
ARM: tegra: pluto: enable thermal and low system voltage interrupts

The charger device max77665 supports the thermal and low system
voltage interrupts. Enabling this interrupt through platform
data of max77665.

bug 1216535

Change-Id: I9bf2acf39bc6544f95dc6334f3a609118e1150c3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219792
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agopower: max77665-charger: add support for overcurrent
Laxman Dewangan [Tue, 16 Apr 2013 10:48:23 +0000]
power: max77665-charger: add support for overcurrent

Add support for overcurrent interrupt and threshold  configuration:
- Enable OC interrupt.
- Set battery to system overcurrent to 3250mA.
- Add sysfs for the OC interrupt disable/enable.
- Add sysfs for the OC threshold configuration.

bug 1216535

Change-Id: I3b1b7811ba22930b2cc6d49bbcbff36cff3a064a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219791
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agopower: max77665-charger: get irq number through platform_get_irq()
Laxman Dewangan [Tue, 16 Apr 2013 10:38:46 +0000]
power: max77665-charger: get irq number through platform_get_irq()

Get the max77665 charger submodule interrupt number through
platform_get_irq() rather than getting it through platform data.

bug 1216535

Change-Id: I32314086dbfe3a1a435fcd7012b7cae73d081eb5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219790
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agomfd: max77665: add top sys interrupt support
Laxman Dewangan [Tue, 16 Apr 2013 10:32:34 +0000]
mfd: max77665: add top sys interrupt support

The top system interrupt of max77665 enables the interrupt for
thermal and low system voltage.

Add support for enabling this interrupt.

bug 1216535

Change-Id: Ifea7ecae3367497f7cff283b44bba013d1b8415d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219789
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: dalmore: update torch level limit
Charlie Huang [Fri, 12 Apr 2013 22:50:20 +0000]
ARM: tegra: dalmore: update torch level limit

limit the torch level to 150mA to resolve the torch level too high
issue.

bug 1242531

Change-Id: Iae402b6dbc81e867a367a596c473c966315e6dcc
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/219101
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agomedia: video: tegra: as3648: add torch level limit
Charlie Huang [Fri, 12 Apr 2013 22:46:38 +0000]
media: video: tegra: as3648: add torch level limit

On this device the torch level can be set as high as the flash, but
on some platforms the torch level is required to be lower to get
better photo qualities.

Also replace dev_warn with dev_notice and updated debugfs methods.

bug 1242531

Change-Id: I48140cbdaa093b5ffcf41258d0f2fd51cca35eb2
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/219100
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agomedia: video: tegra: mt9m114 sensor kernel driver
kkim [Tue, 9 Apr 2013 06:10:17 +0000]
media: video: tegra: mt9m114 sensor kernel driver

Bug 1255019

Change-Id: Ie02ca813bcb362d20de2c07aeea62a46866cc723
Signed-off-by: kkim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/217662
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dsi: Enable MIPI auto calibration
Vineel Kumar Reddy Kovvuri [Fri, 15 Mar 2013 06:13:56 +0000]
video: tegra: dsi: Enable MIPI auto calibration

Implementation of DSI MIPI auto calibration

Bug 1166307

Change-Id: Id4be420978b56d662d77c6d145f9e51dc881d159
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/219777
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomedia: tegra: fix ov5693 fuseid buffer index
Jake Park [Tue, 16 Apr 2013 10:32:05 +0000]
media: tegra: fix ov5693 fuseid buffer index

Bug 1271714

Change-Id: Ibab4ce7c08150edceb463d4dadd3579d88956654
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/219772
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agommc: core: set device min_freq to 0
Naveen Kumar Arepalli [Mon, 15 Apr 2013 16:03:31 +0000]
mmc: core: set device min_freq to 0

set device min_freq to 0, It should not be f_min

Bug 1238045
Bug 1044607

Change-Id: Ifc10a4375953e52f6d414beff0ebc09057914d14
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/219437
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoEDP: tegra: removing open printk
Sivaram Nair [Mon, 15 Apr 2013 07:24:52 +0000]
EDP: tegra: removing open printk

Moved to pr_debug

Change-Id: I4e0ea0f59b4231190f9972b8dc79e0d877b57216
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/219306
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoarch: arm: tegratab: update config
Harry Hong [Mon, 15 Apr 2013 06:28:26 +0000]
arch: arm: tegratab: update config

Moving cm3217 config from input to staging io.

bug 1270172
bug 1260291

Change-Id: Ie4e39ba9f61a65e07f7ebbd1d9d1742bdad8cd80
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/219295
Reviewed-by: David Yu (Engrg-SW) <davyu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gabby Lee <galee@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jake Park <jakep@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

6 years agoarm: tegra: cardhu: backlight init modification
Ramalingam C [Wed, 10 Apr 2013 10:54:48 +0000]
arm: tegra: cardhu: backlight init modification

This change modifies the backlight_init function to make it compatible
for the dsi and backlight driver modifications

Bug 1255151

Change-Id: I83c796672acbdd129514feb522fd5fb956cb2516
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/218225
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopower: bq2419x: add charge enable flag.
Hyongbin Kim [Tue, 9 Apr 2013 08:28:27 +0000]
power: bq2419x: add charge enable flag.

Add chg_enable flag to enable charging.
When charger pdata is absent, default disable charger.

Bug 1260994

Change-Id: I5998db924ded27df244f34b0d91fb1a617df6da4
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/217703
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: macallan, tegratab: edit bq2419x platform data
Hyongbin Kim [Tue, 9 Apr 2013 07:16:15 +0000]
arm: tegra: macallan, tegratab: edit bq2419x platform data

macallan: make charger pdata NULL.
Add charger gpio irq.

Bug 1260994

Change-Id: I1ae3089a9f90cf79a88b635770089b674aede8d2
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/217702
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopower: bq2419x: Update input voltage
Pradeep Goudagunta [Mon, 25 Mar 2013 23:48:14 +0000]
power: bq2419x: Update input voltage

Update input voltage limit to 4.52V when Nv charger or
2000mA charger connected.

Bug 1253104

Change-Id: Ida19738a36685fbc5c768a6e9da5c483724f284b
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/212834
(cherry picked from commit d7f97e179a890e32c993c3dbc552d0dbb3e5785e)
Reviewed-on: http://git-master/r/216094
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: bq2419x: shutdown system for 20 sec if high current charger connected
Laxman Dewangan [Wed, 20 Mar 2013 11:49:35 +0000]
power: bq2419x: shutdown system for 20 sec if high current charger connected

If NvCharger or any high current charger is connected and user
select power off through UI then shutdown system for the 20 second.
Else shutdown system for 1 hour which is configurable through
platform data.

bug 1251310

Change-Id: Ic699729158118c90fc82d5eb142dcd1931b95ba7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/211186
(cherry picked from commit 97cba38a3225f6642fa03f0f81767b2b1c3f84b8)
Reviewed-on: http://git-master/r/216093
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agopower: bq2419x: Restart CHG for periodically drained battery
Pradeep Goudagunta [Tue, 19 Mar 2013 12:37:43 +0000]
power: bq2419x: Restart CHG for periodically drained battery

Restart charging after certain timeout, for battery full,
charging fault and safety timer expire cases. To charge
periodically drained battery.

Bug 1252277

Change-Id: I7b3a7f8783fdc7d1c480a32ba1409678a240577f
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/210816
(cherry picked from commit 6366a6cd1ad2e5300d7f2438732ded7d1f53a988)
Reviewed-on: http://git-master/r/216092
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: Set OTG pin always high
Pradeep Goudagunta [Tue, 12 Mar 2013 10:59:03 +0000]
power: bq2419x: Set OTG pin always high

Set OTG ping always high, since we need SDP current
limit 500mA as defualt.

Bug 1246589
Bug 1251310

Change-Id: Ib93a3354fa5833e31112b7ad3d7bd4e96fc4f640
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/209456
(cherry picked from commit 06200647dcf8e22917d6e708eb092ba1b980b712)
Reviewed-on: http://git-master/r/216091
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: Cleanup in error path
Pradeep Goudagunta [Tue, 12 Mar 2013 09:14:32 +0000]
power: bq2419x: Cleanup in error path

-Cleanup in error path of wdt reset.
-Return error in suspend callback if i2c writes fails.

Bug 1240114

Change-Id: I568e35d12d42c73bd20fafe9187373589d6e313d
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/209455
(cherry picked from commit df17d17de7250628633cd51b22db2fbc0d745185)
Reviewed-on: http://git-master/r/216090
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: Solve race in LP0 and wdt thread
Sang-Hun Lee [Tue, 12 Mar 2013 21:11:01 +0000]
power: bq2419x: Solve race in LP0 and wdt thread

This change is for avoiding the race condition between wdt
service thread and LP0 suspend/resume

Bug 1240114

Change-Id: I7ca0eb20cfee0b31ca5a5cfca5e4bb6d43662183
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/208525
(cherry picked from commit 38cccbbeef719c2445c33a4486ad7b836bfa0611)
Reviewed-on: http://git-master/r/216089
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: fix mutex_unlocks
Anshul Jain [Mon, 11 Mar 2013 22:05:52 +0000]
power: bq2419x: fix mutex_unlocks

Fix returns before unlocking mutex

Bug 1240114

Change-Id: I01270950d317e16b28eeef9f965d9ce40402d7a5
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/208182
(cherry picked from commit 06f4dd2255135526bda6158f8f95f703e0ed2d15)
Reviewed-on: http://git-master/r/216088
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: Add suspend resume callbacks
Pradeep Goudagunta [Mon, 11 Mar 2013 12:43:59 +0000]
power: bq2419x: Add suspend resume callbacks

Bug 1240114

Change-Id: I8664a1ae76cde848a49af2e750cc6dea8fea7a2a
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/208523
(cherry picked from commit 5e8a24c1a36342e402cd79f4826d93db32f68792)
Reviewed-on: http://git-master/r/216087
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: Enable charger on hotplug
Pradeep Goudagunta [Sat, 9 Mar 2013 19:46:33 +0000]
power: bq2419x: Enable charger on hotplug

Enables charger on every hotplug. This has to be done
to make sure we can recover from charge termination state.

Bug 1240114

Change-Id: Ic7cb1fb21f39ecd9fff6f167ebfca21863323a70
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/207866
(cherry picked from commit 47c490614a56c46042210736b9d1d3b08dfb4d16)
Reviewed-on: http://git-master/r/216086
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: Add mutex lock support
Pradeep Goudagunta [Sat, 9 Mar 2013 18:28:03 +0000]
power: bq2419x: Add mutex lock support

-Add mutex lock support to reset wdt to avoid race conditions.
-Update debug info prints.

Bug 1240114

Change-Id: I1e333e5545eaad74ad7dfdfb5d0a9e27e45682d6
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/207864
(cherry picked from commit fa52143d2210a41f086dfe81602b1208b802dcc3)
Reviewed-on: http://git-master/r/216085
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: clear HIZ bit while wdt reset
Pradeep Goudagunta [Sat, 9 Mar 2013 18:24:16 +0000]
power: bq2419x: clear HIZ bit while wdt reset

Bug 1240114

Change-Id: Idbd703a85fb544b738e90005155088b4aeca0fae
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/207863
(cherry picked from commit 304f052ba1aa070bb08cd5521c189ea2a990af32)
Reviewed-on: http://git-master/r/216084
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: configure watchdog timer setting
Syed Rafiuddin [Fri, 8 Mar 2013 15:20:35 +0000]
power: bq2419x: configure watchdog timer setting

Enable option to configure Watchdog timer for 40, 80
and 160sec.

Bug 1240114

Change-Id: I27fb9bac700e2030638806e6b1a1442fe5a7cab6
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/207612
(cherry picked from commit 5e4f66c8247c9a67f9df555dadd66b4ea74d9a6d)
Reviewed-on: http://git-master/r/216083
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: reconfigure registers if WDT expires
Syed Rafiuddin [Fri, 8 Mar 2013 11:06:09 +0000]
power: bq2419x: reconfigure registers if WDT expires

All the registers are reset to OTP if watchdog timer expires.
Reconfiguring registers for proper charging.

Bug 1240114

Change-Id: I884479afbd9577028284b7790111049144c0b27a
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/207192
(cherry picked from commit e137a6bd45bfcedf57a23af2285ddb156ac3ee71)
Reviewed-on: http://git-master/r/216082
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: add rtc wake alarm in shutdown
Syed Rafiuddin [Fri, 8 Mar 2013 10:22:59 +0000]
power: bq2419x: add rtc wake alarm in shutdown

Addition of RTC wake alarm functionality to wakeup
the platform from the system power off state
and clear the HIZ bit.

Bug 1248143

Change-Id: I5d5ef425a5c6707c407a972041533fc096db697f
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/206700
(cherry picked from commit 583e9a2130ac6d7f557834c7145a55932077c32e)
Reviewed-on: http://git-master/r/216081
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agopower: bq2419x: remove BQWDT disable code
Syed Rafiuddin [Tue, 5 Mar 2013 05:01:20 +0000]
power: bq2419x: remove BQWDT disable code

removing BQWDT disabling code as bqwdt is not suppose to be
disabled ever.

Bug 1240114

Change-Id: Idc2dab16d77b3716577913dc0a0b77e6bdf5490b
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/205761
(cherry picked from commit 23c796b25169446bcdbd3080490a693f73eb8d88)
Reviewed-on: http://git-master/r/216080
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: macallan: add bq2419x platform data
Syed Rafiuddin [Wed, 3 Apr 2013 09:16:45 +0000]
arm: tegra: macallan: add bq2419x platform data

addition of bq2419x battery charger platform data

Change-Id: Ieaaa378513fc43790660e9ac2a9e5a421d21b148
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/216079
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopower: bq2419x: Implement WDT timer
Syed Rafiuddin [Wed, 3 Apr 2013 08:36:34 +0000]
power: bq2419x: Implement WDT timer

BQ2419X support the WDT timer which reset the configuration
on expiration. Handling the WDT timer to proper functiong of device.

Following are details of changes:
- Implement WDT reset in kthread with high priority.
- Configure WDT time based on platform data,
- Merge the VBUS regulator in the charger driver itself as
charger or VBUS can happen mutually.
- Displaying the charging fault when happens.
- Other cleanups to reduce code size and make better readability.
- Related chnages in board file.

Bug 1240114
Bug 1260994

Change-Id: Iefa79b7c0c791e8a1d69b44d9399aab7730a2da9
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/205495
(cherry picked from commit b2183dca8729336665f97a19a0e6edfd588a248e)
Reviewed-on: http://git-master/r/216077
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agomfd/regulator: remove bq2419x driver
Syed Rafiuddin [Wed, 3 Apr 2013 08:39:40 +0000]
mfd/regulator: remove bq2419x driver

The bq2419x driver functionality is merged into single file as
power/bq2419x-charger, these files are not required hence deleting.

Bug 1240114

Change-Id: Ibc09b12904558d6b0905f6bdf309e452f9c8be78
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/205497
(cherry picked from commit df6821a3a1013d4775fe7ed0c52a56a8bef29a1f)
Reviewed-on: http://git-master/r/216078
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoRevert "power: bq2419x: disable charging function if charger fails to probe"
Syed Rafiuddin [Tue, 2 Apr 2013 11:17:05 +0000]
Revert "power: bq2419x: disable charging function if charger fails to probe"

This reverts commit b3fcade6dbc33f41f7284f2e8581d075bb0fe09b.

Change-Id: Iee513c36df2aba8a0348533c326a92bd51a0afac
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/216076
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
Tested-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: Add NCT access api and sysfs interface
Joshua Cha [Wed, 13 Mar 2013 01:54:55 +0000]
ARM: tegra: Add NCT access api and sysfs interface

NCT is the acronym for Nvidia Configuration Table.
This change provides API to read NCT items from NCT carveout region
and create sysfs interface for userspace to read items.

Bug 1223662

Change-Id: Id6f887fd9c458f4f9c3dfe27f6a95fbe930cfb00
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/208680
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

6 years agoarm: configs: tegra11: remove unused camera configs
Sachin Nikam [Mon, 15 Apr 2013 06:51:26 +0000]
arm: configs: tegra11: remove unused camera configs

Below camera sensors are not for t114 platforms:
-CONFIG_VIDEO_OV5650=y
-CONFIG_VIDEO_OV9726=y
-CONFIG_VIDEO_OV2710=y

Also removed below which are not for T114 platforms:
-CONFIG_VIDEO_AR0832=y : sensor for enterprise
-CONFIG_TORCH_TPS61050=y : flash for cardhu
-CONFIG_VIDEO_SH532U=y : focuser for enterprise

Change-Id: Iaca911058f51d5eff2e7a0b07b39b95908dcbfb8
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/219299
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarch: arm: linearize backlight after sd adjustment
Mitch Luban [Fri, 12 Apr 2013 01:31:07 +0000]
arch: arm: linearize backlight after sd adjustment

We should apply smartdimmer adjustment and then do
linear backlight lookup.

Bug 1253675

Reviewed-on: http://git-master/r/218738
(cherry picked from commit 2633bbdf3a1392df763831acc336c46e9982277a)

Change-Id: I25ca15c615ea99e49f60f567d874666c8f6a4bcd
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/218741
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: add fix for device tree
David Yu [Wed, 10 Apr 2013 11:44:46 +0000]
arm: tegra: tegratab: add fix for device tree

- add fix for tegratab DT.
- fix compass sensor power.
- remove bmp180 sensor power and platform data.

Bug 1260291
Bug 1260300

Change-Id: I23c5c3b43aeab0ffd330a2ade601b0b3f2b07f67
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/218223
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agommc: tegra: Dynamic frequency calculation
Pavan Kunapuli [Mon, 15 Apr 2013 10:36:04 +0000]
mmc: tegra: Dynamic frequency calculation

Calculate the desired frequencies for eMMC and SDIO if dynamic
frequency scaling is enabled. The algorithm determines the
frequency based on the active and idle loads measured at periodic
intervals.

The dfs stats are exposed through sysfs and the polling interval
and active load threshold values are set as user configurable
options.

Bug 1238045
Bug 1044607

Change-Id: Ic1509b07320608a53c85a2dcee533a3b0b2a9e97
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/219368
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agopower: max77665: Unregister power supply if extcon device is absent
Sumit Sharma [Wed, 10 Apr 2013 06:44:04 +0000]
power: max77665: Unregister power supply if extcon device is absent

Unregister power supply if extcon device is not found

Change-Id: I060bfdc42eb5472da12a734eafbd78a2d8d392a5
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/218115
(cherry picked from commit 46e9e2f1123fc9f9866f5a2f5a87df73d8b14000)
Reviewed-on: http://git-master/r/219267
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agovideo: tegra: dsi: Remove extra reference clks
Animesh Kishore [Tue, 2 Apr 2013 15:48:42 +0000]
video: tegra: dsi: Remove extra reference clks

Bug 1264864

Change-Id: Ibbe9fa0305ae100f803fcacf85efb8d4131749e3
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/215594
(cherry picked from commit 6ef62ba1400f48aadfa01c46ff2ed56d4b260ea9)
Reviewed-on: http://git-master/r/218870
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agommc: Register for device frequency scaling
Naveen Kumar Arepalli [Mon, 1 Apr 2013 08:44:58 +0000]
mmc: Register for device frequency scaling

If CONFIG_MMC_FREQ_SCALING is enabled, register for device frequency
scaling.

Bug 1044607

Change-Id: I6633f61ad3fc2dcd4c468954906b23ce0a3545fe
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/214993
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoarm: tegra: macallan: Runtime panel detection for
Vick Yu [Tue, 26 Feb 2013 08:41:00 +0000]
arm: tegra: macallan: Runtime panel detection for
 sharp 25x16.

Bug 1241867

Change-Id: I80574539c817b40bf88957da514d5c3b0a4221cc
Signed-off-by: Vick Yu <vyu@nvidia.com>
Reviewed-on: http://git-master/r/204125
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: configs: tegra11: remove LTR_558ALS config
Sachin Nikam [Fri, 12 Apr 2013 14:43:28 +0000]
arm: configs: tegra11: remove LTR_558ALS config

None of T114 platofrms has LTR_558ALS sensor so
removing it.

Change-Id: Ia2672903e59b8d49995c75283aa60b4c8afd0f79
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/218955
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: t114: Update eMMC drive strength values
Naveen Kumar Arepalli [Wed, 10 Apr 2013 06:24:55 +0000]
ARM: tegra: t114: Update eMMC drive strength values

Set eMMC pull up value to 2 on dalmore, pluto, roth
and macallan

Bug 1172577

Change-Id: I7674208b6acfd00cd7ea117e86a034c30f10e697
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/218111
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: dc: Log display-on time via uS timer
Kamal Kannan Balagopalan [Wed, 10 Apr 2013 00:39:15 +0000]
video: tegra: dc: Log display-on time via uS timer

Bug 1252226

Change-Id: I0c7486813c6682a12d79fdfcddc4a47799794ab6
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/217940
Reviewed-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Li Li (SW-TEGRA) <lli5@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: Sample uS timer to measure LP resume
Kamal Kannan Balagopalan [Tue, 9 Apr 2013 18:35:56 +0000]
ARM: Tegra: Sample uS timer to measure LP resume

Add framework to log microsecond timer for measuring suspend/deep-sleep
resume times from power-on to display-on

Bug 1252226

Change-Id: I1d8c71651648ac8d2dc04ce8315e6ff5d30d1995
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/217939
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: config: enable broadcom wifi drivers
Om Prakash Singh [Tue, 26 Mar 2013 11:04:20 +0000]
ARM: tegra: config: enable broadcom wifi drivers

enable bcmdhd driver build for bcm43241 and bcm43341 wifi chip

Bug 1247033

Change-Id: I77172874ed214c73026b8de40ba16c470d2dafd4
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/201358
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agonet: wireless: bcmdhd: add makefile for different chip
Om Prakash Singh [Wed, 6 Mar 2013 12:43:27 +0000]
net: wireless: bcmdhd: add makefile for different chip

Different broadcom chip need different configuration of bcmdhd
driver. Add seperate makefile for bcm43341 and bcm43241 with
chip specific configuration
Sym-link bcmdhd driver source for bcm43341 and bcm43241

Bug 1247033

Change-Id: If06076f8769d0dbd4ed74bef7fa108c34cd9c4f8
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/203280
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: wireless: bcmdhd update 1.28.28.1 from broadcom
Om Prakash Singh [Thu, 21 Mar 2013 07:57:36 +0000]
net: wireless: bcmdhd update 1.28.28.1 from broadcom

Bug 1247033

Change-Id: Ie2f90bdf5bc582c04d2062d60a368e00b8e68b00
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/211656
(cherry picked from commit fa8e327ced8ab144fa4e6a4ff969a5a6e518448e)
Reviewed-on: http://git-master/r/211594
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agobcmdhd: use kthread_run instead of kernel_thread
Nitin Bindal [Fri, 8 Mar 2013 09:45:47 +0000]
bcmdhd: use kthread_run instead of kernel_thread

kernel_thread is deprecated and sometimes it fails.

Bug 1242544

Change-Id: I3751c12aad2661998dcbc1ae1e305f5f2ecf355e
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/206996
(cherry picked from commit 490584489acde7046744c5863df30473aaa20336)
Reviewed-on: http://git-master/r/206706
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: xhci: tegra: Add resume recovery delay of 10ms
Ajay Gupta [Thu, 11 Apr 2013 21:49:02 +0000]
usb: xhci: tegra: Add resume recovery delay of 10ms

This is needed as per usb2.0 spec section 9.2.6.2

Bug 1261769
Bug 1267127

Change-Id: Ib6c485ec93f478b88b48979a0182b3e702e7e49b
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/218672
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: tegratab: Enable prepower_wifi
Harry Hong [Thu, 11 Apr 2013 04:37:52 +0000]
ARM: tegra: tegratab: Enable prepower_wifi

bug 1270112

Change-Id: Ia75ccf8c4345214170b3fc461dc069b4e4813548
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/218486
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoextcon: max77665: Update cable status in resume
Mallikarjun Kasoju [Wed, 10 Apr 2013 14:44:11 +0000]
extcon: max77665: Update cable status in resume

Update cable status in resume

bug 1266947

Change-Id: I33d2a371d7db5082cc4838309761ad6307b48408
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/218254
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agonet: wireless: bcmdhd: configure driver for low latency
Om Prakash Singh [Fri, 29 Mar 2013 08:00:04 +0000]
net: wireless: bcmdhd: configure driver for low latency

Bug 1258426
Bug 1262099

Change-Id: I0a2fd3a1a7306e8c762a96c47582a4511cd5249a
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/214422
(cherry picked from commit b14a0b33e2ccd6b90dd1d47c6597dae4b5cef929)
Reviewed-on: http://git-master/r/217248
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet:wireless:bcmdhd: roam_off, disable block ack for UP5 and UP7
Kyeong Baek Kim [Fri, 22 Mar 2013 23:19:48 +0000]
net:wireless:bcmdhd: roam_off, disable block ack for UP5 and UP7

Bug 1258426

Change-Id: I288a0e1dd59c0fb1a8d4d96b90dee8003a1f34a9
Signed-off-by: Kyeong Baek Kim <kyeongk@nvidia.com>
Reviewed-on: http://git-master/r/213363
(cherry picked from commit c40024936ef8c85da1ae75bf5b0e53ac631cdfce)
Reviewed-on: http://git-master/r/217247
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agobcmdhd: fix race condition between p2p interface removal and disconnect
Narayan Reddy [Thu, 21 Feb 2013 09:13:17 +0000]
bcmdhd: fix race condition between p2p interface removal and disconnect

When supplicant disconnect P2P link, it calls
wl_cfg80211_disconnect and removes p2p interface(netdevice).
There can be race condition since supplicant remove interface
without waiting for disconnected event. In most cases, disconnection
event is processed before deleting interface. But if interface
is removed before disconnection event is handled, it make crash.

wait_for_completion_timeout() and complete() api takes care of above,
but there is a problem, since signal by complete() is accumulative.
Sometimes, previous disconnect event calls complete() and it
unblock next wait_for_completion_timeout() right away.

Bug 1237588

Change-Id: I2937a55b2aced668e0c3f5c2285aad0c7a7cc0bf
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/202882
(cherry picked from commit ac95237f65ed5bead2009f476c78f83146f4b9e2)
Reviewed-on: http://git-master/r/217246
Reviewed-by: Om Prakash Singh <omp@nvidia.com>
Tested-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: dalmore: Enable power_off_rail
Ken Chang [Tue, 19 Mar 2013 09:40:40 +0000]
ARM: tegra: dalmore: Enable power_off_rail

Turn off sdhci rails for SD card before rebooting the device.

Bug 1222606
Bug 1242658

Change-Id: I30993af9c46fc6edc8190f91ea7b9b1b28aa8641
Signed-off-by: Ken Chang <kenc@nvidia.com>
(cherry picked from commit 3f04f2123ebc3f1cbbb88cf80585d3497c53d885)
Reviewed-on: http://git-master/r/210749
Reviewed-on: http://git-master/r/215416
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agodrivers: misc: therm_est: Add timer trip support
Jinyoung Park [Fri, 29 Mar 2013 16:48:57 +0000]
drivers: misc: therm_est: Add timer trip support

Timer trip provides a way to change trip temp dynamically based on timestamp
when the trip is enabled.
- Timer trip can be various numbers on a trip.
- If the trip is enabled, then timer will be started with time_after delay
  in the corresponding timer trip. After the timer expires, trip_temp and
  hysteresis in the corresponding timer trip will be used to trip_temp for
  the trip.
- When the timer has expired, index of timer trip will be increased a step
  and then start the timer with time_after delay in newly indexed timer trip.
- When temp is below trip temp, index of timer trip will be decreased a step
  and then stop the timer and start the timer with time_after delay in newly
  indexed timer trip.
- The timer will be stopped if there is no more next timer trip on the trip,
  or the trip is disabled.

This change is based on http://git-master/r/198853 which is the timer
trip on Rel-16. The difference between two changes is that this change
can be used timer trip on multiple trip points, but the previous change
on Rel-16 can be used timer trip on only a trip point.

Bug 1233363
Bug 1236444

Change-Id: I999f496862fe131e4209b25b308f2223ac7cc350
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/214612
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agommc: tegra: Execute tuning for multiple frequencies
Naveen Kumar Arepalli [Wed, 13 Mar 2013 12:46:06 +0000]
mmc: tegra: Execute tuning for multiple frequencies

Execute tuning for multiple frequencies to save the
best tap values at each frequency

Bug 1238045
Bug 1044607

Change-Id: Ia8a74d9a63d73f10470c9675de868f5652cfbb8d
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/208822
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: build edp table with volt-temp constraints
Diwakar Tundlam [Fri, 12 Apr 2013 00:28:54 +0000]
ARM: tegra: build edp table with volt-temp constraints

Some chips must be constrained to run at a reduced maximum voltage
above certain temperature threshold. Added code for this constraint be
configured on a per SKU basis.

Bug 1270003
Bug 1270570

Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>

Change-Id: Ic2e6f9406712d276ab9af92f89e98bd92972a5f6
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/218723
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: macallan: fix camera power rails on E1569
Kerwin Wan [Wed, 10 Apr 2013 05:23:35 +0000]
arm: tegra: macallan: fix camera power rails on E1569

The focuser power rail has been moved from ldo7 to ldo5
on macallan E1569.

Change-Id: I83b48c6b68699c108cbfe626cdbd299575d6c426
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/218094
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegratab: enable MT9M114(AS1040) config
kkim [Tue, 9 Apr 2013 06:00:15 +0000]
ARM: tegratab: enable MT9M114(AS1040) config

Bug 1255019

Change-Id: Ic40443cfdb2037c8b09242d27cc90b00ca5849ec
Signed-off-by: kkim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/217661
Reviewed-by: Jake Park <jakep@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Kim <pekim@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: macallan: enable OTG ID pin detect through PMIC
Yunfan Zhang [Thu, 28 Mar 2013 07:58:26 +0000]
ARM: tegra: macallan: enable OTG ID pin detect through PMIC

Bug 1256755

Change-Id: I86fabdd6da4481cf7365aa0e47fd086817cb9d35
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/213874
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: usb: fix compile error with modular build
Ajay Gupta [Wed, 10 Apr 2013 17:06:52 +0000]
ARM: tegra: usb: fix compile error with modular build

Fixes below error while building xusb as module.
ERROR: "utmi_phy_iddq_override" [drivers/usb/host/xhci-hcd.ko] undefined!

Change-Id: I30ccb577b33f46cc529ec09fd7506b4e13475cf8
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/218605
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: cpuquiet: make no_lp = -1 always force cluster switch
Peter Boonstoppel [Fri, 5 Apr 2013 23:38:37 +0000]
ARM: tegra: cpuquiet: make no_lp = -1 always force cluster switch

When setting the no_lp sysfs node to -1 the system would attempt to
switch to the LP cluster. This can fail if the frequency or the number
of online cores are too high.

This change ensure the frequency and number of online cores are first
brought down, such that a cluster switch on no_lp = -1 always
succeeds.

Bug 1247636
Bug 1253920

Change-Id: If6af671e8defdfc8172e8d9356ddf03d54bae98d
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/217033
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agousb: xhci: tegra: save restore dfe_cntl and ctle
Ajay Gupta [Sat, 9 Mar 2013 01:19:34 +0000]
usb: xhci: tegra: save restore dfe_cntl and ctle

This is needed as per updated PG.

Bug 1247235

Change-Id: I29ef5d11e92175481bf9e091fbd5ed01e8a6a86b
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/217015
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>

6 years agoinput: misc: cm3217: Add cm3217 device tree support
Joshua Cha [Wed, 27 Mar 2013 08:49:18 +0000]
input: misc: cm3217: Add cm3217 device tree support

Add device tree based initialization support for Capella cm3217 light sensor.

Bug 1173064
Bug 1260291

Change-Id: Ib3a6b3cf988b3a52dec57b53b28cc2b403baedb0
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/214930
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoRevert "ARM: tegra114: config: enable kernel memcpy optimization"
Soumen Kumar Dey [Tue, 9 Apr 2013 12:31:56 +0000]
Revert "ARM: tegra114: config: enable kernel memcpy optimization"

This reverts commit b13b0d6c8a6c04d96d5040568e6d1dd3665ef69e.

bug 1268485

Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
Change-Id: I7e7928b76163849eccb32d4f29a9bc0abeca3f9a
Reviewed-on: http://git-master/r/217839
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agotty: serial: tegra: Support for IrDA loopback test
Ramalingam C [Thu, 21 Feb 2013 14:11:56 +0000]
tty: serial: tegra: Support for IrDA loopback test

Introduces a debugfs entry to support IrDA loopback test.

Bug 1227962

Change-Id: Iab1576fadae2f148b76e44758f55ac094e02148e
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/202952
(cherry picked from commit 5bd0bf3522493544d8e518e39bf39e6fd4850f18)
Reviewed-on: http://git-master/r/216395
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: Use rcuidle trace in idle
Prashant Gaikwad [Wed, 10 Apr 2013 06:34:25 +0000]
arm: tegra: Use rcuidle trace in idle

Change-Id: I8a05e20702a30b9afb92056949ace68499692f97
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/218114
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: mm: Fix merge issue with 3.4.35
Prashant Gaikwad [Fri, 5 Apr 2013 13:24:51 +0000]
arm: mm: Fix merge issue with 3.4.35

Change-Id: I43f2a3e267307e532eeb109714f53386213193b4
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/216913
(cherry picked from commit 87a811d83af81872fa0e98a5184cb4729a4abd78)
Reviewed-on: http://git-master/r/218138
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agommc:sdhci:reduce level of '512 byte block' warning
Naveen Kumar S [Wed, 30 Jan 2013 04:05:50 +0000]
mmc:sdhci:reduce level of '512 byte block' warning

Reduced severity of the message informing usage of 512 bytes block size
from pr_warning to pr_info.

Bug 1166542

Change-Id: Ibc49bfad7eb5d70e2baff76af68f0462371489e8
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/195402
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agovideo: tegra: host: change slope to fixed point
Jihoon Bang [Thu, 28 Mar 2013 01:07:28 +0000]
video: tegra: host: change slope to fixed point

In 3D dvfs, slope and dip_slope is small number and
it can become less than zero. To prevent slope from being zero,
change slope type from int to fixed point.

Bug 1246180

Change-Id: I86186cf0516cddac38e88c1c95b27be967061726
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/213768
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoi2c: tegra: change the DT compatible string
Jake Park [Wed, 10 Apr 2013 10:05:36 +0000]
i2c: tegra: change the DT compatible string

Change the compatible string to support DT for T114 tegra-i2c.

Bug 1255103
Bug 1260291
Bug 1260300

Change-Id: I87446382909b395dce621b12b8358f485b7e046d
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/218183
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoALSA: hda: Cancel delayed work during suspend
Rahul Mittal [Tue, 9 Apr 2013 14:17:21 +0000]
ALSA: hda: Cancel delayed work during suspend

Register hda codec suspend callback which does
cancel_delayed_work_sync() during suspend

Bug 1266206

Change-Id: Ie3f17156ebf0f648f4db1cfa2bfb0081bd4b0ed7
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/217860
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarch: arm: tegra: Move DTV resources into mach
Adam Jiang [Mon, 8 Apr 2013 07:29:06 +0000]
arch: arm: tegra: Move DTV resources into mach

For management of the diversity on register definitions of DTV module,
move those definitions into mach/dtv.h.

fix Bug 1258577

Change-Id: I6d5ad063ba3ed44fb7ef6313f33946e261ad7f5b
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/217592
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarch: arm: Add DTV device for 11x chips
Adam Jiang [Mon, 8 Apr 2013 07:21:48 +0000]
arch: arm: Add DTV device for 11x chips

Add interrupt number, iomap and other resources for DTV devices which
should be enabled on 11x Tegra chips.

fix Bug 1258577

Change-Id: Id2344f5a52fbb7dd479882baf83169e0932dadcf
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/217591
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegratab: change platform data for ov5693
Jake Park [Mon, 8 Apr 2013 05:51:07 +0000]
arm: tegratab: change platform data for ov5693

Bug 1255103

Change the platform data to work ov5693 sensor properly.
1. Change vcm vdd regulator name
2. Change reset pin for ov5693
3. Move gpio_request/free from on/off to probe/release

Change-Id: If06d0e89608101310f26079af1b49752c29e646f
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/217257
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karl Kim <kkim@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Alvin Park <apark@nvidia.com>

6 years agoarm: tegra: free bootloader framebuffer correctly
wazhu [Mon, 8 Apr 2013 01:41:29 +0000]
arm: tegra: free bootloader framebuffer correctly

Release bootloader framebuffer back to kernel page allocator.

Bug 1265336

Change-Id: Ib7bee570d5d07e5a1344c10679c6ba813eb4f387
Signed-off-by: wazhu <wazhu@nvidia.com>
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/217170
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoRevert "xhci: tegra: WAR for utmipll in IDDQ mode"
joyw [Mon, 8 Apr 2013 02:45:07 +0000]
Revert "xhci: tegra: WAR for utmipll in IDDQ mode"

This reverts commit 3b3938ddab5560b1e80bb44ff24a1ce6513293bc.

Because usb3 and usb2 use the sharing api to do bias pad
control now, we can remove this workaround.

Bug 1255097

Change-Id: If52fb5ca072be8b1272a249e88d6dffc9685a6e9
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/217167
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agomisc: nct1008: Add new suspend mode for Tegra LP1
Daniel Solomon [Thu, 4 Apr 2013 00:53:12 +0000]
misc: nct1008: Add new suspend mode for Tegra LP1

For Tegra devices, it is desirable to keep the NCT1008/72
device awake during some suspend states.

Add new "suspend mode" to support this feature, if
CONFIG_TEGRA_LP1_LOW_COREVOLTAGE is set. Required
parameters are passed in through board file data.

Bug 1261915

Change-Id: Ibae7e6a661d817c0cc514373b934665d68d063b7
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/216368
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: Add LP1 temp-based wakeup params
Daniel Solomon [Tue, 2 Apr 2013 22:55:44 +0000]
ARM: tegra: Add LP1 temp-based wakeup params

Add parameters to nct1008_pdata:
- suspend_ext_limit_hi/_lo: limits of allowed
temperature during suspend, outside of which an
interrupt is triggered
- suspend_with_wakeup: function pointer to check for
desired NCT suspend type. For Tegra, this function
returns true if suspend mode is LP1.

Currently this functionality is only added to Pluto.

Bug 1261915

Change-Id: I190721a42ee1e06961368f5c6f7274aa182fd49d
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/216366
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agomisc: nct1008: Add susupend wakeup params
Daniel Solomon [Tue, 2 Apr 2013 22:51:55 +0000]
misc: nct1008: Add susupend wakeup params

NCT1008/72 devices can be used to wake up the system
for certain thermal events. Add parameters to the platform
data to specify whether this wakeup functionality is
supported, and, if so, what temperature limits should
be used to trigger a wakeup.

Bug 1261915

Change-Id: I708805dafa1669c117e2d1ab7f22fe6afd3f3d8b
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/216365
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: beaver: no powermon device in beaver
Bibek Basu [Mon, 1 Apr 2013 07:04:21 +0000]
ARM: tegra: beaver: no powermon device in beaver

Beaver board does not have powermon, so registering for
those device adds to kernel console error logs and boot
time. This patch does not registers powermon devices for
beaver

Bug 1220745

Change-Id: Ie897d0704e05d40f41a473906752d26ef11364be
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/214958
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agommc: sdhci: Support MMC freq scaling governor
Pavan Kunapuli [Thu, 4 Apr 2013 12:19:28 +0000]
mmc: sdhci: Support MMC freq scaling governor

Added the functions to be used for determining the device frequency
when mmc frequency is enabled. An optional callback is added to be
used by the platform drivers for custom algorithms.

Bug 1238045
Bug 1044607

Change-Id: I6ef56ec4dbdf35da4deef1a09536b9f77a1b7a47
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/213619
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agommc: sdio: Register for device frequency scaling
Pavan Kunapuli [Thu, 4 Apr 2013 12:22:31 +0000]
mmc: sdio: Register for device frequency scaling

If CONFIG_MMC_FREQ_SCALING is enabled, register for device frequency
scaling.

Bug 1238045

Change-Id: I11bb807a4658246b18fa41b4e59c63271c5c00f0
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/213013
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agommc: core: Dynamic freq scaling for SD,MMC,SDIO
Pavan Kunapuli [Thu, 4 Apr 2013 12:15:52 +0000]
mmc: core: Dynamic freq scaling for SD,MMC,SDIO

Added support for dynamic frequency scaling of SD,MMC,SDIO devices.
The device is registered with devfreq framework after enumeration if
CONFIG_MMC_FREQ_SCALING is enabled.

MMC frequency governor is added to dynamically scale the frequency.
The governor doesn't use central polling but schedules a work to poll
the status of the device periodically. Optional callbacks are provided
to have custom algorithms for determining the frequency.

Bug 1238045
Bug 1044607

Change-Id: Ic7f5669c784afa759ad52bf8373011838a76c01c
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/213012
GVS: Gerrit_Virtual_Submit
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>