6 years agoARM: tegra: cpuquiet: fix race condition
Sang-Hun Lee [Tue, 5 Feb 2013 05:02:52 +0000]
ARM: tegra: cpuquiet: fix race condition

Remove race conditions around cpq_state access

Bug 1225764

Change-Id: I73f28b81d9488633294eaa04369f15993f742cb0
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/197265
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11x: Fix wake-up time adjustment
Bo Yan [Mon, 4 Feb 2013 19:09:57 +0000]
ARM: tegra11x: Fix wake-up time adjustment

The wake up time adjustment for per-core CPU power down entry has
a few issues: the logic of checking masking bit is wrong and
unnecessary, the timer function for getting context is not used
elsewhere and seems redundant, the calculating statement itself
is confusing.

This patch aims to fix issues above.

Change-Id: Id717f50005e0c32db80af786d9b1fbbe628c196a
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/197065
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

6 years agoARM: mm: Skip I-cache invalidate for Cortex-A15 boot
Bo Yan [Thu, 31 Jan 2013 18:41:44 +0000]
ARM: mm: Skip I-cache invalidate for Cortex-A15 boot

This is not required since cache is invalidated by HW in the reset
sequence. Bootloader is supposed to do the same before it hands
over control to kernel.

Change-Id: I0991de3ba1015a32f2c49a0333fd0b17a51a4f31
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/197028
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>

6 years agovideo: tegra: host: Init 3d scaling on probe
Arto Merilainen [Sat, 2 Feb 2013 08:48:40 +0000]
video: tegra: host: Init 3d scaling on probe

sysfs control nodes are created during 3d scaling initialization.
This change reorders 3d scaling initialization to occur during device
probe so that sysfs nodes are always available.

Bug 1223355
Bug 1229151

Change-Id: I626f18c5cd409050e51f51dacfd6b36bfbcf788c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/196736
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agohwmon: ina3221: implement shutdown
Deepak Nibade [Tue, 29 Jan 2013 08:20:53 +0000]
hwmon: ina3221: implement shutdown

Bug 1225028

Change-Id: I252cfc136f5fe2c2118ae4d24d5c2ba64fb94437
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/195027
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoThermal: pid_thermal_gov: Add compensation
Jinyoung Park [Thu, 17 Jan 2013 17:19:11 +0000]
Thermal: pid_thermal_gov: Add compensation

Added compensation to get steady state transition.
And added sysfs node for compensation rate.

Bug 1200111

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

6 years agoarm: tegra: soctherm: PMC scratch register config for thermtrip
Diwakar Tundlam [Thu, 20 Dec 2012 20:56:10 +0000]
arm: tegra: soctherm: PMC scratch register config for thermtrip

Initalize PMC scratch registers with regulator PMIC I2C bus and address.
Setup parameters to do shutdown on THERMTRIP from soc_therm.

Bug 1200075

Change-Id: Ie9165febd88bd552c533e38c9cd073d8fe4f562d
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/173218
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agohwmon: ina230: add support for HPA01112
Laxman Dewangan [Tue, 5 Feb 2013 15:54:59 +0000]
hwmon: ina230: add support for HPA01112

TI HPA01112 is sw compatible with ina230. Add the module id for HPA01112.

Change-Id: If9c054d09c1fd8a2d29b363062a021ad0e99bb97
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/197499
GVS: Gerrit_Virtual_Submit

6 years agoregulator: palmas: Add ramp delay
Laxman Dewangan [Tue, 5 Feb 2013 12:28:24 +0000]
regulator: palmas: Add ramp delay

Add ramp delay configuration and handling so that when SMPS
voltage gets change, proper settling time can be handle by
driver.

bug 1195226
bug 1210989

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

6 years agoregulator: add support for ramp delay
Laxman Dewangan [Tue, 5 Feb 2013 12:26:03 +0000]
regulator: add support for ramp delay

Add support for ramp delay which can be configured:
- by passing value from constraints.
- by initialising descriptor.

Also add generic API to provide ramp delay support function.

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

6 years agoARM: tegra: fix balanced throttling behaviour
Hyungwoo Yang [Wed, 30 Jan 2013 02:42:12 +0000]
ARM: tegra: fix balanced throttling behaviour

This change enables balanced throttling to throttle
frequencies of components individually.

Reviewed-on: http://git-master/r/195368
(cherry picked from commit aa2e22edbbecf8621ab2c0d56a05c967101aae12)
Change-Id: If260229387127d29aba6bfd02cd505597f992921
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/197152
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: pluto: add min_cpu_freq platform data
Nagarjuna Kristam [Mon, 4 Feb 2013 11:10:37 +0000]
arm: tegra: pluto: add min_cpu_freq platform data

Set 102 MHz as data for min_cpu_freq platform data of bluedroid_pm driver.

Bug 1199183

Change-Id: I653d819ecd61db48ef016a0981c8e100f0cd3a56
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/196955
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agomisc: bluedroid_pm: set minimum CPU frequency
Nagarjuna Kristam [Mon, 28 Jan 2013 10:14:59 +0000]
misc: bluedroid_pm: set minimum CPU frequency

A2DP streaming uses Software SBC encoder which needs certain minimum
frequency. After system resume, system starts scaling frequency from
lowest possible frequency to required operating frequency. If
starting frequency is lower than minimum frequency required for A2DP,
it might result in audio glitches for small duration. Specifying
minimum CPU frequency required to support A2DP solves this issue.

bluedroid_pm driver will configure minimum CPU frequency if specified
in bluedroid_pm platform data.

Bug 1199183

Change-Id: Ia1763ba7803d456442b28a6e1adfe2ff87827998
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/194636
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: sdhci: Enable sd_detect_in_suspend flag
Naveen Kumar Arepalli [Tue, 29 Jan 2013 10:56:28 +0000]
ARM: tegra: sdhci: Enable sd_detect_in_suspend flag

Based on sd_detect_in_suspend flag card detect tasklet
will be called to detect sd card

Bug 1204527

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

6 years agoARM: Tegra: Macallan: Add wakeup callback
Kerwin Wan [Thu, 31 Jan 2013 13:49:21 +0000]
ARM: Tegra: Macallan: Add wakeup callback

Add macallan_wakeup_key callback to send
proper event on wake.

Bug 1220330

Change-Id: I7fe68945b68ef569a4d27a1a8db7117c5b351b51
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/196841
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: macallan: Enable sensors
hyongbink [Mon, 4 Feb 2013 03:56:27 +0000]
arm: tegra: macallan: Enable sensors

Sensors were disabled during bringup. Now register the
right sensors and enable them.

Change-Id: If94df9d0b4761e23fceeeb78eefbe945b0a256ac
Signed-off-by: hyongbink <hyongbink@nvidia.com>
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/196828
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoconfig: tegra3/11: enable ACL for tmpfs
Mursalin Akon [Fri, 1 Feb 2013 18:25:42 +0000]
config: tegra3/11: enable ACL for tmpfs

enable ACL for tmpfs to allow udev to
set extended permission.

Bug 1219372

Change-Id: Icf56cef4fdebc25dfb960694e51f40f8128a0ac8
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/196513
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agohwmon: ina230: add support for HPA02149
Laxman Dewangan [Fri, 1 Feb 2013 10:57:16 +0000]
hwmon: ina230: add support for HPA02149

The TI current/power monitor device INA230 is compatible with the
HAP02149. Add module ID for the HPA02149.

This device is also compatible with INA226 and hence adding ina226
as module-id.

In this way, this driver can regsitered with the name as "ina226" or
"ina230" or "hpa02149".

bug 1218687

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

6 years agoARM: tegra11: power: Set safe cold voltage in DFLL mode
Alex Frid [Thu, 31 Jan 2013 22:52:01 +0000]
ARM: tegra11: power: Set safe cold voltage in DFLL mode

Used regulator API to set CPU voltage at cold temperature minimum
limit if DFLL is selected as fast G CPU clock source, and

- CPU is switching to LP cluster
- on entry to system suspend

This is done since in both cases: suspend and LP cluster operations,
CPU rail is off while temperature may go down, and on exit from each
state CPU will be running on DFLL clock for some time before CL-DVFS
regulation starts.

Change-Id: I02e06a2e92f348a147693ad2b811d7bedb4e70e2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/196289
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: dvfs: Don't force CL-DVFS request entering open loop
Alex Frid [Thu, 31 Jan 2013 20:20:26 +0000]
ARM: tegra11: dvfs: Don't force CL-DVFS request entering open loop

Don't force CL-DVFS request when entering open loop (in order to
avoid unnecessary extra transaction).

Change-Id: I25955920d4d1a9d5d96007c09694a923c000e148
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/196288
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoarm: tegra: color correct 5" Sharp 1080p panel
Mitch Luban [Thu, 31 Jan 2013 02:39:27 +0000]
arm: tegra: color correct 5" Sharp 1080p panel

Enable color management for 5" Sharp 1080p panel.

Bug 1220543

Reviewed-on: http://git-master/r/195800
(cherry picked from commit a775c3639c1467598d0e7d4f2b0c37b091583911)

Change-Id: Iab79f1bb0a80b6cd3c5ad18e8cf39765af2bf807
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/196240
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoCHROMIUM: make-3.82: hack to fix differing behaviour between 3.81 and 3.82
Brian Harring [Sat, 24 Dec 2011 02:16:15 +0000]
CHROMIUM: make-3.82: hack to fix differing behaviour between 3.81 and 3.82

BUG=chromium-os:19882
TEST=emerge make-3.82 via I7d0a6e25, emerge-x86-alex chromeos-kernel

Change-Id: I6accabc10e93fe12debba42667900e4e0463cb41
Signed-off-by: Brian Harring <ferringb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/13474
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: http://git-master/r/189630
Tested-by: Andrew Chew <achew@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-on: http://git-master/r/196082

6 years agoARM: tegra11: power: Keep CPU power On when DFLL mode changing
Alex Frid [Wed, 30 Jan 2013 08:09:47 +0000]
ARM: tegra11: power: Keep CPU power On when DFLL mode changing

Don't power down fast CPU cluster when DFLL mode is changing
- during CPU clock source switch between PLL and DFLL
- during CPU cluster switch

Change-Id: I987383a39ce23a19f837eba441c59f9e6513d069
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/195789
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoaudio: Power manage Realtek codec when TFA is in use.
Vinod Subbarayalu [Wed, 16 Jan 2013 02:29:08 +0000]
audio: Power manage Realtek codec when TFA is in use.

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

6 years agoARM: tegra: thermal: Enable pid_thermal_gov as default for Tj throttling
Jinyoung Park [Thu, 31 Jan 2013 15:04:04 +0000]
ARM: tegra: thermal: Enable pid_thermal_gov as default for Tj throttling

Enable pid_thermal_gov as default thermal governor for Tj throttling.

Bug 1200111

Change-Id: I1e35039cce4fd98acd8565c24da3b156404e57af
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196029
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agomisc: nct1008: Add thermal_zone_params in struct nct1008_platform_data
Jinyoung Park [Thu, 31 Jan 2013 13:15:44 +0000]
misc: nct1008: Add thermal_zone_params in struct nct1008_platform_data

Added thermal_zone_params in struct nct1008_platform_data in order to
pass governor and binding params to nct1008 thermal zone device.

Bug 1200111

Change-Id: I5781c244d4d03ad6f448abd3a8019c4fd5fae52b
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196028
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: soctherm: Add thermal_zone_params in struct soctherm_therm
Jinyoung Park [Thu, 31 Jan 2013 13:10:36 +0000]
arm: tegra: soctherm: Add thermal_zone_params in struct soctherm_therm

Added thermal_zone_params in struct soctherm_therm in orther to set
governor and binding params to soctherm thermal zone devices.

Bug 1200111

Change-Id: I5c5177be1525dcfe15e3a07e4c8532787be12305
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196027
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoThermal: Fix binding problem when there is thermal zone params
Jinyoung Park [Thu, 31 Jan 2013 12:32:21 +0000]
Thermal: Fix binding problem when there is thermal zone params

The thermal zone params can be used to set governor to specific thermal
governor for thermal zone device. But if the thermal zone params has only
governor name without thermal bind params, then the thermal zone device
will not be binding to cooling device. Because tz->ops->bind operator is not
invoked in bind_tz() and bind_cdev() when there is thermal zone params.

Bug 1200111

Change-Id: Ieee33ea308ac554b3553c5a038979955b6579ab0
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196026
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agommc: tegra: Fix SD Hot Plug Support in LP State
Naveen Kumar Arepalli [Tue, 29 Jan 2013 10:54:57 +0000]
mmc: tegra: Fix SD Hot Plug Support in LP State

Fix SD Hot Plug Support in LP State, Card detect
tasklet is scheduled to detect sd card.

Bug 1204527

Change-Id: I688a8a4d64eeb880a542cf859eaba48878f66e35
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/192720
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agomacallan: add VBUS regulator for macallan
Hayden Du [Wed, 30 Jan 2013 05:12:41 +0000]
macallan: add VBUS regulator for macallan

bug: 1225216

Change-Id: I99f4afe841914722242b5a7d10a146ae4fc58c72
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/196746
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agopower: bq2419x: resolve mutex lock issue
Rohith Seelaboyina [Sat, 2 Feb 2013 12:40:54 +0000]
power: bq2419x: resolve mutex lock issue

resolve the issue where same mutex variable is being
used to lock twice in the driver.

Bug 1228632

Change-Id: Ibddb84820a46514a215b05592649da1ca5991a6b
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/196742
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: macallan: Move all tj dependent thermals from nct to soc_therm
Kerwin Wan [Sat, 2 Feb 2013 09:39:07 +0000]
arm: tegra: macallan:  Move all tj dependent thermals from nct to soc_therm

Raised shutdown limit for nct. Moved cpu and core edp to soctherm.

Bug 1200075

Change-Id: I09d74b3b89b53b0c2f811cf099eb90e61b58c2a1
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/196738
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: use irq name XUSB instead of USB3
Ajay Gupta [Tue, 29 Jan 2013 01:16:51 +0000]
ARM: tegra: use irq name XUSB instead of USB3

This is to avoid confusion between EHCI and XUSB as
USB3 implies ehci host controller #3

BUG 1057074

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

6 years agoasoc: tegra: aic326x: Fix build break and cleanup
Vijay Mali [Thu, 31 Jan 2013 10:32:15 +0000]
asoc: tegra: aic326x: Fix build break and cleanup

Fix build break for cardhu where DAM coefficient
programming is not supported. Add appropriate check for
compilation.
Cleanup - remove DAM shutdown sequence

Bug 1179798

Change-Id: Ia12dcbd1eb45b27d18ae2a2acb6d5554256cc7f9
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/195949
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agocrypto: tegra-se: Use proper rsa key slot
venkatajagadish [Thu, 31 Jan 2013 08:50:06 +0000]
crypto: tegra-se: Use proper rsa key slot

This change fixes the S.E time out errors while
executing RSA test

Bug 1218410

Change-Id: Icbbcdd7b3d86a259dc3ff19ebb4b3a7374135e47
Signed-off-by: venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/195912
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shravani D <shravanid@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: Turn on hw phase in for PRISM
Mitch Luban [Wed, 30 Jan 2013 23:09:31 +0000]
arm: tegra: Turn on hw phase in for PRISM

HW phase in is needed for extreme cases where flicker is
observed.

Bug 1224366

Change-Id: I84ceb5d465d7349e59c0dca3cb288f32d7d44f36
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/195722
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra11: clock: Add direct access to CPU DFLL
Alex Frid [Wed, 30 Jan 2013 01:04:19 +0000]
ARM: tegra11: clock: Add direct access to CPU DFLL

Added CPU DFLL access API for CPU idle driver to directly manipulate
DFLL rate underneath cpufreq governor, provided CPU rail is under DFLL
control.

Change-Id: I108cbffe530e8620513fb11e89707b003cb34b9d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/195399
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra_fuse: Add chip revision A02 for T114
Hoang Pham [Thu, 31 Jan 2013 19:56:58 +0000]
ARM: tegra_fuse: Add chip revision A02 for T114

Change-Id: I18ecaa707a96aa36b1e5e833b904c028c195162c
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/196116
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: mm: Remove unnecessary CMO in Cortex A15 startup
Bo Yan [Wed, 12 Dec 2012 19:18:35 +0000]
ARM: mm: Remove unnecessary CMO in Cortex A15 startup

Cortex-A15 flush L2 cache after reset, there is no need to do this
in software, if L2 is already invalidated in bootloader and
cache is disabled. For secondary startup, there is no reason to
flush L2 as well.

This change assumes the setup code is always entered as the result
of CPU reset.

Change-Id: I6d58f8b4a638b70acfb35b97c87a09266aceef41
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/170563
(cherry picked from commit 26e7a8ea22abe09852fa1ce36b6cec8dc8fc5978)
Reviewed-on: http://git-master/r/196044
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

6 years agomedia: video: tegra: update imx091 set mode print
Wei Chen [Wed, 30 Jan 2013 18:27:37 +0000]
media: video: tegra: update imx091 set mode print

enable imx091 set mode info print to help debugging

bug 1219966

Change-Id: Idc93dffef935560751f0a847e88d2f57683ababf
Signed-off-by: Wei Chen <wechen@nvidia.com>
Reviewed-on: http://git-master/r/195618
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomisc: nct1008: Apply hysteresis to only PASSIVE trip_points
Diwakar Tundlam [Thu, 31 Jan 2013 23:37:44 +0000]
misc: nct1008: Apply hysteresis to only PASSIVE trip_points

Applying hysteresis to ACTIVE trip point messes up EDP limiting.

Bug 1200202

Change-Id: Id723f2c2d094d7e1e72cee208b54afed64175c2a
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/196193
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: WAR fix for xhci_bus_suspend failed -16
joyw [Thu, 31 Jan 2013 11:17:33 +0000]
usb: xhci: WAR fix for xhci_bus_suspend failed -16

Add delay after programming host controller port status register.

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

6 years agousb: xhci: WAR fix panic in xhci_free_dev
joyw [Thu, 31 Jan 2013 10:51:25 +0000]
usb: xhci: WAR fix panic in xhci_free_dev

Avoid kernel panic in xhci_free_dev function.
Add WRAN_ON to get noticed when issue reproduced.

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

6 years agousb: core: WAR fix panic in usb_match_one_id
joyw [Thu, 31 Jan 2013 10:00:10 +0000]
usb: core: WAR fix panic in usb_match_one_id

Fixed kernel panic when LP0 wake by HS device
connected behind FS hub cum keyboard (Kensington).
Add WARN_ON to notice when reproduce again.

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

6 years agoarm: tegra: soctherm: Adjust trip_temp for hysteresis
Diwakar Tundlam [Thu, 31 Jan 2013 23:12:58 +0000]
arm: tegra: soctherm: Adjust trip_temp for hysteresis

Apply hysteresis to PASSIVE trip points to avoid deadlock when thermal
governor stops polling but temp is above sensor lower temperature
threshold. Governor deadlock leads to a dangerous unthrottled runaway
rise in temperature.

Bug 1200202
Bug 1200077

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

6 years agousb: xhci: tegra: don't disable wakeup event for unused ports
Ajay Gupta [Thu, 31 Jan 2013 03:26:06 +0000]
usb: xhci: tegra: don't disable wakeup event for unused ports

We had seen ELPG loop issue if wakeup event for unused ports are not
disabled. This seems to be due to some programming in USB2 driver which
has been fixed now so there is no need to disable wakeup event for unused
ports.

BUG 1177456

Change-Id: I6bce86cffed826ae5ea294da44334d8afdf7fd0e

Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Change-Id: I5c230adc7f729a34c096ab2d9fc463a45d0e1720
Reviewed-on: http://git-master/r/196148
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: xhci: tegra: enable regulator first before clock
Ajay Gupta [Tue, 29 Jan 2013 19:23:06 +0000]
usb: xhci: tegra: enable regulator first before clock

This fixes below errro message seen during xusb initialization

"Lock bit on pll pll_e always timeouts "

BUG 1199726

Change-Id: I26e3d70784a9109d63ff70e1b43ebfb35145e9d0
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-on: http://git-master/r/195636
Reviewed-on: http://git-master/r/196147
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoxhci: tegra: WAR for utmipll in IDDQ mode
JC Kuo [Wed, 30 Jan 2013 13:10:28 +0000]
xhci: tegra: WAR for utmipll in IDDQ mode

At resume path, clock driver (tegra11_pll_clk_init()) put utmipll in
IDDQ mode, USB 3.0 needs utmipll being carried out of IDDQ mode for
proper UTMI operation.

Bug 1220999

Change-Id: I18cfe3eed96d2dd850c9f99459f99f5d8a680449
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/196031
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoxhci: tegra: WAR for utmi bias pd bit
JC Kuo [Wed, 30 Jan 2013 07:12:10 +0000]
xhci: tegra: WAR for utmi bias pd bit

This is a workaround for utmi bias pad power down bit setting.
BIAS_PD bit of UTMIP_BIAS_CFG0 register has to be cleared if xusb
owns any of the utmi ports.

Bug 1167876

Change-Id: I0cfae12c516ec7bb10b3e13a8dc7c526c2294551
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/196024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: soctherm: mark some variables const as necessary
Diwakar Tundlam [Thu, 31 Jan 2013 08:34:00 +0000]
arm: tegra: soctherm: mark some variables const as necessary

Bug 1200077

Change-Id: Icf44e111230d5ddf861943ec19a8d9e77ed86efe
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/195907
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: soctherm: round down trip temps to sensor precision
Diwakar Tundlam [Thu, 31 Jan 2013 08:12:57 +0000]
arm: tegra: soctherm: round down trip temps to sensor precision

Emit a warning whenever forced rounding down is done during init and
when setting trip_temp via sysfs.

Bug 1200077

Change-Id: I4ded4df19adb4192d51ab3ea6872ae0c052589af
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/195898
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: clock: Don't propagate boot clock clean up
Alex Frid [Thu, 31 Jan 2013 05:27:50 +0000]
ARM: tegra11: clock: Don't propagate boot clock clean up

When disabling coupled gate clocks left on by boot-loader, but not
ref-counted during kernel initialization, do not propagate disable
operation to coupled parents.

Bug 1226948

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

6 years agoaudio: Implement tfa driver shutdown.
Vinod Subbarayalu [Thu, 31 Jan 2013 00:48:16 +0000]
audio: Implement tfa driver shutdown.

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

6 years agoARM: tegra: xusb: add more resources to xusb
JC Kuo [Fri, 14 Dec 2012 22:33:57 +0000]
ARM: tegra: xusb: add more resources to xusb

Added below required resources for xusb:
- TEGRA_XUSB_PADCTL_BASE
- TEGRA_XUSB_FPCI_BASE
- TEGRA_XUSB_IPFS_BASE

Also added names to other existing resources

Change-Id: Ida1691ef312c453991a327786bd91d40d141099f
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190496
(cherry picked from commit fb6b48f30c17e9717b3e9aa06abef0cc7fa98865)
Reviewed-on: http://git-master/r/194677
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoarm: tegra: macallan: create board file
Kerwin Wan [Mon, 14 Jan 2013 07:39:19 +0000]
arm: tegra: macallan: create board file

Create initial board files and config files for Macallan.

Bug 1216782

Change-Id: I5ccf8f79a1c29659fc518277da1a96531f48c5ba
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Signed-off-by: Hayden Du <haydend@nvidia.com>
Signed-off-by: hyongbink <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/193645
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>

6 years agomedia: tegra: as3648: modify shutdown functionality
Sri Krishna chowdary [Tue, 22 Jan 2013 09:01:29 +0000]
media: tegra: as3648: modify shutdown functionality

Shutdown functionality needs that it should wait for
any pending i2c transations and there should be no i2c transaction
after the function returns.

To turn off led, power off regulator instead of trying to write
into device registers.

Bug 1175095

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

6 years agoARM: tegra: pluto: register i2c for NFC
Rakesh Goyal [Thu, 31 Jan 2013 13:57:51 +0000]
ARM: tegra: pluto: register i2c for NFC

Bug 1227903

Change-Id: I856b6e298d7451404f676f30ab8f2dea65f23c0f
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/196011
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agopower: bq2419x: acquire mutex lock
Kunal Agrawal [Thu, 31 Jan 2013 03:47:41 +0000]
power: bq2419x: acquire mutex lock

add changes to acquire mutex lock at the start of the function.

Bug 1225027

Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Change-Id: I2a7b9cb243fa45590039be635d85f4245823baed
Reviewed-on: http://git-master/r/195821
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoInput: xpad - add ftrace logging
Vikas Jain [Wed, 30 Jan 2013 10:23:29 +0000]
Input: xpad - add ftrace logging

This will help to profile the xpad responsiveness and
overall latency in the system.

Bug 1226968

Change-Id: I20205a4a89beb4ae0d1c888eaf1e1b874e1a9772
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/195507
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: clock: Update direct access to CPU backup source
Alex Frid [Tue, 29 Jan 2013 20:49:42 +0000]
ARM: tegra11: clock: Update direct access to CPU backup source

Minimized locking calls in CPU backup source direct access API.

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

6 years agoARM: Tegra: Pluto: Update emc dvfs table
Graziano Misuraca [Tue, 29 Jan 2013 22:00:31 +0000]
ARM: Tegra: Pluto: Update emc dvfs table

Update emc dvfs table for AP40 SKU for
792/624/408/312/204/102/68/40.8/20.4/12.75
MHz support.

Bug 1189313

Change-Id: Ie59f9672faed60f00991a2453f2484ae91d8b728
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/195235
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11x: set cpu_lp2_min_residency to 1000
Richard Zhao [Mon, 21 Jan 2013 01:51:41 +0000]
ARM: tegra11x: set cpu_lp2_min_residency to 1000

cpu_lp2_min_residency set the minimal cpuidle lp2 target residency. It
can tune chances entering to lp2.

It fixes bug that lp2 consumes more power when video playback. If
cpu_lp2_min_residency is zero, it causes higher G cpu residency and
more cluster switch.

Bug 1216668

Change-Id: I7246dda75fea488b75d8f4a0a8446e2efe3b55e0
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/192702
(cherry picked from commit 12054d76a810f419d8f9cf477c76a1b38fe13e5c)
Reviewed-on: http://git-master/r/193634
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add T40S memtype emc table
Graziano Misuraca [Thu, 24 Jan 2013 01:10:42 +0000]
ARM: Tegra: Dalmore: Add T40S memtype emc table

Add a table for 1600MHz memory and check the
memtype commandline argument to determine which
to select.

Update 1866 T40S table to include 528MHz

Bug 1189313

Change-Id: I56dc8f772f7b94a1f6e1a20fd7acb7bbde02151c
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/193562
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: Roth: Disable Touch
Matt Wagner [Thu, 31 Jan 2013 19:36:55 +0000]
ARM: Tegra: Roth: Disable Touch

Remove touch initialization

Bug 1227415

Change-Id: I6dc285e925bd629baf4171f9dbd29b881dcd710e
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/196106
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: Move all tj dependent thermals from nct to soc_therm
Diwakar Tundlam [Wed, 30 Jan 2013 00:44:32 +0000]
arm: tegra: Move all tj dependent thermals from nct to soc_therm

Functions moved are vdd_cpu, core edp. Raised shutdown limit for nct.
Added two higher temps for cpu_edp to support higher soc_therm temps.

Doing this only for Dalmore and Pluto. No real changes to Roth.

Bug 1200075

Change-Id: I2b4ac4ba7cd933bd47c30ab2ad9eabb3a3da5fbe
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/195331
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add E1613 EMC DVFS table
Graziano Misuraca [Tue, 29 Jan 2013 19:20:20 +0000]
ARM: Tegra: Dalmore: Add E1613 EMC DVFS table

Bug 1179719

Change-Id: I2a26e9897d424b857e5e08ee379349c90cd4915b
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/195180
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agousb: xhci: fix Short Packet handling for isochronous
JC Kuo [Thu, 6 Dec 2012 12:16:19 +0000]
usb: xhci: fix Short Packet handling for isochronous

When Short Packet happens on a multiple-TRBs TD, xHCD needs to
calculate the exact amount of transferred data because upper layer
driver wants it. In order to achieve, xHCD has to:
1. set ISP bit for all TRBs belongs to a IN TD, and
2. set IOC bit for the last TRB of the IN TD.

Once HC detects a Short Transfer, HC will send Short Packet event for
the TRB which encountered Short Packet and also send Short Packet event
fot the last TRB which has IOC bit set.

With those two events, xHCD can calculate the exact amount of bytes which
xHC has completed for the TD. (4.10.1.1)

Bug 1158352

Change-Id: I38f04825ddc3e12f124e12a9abf05a36beb43886
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192883
(cherry picked from commit 860031e312ecd6c5b384775ae31b7729d19b82a3)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I9d41f4c8f4d029b1032c74fbe080ac4a9bdaa8bc
Reviewed-on: http://git-master/r/194698
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: add delay after PMC_USB_AO_0 program
Ajay Gupta [Wed, 16 Jan 2013 22:23:56 +0000]
usb: xhci: tegra: add delay after PMC_USB_AO_0 program

We have seen LP0 loop when system wake done using FS device connect.
Discussed with hardware team and USB2 team and this delay is needed
for D+/D- value detectors to become stable

BUG 1221008

Change-Id: If755c69013e1124b7edf22eff10f46ee054fe6c1

Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Change-Id: I5b12a2930c718b00c69015386ef8662a7a6fe109
Reviewed-on: http://git-master/r/192890
(cherry picked from commit 5d9506e2348887a689575ab3135b1d7d19581830)

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

6 years agoxhci: fix null-pointer dereference when destroying half-built segment rings
Julius Werner [Thu, 1 Nov 2012 19:47:59 +0000]
xhci: fix null-pointer dereference when destroying half-built segment rings

xhci_alloc_segments_for_ring() builds a list of xhci_segments and links
the tail to head at the end (forming a ring). When it bails out for OOM
reasons half-way through, it tries to destroy its half-built list with
xhci_free_segments_for_ring(), even though it is not a ring yet. This
causes a null-pointer dereference upon hitting the last element.

Furthermore, one of its callers (xhci_ring_alloc()) mistakenly believes
the output parameters to be valid upon this kind of OOM failure, and
calls xhci_ring_free() on them. Since the (incomplete) list/ring should
already be destroyed in that case, this would lead to a use after free.

This patch fixes those issues by having xhci_alloc_segments_for_ring()
destroy its half-built, non-circular list manually and destroying the
invalid struct xhci_ring in xhci_ring_alloc() with a plain kfree().

This patch should be backported to kernels as old as 2.6.31, that
contains the commit 0ebbab37422315a5d0cb29792271085bafdf38c0 "USB: xhci:
Ring allocation and initialization."

A separate patch will need to be developed for kernels older than 3.4,
since the ring allocation code was refactored in that kernel.

Change-Id: I4d2a860f8d4773bedc76b7c1fc1bb42b7322dbcf
Signed-off-by: Julius Werner <jwerner@chromium.org>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192889
(cherry picked from commit 98033448c22e3605fe38b4ea254c79da6da964e4)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I3e2a95488577c98188bf931bda85840c4e9d1098
Reviewed-on: http://git-master/r/194695
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxHCI: handle command after aborting the command ring
Elric Fu [Wed, 27 Jun 2012 08:55:43 +0000]
xHCI: handle command after aborting the command ring

According to xHCI spec section 4.6.1.1 and section 4.6.1.2,
after aborting a command on the command ring, xHC will
generate a command completion event with its completion
code set to Command Ring Stopped at least. If a command is
currently executing at the time of aborting a command, xHC
also generate a command completion event with its completion
code set to Command Abort. When the command ring is stopped,
software may remove, add, or rearrage Command Descriptors.

To cancel a command, software will initialize a command
descriptor for the cancel command, and add it into a
cancel_cmd_list of xhci. When the command ring is stopped,
software will find the command trbs described by command
descriptors in cancel_cmd_list and modify it to No Op
command. If software can't find the matched trbs, we can
think it had been finished.

This patch should be backported to kernels as old as 3.0, that contain
the commit 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an
assertion to check for virt_dev=0 bug." That commit papers over a NULL
pointer dereference, and this patch fixes the underlying issue that
caused the NULL pointer dereference.

Change-Id: Iacd87c59b7ec4a89a36ecb9e741b6a05c9b2939d
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192888
(cherry picked from commit e848acee24ce2530d14730a2d819ca5f92149cbf)

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

6 years agoxHCI: cancel command after command timeout
Elric Fu [Wed, 27 Jun 2012 08:31:52 +0000]
xHCI: cancel command after command timeout

The patch is used to cancel command when the command isn't
acknowledged and a timeout occurs.

This patch should be backported to kernels as old as 3.0, that contain
the commit 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an
assertion to check for virt_dev=0 bug." That commit papers over a NULL
pointer dereference, and this patch fixes the underlying issue that
caused the NULL pointer dereference.

Change-Id: If0818ee9da17afedd4e4326baf72418b609c84dc
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192887
(cherry picked from commit 22f80927cc0abc9a39c2752740b3403e0721f41d)

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

6 years agoxHCI: add aborting command ring function
Elric Fu [Wed, 27 Jun 2012 08:31:12 +0000]
xHCI: add aborting command ring function

Software have to abort command ring and cancel command
when a command is failed or hang. Otherwise, the command
ring will hang up and can't handle the others. An example
of a command that may hang is the Address Device Command,
because waiting for a SET_ADDRESS request to be acknowledged
by a USB device is outside of the xHC's ability to control.

To cancel a command, software will initialize a command
descriptor for the cancel command, and add it into a
cancel_cmd_list of xhci.

Sarah: Fixed missing newline on "Have the command ring been stopped?"
debugging statement.

This patch should be backported to kernels as old as 3.0, that contain
the commit 7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an
assertion to check for virt_dev=0 bug." That commit papers over a NULL
pointer dereference, and this patch fixes the underlying issue that
caused the NULL pointer dereference.

Change-Id: I6d008c9e56b8612393f1952473b3a50fe88b8c0a
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192886
(cherry picked from commit 16c9b4cf3e6669864671ef0410e4796ef1796581)

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

6 years agoxHCI: add cmd_ring_state
Elric Fu [Wed, 27 Jun 2012 08:30:57 +0000]
xHCI: add cmd_ring_state

Adding cmd_ring_state for command ring. It helps to verify
the current command ring state for controlling the command
ring operations.

This patch should be backported to kernels as old as 3.0.  The commit
7ed603ecf8b68ab81f4c83097d3063d43ec73bb8 "xhci: Add an assertion to
check for virt_dev=0 bug." papers over the NULL pointer dereference that
I now believe is related to a timed out Set Address command.  This (and
the four patches that follow it) contain the real fix that also allows
VIA USB 3.0 hubs to consistently re-enumerate during the plug/unplug
stress tests.

Change-Id: I50976948d2d81a73d7019b20139e93d1a84e38e5
Signed-off-by: Elric Fu <elricfu1@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Miroslav Sabljic <miroslav.sabljic@avl.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/192885
(cherry picked from commit e3a84306998accbf075697d88792cd6c1eabe435)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I8f5b60cfa1d78d5c8f6790027cd2b1847b3fa699
Reviewed-on: http://git-master/r/194690
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoxhci: Fix a logical vs bitwise AND bug
Dan Carpenter [Mon, 13 Aug 2012 16:57:03 +0000]
xhci: Fix a logical vs bitwise AND bug

The intent was to test whether the flag was set.

This patch should be backported to stable kernels as old as 3.0, since
it fixes a bug in commit e95829f474f0db3a4d940cae1423783edd966027 "xhci:
Switch PPT ports to EHCI on shutdown.", which was marked for stable.

Change-Id: I084865f97fdc38d8966b49c92eafe51d7cc660a6
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190499
(cherry picked from commit e54abee5308040fabddedae314626a5bd2f1da08)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I589666284acb505742cae7bf5d7f5ccb32252146
Reviewed-on: http://git-master/r/194689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: defconfig: adding XUSB support.
Ajay Gupta [Wed, 3 Oct 2012 01:52:08 +0000]
ARM: tegra: defconfig: adding XUSB support.

Enabled xhci and tegra xusb as builtin driver.

Change-Id: Iad38f0f9719725408bbe7cb60a5c204181543a5b
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190500
(cherry picked from commit 606b9dcc7a269b84bfcb550415e554c42f1286b6)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I3c527b57fb2b3d566772fe357bfcba4ecd19667c
Reviewed-on: http://git-master/r/194688
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: pluto: updating regulators sources for xusb
Sri Krishna chowdary [Fri, 26 Oct 2012 13:51:28 +0000]
ARM: tegra: pluto: updating regulators sources for xusb

1. Registering XUSB driver as consumer for regulator
   sources on Pluto board.

2. Updating pad parameters for XUSB ports.

Bug 1055592

Change-Id: Ibba14828cd6b85f71299f886b44a49c1c521f6f9
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190492
(cherry picked from commit 9c24a15d241251904daa032180550d750edd0c8e)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I06558edc18cd6f53fd54b4dd1063944ab2b42fac
Reviewed-on: http://git-master/r/194687
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: dalmore: updating regulators sources for xusb
Sri Krishna chowdary [Fri, 26 Oct 2012 10:28:12 +0000]
ARM: tegra: dalmore: updating regulators sources for xusb

1. Registering XUSB driver as consumer for regulator
   sources on Dalmore board.

2. Updating pad parameters for XUSB ports.

Bug 1055592

Change-Id: I73c62fa7d9c23a7f7ca93aca63087db10d51cbb1
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190493
(cherry picked from commit 662fc409e827b0334f4eb9174e171ab64b0e7b16)

Conflicts:

arch/arm/mach-tegra/fuse.h

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I9c56bc26bd76330580ee61b908963bd812b73e5f
Reviewed-on: http://git-master/r/194682
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: roth: support higher frequency HDMI
Rakesh Iyer [Thu, 24 Jan 2013 23:33:22 +0000]
arm: tegra: roth: support higher frequency HDMI

Support up to 4K HDMI on this board.

Bug 1167856
Bug 1185882

Change-Id: Ia0d784480be4f7f81db993b7cb874f533811def5
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/193963
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: pluto: support higher frequency HDMI
Rakesh Iyer [Thu, 24 Jan 2013 23:26:34 +0000]
arm: tegra: pluto: support higher frequency HDMI

Support up to 4K HDMI on this board.

Bug 1167856
Bug 1185882

Change-Id: Idf097e9c2f75293f43c171a5a0b242c3f0c37c66
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/193962
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoRevert "mmc: tegra: Enable ACMD12 support"
Naveen Kumar Arepalli [Tue, 22 Jan 2013 04:04:39 +0000]
Revert "mmc: tegra: Enable ACMD12 support"

This reverts commit 69d0daebd926623453c5753c0a5a979811afecab.

Bug 1216065
Bug 1219868

Change-Id: Ia4a2d9c73b05590e120246aa78c7443ee1b67ad0
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/192924
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agommc: tegra: Tuning algorithm for high frequencies
Pavan Kunapuli [Tue, 29 Jan 2013 09:18:01 +0000]
mmc: tegra: Tuning algorithm for high frequencies

Tuning and tap value calculation algorithm for high
frequencies(> 82MHz).

Bug 1167519

Change-Id: Iab3b95a573a4c0636ea89522ec51243375469fd5
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/194797
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: adding NVIDIA USB3.0 controller driver
Bharath Yadav [Sat, 6 Oct 2012 01:00:42 +0000]
usb: xhci: tegra: adding NVIDIA USB3.0 controller driver

Added xhci-tegra.c to support NVIDIA's XUSB host controller.

Bug 1055592

Change-Id: Iccbd0b63fc95cb31565bdb2008bd1b79372335aa
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190498
(cherry picked from commit 06424eb08d7f86da3f15206c5adcdd950a764513)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: Ie51a63bd87edeca74bca3198bec4537fa316ee37
Reviewed-on: http://git-master/r/194680
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoinput: touch: raydium: fix panic when touch panel not attached
Xiaohui Tao [Tue, 29 Jan 2013 23:02:01 +0000]
input: touch: raydium: fix panic when touch panel not attached

This issue is because the upper hal level is calling the driver
to suspend even when the driver is not installed. Cleanup the
resources when the driver fails to install.

Bug 1207093

Change-Id: I732a9748a5a3f9e084a29fe111da2b7563455a79
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/191411
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

6 years agovideo: tegra: dsi2edp: add 25x16 panel support
Ken Chang [Mon, 7 Jan 2013 09:48:23 +0000]
video: tegra: dsi2edp: add 25x16 panel support

Configure 770 for 25x16 2x4 dsi input.

DSI settings:
 - DSI0/1 clock rate: 402.5MHz
 - TLPX: 80ns
 - THS-PREPARE: 50ns
 - THS-ZERO: 155ns

770 settins:
 - VSDelay: 650

Bug 1041269

Change-Id: I3db7f906ee84c8eddc35494d9d093e14af729ac9
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/189122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopower: bq2419x: add shutdown functionality
Kunal Agrawal [Tue, 29 Jan 2013 09:14:19 +0000]
power: bq2419x: add shutdown functionality

Bug 1225027

Change-Id: I58f9ec45f105d58838312d644ed006d231923fef
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/195044
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoregulator: bq24192: add shutdown functionality
Kunal Agrawal [Tue, 29 Jan 2013 09:23:11 +0000]
regulator: bq24192: add shutdown functionality

Bug 1225027

Change-Id: I33eca8e87bc01ac4a3392e8ede362d47900de98d
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/195047
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: tps51632: add support for shutdown functionality
Kunal Agrawal [Wed, 30 Jan 2013 04:22:53 +0000]
regulator: tps51632: add support for shutdown functionality

Bug 1225025

Change-Id: I8bd9c00d088ad9f0a1660df5bb77876f65bc3113
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/195393
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoi2c: tegra: Return -EAGAIN in case of ARB Lost
Chaitanya Bandi [Wed, 30 Jan 2013 04:39:14 +0000]
i2c: tegra: Return -EAGAIN in case of ARB Lost

In case of ARB lost, return -EAGAIN so that the
communication is retried.

Bug 1222180

Change-Id: I003e02732568e08fabf6fe15f687e6ae73169f66
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/195401
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agotimekeeping: Fix time moving backwards
Ajay Nandakumar [Tue, 29 Jan 2013 11:46:47 +0000]
timekeeping: Fix time moving backwards

Changed the calculation logic that sometimes calculates
the time wrong.

Sometimes there is an overflow when the tv_nsec field in
the timespec structure is being added since it is 32-bit.

To resolve this issue nsec variable is being added first
so that the addition is performed in 64 bit signed format.

Bug 1217429

Change-Id: I9c65da88f02596ba73c47be6342ed909e650db22
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/195092
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add wakeup callback
Graziano Misuraca [Mon, 28 Jan 2013 19:53:16 +0000]
ARM: Tegra: Dalmore: Add wakeup callback

Add dalmore_wakeup_key callback to send
proper event on wake. Also modify the pinmux
for the Hall Effect Sensor to match the
power key.

Bug 1216920

Change-Id: I48dbb95e2b67723d54b1f1dc377243a380a24cfd
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/194832
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoinput: misc: cm3218: add shutdown functionality
Sri Krishna chowdary [Mon, 28 Jan 2013 13:17:16 +0000]
input: misc: cm3218: add shutdown functionality

Bug 1203781

Change-Id: Icd30c5f5772e61043e8e5276c8c53667793611e9
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/194669
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra11: clock: add utmip-pad clock entry for xusb
Ajay Gupta [Thu, 10 Jan 2013 22:54:13 +0000]
ARM: tegra11: clock: add utmip-pad clock entry for xusb

utmip-pad entry was missing for xusb and so devm_clk_get is
failing. Adding the same for xusb interface.

Change-Id: I14d4d172405063fd9eeee23fd33a66de1b9cd9ec
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190497
(cherry picked from commit 90c580cda3e695dae54c3a8b42332b15ac8f1475)
Reviewed-on: http://git-master/r/194676
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: correct irq name INT_USB3_NOT_SMI
JC Kuo [Wed, 9 Jan 2013 21:02:39 +0000]
ARM: tegra: correct irq name INT_USB3_NOT_SMI

Corrected the wrong irq name INT_USB3_NOT_SMI to correct name
INT_USB3_HOST_SMI

Change-Id: I7afc105a798022f27ab2e4468d33679c0de3f031
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190495
(cherry picked from commit be6a7f5561563b2a813617bf39c92cfadb5d229a)
Reviewed-on: http://git-master/r/194675
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: fix XUSB ID name to tegra-xhci
Ajay Gupta [Wed, 7 Nov 2012 19:21:27 +0000]
ARM: tegra: fix XUSB ID name to tegra-xhci

XUSB platform device and other clock sources are mapped
with device name as "tegra-xhci".

Change-Id: I758b3b9bfaa17255af68d611a688da886b859094
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190491
(cherry picked from commit 1ecdceebf1f51ca26dd20f5b6fb2e16f043f1c19)
Reviewed-on: http://git-master/r/194674
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: xusb: export xusb resources
Sri Krishna chowdary [Fri, 26 Oct 2012 10:07:31 +0000]
ARM: tegra: xusb: export xusb resources

Bug 1055592

Change-Id: Icc12cfe446918981ca34570650486df5f5c26f03
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190490
(cherry picked from commit 0a78d7d31855fd1fbbaa2c6a2888092aa5a02036)
Reviewed-on: http://git-master/r/194672
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Tested-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Tue, 22 Jan 2013 22:56:08 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.05.40075

1. The LP0 Warmboot code of TF has been updated to reflect last changes
of Tegra bootloader. TF boot parameters which are passed to secure os
are removed in warmboot code. They can't live in warmboot code anymore
because of PKC boot feature in T114.
2. Disable L2 prefetch throttle to enhance performance.

Bug 1211749

Change-Id: I09648482766ef117f200729ab7220655f93163a4
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/193165
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoarm: tegra: soctherm: Implement fuse correction for therm_a/b
Diwakar Tundlam [Mon, 28 Jan 2013 22:37:23 +0000]
arm: tegra: soctherm: Implement fuse correction for therm_a/b

Bug 1200077

Change-Id: I664ad343eda227548b0398809c8a9b49fec7c754
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/193236
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Jiawei Huang <jiaweih@nvidia.com>
Tested-by: Jiawei Huang <jiaweih@nvidia.com>

6 years agoarm: tegra: added speaker EDP data
Dara Ramesh [Tue, 29 Jan 2013 11:57:09 +0000]
arm: tegra: added speaker EDP data

added EDP states in audio platform data for EDP implementation.

Bug 1160686

Change-Id: Icbf561f1e0760b30c9ba13549e3ab767b75dc850
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/195095
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: Add barriers after cache operations
Amit Kamath [Tue, 29 Jan 2013 10:09:58 +0000]
ARM: tegra: Add barriers after cache operations

memory and instruction barriers are needed after the tlb is
invalidated and BTAC is flushed as per ARM TRM. Without this
there is a invalid page translation in some cases.

Bug 1189280

Change-Id: I85e297ffd9245c5066f656bbb70ea257b8b3b317
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/195070
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra11: clock: Force out-of-table shared bus max limit
Alex Frid [Fri, 25 Jan 2013 08:05:20 +0000]
ARM: tegra11: clock: Force out-of-table shared bus max limit

So far, rate cap set by shared bus user with SHARED_CEILING attribute
was not clipped to possible bus rates. Since final rounding on shared
bus is always in up direction, bus clock could run at rate above the
ceiling that does not exactly match one of available bus rates. This
is fixed now by rounding cap rate down to possible bus rate before
final shared rate is determined.

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