6 years agoARM: tegra: thermal: Edp into cooling device
Joshua Primero [Fri, 10 Aug 2012 00:05:14 +0000]
ARM: tegra: thermal: Edp into cooling device

Removed EDP specific code from tegra thermal layer. It is
now implemented as a cooling device.

Change-Id: Ica9602569367e07deb04cf3cb8064a1c4101a7a4
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124501
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: thermal: Cleaned up thermal framework
Joshua Primero [Thu, 9 Aug 2012 23:44:29 +0000]
ARM: tegra: thermal: Cleaned up thermal framework

Removed shutdown and tc1,tc2,passive delay parameters from
thermal state.

Change-Id: Icd97afaf912a9fb7ab930c95d52d0e1dee42ce5a
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124500
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra: fuse: Add support to query gpu info
Hoang Pham [Fri, 24 Aug 2012 04:01:04 +0000]
ARM: tegra: fuse: Add support to query gpu info

Bug 1018116

Change-Id: Ib80d596d2ec6e2d6ea291b07e1e215e263a1ab5a
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/123826
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoMerge remote-tracking branch 'origin/dev/android-t114-3.4-next' into promotion_build
varun colbert [Fri, 24 Aug 2012 17:18:37 +0000]
Merge remote-tracking branch 'origin/dev/android-t114-3.4-next' into promotion_build

This is part of the main to dev-t114 delivery from main-jb-2012.08.23-B4

Change-Id: If77fb5bcaed386a512d151cf37bdfe90a749ecaf

6 years agoMerge remote-tracking branch 'experimental/dev/android-t114-3.4-rebased' into android...
Varun Wadekar [Fri, 24 Aug 2012 06:14:18 +0000]
Merge remote-tracking branch 'experimental/dev/android-t114-3.4-rebased' into android-t114-3.4

6 years agoARM: tegra: la: add function to scale LA
Ray Poudrier [Tue, 21 Aug 2012 22:09:09 +0000]
ARM: tegra: la: add function to scale LA

Add functionality to enable changing of latency
allowance settings. This is used for memory
tables that may have different tick lengths.

Bug 955082

Change-Id: I3055a062846cfdeb992931e691cf687ffb05725c
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/124979
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agovideo: tegra: host: Clear intr list at intr_put
Terje Bergstrom [Wed, 22 Aug 2012 12:03:07 +0000]
video: tegra: host: Clear intr list at intr_put

Process wait list when removing a waiter. This clears the interrupt
once it is no longer needed.

Bug 1031724

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

6 years agovideo: tegra: dc: Make framebuffer console init OK
Mark Zhang [Fri, 17 Aug 2012 05:31:37 +0000]
video: tegra: dc: Make framebuffer console init OK

Update framebuffer's modelist after we changed it's fb_var_screeninfo.
This makes sure the framebuffer console can be inited successfully.
During framebuffer console init, it'll check whether the var info of
the framebuffer is consistent with the modelist.
Unsuccessful init of framebuffer console driver makes VT driver
doesn't work in right way.

Bug 996992

Signed-off-by: Mark Zhang <markz@nvidia.com>
Change-Id: I96a1db1f389be75dcba48b20447cf1510ad3768b
Reviewed-on: http://git-master/r/107866
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Shashank Sharma <shashanks@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agogpio: tegra: Added support for GCOV for GPIO
Sumit Sharma [Wed, 22 Aug 2012 11:09:38 +0000]
gpio: tegra: Added support for GCOV for GPIO

Added support for GCOV code coverage for GPIO

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: I407433db690696644aa67dffc0de8bc03c624b54
Reviewed-on: http://git-master/r/125183
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agohwmon: tegra: tsensor:Fix compilation error
Nagaraja Kolur [Fri, 3 Aug 2012 00:58:16 +0000]
hwmon: tegra: tsensor:Fix compilation error

Bug 1024886

Resolved compilation error for unused code.

Signed-off-by: Nagaraja Kolur <nkolur@nvidia.com>

Change-Id: I9167d8129a9cba0fc6cb203180e07192d66db439
Reviewed-on: http://git-master/r/120581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nagaraj Kolur <nkolur@nvidia.com>
Tested-by: Nagaraj Kolur <nkolur@nvidia.com>
Reviewed-by: Vijaya Bhaskar <vbhaskar@nvidia.com>
Reviewed-by: Wahed Syed <wsyed@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: iovmm: Fix spinlock bug if alloc fails
Tuomas Tynkkynen [Fri, 17 Aug 2012 08:37:02 +0000]
ARM: tegra: iovmm: Fix spinlock bug if alloc fails

iovmm_split_free_block leaves the domain's spinlock unlocked if a
memory allocation failed. Unfortunately, all the callers of that
function assume that it takes the spinlock. This will then lead to
double unlocking of the spinlock.

Bug 1035105

Change-Id: Ib4379cad76f053586d6a77b8d0dc9f41af01931a
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124299
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoPM QoS: Add disable parameter
Antti P Miettinen [Mon, 20 Aug 2012 16:36:38 +0000]
PM QoS: Add disable parameter

For testing purposes it is useful to be able to disable
PM Qos.

Bug 1020898
Bug 917572

Reviewed-on: http://git-master/r/124667

Change-Id: I266f5b5730cfe4705197d8b09db7f9eda6766c7c
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra: config: enable TPS65090 devices
Laxman Dewangan [Thu, 23 Aug 2012 08:26:44 +0000]
ARM: tegra: config: enable TPS65090 devices

Enable config variable for TPS65090
- MFD core driver
- Regulator driver
- Battery charging driver.

Change-Id: I83ae5694f17f1b30a2af2e9279dcee844b9d0035
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/126826
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agopower: tps65090-charger: fix multiple issue
Laxman Dewangan [Thu, 23 Aug 2012 08:10:58 +0000]
power: tps65090-charger: fix multiple issue

Some changes:
- Correct platform data struture name and get correct platform data.
- Make remove function to __devexit.
- Correct license to GPL v2
- Add error print when failure occurs.
- remove unnecessary tabs.

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

6 years agopower: tps65090-charger: fix compilation warning
Laxman Dewangan [Thu, 23 Aug 2012 08:03:01 +0000]
power: tps65090-charger: fix compilation warning

Fix the "maybe-uninitialized" warnings.

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

6 years agopower: tps65090-charger: fix compilation error
Laxman Dewangan [Thu, 23 Aug 2012 07:22:35 +0000]
power: tps65090-charger: fix compilation error

The driver is missing the include of interrupt header file.
Including it to fix compilation error.
Also it is not suggested to use the devm_request_threaded_irq() as
it is not safe when removing driver. converting it to non-devm version
of API.

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

6 years agoregulator: tps65090: fix compilation error
Laxman Dewangan [Thu, 23 Aug 2012 07:20:31 +0000]
regulator: tps65090: fix compilation error

The driver is pulled from the K3.1 kernel and when compiling
for K3.4 it is failing because the regulator_register() have more
number of argument.
Fixing the compilation error.

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

6 years agoRevert "ARM: tegra: enterprise: update memory timings"
Simone Willett [Wed, 22 Aug 2012 20:58:14 +0000]
Revert "ARM: tegra: enterprise: update memory timings"

This reverts commit 64d7608ed4a0fe0964250ad0423c499841292bf6

Reviewed-on: http://git-master/r/125322
(cherry-picked from e0ed318ccce39543fa821d3cef901111bae556a0)

Bug 1037320

Change-Id: I0178366917146090d75d00ab284286745ed2f785
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/126760

6 years agoARM: Tegra30: defconfig: Add camera devices
Rahool Paliwal [Tue, 21 Aug 2012 08:49:34 +0000]
ARM: Tegra30: defconfig: Add camera devices

This adds camera related devices to be built
as modules.

Bug 1034567

Change-Id: I6cf1397fbbaa766c7344d61abbb6bcfb111cdfbe
Signed-off-by: Rahool Paliwal <rpaliwal@nvidia.com>
Reviewed-on: http://git-master/r/124849
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoHACK: Disable dpd spew messages on FPGA
naveenk [Tue, 14 Aug 2012 09:56:45 +0000]
HACK: Disable dpd spew messages on FPGA

Bug 1031496
Bug 1013917

Change-Id: I489e88dd3c3a2ddffc398dbfbdd2b415ce96233a
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/124291
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agocpuquiet: Adding runnable thread knobs
Xiao Bo Zhao [Thu, 2 Aug 2012 23:33:51 +0000]
cpuquiet: Adding runnable thread knobs

Ported the knobs that select runnable thread profiles from autohotplug
into cpuquiet.

Change-Id: I6858731e238404d33c772767d066cd6d467267a8
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/123852
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Tested-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agocpuquiet: Enable cpuquiet by default
Sai Charan Gurrappadi [Fri, 22 Jun 2012 23:18:02 +0000]
cpuquiet: Enable cpuquiet by default

Enable cpuquiet by default if autohotplug is enabled. Cpuquiet will now
replace autohotplug as the hotplugging infrastructure. The down_delay in
the balanced governor has also been increased to 2s from 500ms to match
a similar patch for autohotplug.

Change-Id: I36747af67c55547b3dee95f7d435f9ebc075d393
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123851
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agocpuquiet: Fix cpuquiet for k3.4
Sai Charan Gurrappadi [Thu, 16 Aug 2012 00:56:11 +0000]
cpuquiet: Fix cpuquiet for k3.4

Change-Id: I75d8dba6c9c4c43152c819e08beeccb1e3c07c0c
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123850
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agocpuquiet: Added cpuquiet to driver Makefile
Sai Charan Gurrappadi [Thu, 16 Aug 2012 01:00:35 +0000]
cpuquiet: Added cpuquiet to driver Makefile

Change-Id: I8a3fd51df81de8d4375b9ddabbaf4fed5277b17d
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/123849
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agovideo: tegra: host: Enable 3D power gating
Terje Bergstrom [Tue, 14 Aug 2012 08:01:39 +0000]
video: tegra: host: Enable 3D power gating

Enable power gating for Tegra11 gr3d.

Bug 971602

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

6 years agovideo: tegra: host: Abstract actmon support
Terje Bergstrom [Tue, 14 Aug 2012 07:42:50 +0000]
video: tegra: host: Abstract actmon support

Abstract actmon support behind chip_support. This will make the
actmon code adhere to the correct register layout.

Initialization of actmon now happens from gr3d driver. This allows
initializing and deinitializing actmon when gr3d is power gated. The
consequence is that the avg value must be readable even when there
are no channels open to gr3d.

Bug 971602

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

6 years agodt: add property iteration helpers
Stephen Warren [Wed, 4 Apr 2012 15:27:46 +0000]
dt: add property iteration helpers

This patch adds macros of_property_for_each_u32() and
of_property_for_each_string(), which iterate over an array of values
within a device-tree property. Usage is for example:

struct property *prop;
const __be32 *p;
u32 u;
of_property_for_each_u32(np, "propname", prop, p, u)
printk("U32 value: %x\n", u);

struct property *prop;
const char *s;
of_property_for_each_string(np, "propname", prop, s)
printk("String value: %s\n", s);

Based on work by Rob Herring <robherring2@gmail.com>

Change-Id: I8409ee84d2a94398a36bf1cc3f8b8e6821f40842
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit c541adc637066407d4cda9db14dcb0e618966a4c)
Reviewed-on: http://git-master/r/120038
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopm: EDP: fixing license text
Sivaram Nair [Tue, 21 Aug 2012 12:10:29 +0000]
pm: EDP: fixing license text

License text updated to correct version

Change-Id: I55fa5ad518f559fada8a55bb058d166318b7eed3
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/125223
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: dvfs: Add miscellaneous I/O dvfs tables
Alex Frid [Wed, 22 Aug 2012 03:13:49 +0000]
ARM: tegra11: dvfs: Add miscellaneous I/O dvfs tables

Added dvfs tables and updated maximum limits for i2c, sbc, sdmmc, pwm.

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

6 years agoARM: tegra11: dvfs: Update audio clocks maximum limits
Alex Frid [Wed, 22 Aug 2012 01:02:59 +0000]
ARM: tegra11: dvfs: Update audio clocks maximum limits

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

6 years agoARM: tegra11: dvfs: Add dvfs tables for display subsystem
Alex Frid [Wed, 22 Aug 2012 00:44:56 +0000]
ARM: tegra11: dvfs: Add dvfs tables for display subsystem

Added dvfs tables for display, hdmi, dsi, and csi clocks.
Updated maximum limits accordingly.

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

6 years agoARM: tegra11: dvfs: Add dvfs tables for pll outputs
Alex Frid [Sat, 11 Aug 2012 06:43:32 +0000]
ARM: tegra11: dvfs: Add dvfs tables for pll outputs

Added dvfs tables for high frequency pll outputs. PLLs included
into the list may be configured above maximum rate 480MHz that can
be divided by module dividers at minimum voltage.

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

6 years agoARM: tegra: dalmore: Add display pwm support
Animesh Kishore [Wed, 22 Aug 2012 19:17:11 +0000]
ARM: tegra: dalmore: Add display pwm support

Use PM1 pin to drive pwm signals.

Bug 1017692

Change-Id: Ia0a8e1ca8189536bbf9f4fdba0266bbd85056ccc
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/124290
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agomtd: tegra-nor: Fix build with kernel 3.4
Sandeep S. Trasi [Tue, 14 Aug 2012 16:02:26 +0000]
mtd: tegra-nor: Fix build with kernel 3.4

Replace internal function parse_mtd_partitions()
with new api mtd_device_parse_register()

Change-Id: Ic01543ed3e21d347e2ae24645d36fdc6b99f5273
Signed-off-by: Sandeep S. Trasi <strasi@nvidia.com>
Reviewed-on: http://git-master/r/123384
Tested-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra11: dvfs: Add LP CPU, SBUS, VI dvfs tables
Alex Frid [Sat, 11 Aug 2012 04:46:16 +0000]
ARM: tegra11: dvfs: Add LP CPU, SBUS, VI dvfs tables

Added core dvfs tables for LP CPU, System bus (sbus), and VI.
Updated LP CPU maximum limits. Allowed VI to use fractional dividers.

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

6 years agoARM: tegra11: dvfs: Update core dvfs tables
Alex Frid [Sat, 11 Aug 2012 01:38:04 +0000]
ARM: tegra11: dvfs: Update core dvfs tables

Integrated new safe dvfs tables for core modules: 3D, 2D, EPP, MSENC,
TSEC, SE, VDE, Host1x, and EMC. Updated core voltage scaling steps
respectively. Per new tables Host1x is now allowed to use fractional
dividers.

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

6 years agovideo: tegra: host: Fix freeing a ERR_PTR value
Tuomas Tynkkynen [Mon, 20 Aug 2012 14:26:16 +0000]
video: tegra: host: Fix freeing a ERR_PTR value

nvhost_3dctx_alloc_common correctly checks the return value of an
allocator function, and attempts to perform cleanup. However, this
particular allocation API returns ERR_PTR values in case of failure,
which then gets passed to the deallocation function, causing a crash.

Also, the return value of that allocator API is checked with IS_ERR
in some places, and with IS_ERR_OR_NULL in others. For consistency
and avoiding surprises if the allocation implementation changes,
use IS_ERR_OR_NULL in all places.

Bug 1035878

Change-Id: I65ce97e11f9712b2e9630b38183f6e70bc14b254
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124657
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agovideo: tegra: host: Fix crash if allocation fails
Tuomas Tynkkynen [Thu, 16 Aug 2012 16:56:51 +0000]
video: tegra: host: Fix crash if allocation fails

nvhost_module_remove_client assumes that a client structure
to be freed exists in the linked list. However, if an allocation fails
in nvhost_module_add_client, no client structure is allocated, and
during cleanup, nvhost_module_remove_client would then attempt
to free an invalid pointer.

Bug 1034729

Change-Id: Ie1a641071b86f8246951e9be824a6003f14b04b6
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/124096
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoarch: arm: pcie: init TXBA registers
krishna kishore [Thu, 2 Aug 2012 12:40:08 +0000]
arch: arm: pcie: init TXBA registers

Setting default values in TXBA registers to avoid
unfair arbitration between downstream reads and
completions to upstream reads

Bug 1027024

Change-Id: I87763817b7974127f93fa18270b5245a54fc6676
Signed-off-by: krishna kishore <kthota@nvidia.com>
Reviewed-on: http://git-master/r/120359
Tested-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: kai: update memory timings
Ray Poudrier [Mon, 2 Jul 2012 23:41:32 +0000]
ARM: tegra: kai: update memory timings

Extend tick length to 60ns

Bug 1001229

Change-Id: I8a96dd08b6d11a196c9b82bec403ab2e4676e2f4
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113081
(cherry picked from commit 487622aa43568d3f6f9a9f5fc98176e5ffdd6246)
Reviewed-on: http://git-master/r/116208
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: ar0832: Add slew rate support
Naren Bhat [Mon, 20 Aug 2012 19:39:16 +0000]
media: video: tegra: ar0832: Add slew rate support

Add slew rate support for AR0832 focuser.

bug 1028733

Change-Id: I4fd0245fad7f7c820fc30a7c4bfc970d52903da6
Signed-off-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-on: http://git-master/r/124695
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: Remove timer workaround
Antti P Miettinen [Tue, 26 Jun 2012 13:54:37 +0000]
ARM: tegra: Remove timer workaround

Reprogramming running timers may cause timer interrupt state
to get out of sync and result in lost timer interrupts.

Bug 950482

Change-Id: I83c9d735f9b041e8a57d73ba466f5f9c89ca1b89
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/111242
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoi2c: tegra: protect suspend/resume callbacks with CONFIG_PM_SLEEP
Laxman Dewangan [Tue, 21 Aug 2012 08:08:47 +0000]
i2c: tegra: protect suspend/resume callbacks with CONFIG_PM_SLEEP

The CONFIG_PM doesn't actually enable any of the PM callbacks, it
only allows to enable CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME.
This means if CONFIG_PM is used to protect system sleep callbacks
then it may end up unreferenced if only runtime PM is enabled.
Hence protecting sleep callbacks with CONFIG_PM_SLEEP.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

Change-Id: I090e167c1de8f254a278e9e3b511292cfbc5f250
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/124872
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoi2c: tegra: I2_M_NOSTART functionality not supported in Tegra20
Laxman Dewangan [Tue, 21 Aug 2012 09:46:38 +0000]
i2c: tegra: I2_M_NOSTART functionality not supported in Tegra20

Tegra20 i2c controller does not support the continue transfer
which implements the I2C_M_NOSTART functionality of i2c
protocol mangling.
Removing the I2C_M_NOSTART functionality support for Tegra20.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Cherry-picked from mainline
72dedc2fb12ff31cc2da977d0c40c3ac58f554cf

Change-Id: I461342749a834ff2eae056f1c6616a8d7693a32c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/124875
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoMerge commit 'v3.4.9' into android-t114-3.4
Varun Wadekar [Thu, 23 Aug 2012 09:37:36 +0000]
Merge commit 'v3.4.9' into android-t114-3.4

Linux v3.4.9

Conflicts:
arch/arm/kernel/smp.c
arch/arm/vfp/entry.S

Change-Id: I731e815ed35ba9280374a5a3e5a6a8b6b805d695
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agomfd: tps65090: add tps65090-charger as mfd subdevice
Laxman Dewangan [Wed, 22 Aug 2012 14:11:01 +0000]
mfd: tps65090: add tps65090-charger as mfd subdevice

Add tps65090-charger in mfd cell to register tps65090 charger.

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

6 years agommc: host: Add stub runtime power management
naveenk [Wed, 22 Aug 2012 12:55:56 +0000]
mmc: host: Add stub runtime power management

Add stub runtime_pm calls which go through the flow of enabling
and disabling but don't actually do anything with the device itself
as there's nothing useful we can do. This provides the core PM
framework with information about when the device is idle,
enabling chip wide power savings.

Bug 887327

Change-Id: I1a67038d34aef2555b17c526bcdcab8177bf4bc3
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/125244
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agomfd: max77663: add GPIO TOP interrupt in interrupt list
Laxman Dewangan [Wed, 22 Aug 2012 11:12:46 +0000]
mfd: max77663: add GPIO TOP interrupt in interrupt list

Add GPIO_TOP interrupt in interrupt list so that gpio driver of
this device can register this interrupt to get gpio interrupts.
This is towards moving the gpio support as independent driver.

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

6 years agomfd: max77663: make register access via regmap
Laxman Dewangan [Wed, 22 Aug 2012 10:54:07 +0000]
mfd: max77663: make register access via regmap

Make register access of device through regmap framework.

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

6 years agomfd: max77663: error check for rtc client
Laxman Dewangan [Wed, 22 Aug 2012 10:53:28 +0000]
mfd: max77663: error check for rtc client

The max77663 device require i2c client with the
RTC address also. Add error check when creating
i2c client for RTC address.

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

6 years agomfd: max77663: use devm managed resources
Laxman Dewangan [Wed, 22 Aug 2012 10:52:39 +0000]
mfd: max77663: use devm managed resources

Allocate memory for device state using devm_kzalloc()
to simplify accounting and letting the kernel do the
garbage-collection.

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

6 years agomfd: max77663: correct the size of buffer register-data pair write
Laxman Dewangan [Wed, 22 Aug 2012 10:51:32 +0000]
mfd: max77663: correct the size of buffer register-data pair write

The buffer size for the register-data pair write
can become the 2x of bytes requested.
Correcting the buffer size for allocation.

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

6 years agomfd: max77663: protect suspend/resume callbacks with CONFIG_PM_SLEEP
Laxman Dewangan [Wed, 22 Aug 2012 10:49:06 +0000]
mfd: max77663: protect suspend/resume callbacks with CONFIG_PM_SLEEP

The CONFIG_PM doesn't actually enable any of the PM callbacks, it
only allows to enable CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME.
This means if CONFIG_PM is used to protect system sleep callbacks
then it may end up unreferenced if only runtime PM is enabled.
Hence protecting sleep callbacks with CONFIG_PM_SLEEP.

Change-Id: I56794b43d753790c600f8507591d768d826801e0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/125233
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: pluto: add t114 specific pinmux code
aghuge [Wed, 22 Aug 2012 08:54:38 +0000]
ARM: tegra: pluto: add t114 specific pinmux code

Added T114 chip specific pinmux code for pluto

Bug 982705

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

6 years agopower: tps65090: add battery charger driver
Syed Rafiuddin [Wed, 22 Aug 2012 07:04:30 +0000]
power: tps65090: add battery charger driver

TPS65090 supports the battery charging.

Add driver for supporting this feature.

Bug 1011286

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

6 years agomfd: tps65090: fix the pmic mfd cell name
Laxman Dewangan [Tue, 21 Aug 2012 14:50:27 +0000]
mfd: tps65090: fix the pmic mfd cell name

The pmic driver name for tps65090 is "tps65090-pmic".
Correcting this in core driver of tps65090.

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

6 years agoARM: tegra11: clock: fix build break
Ken Adams [Mon, 20 Aug 2012 17:17:00 +0000]
ARM: tegra11: clock: fix build break

fix build break on possibly unused var (p_rate)

Change-Id: I06cc57d56186b593d78f232c3a5f8ce6c8c086f6
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/124706
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: tegra: thermal: Separate skin from thermals
Joshua Primero [Tue, 7 Aug 2012 23:14:19 +0000]
ARM: tegra: thermal: Separate skin from thermals

Started seperating skin thermal logic from generic
thermal logic.

Change-Id: I7fd8a4f713acf510eb70fd5a06ee42634caa2c8e
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124499
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: thermal: Cleanup thermal dependencies
Joshua Primero [Mon, 6 Aug 2012 23:56:39 +0000]
ARM: tegra: thermal: Cleanup thermal dependencies

Cleaned up dependencies related to thermals:

1) Added TEGRA_THERMAL Kconfig option which enables
Tegra Thermal Framework

2) Removed unnecessary ifdefs from board files and thermal
files

Change-Id: I3470da3d1482ff7946b3815f7c0e91b45fb58147
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/124498
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoi2c: tegra: Add support for clk divisor in standard/fast mode
Chaitanya Bandi [Fri, 17 Aug 2012 15:37:06 +0000]
i2c: tegra: Add support for clk divisor in standard/fast mode

Added support for clk divisor in standard/fast mode.

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

6 years agoregulator: core: support for voltage change from user-space
Laxman Dewangan [Fri, 17 Aug 2012 11:07:47 +0000]
regulator: core: support for voltage change from user-space

It is required for changing voltage of some of rails
from user space to perform characterization of chip.
Support the API to have achieve this from user space.

bug 1033482

Change-Id: Ic5d2c2eda9a4521968577aed38e1fd492b2bb2c3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/124352
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: update t114 pinmux table
aghuge [Tue, 21 Aug 2012 13:00:14 +0000]
ARM: tegra: update t114 pinmux table

Bug 959971

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

6 years agoarm: tegra: config: Disable unwanted p1852 features
Sandeep S. Trasi [Tue, 14 Aug 2012 16:24:20 +0000]
arm: tegra: config: Disable unwanted p1852 features

Unwanted features of p1852 are disabled.

Change-Id: I3fbca1bf939d6680233eb3ffe68246d1a9ee022f
Signed-off-by: Sandeep S. Trasi <strasi@nvidia.com>
Reviewed-on: http://git-master/r/123387
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra: dalmore: add T114 specific pinmux code
aghuge [Tue, 21 Aug 2012 12:56:41 +0000]
ARM: tegra: dalmore: add T114 specific pinmux code

Added T114 chip specific pinmux code for dalmore

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

6 years agostaging: iio: Added Pressure sensor driver for BMP180
Sumit Sharma [Wed, 8 Aug 2012 04:30:08 +0000]
staging: iio: Added Pressure sensor driver for BMP180

Added pressure sensor driver for Bosch BMP180 sensor

Bug 1022128

Change-Id: I5ed0d98d3c9197eac5be6c76e0be92c80c9b66df
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/121974
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoALSA: soc: add DAM programming for T114
Rahul Mittal [Tue, 17 Jul 2012 13:59:18 +0000]
ALSA: soc: add DAM programming for T114

For T114, DAM operates at 32 bit, cbits should be 32
Calling APIs for programming newly added registers

Change-Id: I9427d73538c12ae9dddcd865ccbcdc3a3d668370
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/116453
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoMerge remote branch 'origin/dev/android-t114-3.4-next' into promotion_build
Rohan Somvanshi [Wed, 22 Aug 2012 10:14:05 +0000]
Merge remote branch 'origin/dev/android-t114-3.4-next' into promotion_build

This merge is done along with the main to dev-t114 merge using tag main-jb-2012.08.20-B1

Change-Id: Ia9b8833eb37c758abcd58013c212acf91846e030

6 years agoARM: Tegra: remove last usages of tegra_gpio_{enable|disable}
Varun Wadekar [Wed, 22 Aug 2012 09:42:11 +0000]
ARM: Tegra: remove last usages of tegra_gpio_{enable|disable}

Change-Id: I71534a342c391ffe548e834edbe8c233ee5d6f3f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: Tegra: la: do not compile driver for Tegra2
Varun Wadekar [Wed, 22 Aug 2012 09:41:31 +0000]
ARM: Tegra: la: do not compile driver for Tegra2

Change-Id: I6120ce75b91efff29e24a60546f50f1767271bd8
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: tegra: usb_phy: Fix HSIC resume code
Vinod Atyam [Fri, 17 Aug 2012 09:03:47 +0000]
ARM: tegra: usb_phy: Fix HSIC resume code

1) During remote wakeup resume, no need
   to keep 25 msec delay after resume bit
   is cleared. Updated the code now.
2) PSPD bit in HOSTPC register is read only,
   but bymistake it is getting set in our code.
   Corrected the code now.
3) During AP resume, no need to set RUN bit
   2 times. Corrected the code to do it once.

Bug 1028940
Bug 1024592

Change-Id: I872886f4cef6058d3de9d488321aa5b0925fd62a
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/124051
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: cardhu: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 18:43:05 +0000]
ARM: tegra: cardhu: update memory timings

Extend tick length to 60ns

Also add missed Cardhu SKU 1000 table

Bug 1001229
Bug 970610

Change-Id: I224158a88d02595d5b911f59b6920b9ed99481ab
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113315
(cherry picked from commit 492193079047d9c5a4fff617a14191438f356e42)
Reviewed-on: http://git-master/r/116221
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: enterprise: update memory timings
Ray Poudrier [Tue, 3 Jul 2012 03:17:42 +0000]
ARM: tegra: enterprise: update memory timings

Extend to 60ns tick

Bug 1001229

Change-Id: Id2b01218a7c5cb1566d0e8c175defb12c79e6497
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/113122
(cherry picked from commit 176fd3fbaede0d38281fe4bad721856e7fef0833)
Reviewed-on: http://git-master/r/116220
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dc: Add timestamp support
Raghavendra VK [Sat, 4 Aug 2012 04:25:43 +0000]
video: tegra: dc: Add timestamp support

bug 1021221

Change-Id: Ifbe007de5bdeafaa15a0b3f2a138086045eba160
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/118179
(cherry picked from commit 74be8d4e7210d7bcea0d55565a7cbb06d6cc960e)
Reviewed-on: http://git-master/r/121087
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>

6 years agoARM: Tegra: Curacao: enable CONFIG_HID_SUPPORT
Varun Wadekar [Tue, 21 Aug 2012 13:19:07 +0000]
ARM: Tegra: Curacao: enable CONFIG_HID_SUPPORT

Change-Id: I7cfc4b96a0bb64b4dce8b97a2245b9e7dfcc4fe5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoARM: Tegra: Curacao: remove tegra_gpio_{enable|disable} usage
Varun Wadekar [Tue, 21 Aug 2012 12:09:22 +0000]
ARM: Tegra: Curacao: remove tegra_gpio_{enable|disable} usage

Change-Id: I27c23835e1ac56725be61329f9a375aebdae8cb0
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agovideo: tegra: nvmap: Fix overflow in nvmap_heap
Tuomas Tynkkynen [Mon, 13 Aug 2012 12:43:31 +0000]
video: tegra: nvmap: Fix overflow in nvmap_heap

do_heap_alloc locates a suitable free block from a nvmap heap given a
size and alignment. Unfortunately, if a heap block happens to be
smaller than the alignment passed to the function, an integer overflow
will occur, and a block that's too small gets accidentally returned.

Bug 1032642

Change-Id: Ic650c520409134d753e968f62f144ddeb065ccc7
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/123076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoscripts: Make git commit info always present
Tao Hu [Wed, 8 Aug 2012 09:30:06 +0000]
scripts: Make git commit info always present

LOCALVERSION_AUTO is set by default.
And git commit will be part of the version.
E.g. "3.1.10-g0fe9b4a" where 0fe9b4a is the commit.

The version will appear in kpanic logs.
It would help developers to know the exact kernel version.

But a tagged commit (main-ics-2012.06.07-A5) will lead to no git info.
E.g. "3.1.10"
This patch will solve the issue.

Change-Id: I28370ada903b4be12bfc51eb3626512572e15c20
wChange-Id: I9dbb6c0a9e2964ead92114197a6d5c457ed7aab9
Signed-off-by: Tao Hu <taoh@nvidia.com>
Reviewed-on: http://git-master/r/123670
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: e1853: Add build support for E1853
Ashwin Joshi [Fri, 27 Jul 2012 10:28:50 +0000]
ARM: tegra: e1853: Add build support for E1853

E1853 is T30 based automotive platform. Modify Makefile to support build
of E1853 board. Also, added config option to Kconfig file.

Bug 966833
Bug 1018258

Change-Id: I18dc015b79256fde1c77947198b426a0060a9017
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/118932
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit bed57d893803f2ccef8f40bd30bdf1e8a44f184b)
Reviewed-on: http://git-master/r/119652
GVS: Gerrit_Virtual_Submit
Tested-by: Haribabu Narayanan <hnarayanan@nvidia.com>
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: tegra: cardhu: adjust ov2710 power sequence
Charlie Huang [Fri, 10 Aug 2012 23:26:34 +0000]
ARM: tegra: cardhu: adjust ov2710 power sequence

To fix an instability issue, the power sequence is updated to match
the specification for this device.

bug 1031318

Change-Id: I3970af7ae8ed2baa6060f548242b0093040afb53
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/122867
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoPM: Need to wake_up_all when suspend fail
BH Hsieh [Mon, 13 Aug 2012 07:33:07 +0000]
PM: Need to wake_up_all when suspend fail

In rpm_suspend, when suspend fail,
before going to reschedule another autosuspend,
wake_up_all is required to avoid remote wakeup
issues.

Bug 1026169
Bug 1027598
Bug 1032565

Change-Id: Ieaf9282dae59b2cb343bf01aa2ba837a8cdc39c7
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/122978
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Neil Patel <neilp@nvidia.com>
Tested-by: Neil Patel <neilp@nvidia.com>
Tested-by: Steve Lin <stlin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agousb: otg: tegra: fix racing USB connection events
Xin Xie [Wed, 11 Jul 2012 02:23:03 +0000]
usb: otg: tegra: fix racing USB connection events

Sometimes USB connect and disconnect events is not detected properly. The
OTG irq handler is using a workqueue which has no protection for multiple
incoming event handling.

This patch adds mutex to protect the workqueue for USB connection
handling.

BUG 968345

Change-Id: If1c6fec4231dd0dc918f7f278e0a1d7667782917
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/122308
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: gadget: tegra: remove unnecessary bus resume
Xin Xie [Tue, 7 Aug 2012 23:07:14 +0000]
usb: gadget: tegra: remove unnecessary bus resume

Current Tegra UDC driver share same IRQ with OTG driver, and it will call
bus_resume() even if there is no UDC IRQ pending.

This patch will check UDC IRQ source and will not cause bus resume if no
IRQ pending for UDC driver.

BUG 1015685

Change-Id: Ifc5634ae5d1f7f1435c64bc527ab2e9fb8d0e36b
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/121896
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agousb: gadget: tegra_udc: use USB charging spec 1.2
Xin Xie [Wed, 1 Aug 2012 23:18:55 +0000]
usb: gadget: tegra_udc: use USB charging spec 1.2

Enable the USB charging based on the USB charging spec 1.2. Now we can
detect:
1. SDP (stanardard downstream port)
2. CDP (charging downstream port)
3. DCP (dedicated charging port)
4. None (no cable connected)
5. Non-standard charger

For some non-standard charger, we cannot detect it as DCP device.
If we find a charger detected as USB device but no EP0 packet recieved
with 1s, we then decided this is 1A charger.

bug 968345

Change-Id: I804f90ea6e4794da8f52b1c3ebd694828d99f40e
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/120218
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvmap: Add sanity checks for page pools.
Krishna Reddy [Wed, 1 Aug 2012 22:15:21 +0000]
video: tegra: nvmap: Add sanity checks for page pools.

Check return code for set_page_array_* calls.

Change-Id: Ie62ac78b82321939d5bd9d2a636d72dadea50d28
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/123544

6 years agoARM: tegra: usb: handle device connect in lp0
Krishna Yarlagadda [Tue, 14 Aug 2012 16:06:59 +0000]
ARM: tegra: usb: handle device connect in lp0

When a otg cable is connected along with device during lp0
system will wakeup but might not complete device enumeration
before going back to lp0. In this case we have to handle pmc
disable.

Bug 1024456

Change-Id: I9acbf434e58776c3d58de1b28d442d6b20b256d0
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/123383
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoUSB: gadget: f_audio_source: Adjust packet timing to reduce glitches
Mike Lockwood [Sun, 27 May 2012 22:41:53 +0000]
USB: gadget: f_audio_source: Adjust packet timing to reduce glitches

Increase max packet size and clean up timing logic so we can better
recover from not getting an interrupt in time for a SOF.

Bug 1026047

Signed-off-by: Mike Lockwood <lockwood@google.com>
(cherry picked from commit 3d2096a7959d023bc31a3cf934c3d425de01c94f)

Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Change-Id: I0a0a6f448e71e4a0c478bb44cadc54fa021e13e4
Reviewed-on: http://git-master/r/123344
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoUSB: gadget: f_audio_source: New gadget driver for audio output
Mike Lockwood [Fri, 11 May 2012 16:01:08 +0000]
USB: gadget: f_audio_source: New gadget driver for audio output

This driver presents a standard USB audio class interface to the host
and an ALSA PCM device to userspace

Bug 1026047

Signed-off-by: Mike Lockwood <lockwood@google.com>
(cherry picked from commit a23ff394752015a233dd3b27b05c9d913cbf5536)

Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Change-Id: I4054e09888f17d9cdfcfd4a3d430ca5cfb3fd9fa
Reviewed-on: http://git-master/r/123343
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoUSB: gadget: f_accessory: Add support for HID input devices
Rakesh Bodla [Tue, 14 Aug 2012 12:06:15 +0000]
USB: gadget: f_accessory: Add support for HID input devices

Bug 1026047

Signed-off-by: Mike Lockwood <lockwood@google.com>
(cherry picked from commit 7a3d01af4f04950a86a18f5a439f1802d8093650)

Conflicts:

drivers/usb/gadget/f_accessory.c

Change-Id: I30bc02a1bcf636967d56370db83578f49f0e7514
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/123342
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoAdd ACCESSORY_SET_AUDIO_MODE control request and ioctl
Mike Lockwood [Fri, 11 May 2012 16:00:40 +0000]
Add ACCESSORY_SET_AUDIO_MODE control request and ioctl

The control request will be used by the host to enable/disable USB audio
and the ioctl will be used by userspace to read the audio mode

Bug 1026047

Signed-off-by: Mike Lockwood <lockwood@google.com>
(cherry picked from commit 3e1ff6142761eef148c667e540381d1fbc437d4f)

Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Change-Id: I5f449de230ca8f44e2dae30a0f87772310b68f20
Reviewed-on: http://git-master/r/123341
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agopower: max17048: update charge status when resume
Kerwin Wan [Tue, 14 Aug 2012 09:31:11 +0000]
power: max17048: update charge status when resume

bug 1033234

Change-Id: I67a28113fbf0a2461886658322f9106d17a69f23
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/123301
Reviewed-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agovideo: tegra: nvmap: fix input check in mmap ioctl
Tuomas Tynkkynen [Tue, 31 Jul 2012 14:49:49 +0000]
video: tegra: nvmap: fix input check in mmap ioctl

nvmap_map_into_caller_ptr takes a memory handle from usermode
and adds a memory mapping for the handle. However, the handle
is not checked for being allocated. An unallocated handle
would cause a kernel panic later on from a NULL dereference.

Change-Id: I73987b097a0c843b913660445e8bd1b4755dac61
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/119689
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agogpio: tegra: hide tegra_gpio_enable()/disable()
Laxman Dewangan [Tue, 31 Jul 2012 10:08:43 +0000]
gpio: tegra: hide tegra_gpio_enable()/disable()

The direction apis and irq_set_wake() support the
configuration of pins in gpio mode and hence it
is not require to export the apis for gpio_enable()/
gpio_disable().
Hiding these api.

Change-Id: I5493e4f270df85da21afb6500ac841f4fa4b522a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119616
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: clocks: Frequency stats for SCLK/CBUS
Srikanth Nori [Tue, 3 Jul 2012 00:35:38 +0000]
ARM: tegra: clocks: Frequency stats for SCLK/CBUS

This adds a frequency histogram of the frequencies that SCLK
and CBUS clocks go to over time. Stats are presented in the
debugfs at /d/clock_stats/cbus and /d/clock_stats/sclk only if
debugfs is enabled in config

Change-Id: Icae83329612958d8ed4318b2e10c487683d9d734
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/118380
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agousb: gadget: tegra_udc: Enable DR IRQ in udc_start
Preetham Chandru [Tue, 10 Jul 2012 13:12:16 +0000]
usb: gadget: tegra_udc: Enable DR IRQ in udc_start

Currently dr_controller_run() is called only during otg state
change.
When we unload a gadget driver, for example g_mass_storage
gadget driver, dr_controller_stop() is called but when it is
loaded back dr_controller_run() won't get called becasue of the
if condition failure. i.e
if (!udc->transceiver) {
dr_controller_run(udc);
}

So when the gadget driver is loaded for the second time
without removing the cable (i.e without otg state change),
the device won't get enumerated on the host because DR
IRQs are not enabled.

This CL fixes the above issue.

Bug 1012787
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>

Change-Id: Ia127630e24dbe4c1e418163c2b858efb3baa8e45
Reviewed-on: http://git-master/r/114592
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: disuse notifier
Ilan Aelion [Fri, 10 Aug 2012 19:53:10 +0000]
video: tegra: dc: disuse notifier

Due to issues with rcu notifiers on secureos, modifying dc flip
notifications to use a simple callback instead.

Bug 1028850

Change-Id: Iebf2a6d64d7316e3df2b88444201f9f9a29698c5
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/123103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Fri, 10 Aug 2012 18:48:56 +0000]
security: tf_driver: integrate latest TL release

Tegra 3 version: TF_TEGRA3_AB01.15.36932
1)Fix an issue in GIC controller
2)Add a task profiler option into the Trusted Foundations
3)Fixes the RCU stalls

Change-Id: Ib137dc4f155765cb7d7084f1f9a6f75d3bf38116
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/122808
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: James Zhao <jamesz@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoarm: tegra: la: refactor la code.
Krishna Reddy [Mon, 13 Aug 2012 19:37:32 +0000]
arm: tegra: la: refactor la code.

This is necessary to support future tegra SOC's.

Change-Id: I2f6ce328e30a6895dce16d82c4097291339155cd
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/123146
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: host: Fix leak in 3D register read
Terje Bergstrom [Wed, 15 Aug 2012 09:12:16 +0000]
video: tegra: host: Fix leak in 3D register read

When 3D register is read, and we need to do a context switch, the old
context reference is incremented, but it never gets decremented. Fix
by using nvhost_job_get_hwctx() to acquire the reference.

Bug 1031746

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

6 years agomm: Avoid freeing init and initrd memory when CPA is enabled.
Krishna Reddy [Sun, 29 Jul 2012 22:32:14 +0000]
mm: Avoid freeing init and initrd memory when CPA is enabled.

Align memblock reserve for text area to PMD size.
Reserve the memory hole between DRAM start and Page table start.
Add Sanity check to avoid section split in text area.

Bug 1028787

Change-Id: I586e4ad6e3a94aa0c79b302e51156dbe089e481f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/121883
(cherry picked from commit 65d02640b4b0b38263687c7f3e664c873237dc43)
Reviewed-on: http://git-master/r/123431
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: power: Trace LP2 entry and exit
Antti P Miettinen [Tue, 14 Aug 2012 10:14:00 +0000]
ARM: tegra: power: Trace LP2 entry and exit

Add traces for measuring LP2 entry/exit times.

Bug 960304

Change-Id: I20bb0f8d55a7ed6f7e88e10d924871a3d09f2507
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/123313
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>