6 years agoThermal: Allow first cooling device update
Alex Frid [Fri, 28 Dec 2012 02:17:29 +0000]
Thermal: Allow first cooling device update

To allow first update of cooling device state during registration,
initialized "updated" device field as "false" (instead of "true").

Change-Id: Ie52f2c544f9351b2977578ca6a1af69e8affaea3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/174576
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: dvfs: Add core rail cooling device
Alex Frid [Thu, 27 Dec 2012 22:40:03 +0000]
ARM: tegra11: dvfs: Add core rail cooling device

Implemented core rail cooling device to limit minimum core voltage
at cold temperature.

Bug 1177204

Change-Id: Icfc4144f6124ca2a471bd0637106262be46fce9a
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/174549
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: dvfs: Add core rail thermal trip-point
Alex Frid [Thu, 27 Dec 2012 20:42:33 +0000]
ARM: tegra11: dvfs: Add core rail thermal trip-point

Added core rail thermal trip-point necessary to limit minimum core
voltage at cold temperature. The respective cooling device has not
been implemented, yet.

Bug 1177204

Change-Id: I15235c9bc1a4184f0ddbde256e47080c359a0566
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/174548
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: pluto: Add MAX8331 backlight EDP platform data
Chaitanya Bandi [Wed, 26 Dec 2012 09:01:22 +0000]
arm: tegra: pluto: Add MAX8331 backlight EDP platform data

Added plaform data for MAX8831 backlight EDP

Bug 1159966

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

6 years agobacklight: max8831: Add support for EDP
Chaitanya Bandi [Wed, 26 Dec 2012 08:59:08 +0000]
backlight: max8831: Add support for EDP

Added EDP support for MAX8831 backlight chip

Bug 1159966

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

6 years agoi2c: tegra: Queue a write and read together
Chaitanya Bandi [Fri, 23 Nov 2012 11:07:28 +0000]
i2c: tegra: Queue a write and read together

A write transaction followed by a read transaction
can be programmed at one go if the write size is less
than 8 bytes. This way clock stretching at such a write
transaction done otherwise (programming one after the other)
can be reduced significantly.

Bug 1178302

Change-Id: I5ded49a55b5a2e224ed17d07850ee660d280bed2
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/165908
(cherry picked from commit 2eee450bfb2ca792dca72310dc5bafd044d6ed2e)
Reviewed-on: http://git-master/r/173605
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomisc: nct1008: Fix nct1008 reading negative on suspend resume
Diwakar Tundlam [Tue, 18 Dec 2012 23:43:32 +0000]
misc: nct1008: Fix nct1008 reading negative on suspend resume

Do not save standby state in saved config to avoid some unknown race
condition that corrupts it on suspend and resume leading to improper
range setting and negative temperature readings.

Bug 1202277

Change-Id: I043b6c66e6113008756425a68b0e8ffbe95d0cab
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/172516
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agomfd: max8907c: Use dev_pm_ops for suspend/resume
Chaitanya Bandi [Wed, 26 Dec 2012 11:45:40 +0000]
mfd: max8907c: Use dev_pm_ops for suspend/resume

Modified suspend/resume of max8907c to use dev_pm_ops
instead of using I2C client driver's suspend/resume.

Bug 1166544

Change-Id: Idb562b4ffc909690f219c1ac9cfc7d45201de629
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/174281
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomisc: nct1008: Use dev_pm_ops for suspend/resume
Chaitanya Bandi [Wed, 26 Dec 2012 11:29:32 +0000]
misc: nct1008: Use dev_pm_ops for suspend/resume

Modified suspend/resume of nct1008 to use dev_pm_ops
instead of using I2C client driver's suspend/resume.

Bug 1166544

Change-Id: Ic96630b3eafc6056ded9fdf43c8283a7e1617cb0
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/174275
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomisc: apds9802als: Use dev_pm_ops for suspend/resume
Chaitanya Bandi [Wed, 26 Dec 2012 11:27:58 +0000]
misc: apds9802als: Use dev_pm_ops for suspend/resume

Modified suspend/resume of apds9802als to use dev_pm_ops
instead of using I2C client driver's suspend/resume.

Bug 1166544

Change-Id: I1eb69cac3323cd97ca3446d1b5b6ad3bb0b67aeb
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/174274
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomfd: ricoh583: Use dev_pm_ops for suspend/resume
Chaitanya Bandi [Wed, 26 Dec 2012 11:27:16 +0000]
mfd: ricoh583: Use dev_pm_ops for suspend/resume

Modified suspend/resume of ricoh583 to use dev_pm_ops
instead of using I2C client driver's suspend/resume.

Bug 1166544

Change-Id: I5b7659fc4c061df58607841a7c249d0dec98aecd
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/174273
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomfd: tps6591x: Use dev_pm_ops for suspend/resume
Chaitanya Bandi [Wed, 26 Dec 2012 11:24:08 +0000]
mfd: tps6591x: Use dev_pm_ops for suspend/resume

Modified suspend/resume of tps6591x to use dev_pm_ops
instead of using I2C client driver's suspend/resume.

Bug 1166544

Change-Id: Ibf548c4cbe35ff318e8cb8719f6f289434c04a5c
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/174272
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: KBC: support long press power key 1001SKU
aghuge [Wed, 19 Dec 2012 11:57:53 +0000]
ARM: tegra: KBC: support long press power key 1001SKU

Added support for long press power key functonality

Reviewed-on: http://git-master/r/172776
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 15d63caf7a656fb56ae9790f243c4b37c80b25b0)

Change-Id: I71be76eea1d6572c84447fd626f490fdc08da027
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/173314
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: cpu: Add interface for voltage limiting
Amit Kamath [Thu, 13 Dec 2012 11:54:15 +0000]
arm: tegra: cpu: Add interface for voltage limiting

Interface to limit the frequency as per need to limit the voltage. This
will maintain the sanity of device over extended period.

bug 1042409

Change-Id: I89ed829a8435ce34370508b9d4b21a4492826504
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/170974
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: roth: power key connected to KBC-COL0 on A01 rev board
Laxman Dewangan [Thu, 6 Dec 2012 09:52:34 +0000]
ARM: tegra: roth: power key connected to KBC-COL0 on A01 rev board

The Power key is connected to the KBC-COL0  from roth board
revision A01 onwards.

bug 1186701

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/169017
(cherry picked from commit e4b276bc4a7ae763afe15fe83bef6939a2664df6)

Change-Id: I218fb10d0e89471f3d2e2db1b37bf15832bb1a03
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/173644
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agostaging: iio: light: isl29028: implement shutdown functionality
Sri Krishna chowdary [Fri, 21 Dec 2012 07:02:31 +0000]
staging: iio: light: isl29028: implement shutdown functionality

Bug 1203781

Change-Id: I95cc4b2431a11dcb7dce8f982296b1f9a39e4b62
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/173149
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agostaging: iio: light: isl29028: add suspend/resume functionality
Sri Krishna chowdary [Mon, 24 Dec 2012 12:19:56 +0000]
staging: iio: light: isl29028: add suspend/resume functionality

Change-Id: Ib6c352174833860b21d9ae5aa89469b68688c9ab
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/174130
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoinput: misc: cm3218: ensure device's initial state
Sri Krishna chowdary [Sat, 22 Dec 2012 06:23:02 +0000]
input: misc: cm3218: ensure device's initial state

Bug 1198671

Change-Id: Id1a9180c31d0e44b2476fc43d2fd650a90683c5b
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/173844
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prem Sasidharan <psasidharan@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agostaging: iio: light: isl29028: enable regulator
Sri Krishna chowdary [Wed, 26 Dec 2012 08:23:33 +0000]
staging: iio: light: isl29028: enable regulator

Bug 1181726

Change-Id: I65639ec6d246aa6b9162dd7f54a9ca7357256e88
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/173075
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra: pluto: fix the pinmux setting of SPDIF_OUT
Hunk Lin [Wed, 19 Dec 2012 13:25:08 +0000]
ARM: tegra: pluto: fix the pinmux setting of SPDIF_OUT

SPDIF_OUT is used as regulator enable GPIO so it should be configured as
output.

Bug 1192480

Change-Id: I3302e39fad89145372b20466d06f5747cb35706e
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/172809
(cherry picked from commit 28a61a8362d584f985af49d52beedc936e721658)
Reviewed-on: http://git-master/r/173850
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agocpufreq:interactive:idle time excludes iowait.
Satya Popuri [Wed, 19 Dec 2012 23:20:38 +0000]
cpufreq:interactive:idle time excludes iowait.

The CPU idle time reported by scheduler stats does not include time
spent waiting on I/O anymore. This has flipped the semantics of the
io_is_busy flag in current code and causes any usecases that do file I/O
to run at higher than normal frequencies. E.g, video playback.

Bug 1205531

Change-Id: Iee0f14597272ea59a879d4bfce3ea93cf90fe57a
Signed-off-by: Satya Popuri <spopuri@nvidia.com>
Reviewed-on: http://git-master/r/172931
(cherry picked from commit a7a099eeccc8b6cf0f8f7e53a877e0e6b1a020e3)
Reviewed-on: http://git-master/r/173723
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: only do clusterswitching in 1 CPU mode
Peter De Schrijver [Tue, 18 Dec 2012 14:04:36 +0000]
ARM: tegra: only do clusterswitching in 1 CPU mode

Only consider clusterswitching when there is a single CPU online.
This is done by ignoring frequency changes when there are more cores
online and registering a notifier to immediately switch to the slow
cluster if there is only 1 CPU online and the frequency is below
idle_bottom_freq.

bug 1178947
bug 1202877

Change-Id: I1244f866de1d32c268d36c835cd90d9c6cba1481
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/172346
(cherry picked from commit 309a2860fa6784d7e35ee114cf061599b19c4d91)
Reviewed-on: http://git-master/r/173718
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agostaging: iio: light: isl29028: code cleanup
Sri Krishna chowdary [Fri, 21 Dec 2012 06:52:01 +0000]
staging: iio: light: isl29028: code cleanup

Rename isl28018 functions to isl29028.
Get isl29028_chip properly and remove it where not needed.
Change status of device only when needed.

Change-Id: I3fdf901aa9f2296e6d5736eb14bcaea5c4522686
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/173553
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoaudio:Add support to configure NXP based on In-hand/On-desk mode and Volume Control
Vinod Subbarayalu [Fri, 21 Dec 2012 01:25:29 +0000]
audio:Add support to configure NXP based on In-hand/On-desk mode and Volume Control

Change-Id: I7f0630a8fa35687714d9f5bf2fbb0976c6b969a4
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/173278
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agomisc: bluedroid_pm: add wake_lock support
Nagarjuna Kristam [Thu, 20 Dec 2012 16:21:27 +0000]
misc: bluedroid_pm: add wake_lock support

Use wake locks when bluetooth communication is on-going to dis-allow
system suspend

Bug 1205772

Change-Id: I57d4286ef6a7ae7d246bd0cbd53db68afa832827
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/173177
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoasoc: tegra: cs42l73: Add earpiece DAPM support
Rahul Mittal [Wed, 12 Dec 2012 14:27:03 +0000]
asoc: tegra: cs42l73: Add earpiece DAPM support

Add DAPM widget and audio map for earpiece
Bug 1179527

Change-Id: I27b588e21bb9beb0bf58966195ba94615c907f3e
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/170511
(cherry picked from commit 6a83f7effeebb9f43aa1deef10f79911ee36ca1c)
Reviewed-on: http://git-master/r/172829
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agommc: tegra: Enable emmc sleep mode support
Pavan Kunapuli [Tue, 18 Dec 2012 12:56:47 +0000]
mmc: tegra: Enable emmc sleep mode support

Enabling eMMC sleep mode support to reduce
suspend/resume latencies.

Bug 1182929

Change-Id: If7b0cc2cd8f12ccf66e441927930737a1b89f7fa
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/172315
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: config: enable bcm2079x nfc
Rakesh Goyal [Wed, 19 Dec 2012 02:25:09 +0000]
ARM: config: enable bcm2079x nfc

Bug 1190304

Change-Id: Ibd548d55e6fb71cf09796c3d794c6e1ac9eeba99
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/172579
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: phy:remove turning off PMC pad detector
Rakesh Bodla [Fri, 21 Dec 2012 10:40:57 +0000]
ARM: tegra: phy:remove turning off PMC pad detector

Remove the turning off the PMC pad detector
for USB port 3. This is not needed and it is
overriding the neccessary values which are
already programmed.

Bug 1181571

Change-Id: I20e86188319b71972905d699e43f80f1c3dff2c1
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/173612
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agonfc: correct indentation
Rakesh Goyal [Wed, 19 Dec 2012 11:59:22 +0000]
nfc: correct indentation

Bug 1190304

Change-Id: I2b2c8e9a86e661ccc68fade50904422da2b45b7e
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/172799
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: pluto: add support for bcm2079x nfc
Rakesh Goyal [Wed, 19 Dec 2012 02:11:29 +0000]
ARM: tegra: pluto: add support for bcm2079x nfc

wifi don't use GPIO_PX7, this GPIO is used by NFC.
correction in GPIO assignment.

Bug 1190304

Change-Id: Ic9bf654c037715e71bcc916af5d941bec0f6d8c4
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/172575
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agonfc: add support for brcm2079x driver
Anita Kar [Wed, 12 Dec 2012 08:34:58 +0000]
nfc: add support for brcm2079x driver

we have received this driver from BRCM support
website. Pushing driver in original.

Bug 1190304

Change-Id: Icbc9e56cba00330c6fb38654816f67184d465add
Signed-off-by: Anita Kar <akar@nvidia.com>
Reviewed-on: http://git-master/r/172565
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: roth: add leds-pwm
Hao Tang [Sat, 15 Dec 2012 23:35:07 +0000]
ARM: roth: add leds-pwm

Add leds-pwm on roth platform for notification feature

Bug 1198937

Change-Id: I859befd3ef4a8178668d84f2a539fcc25b776e8f
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/171671
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: config: enable leds-pwm and trigger
Hao Tang [Sat, 15 Dec 2012 23:38:24 +0000]
ARM: config: enable leds-pwm and trigger

Bug 1198937

Change-Id: I772a3c6cc6fee23a8d6b9a899e0379b72a2593d8
Signed-off-by: Hao Tang <htang@nvidia.com>
Reviewed-on: http://git-master/r/171672
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoRevert "ARM: tegra2: defconfig: make Atmel MXT touch a loadable module"
Varun Colbert [Sat, 22 Dec 2012 08:04:04 +0000]
Revert "ARM: tegra2: defconfig: make Atmel MXT touch a loadable module"

This reverts commit 6e936a208a4781ef0d1a87e636ae2912a3137c69

Change-Id: Icf161afe75876cd6b5d1649d4f782064b5c3fe68
Reviewed-on: http://git-master/r/173848
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoarm: tegra: isomgr: Init isomgr early.
Krishna Reddy [Thu, 13 Dec 2012 21:51:53 +0000]
arm: tegra: isomgr: Init isomgr early.

Init isomgr earlier than device drivers.

Reviewed-on: http://git-master/r/171166
(cherry picked from commit 50dccf843945e7b904dca748798c25729da8e717)

Change-Id: Ic8f50cef410cfcf6490d60193c4dd30eee10bfdd
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/173203
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agomedia: video: tegra: add isomgr apis
Jihoon Bang [Sat, 1 Dec 2012 03:12:48 +0000]
media: video: tegra: add isomgr apis

Add isomgr apis to request memory bandwidth to
iso manager.

Bug 1169267

Change-Id: I7829d0eed0e114854d3666a470fc500fc787e23d
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/170536
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agovideo: tegra: host: Idle before suspend
Arto Merilainen [Wed, 19 Dec 2012 10:24:27 +0000]
video: tegra: host: Idle before suspend

In certain cases the device may be deinitialized before calling
idle() for the last time which causes invalid memory accesses. This
patch reorders device suspend and device deinitialization sequences
to be performed after calling the idle function.

Bug 1195805

Change-Id: Iad553575fbea26fa325ca93d98c7278aacd7ae90
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/173590
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: roth: disable wake event for power key
Mallikarjun Kasoju [Fri, 21 Dec 2012 12:01:32 +0000]
ARM: tegra: roth: disable wake event for power key

Bug 1204048

Change-Id: I26834d4c306b1f9f90f13e5ba8bad30465867b48
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/173638
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: Dalmore: Shutdown SMPS
Prem Sasidharan [Tue, 27 Nov 2012 22:25:22 +0000]
arm: tegra: Dalmore: Shutdown SMPS

Shutdown SMPS8 in LP0

Bug 1176125

Change-Id: I78a67a74da12d3bb7e9ab375652e84f1a65491a3
Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>
Reviewed-on: http://git-master/r/166694
(cherry picked from commit ab7c246e9a608b34319c0ad2272be978653e8db7)
Reviewed-on: http://git-master/r/172566
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra2: defconfig: make Atmel MXT touch a loadable module
Jong Kim [Fri, 21 Dec 2012 19:35:23 +0000]
ARM: tegra2: defconfig: make Atmel MXT touch a loadable module

Make Atmel MXT driver a loader module.
Starting 3.4 upstream kernel, the Atmel MXT driver operates only as
a loadable module.

bug 1170148
bug 1163237

Change-Id: I26ed471cbeb14166ea63bd30d7a1f538d5505857
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/173712
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

6 years agoasoc:tegra: BT Call on Pluto
Nikesh Oswal [Wed, 5 Dec 2012 09:29:02 +0000]
asoc:tegra: BT Call on Pluto

1. Use a DAM in BT Codec path
2. Add T114 specific code for DAM programming
   in call related functions
3. Add T114 specific code for I2S programming
   in call related functions
4. Update the machine drivers to call DAM functions
   only if DAM is used in the concerned path

Bug 1171615

Change-Id: I3ba9f088117045f2465ee0485d8f1afb0ac9ec59
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/168684
(cherry picked from commit 39dca2c24579084c10644c018afbe3fe002bf422)
Reviewed-on: http://git-master/r/173584
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra11: dvfs: EDP freq granularity to follow CPU dvfs tables
Diwakar Tundlam [Fri, 21 Dec 2012 06:15:04 +0000]
ARM: tegra11: dvfs: EDP freq granularity to follow CPU dvfs tables

Bug 1170986
Bug 1161126

Change-Id: I8d83903a58d9099fec7b04fadc558244177ebbbb
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/173531
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Zu <pzu@nvidia.com>
Tested-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agomisc: bluedroid_pm: set default state to is_blocked during probe
Nagarjuna Kristam [Tue, 11 Dec 2012 11:30:16 +0000]
misc: bluedroid_pm: set default state to is_blocked during probe

is_blocked parameter assigned to '0' during probe function call.
Value '0' is blocked state and default rfkill state is un-blocked.
This causes mis-match between software and hardware states.

Bug 1195747

Change-Id: I2313cd03f44a47b1da9a9f12d1375bd68f2ddb74
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/172998
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: host: Reset 2d unit on powerup
Arto Merilainen [Wed, 19 Dec 2012 08:39:00 +0000]
video: tegra: host: Reset 2d unit on powerup

2d unit may crash if it is not resetted after bootup. This patch sets
powerup_reset flag for resetting the unit.

Bug 1194664

Change-Id: I579d65db0c9069deac457b391e58a36dc2d19f57
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/172718
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Tested-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agobcmdhd: do not use SET_NETDEV_DEV for p2p (HACK)
Mursalin Akon [Fri, 30 Nov 2012 18:43:06 +0000]
bcmdhd: do not use SET_NETDEV_DEV for p2p (HACK)

With SET_NETDEV_DEV, network manager starts
using all the p2p* interfaces. Without
SET_NETDEV_DEV, network manager is not aware
of these virtual interfaces.

Bug 1188451

Change-Id: I3e8be1d20d92cefc0d3debea09fdca445652571a
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/172440
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra: dalmore: update emc DVFS table
Ray Poudrier [Thu, 6 Dec 2012 02:33:31 +0000]
ARM: tegra: dalmore: update emc DVFS table

Bug 1189313

Change-Id: I17db9a8cfd896e2125d495d74f9fc61d4ce2729f
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/168927
(cherry picked from commit 66efdee160148f31a651a60659c64d380573c7af)
Reviewed-on: http://git-master/r/172013
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: power: Integrate core EDP 6A limit table
Alex Frid [Wed, 19 Dec 2012 23:31:33 +0000]
ARM: tegra11: power: Integrate core EDP 6A limit table

Bug 1165638

Change-Id: I3a47c9be9998918bae68b1d73b6baf729ef65fc2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172972
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agovideo: tegra: clear fb2 unspecified by bootloader
Jong Kim [Thu, 13 Dec 2012 00:20:22 +0000]
video: tegra: clear fb2 unspecified by bootloader

Clear framebuffer2 if and only if framebuffer2 is not specified by the
bootloader. If the bootloader framebuffer2 is specified, then copy the
contents to kernel framebuffer2.

bug 1175957

Change-Id: I4ac4432c1dac6a6c634ab3e6ae31628f9c64ddb4
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/170663
Reviewed-on: http://git-master/r/172869
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoarm: tegra: display: handle fbmem2 cmdline parameter
Jong Kim [Thu, 13 Dec 2012 00:07:54 +0000]
arm: tegra: display: handle fbmem2 cmdline parameter

Parse and handle fbmem2 cmdline parameter.

bug 1175957

Change-Id: I0933825371bf13782e9f4364a4dba078929ae836
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/170662
Reviewed-on: http://git-master/r/172868
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: display: provide framebuffer clear function
Jong Kim [Thu, 13 Dec 2012 00:01:39 +0000]
arm: tegra: display: provide framebuffer clear function

Add tegra_clear_framebuffer function.

bug 1175957

Change-Id: I12c249e011ecd839bbe9c5371b8be6e8a4b27bba
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/170661
Reviewed-on: http://git-master/r/172867
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agobluesleep: it should depend on Tegra HSUART
Mursalin Akon [Fri, 7 Dec 2012 22:56:51 +0000]
bluesleep: it should depend on Tegra HSUART

blueseep has code dependency on Tegra HSUART.
KConfig should reflect that dependency.

Bug 1193147

Change-Id: I66fe597f9554138c5387b2e070238cdf81b5cf32
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/169514
(cherry picked from commit 833d1fbdc19c28fe3d6ff3e409a1b53649a76b02)
Reviewed-on: http://git-master/r/172853
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agotty: serial: tegra: Export symbols for bluesleep
Mursalin Akon [Fri, 7 Dec 2012 21:33:26 +0000]
tty: serial: tegra: Export symbols for bluesleep

The bluesleep modules uses couple of symbols
which are not exported. As a result, bluesleep
cannot be built as module.

Bug 1193147

Change-Id: I47bc31cb6ff525e346df29264698031fd94032c7
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/169513
(cherry picked from commit b6b26f200cb4123b3542d49c59691f78ffa75a95)
Reviewed-on: http://git-master/r/172852
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agobcmdhd: use debug instead of error
Mursalin Akon [Sat, 1 Dec 2012 01:04:13 +0000]
bcmdhd: use debug instead of error

To print P2P MAC address use debug
(WL_DBG), instead of error (WL_ERR).

Bug 1179879

Change-Id: I5669c8054497c669105548232b522ae540121810
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/167892
(cherry picked from commit 30193205872e13fcb0b84cb0aac131e8ee8b2adc)
Reviewed-on: http://git-master/r/172851
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: usb_phy: Disable PMC when resume from LP0
Suresh Mangipudi [Wed, 19 Dec 2012 11:36:38 +0000]
ARM: tegra: usb_phy: Disable PMC when resume from LP0

Disable PMC during the resume of the device from LP0.

Bug 1201939

Change-Id: Idf76338d83b11aec5a56130af8bd795af339a8d1
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/172768
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dsi: Fix mipi_cal sw init for ganged mode
Animesh Kishore [Tue, 11 Dec 2012 11:55:19 +0000]
video: tegra: dsi: Fix mipi_cal sw init for ganged mode

Move mipi calibration init code to region common
to both dsi controllers.

Change-Id: Ie7c37307c719e146f34034d2c993aca3a79ec99e
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/172758
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agovideo: tegra: dsi: ganged mode avdd_dsi_csi regulator handling
Rakesh Iyer [Fri, 7 Dec 2012 22:34:36 +0000]
video: tegra: dsi: ganged mode avdd_dsi_csi regulator handling

Modify avdd_dsi_csi regulator handling to work with dsi in ganged mode.

Change-Id: Idee91d35519bd1a1fdf0135fba57f654b37fa2bb
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/172757
Tested-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoarm: tegra: dalmore: Runtime panel detection
Vineel Kumar Reddy Kovvuri [Thu, 6 Dec 2012 12:31:33 +0000]
arm: tegra: dalmore: Runtime panel detection

Bug 1182416

Change-Id: I362f892c32e0f3e8e32e136b3595c71b696b2bae
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/172756
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agovideo: tegra: host: Turn host1x on when reading counters
Terje Bergstrom [Wed, 19 Dec 2012 07:31:14 +0000]
video: tegra: host: Turn host1x on when reading counters

Turn host1x on when initializing and accessing the tick counter
registers.

Change-Id: I1ee41746ce7e1c603772b8fc643e58d19908f889
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/172724
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agovideo: tegra: host: Init actmon with host1x on
Terje Bergstrom [Mon, 17 Dec 2012 14:02:11 +0000]
video: tegra: host: Init actmon with host1x on

Turn on host1x when initializing actmon. Also do not suspend host1x
before deinitializing actmon.

Bug 1195805

Change-Id: I1656634734da91400d8805dbe49fb5e7da3513d1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/172723
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agonet: wireless: bcmdhd: do not allow race condition
Mursalin Akon [Thu, 6 Dec 2012 23:40:59 +0000]
net: wireless: bcmdhd: do not allow race condition

Module "init" turns off wifi chip after registering
the network interface. The chip is turned on at "open".
As "open" is allowed as soon as registration is
complete, the chip turning on and off becomaes a race
condition. We need to enforce a strict ordering between
these two operations.

Bug 1192094

Change-Id: I17e7da0252e1dd5c335722f98e9b54b0585b9690
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/172442
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agobcmdhd: Remove BCMDHD_CSCAN_ENABLE Kconfig
Mursalin Akon [Sat, 8 Dec 2012 00:30:56 +0000]
bcmdhd: Remove BCMDHD_CSCAN_ENABLE Kconfig

Reference to this Kconfig option does not exist
anywhere. Hence, remove it.

Bug 1188451
Bug 1180883
Bug 1192094

Change-Id: Icb9a34dfaf474b87ff0c491bb54f20770016087b
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/172441
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: roth: set touch reset to GPIO_PK4
Vinod Subbarayalu [Tue, 18 Dec 2012 01:22:28 +0000]
ARM: tegra: roth: set touch reset to GPIO_PK4

Change-Id: Iaccdd8df4433ff9d23763eb2a505db89e6d26c63
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/172079
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoRevert "ARM: Revert "ARM: 6878/1: fix personality flag propagation across an exec""
Aly Hirani [Thu, 6 Dec 2012 05:00:23 +0000]
Revert "ARM: Revert "ARM: 6878/1: fix personality flag propagation across an exec""

This reverts commit 25cd08cd1fb5888fe0d9bcc1e58b9d6b8378e1fd.
ADDR_COMPAT_LAYOUT is set on zygote to prevent Unity games from
crashing in K3.4. However, since the propagation of personality was
disabled, this flag never ended up being set on the fork()ed
processes.

Additionally, in order to prevent Bug 894472 to resurface with this
revert, mask out READ_IMPLIES_EXEC from being propagated to child
processes.

Bug 1023189

Change-Id: I01d5b7b3778b9e99815146bd2345bda1266e6309
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/168956
(cherry picked from commit 5598033218d268199f7c2ba336efb2c901441654)
Reviewed-on: http://git-master/r/171987
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: config: remove roth specific defconfig
Laxman Dewangan [Mon, 17 Dec 2012 09:17:22 +0000]
ARM: tegra: config: remove roth specific defconfig

The roth related configuration is also supported in
tegra11 generic defconfig and hence removing the
roth specific defconfig.

bug 1191859

Change-Id: I8c2a230273426918081cea2bd80ce0e50fe7d932
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171861
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/173017
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: config: Align tegra11 defconfig with roth defconfig
Laxman Dewangan [Mon, 17 Dec 2012 09:14:33 +0000]
ARM: tegra: config: Align tegra11 defconfig with roth defconfig

Roth kernel build is the tegra11_roth_android_defconfig.
Moving the diffs from tegra11_roth_android_defconfig to
tegra11_android_defconfig to align the generic tegra11
android defconfig for roth.

bug 1191859

Change-Id: Ie562aac2ba786d9c074ed3f0c51f37e1bd8058b1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171860
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-on: http://git-master/r/173016
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: dalmore: Set TPS51632 ops mode to change control mode
Laxman Dewangan [Fri, 14 Dec 2012 06:32:42 +0000]
ARM: tegra: dalmore: Set TPS51632 ops mode to change control mode

Change-Id: I2a3106e1fa4674c8005245bbfd64f94ad38618f5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171311
Reviewed-on: http://git-master/r/172702
Reviewed-by: Automatic_Commit_Validation_User

6 years agoregulator: tps51632: add support for change control mode
Laxman Dewangan [Fri, 14 Dec 2012 06:30:27 +0000]
regulator: tps51632: add support for change control mode

TPS51632 output can be control through register write via i2c or
through input pwm signal.
Adding support for switching the control mode to I2C or PWM
dynamically.

Change-Id: I57d72eff5c819a2b84f25ba82482bb9723c2c452
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171310
Reviewed-on: http://git-master/r/172701

6 years agoregulator: add support for changing control mode of regulator
Laxman Dewangan [Fri, 14 Dec 2012 06:27:52 +0000]
regulator: add support for changing control mode of regulator

Some of device supports to control the regulator output to
be set either through register write via I2C or through PWM.
Add supports to switch the mode dynamically.

Change-Id: I3214a6ff89f85592b1ada8e64f0946693ef4f4cc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171309
Reviewed-on: http://git-master/r/172700
Reviewed-by: Automatic_Commit_Validation_User

6 years agogpio: tegra: add tegra_is_gpio
aghuge [Tue, 4 Dec 2012 11:36:27 +0000]
gpio: tegra: add tegra_is_gpio

Added tegra_is_gpio function to
return true if pin is configured as gpio

Bug 1172972

Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/168285
(cherry picked from commit 312fc9fc203f77c2521a24991608511be0465695)

Change-Id: Ieac0af9a6ee000cbeb73e714395169799ae18e3b
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/172625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoRevert "video: tegra: nvavp: Disable powergating of VDE"
Jaiprakash Khemkar [Fri, 14 Dec 2012 08:08:09 +0000]
Revert "video: tegra: nvavp: Disable powergating of VDE"

This reverts commit 09e38b074d327b2acadbd6c5ca5c745021efb3a9.

* Below changes takes care of enabling the clocks just before
  programming the key to VDE for widevine
  http://git-master/r/#change,169007
  http://git-master/r/#change,169008

  Bug 1190582

Change-Id: Ib127760375a5f073a927e80a7735f9455be69d18
Signed-off-by: Jaiprakash Khemkar <jkhemkar@nvidia.com>
Reviewed-on: http://git-master/r/171337
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoRevert "ARM: tegra3: config: bluesleep as module for L4T"
Rohan Somvanshi [Thu, 20 Dec 2012 18:47:20 +0000]
Revert "ARM: tegra3: config: bluesleep as module for L4T"

This reverts commit c7fae8fafb503d68403c992249fb2f636fdb36ef

Change-Id: I52054f6a44d15a51fb21b5a1077e95f97b135cb2
Reviewed-on: http://git-master/r/173188
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegar11: dvfs: Update vi and cbus dvfs tables
Alex Frid [Tue, 18 Dec 2012 06:15:15 +0000]
ARM: tegar11: dvfs: Update vi and cbus dvfs tables

Bug 1161126

Change-Id: Ie9b5a6a4530d057b0e2de322f72a174b7092a75b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172155
(cherry picked from commit 41eefe6a3823e9ce68c4ba315a8eacb10960e513)
Reviewed-on: http://git-master/r/172879
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra3: config: bluesleep as module for L4T
Mursalin Akon [Fri, 7 Dec 2012 22:51:49 +0000]
ARM: tegra3: config: bluesleep as module for L4T

Bug 1193147

Change-Id: I8caef4a95dc3277655f3043c0e939744a6586747
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/169515
(cherry picked from commit 1be4eb6f907c8bcb33beb2a69b682b85461a626e)
Reviewed-on: http://git-master/r/172854
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Wed, 19 Dec 2012 07:06:07 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.03.39731

1. Support GCC for Secure services and drivers
2. Enables hazard detection timeout at TF boot time on all cores

Bug 1186790

Change-Id: I95adbb9d978ae36dc7b3550f8b3e169b95575091
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/172650
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra11: roth: Add core edp initialization
Alex Frid [Wed, 19 Dec 2012 05:09:02 +0000]
ARM: tegra11: roth: Add core edp initialization

Change-Id: I9ec440bdd1b7279ba52b5d079a7ff389d7be562e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172604
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: pluto: Add core edp initialization
Alex Frid [Wed, 19 Dec 2012 05:07:45 +0000]
ARM: tegra11: pluto: Add core edp initialization

Change-Id: I7c51acc1c2ff9cc62f699b684b41e5060828f206
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172603
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: clock: Handle unreachable EMC maximum rate
Alex Frid [Wed, 19 Dec 2012 03:12:34 +0000]
ARM: tegra11: clock: Handle unreachable EMC maximum rate

Handled the case when reaching maximum EMC rate in the EMC scaling
table requires PLLM re-scaling, but backup rate is not included into
the table. Set PLLM boot rate as maximum limit in this case.

Bug 1193281

Change-Id: I77daa9ec7c136ba5737c1024891e332277706a39
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172597
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agovideo: tegra: host: change nvhost_clk_rate_args
Jihoon Bang [Thu, 13 Dec 2012 02:45:22 +0000]
video: tegra: host: change nvhost_clk_rate_args

Add attr bit field to moduleid of nvhost_clk_rate_args
to be able to set memory bandwidth instead of memory
clock frequency in user space. If memory bandwidth is set,
then corresponding memory clock frequency is calculated and
set based on type of memory controller.

Bug 1197543

Change-Id: Iba7e9bddbd26db5c3cb34916106378ce09143deb
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/170838
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

6 years agoARM: tegra11: clock: change emc mode for mpe and msenc
Jihoon Bang [Thu, 13 Dec 2012 02:32:16 +0000]
ARM: tegra11: clock: change emc mode for mpe and msenc

Change msenc.emc and mpe.emc to have SHARED_BW
for mode. msenc or mpe client in user space will set
required memory bandwidth for module instead of emc clock
frequency because emc clock frequency can be affected
by many other clients and therefore it's impossible
for mpe or msenc to predict emc clock frequency as
SHARED_FLOOR.

Bug 1197543

Change-Id: I68237d0af75c13008cdc44fb55bc516980ebeaae
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/170837
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: config: Select PLLM scaling option
Alex Frid [Tue, 18 Dec 2012 21:48:41 +0000]
ARM: tegra11: config: Select PLLM scaling option

Bug 1188643

Change-Id: Ide5a67aaaa6b179a75c4e2edd61a03a52a1b1715
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172494
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: clock: Change SCLK high rate clock source
Alex Frid [Tue, 11 Dec 2012 22:36:35 +0000]
ARM: tegra11: clock: Change SCLK high rate clock source

Changed SCLK high rate clock source from secondary PLLM output
(pll_m_out1) to secondary PLLC output (pll_c_out1), when PLLM
scaling option is selected. Updated pll_c_out1 flags.

Bug 1188643

Change-Id: I899cf5b6d04cc27f63de7f01fb7aa78636e61ea6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172468
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Change default VI clock parent
Alex Frid [Tue, 11 Dec 2012 21:21:24 +0000]
ARM: tegra11: clock: Change default VI clock parent

Changed default VI clock parent to PLLP when PLLM scaling option
is selected (boot-loader leaves VI on PLLM, which is not allowed
in this case).

Bug 1188643

Change-Id: Ia2018855b05c9751c136211203325f5c0698aa91
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172467
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Initialize PLLC rate to 624MHz
Alex Frid [Tue, 18 Dec 2012 08:06:52 +0000]
ARM: tegra11: clock: Initialize PLLC rate to 624MHz

Bug 1188643

Change-Id: I7992aa198b66efb9c4c1bd28272857284c7fcf06
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172466
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Allow EMC rates above PLLM boot rate
Alex Frid [Sat, 15 Dec 2012 02:57:57 +0000]
ARM: tegra11: clock: Allow EMC rates above PLLM boot rate

Added kernel command line parameter "emc_max_dvfs". If this parameter
is set, and PLLM scaling is enabled, then EMC rate may exceed boot
PLLM frequency and reach maximum accepted rate in the EMC DVFS table.

Otherwise, EMC scaling rates are limited by boot PLLM rate (this is
backward compatible with current EMC maximum rate limitations).

Bug 1193281

Change-Id: I0c8b11b8866fe8b2c82dec5a344c04e7feee3c46
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172465
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Verify clock parents
Alex Frid [Tue, 11 Dec 2012 01:05:13 +0000]
ARM: tegra11: clock: Verify clock parents

Updated Tegra11 clock parents allowed policy, and verified that all
clocks are compliant with the policy after board clock initialization
is completed. Generated WARN() for any non-compliant clock.

Bug 1188643

Change-Id: Ie2258336b9ea960d4cd5fa9c27bb4d663ce993db
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172464
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Add memory PLLM scaling option
Alex Frid [Sat, 8 Dec 2012 02:29:49 +0000]
ARM: tegra11: clock: Add memory PLLM scaling option

Added an option to scale memory PLLM using PLLC as a fixed rate
backup pll, as an alternative to current policy that keeps PLLM
at fixed rate and scales PLLC. By default this new option is not
selected, and PLLC scaling is still used.

Bug 1188643

Change-Id: I35736a477bea6537d237a4c70f097bac09eaf7e5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/171524
(cherry picked from commit 46d4248584b9b1cd35dddad14d730a2bd88cbcb7)
Reviewed-on: http://git-master/r/172463
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: dvfs: Update CL-DVFS debug interface
Alex Frid [Fri, 14 Dec 2012 05:39:32 +0000]
ARM: tegra11: dvfs: Update CL-DVFS debug interface

- Added Vmin read-only entry to CL_DVFS debugfs interface:
/d/clock/dfll_cpu/cl_dvfs/vmin_mv

- Updated rate monitor to account for output scaler at low rates.

Change-Id: If51294f3ce673c471223f38931f0a642a8c53141
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/171336
(cherry picked from commit 5a43f766efb2585c2f7f0c22a75a8d769b10f0eb)
Reviewed-on: http://git-master/r/172455
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: dvfs: Add CL-DVFS cooling device
Alex Frid [Fri, 7 Dec 2012 02:44:06 +0000]
ARM: tegra11: dvfs: Add CL-DVFS cooling device

Added CL-DVFS cooling device to keep operational voltage at cold
temperature above specified minimum threshold.

Bug 1177204

Change-Id: I31240ef7be6a28f18b401b89a90d4c38e3dad103
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/169925
(cherry picked from commit 92ff1509ef92f62e7e2a26324f0b6631e25b5183)
Reviewed-on: http://git-master/r/172453
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agommc: core: enable ext_csd raw fields for eMMC4.5
Naveen Kumar Arepalli [Tue, 18 Dec 2012 09:10:58 +0000]
mmc: core: enable ext_csd raw fields for eMMC4.5

ext_csd raw filds(erase, trim, sec feature) are used for
only comparison. eMMC 4.5 will run in 1 bit mode if this
check is not removed.

Bug 1199265

Change-Id: I0d3d3e457dd48f7e2ba7aa3e95c68a4afe0dd2b1
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/172225
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: usb_phy: Fix T11x OverCurrent selection bit
Suresh Mangipudi [Mon, 17 Dec 2012 10:49:11 +0000]
ARM: tegra: usb_phy: Fix T11x OverCurrent selection bit

The OCA bit in PORTSC is being set by default, this results in PORTSC
register reporting false status for over current.
Update the programming sequence such that the over_current bit is
cleared.

Bug 1199299

Change-Id: I17b2e6c48719986a87683da9ff52ff8874d7671d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/171886
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoMerge remote-tracking branch 'origin/dev/bcmdhd_update_rel-17' into HEAD
varun colbert [Wed, 19 Dec 2012 21:21:50 +0000]
Merge remote-tracking branch 'origin/dev/bcmdhd_update_rel-17' into HEAD

6 years agoARM: tegra11: dvfs: Add 1.2V core voltage entry
Alex Frid [Thu, 13 Dec 2012 04:54:05 +0000]
ARM: tegra11: dvfs: Add 1.2V core voltage entry

Bug 1161126

Change-Id: I95703e50adff2a75e89802de31af4969fd34cba3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170866
(cherry picked from commit c68987d01c5588bd27ce0831dfc32c628afec70a)
Reviewed-on: http://git-master/r/172191
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: dvfs: Update LP CPU tables and bins
Alex Frid [Thu, 13 Dec 2012 04:32:10 +0000]
ARM: tegra11: dvfs: Update LP CPU tables and bins

Bug 1161126

Change-Id: I994cb995b9f39f5e315ed04dde722bbb31364139
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170865
(cherry picked from commit b62edb65a0a2e2df4642d21f500e85a980116c72)
Reviewed-on: http://git-master/r/172190
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: dvfs: Update SCLK, VI, Host1x tables and bins
Alex Frid [Thu, 13 Dec 2012 04:06:35 +0000]
ARM: tegra11: dvfs: Update SCLK, VI, Host1x tables and bins

Bug 1161126

Change-Id: I24793b8c8c6f1fcdc4947a24e96b1550b7963abf
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170864
(cherry picked from commit 989b4fe0341292aed608db95ffc29e1a11b234b9)
Reviewed-on: http://git-master/r/172189
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: dvfs: Update cbus modules tables and bins
Alex Frid [Thu, 13 Dec 2012 02:52:20 +0000]
ARM: tegra11: dvfs: Update cbus modules tables and bins

Bug 1161126

Change-Id: I5a34a7c1513728d487195ec3090bd20882e6c4f0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170863
(cherry picked from commit ed058db45a4019e472bc34fd502a70205f9049ca)
Reviewed-on: http://git-master/r/172178
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agonet: wireless: bcmdhd: Increase PNO wakelock to 7 sec
Dmitry Shmidt [Mon, 19 Nov 2012 19:32:32 +0000]
net: wireless: bcmdhd: Increase PNO wakelock to 7 sec

Change-Id: Ib4d51cb3ee1c117c645dda663e08a1ee5954c81c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

6 years agonet: wireless: bcmdhd: Fix dhd_txcomplete() dead lock
Franky (Zhenhui) Lin [Thu, 15 Nov 2012 18:42:47 +0000]
net: wireless: bcmdhd: Fix dhd_txcomplete() dead lock

For TX packet dhd_prot_hdrpull does nothing other than pull the prot
header from the skb. Use a NULL ifdix pointer to indicate a handling
of tx packet and skip most of the header parsing routine - we don't
need it for TX packet and we can skip extra unnecessary PROP_TXSTATUS
parsing. It will resloved dead lock case because we just exit
dhd_prot_hdrpull for TX path.

Change-Id: Ic41e1c549036baeb0fabfb0be4b8331a4bf60682
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

6 years agonet: wireless: bcmdhd: Update wireless stack pm mode
Dmitry Shmidt [Tue, 6 Nov 2012 18:53:03 +0000]
net: wireless: bcmdhd: Update wireless stack pm mode

Change-Id: Iadf400f113884001894dca7cf098f971190765d1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

6 years agonet: wireless: bcmdhd: Avoid suspend on watchdog
Dmitry Shmidt [Fri, 2 Nov 2012 16:38:42 +0000]
net: wireless: bcmdhd: Avoid suspend on watchdog

Change-Id: Ic41a8f369a2ee8b2a0084e6a1cbf6b454ff53353
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>