]>
nv-tegra.nvidia Code Review - linux-2.6.git/log
Joshua Primero [Thu, 20 Oct 2011 01:55:34 +0000 (18:55 -0700)]
hwmon: tegra: tsensor: EDP support for tsensor
Added support for EDP in tsensor. Since low limit
interrupts are not supported in hardware TH2 was
used for upper limit and TH0/TH1 as lower limit.
Also added generic functions to enable tsensor for
thermal refactoring.
Bug 912597
Change-Id: I8f1e126e1fe11c69aa03dee0a20a26ef2b7dc6a0
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/66554
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Colin McCabe <cmccabe@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Jay Cheng [Wed, 14 Dec 2011 00:51:58 +0000 (19:51 -0500)]
tegra: cardhu: correct typo
Change-Id: Idb51349471414b4ab6eb84de51a449077865021e
Reviewed-on: http://git-master/r/69872
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
venu byravarasu [Wed, 14 Dec 2011 11:09:58 +0000 (16:39 +0530)]
mfd: ricoh583: update API prototype
With this commit below changes to ricoh583 MFD are done:
1. Updating cache copy of int enable register.
2. Changing the prototypes for bulk read & write APIs.
3. Updating rtc platform data structure.
bug 902137
Change-Id: I616d86628addaaa04f3faec035120bd6f9569603
Signed-off-by: venu byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/70010
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Animesh Kishore [Wed, 14 Dec 2011 08:20:03 +0000 (13:50 +0530)]
video dsi: tegra: Fix support for hs clk in lp mode
Enables high speed clock on mipi lanes in low power mode.
Change-Id: I3b05d7f9bc5e8f63483220100f3361904e627c52
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/69951
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Michael Hsu [Fri, 9 Dec 2011 02:14:01 +0000 (18:14 -0800)]
usb: class: cdc-acm: Fix NO_UNION_NORMAL detection in CDC-ACM.
Use AND operator instead of equality operator to test for
NO_UNION_NORMAL quirk. This allows devices with multiple
quirks to be properly tested against the NO_UNION_NORMAL
feature.
Change-Id: I4c6b019f161ddd91f40ad8e533cab2b435a68ddb
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/69892
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Alok Chauhan [Tue, 16 Aug 2011 09:09:42 +0000 (14:39 +0530)]
arm: tegra: Updated i2c platform data
Updated i2c platform data to add i2c arb lost recovery funtion
and corresponding gpio numbers to i2c pins
This is cherry pick of change http://git-master/r/#change,47290
Change-Id: I4098a512625c16598b8596d0e46d285ca9b92d2b
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/69717
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Alok Chauhan <alokc@nvidia.com>
Steve Lin [Tue, 29 Nov 2011 22:01:28 +0000 (14:01 -0800)]
arm: tegra: usb: Support tegra2 null ULPI phy restore function
Adding tegra2 null ULPI phy restore function and clean up code in usb_phy.
Bug 907350
Bug 912407
Change-Id: I93aa191cd7f9fdace7f80a66fedbf034728e2fe9
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/67189
Reviewed-by: Martin Chabot <mchabot@nvidia.com>
Tested-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Jonathan Roux <jroux@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Alex Frid [Sat, 10 Dec 2011 03:21:36 +0000 (19:21 -0800)]
ARM: tegra: power: Restore IRQ multiple CPU affinity
Restore IRQ affinity to multiple CPUs after LP=>G CPU mode switch.
Change-Id: Id7c263f2a11535669d1e9988f4e15b240a7fde38
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/69329
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Alex Frid [Wed, 12 Oct 2011 05:59:38 +0000 (22:59 -0700)]
ARM: gic: Use affinity hint to set multiple CPUs for IRQ
GIC IRQ affinity is currently set to one CPU only - the 1st cpu in
the requested mask. This commit adds option to set IRQ affinity to
all cpus present in affinity_hint and requested masks. The option is
enabled by default on Tegra architecture starting with Tegra3.
(cherry picked from commit
09f7ef4f28a6e18188649c40848252bc18a6646c )
Change-Id: I0d655f1d39170382f3372294172ed6d02dc0ad49
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/69328
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Anshul Jain [Fri, 9 Dec 2011 01:44:58 +0000 (17:44 -0800)]
arm: tegra: enterprise: Add initialization for ina230 driver
Sample code for enabling INA230 (/ INA226) current monitor for battery
EDP capping on Enterprise
Change-Id: I2c5b919dca4c9e31aa1432cc45ae0486700e02de
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/61968
Reviewed-on: http://git-master/r/69112
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Peter Boonstoppel [Thu, 3 Nov 2011 00:00:18 +0000 (17:00 -0700)]
hwmon: ina230: Add driver for INA230 (/ INA226)
Adds support for current monitoring for battery EDP capping
Change-Id: I85fc1770013ab80b986b3b6d77ffd96e1dc4068f
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/60560
Reviewed-on: http://git-master/r/69111
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Anshul Jain [Fri, 9 Dec 2011 01:36:58 +0000 (17:36 -0800)]
arm: tergra: enterprise: Add init code for system edp
Init code for system edp tables for Enterprise (aka battery edp
capping, aka battery peak current management); disabled by default.
Change-Id: I8cff00dba18576a3fabf5542e609bca010de9d0f
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/65612
Reviewed-on: http://git-master/r/69107
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Anshul Jain [Fri, 9 Dec 2011 01:33:32 +0000 (17:33 -0800)]
arm: tegra: enterprise: Initialize battery peak current management device
Register the battery peak current management device, that can trigger
cpu frequency/voltage change when GPIO is triggered by battery current
monitoring device.
Change-Id: I5a79ed2d3e057a51a7dc3953b8c252f4ee5b9a6a
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/68816
Reviewed-on: http://git-master/r/69104
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Jihoon Bang [Mon, 12 Dec 2011 19:00:14 +0000 (11:00 -0800)]
arm: tegra: enterprise: support A01 camera module
Change if statement to support E1513 A01 board in E1197.
Add tegra_get_camera_board_info to parse camera module id
that is passed in from bootloader.
Bug 914552
Change-Id: I20c3bcaf181e29446aa254ea189d917bc6905488
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/69504
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Anshul Jain [Fri, 9 Dec 2011 01:22:09 +0000 (17:22 -0800)]
power: bpcm: Battery Peak Power Management driver
This driver reduces CPU frequency in half by setting the CCLK_DIVIDER on
GPIO level triggered event by current monitoring device. It then calls
dvfs apis to reduce cpu frequency/voltage.
Change-Id: I703e2277243df5328ee6a46478ec8b7a3dab93aa
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/68794
Reviewed-on: http://git-master/r/69103
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Dan Willemsen [Mon, 19 Dec 2011 19:33:07 +0000 (11:33 -0800)]
tf: Fix build for kernel 3.1
Change-Id: Ie87bb2e71e8ce5cd8c249d0db196bf4e5c5e2ae4
Reviewed-on: http://git-master/r/71039
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Chris Johnson <cwj@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Dan Willemsen [Fri, 16 Dec 2011 22:11:14 +0000 (14:11 -0800)]
misc: Fix bad merge of MPU Kconfig
Commit
7fbb6eaca74d961fde208be87c89d703d5eff5ad in
android-tegra-nv-2.6.39 replaced mpu3050 with inv_mpu.
The cherry-picked commit on this tree just adds inv_mpu
commit
f1e961e877025f60cc409180350a3def85f26f64
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: I46194ea10cc8154c50a8b16c163bedf29a35d544
Reviewed-on: http://git-master/r/70628
Mayuresh Kulkarni [Fri, 16 Dec 2011 12:42:02 +0000 (18:12 +0530)]
mmc: tegra: fix mmc pm flags and capabilities
for bug 914934
Change-Id: I34892961074d5c23efb19a7e53688f227e0bf03d
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/70557
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Sanjay Singh Rawat [Tue, 13 Dec 2011 10:29:14 +0000 (15:59 +0530)]
arm: tegra2: defconfig: enable sh256 crypto algorithm
Software SH256 Cryptographic hash algorithm is needed
to support basic software encryption functionality.
Bug 882031
Change-Id: I05c9452ee6283e2cac1cf0049e5446b2556d7dd5
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/69745
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Alexandre Courbot [Tue, 13 Dec 2011 09:27:46 +0000 (18:27 +0900)]
usb: tegra: don't disable irq wake if probe failed
Set tegra->irq to 0 if the ehci irq cannot be used as a wake source and
do not disable it when removing the ehci to avoid unbalanced irq wake
enable/disable problem.
Bug 884315
Change-Id: I9abf9f5f28d61b71d8a96b6ffcbb5ba6d899b3c0
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/69716
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Nikesh Oswal [Tue, 13 Dec 2011 06:11:47 +0000 (11:41 +0530)]
asoc: tegra: init cache values for dam/ahub/apbif registers
init cache values for dam/ahub/apbif register by reading
the power on reset values in respective driver probe functions
bug 911332
Change-Id: I693baeff3e076095d3c7f225f1768a4082f7d305
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/69679
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Jin Park [Mon, 12 Dec 2011 23:20:30 +0000 (15:20 -0800)]
regulator: max77663: Fix power rail turn-off when change FPS source
To prevent power rail turn-off when change FPS source,
it must set power mode to NORMAL before change FPS source to NONE
from SRC_0, SRC_1 and SRC_2.
Change-Id: I02be96bd91ffb756a79a440d319fafe1739ae514
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/69566
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Ashwini Ghuge [Mon, 12 Dec 2011 10:20:54 +0000 (15:50 +0530)]
drivers: spi: Fix compiler messages in I/O drivers
Fixed warning message
Bug ID: 912669
Change-Id: I3090c35a5d0725102c101b10a99914510a272fa4
Reviewed-on: http://git-master/r/69444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Krishna Yarlagadda [Mon, 21 Nov 2011 11:31:44 +0000 (17:01 +0530)]
SPI: Register SPI1 as slave device
Registering SPI1 as slave device which will be used in
loopback tests on E1198
Bug 903874
Reviewed-on: http://git-master/r/66790
(cherry picked from commit
87d7bc65a43dbb3a745c1bcb03e53ba44f8e80e9 )
Change-Id: I22aeca2457dcb38125de48275e00c268fbe8792b
Reviewed-on: http://git-master/r/69189
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Ilan Aelion [Thu, 8 Dec 2011 19:40:08 +0000 (12:40 -0700)]
video: tegra: host: scale 3d.emc with 3d.bus
3d.emc clock will be scaled proportionately to the rate chosen
for 3d.cbus clock.
Bug 911223
Change-Id: I903ad7e3f6c33c3d3119e8b9810839edb1084596
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/69021
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Jay Cheng [Thu, 8 Dec 2011 14:45:25 +0000 (09:45 -0500)]
tegra2: dvfs:vdd_core voltage must be 120mv higher than vdd_cpu
bug 880495
Change-Id: Ic89487c6296b20377ee12a135d06bef5b5c8b6fa
Reviewed-on: http://git-master/r/68983
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Donghan Ryu [Thu, 8 Dec 2011 02:24:24 +0000 (11:24 +0900)]
video: tegra: host: max emc rate when 3d is on
Currently, EMC rate is mostly controlled by CPU frequency
assuming that higher CPU freqeuncy requires more mem B/W.
However, some of the 3d apps makes GPU very busy while CPU
is mostly idle. This patch changes HOST_EMC_FLOOR to UINT_MAX
allowing GPU to utilize full mem B/W when it is active.
This may be re-visited when 3d scaling is enabled since we might
be able to scale EMC rate dynamically based on 3d rate.
Bug 911223
Change-Id: I8eb7b3991abe3bd664441bfc1f43075984dafcaa
Signed-off-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-on: http://git-master/r/68650
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Raj Jayaraman [Fri, 9 Dec 2011 01:05:26 +0000 (17:05 -0800)]
ARM: defconfig: Enable M7400 modem support.
Bug 886459
Change-Id: I9ffce0e0186cace45c403ae6880f3460ed3ede47
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/68307
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Raj Jayaraman [Fri, 9 Dec 2011 00:59:24 +0000 (16:59 -0800)]
ARM: defconfig: Enable baseband power management support.
Bug 886459
Change-Id: Id6efa14da2de776208fba2fe58624c79cca809ed
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/68285
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Sumit Bhattacharya [Tue, 13 Dec 2011 16:27:04 +0000 (21:57 +0530)]
ASoC: MAX98088: Fix compiler warning
Change-Id: Ifd53d0cb0cd6022c3f526df3ba79cd4369796749
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/69783
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Sumit Bhattacharya [Tue, 13 Dec 2011 15:37:56 +0000 (21:07 +0530)]
ASoC: Tegra: Add support for AP slave mode for Tegra30
If AP is set as slave set audio_sync clock as source of i2s controller
clock and use pll_a_out0 as i2s controller source in AP master mode.
This change is needed to support AP slave mode reliably on Tegra30.
Bug 911332
Change-Id: I91e54d1d297c58ad65baac86831bccfbaadf732c
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/69777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Terje Bergstrom [Tue, 13 Dec 2011 07:28:17 +0000 (09:28 +0200)]
video: tegra: host: Enable multiple MPE contexts
Enable multiple contexts for MPE.
Bug 827192
Change-Id: I112ddbdc099efdce3f214161ae454bce34158dc7
Reviewed-on: http://git-master/r/69690
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Sumit Bhattacharya [Tue, 13 Dec 2011 13:09:04 +0000 (18:39 +0530)]
ARM: Tegra: Set i2s_sync as parent of audio clock for Tegra30
Set i2s_sync clocks as parent of audio clocks in tegra_clk_init_table.
Entries are added only for active I2s ports for corresponding Tegra30
board.
Bug 911332
Change-Id: I86440cbff6432fcec3de249c9baf46aab785122f
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/69757
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Sumit Bhattacharya [Tue, 13 Dec 2011 12:48:02 +0000 (18:18 +0530)]
ARM: Tegra: Add dev_id and con_id for audio_sync clocks
For I2s slave mode i2s clock needs to be generated from audio_sync
clock. So depending on codec master/slave mode parent of i2s clock
needs to be changed in runtime. To support this i2s_sync, audio and
audio_2x clocks needs to be accessed from I2s driver. To facilitate
accessing of all these clocks add dev_id and con_id fields for these
clocks.
Bug 911332
Change-Id: I92094ac563de8025f7d88eb47e439098c98111bb
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/69756
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Sumit Bhattacharya [Tue, 13 Dec 2011 12:02:23 +0000 (17:32 +0530)]
ASoC: Tegra: Pass "i2s" as con_id in clk_get
This is a preparation change for using dev_id and con_id fields for
audio sync clocks. Use con_id field for i2s clock to get proper
clock.
Bug 911332
Change-Id: I6aa795624379c00075868d8529bff6e131299a40
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/69744
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Sumit Bhattacharya [Tue, 13 Dec 2011 10:45:48 +0000 (16:15 +0530)]
ASoC: Tegra: Fix I2s probe failure path
Don't free i2s context in I2s platform driver probe failure case
since it is statically allocated.
Change-Id: Ia1fb7e17493b8906a36e658ded925f0f414aae23
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/69729
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Nikesh Oswal [Tue, 13 Dec 2011 09:40:28 +0000 (15:10 +0530)]
asoc: tegra: restore i2s/das/spdif registers after suspend for t20
when system resumes from suspend state the i2s/das/spdif registers
have power on reset values, this change restores the registers
with their prior values from cache
Bug: 904530
Change-Id: I35c14d95d2d6bf5bc116a1a80e21f4904c8969e5
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/69715
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Anton Kondratenko [Tue, 13 Dec 2011 03:06:17 +0000 (19:06 -0800)]
ARM: tegra: cardhu: fix 5650 power on sequence
Since front and back right camera are multiplexed,
back right camera needs to be selected on power on.
Bug 890780
Change-Id: I6c9ecb95c42b3faedfede98b7e7de7e778d720b6
Signed-off-by: Anton Kondratenko <akondratenko@nvidia.com>
Reviewed-on: http://git-master/r/69662
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Isaac Richards [Wed, 7 Dec 2011 20:44:19 +0000 (15:44 -0500)]
nvavp: vid ucode firmware file fallback
If loading the normal video ucode file fails, try an alternative.
Bug 912656
Change-Id: I5de9af222e46dcec21f821e78ea115800cbf4805
Signed-off-by: Isaac Richards <irichards@nvidia.com>
Reviewed-on: http://git-master/r/68755
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Manoj Chourasia [Thu, 1 Dec 2011 17:37:25 +0000 (23:07 +0530)]
tegra: NOR: Pass timing register value from platfom data
Get timing register value from platform data
instead of timing structure.
Fix NOR device registration using tegra_nor_device.
Signed-off-by: Manoj Chourasia <mchouraia@nvidia.com>
Reviewed-on: http://git-master/r/56889
(cherry picked from commit
f77e726ec89d09ba3174a395d9f98c1b02a83c58 )
Change-Id: Ie5ea216a770c998dd2ce578f206f83bcbd248fd2
Reviewed-on: http://git-master/r/67710
Tested-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Chandrakanth Gorantla [Fri, 11 Nov 2011 16:09:17 +0000 (21:39 +0530)]
asoc: max98088: shutdown codec in bias off state
set global shutdown bit to zero so that codec will shutdown in
bias off case
bug 899662
Change-Id: I86cf5d9567463166fc3ee0585083faba35dac301
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/63858
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Manoj Chourasia [Thu, 3 Nov 2011 14:04:07 +0000 (19:34 +0530)]
tegra: nor: Add NOR mapping driver.
This patch adds NOR mapping driver for tegra2 and tegra3.
Signed-off-by: Manoj Chourasia<mchourasia@nvidia.com>
Change-Id: Ie773d024a49977e356d4a9d605910ca30f22a3f3
Reviewed-on: http://git-master/r/43566
Reviewed-on: http://git-master/r/62149
Tested-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Krishna Reddy [Mon, 12 Dec 2011 21:44:42 +0000 (13:44 -0800)]
video: tegra: nvmap: Skip CPA for carverout.
Skip page table attribute update for carveout.
Bug 914347
Change-Id: I6a1deeadade17703e831268dc58360ebc35af915
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/69539
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Krishna Reddy [Mon, 12 Dec 2011 19:58:06 +0000 (11:58 -0800)]
arm: mm: convert cpa_lock to mutex.
convert cpa lock to mutex from spin lock.
This is needed as page allocs, which can sleep, are happening
inside the spinlock.
Bug 913652
Change-Id: I8a31e31c2ca8f7631ec626a82a74509494f47219
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/69517
Reviewed-by: Automatic_Commit_Validation_User
Charlie Huang [Mon, 5 Dec 2011 23:51:51 +0000 (15:51 -0800)]
media: video: ov5650: optimize i2c write table seq
Combines i2c cmds that have sequential addresses into one bulk i2c write
cmd. This will save the overheads of slave addr + offset and the latency
time.
bug 816814
Change-Id: I7b3808e8af17dd805452672e4386033d8383fb91
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/68326
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Amit Pandya [Tue, 4 Oct 2011 12:47:34 +0000 (18:17 +0530)]
ARM: tegra: config: Enable camera sensor devices
Add kernel config flags in "tegra_defconfig" & "tegra3_defconfig" to enable
camera sensor,focuser & torch devices.
This is to enable Camera capture on L4T with T20 Ventana & T30 Cardhu.
Bug 869132 & 880107
Change-Id: Ib81908881c8936e7b3dd7ebdcfd9bba006aa343f
Cherry-picked From :
f09adb0d15f0991d0e7116f7a1092339bf92f9e9
Reviewed-on: http://git-master/r/55977
Signed-off-by: Amit Pandya <apandya@nvidia.com>
Reviewed-on: http://git-master/r/68165
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Terje Bergstrom [Wed, 10 Aug 2011 06:06:41 +0000 (09:06 +0300)]
video: tegra: host: Implement MPE context switch
Implement context switching for MPE. This allows doing multiple video
encodings at the same time.
Context switching relies on wait base being in sync with sync point. As
MPE user land does not use wait bases, the patch also enables automatic
wait base syncing.
This patch does not enable the context save/restore.
Bug 827192
Change-Id: I510c02fb6d02ffbc1b9537d33474d46022b6cf59
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/66881
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Hiroshi DOYU [Mon, 21 Nov 2011 12:17:09 +0000 (14:17 +0200)]
ARM: tegra: iovmm: Remove homebrew macro iovmprint()
iovmprint() doesn't do much. Use standard snprintf() directly
Change-Id: I437dc6767e9984ad72c2d4adbb7b389b3f32d10f
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/66370
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Hiroshi DOYU [Mon, 21 Nov 2011 13:46:00 +0000 (15:46 +0200)]
ARM: tegra: smmu: Use BUILD_BUG_ON for build time check
Those checks can be done at build time.
Change-Id: Ibe1bb540c5675452d5a11b34d8ff7e19d1b4bc51
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/66367
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Hiroshi DOYU [Mon, 21 Nov 2011 13:16:54 +0000 (15:16 +0200)]
ARM: tegra: gart: Remove unnecessary spin_lock
Nothing else should be using the device until after the probe function
returns 0.
Change-Id: If676ca004ec8fd87a4fe9472d792a676b83de7cc
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/66363
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Terje Bergstrom [Mon, 12 Dec 2011 11:04:54 +0000 (13:04 +0200)]
video: tegra: host: Prevent suspend if module is busy
MPE is kept artificially busy if a channel is open. This is done to
prevent power management during an encoding process.
This patch prevents system suspend if any module is busy.
Bug 911477
Change-Id: I943a7e29e473ac33e680281fcdce74618567facb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/69457
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Bill Huang [Mon, 12 Dec 2011 10:58:50 +0000 (02:58 -0800)]
ARM: tegra: config: enable KEYBOARD_GPIO for linux build
enable CONFIG_KEYBOARD_GPIO in tegra_defconfig
enable CONFIG_KEYBOARD_GPIO in tegra3_defconfig
bug 910846
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Change-Id: Idcb87128736f8576be738ca45bbae9ea98e40510
Reviewed-on: http://git-master/r/69706
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Bill Huang [Mon, 12 Dec 2011 10:33:00 +0000 (02:33 -0800)]
ARM: tegra: config: enable LCD & backlight for linux build
Enable backlight pwm control in tegra_defconfig
bug 910846
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Change-Id: Ieb24bbde8553bbac39d0858e2db8cbbd87d81122
Reviewed-on: http://git-master/r/69705
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Sumit Bhattacharya [Thu, 8 Dec 2011 10:56:59 +0000 (16:26 +0530)]
ASoC: Tegra: Fix compiler warnings
Bug 912637
Change-Id: I05e2d3dcb903bf9d011f9b108a8f65f25ee1d3b5
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68956
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Terje Bergstrom [Thu, 24 Nov 2011 08:17:27 +0000 (10:17 +0200)]
video: tegra: host: Write cmdbufs after relocs
Write cmdbuf stream to ftrace after the relocations have been done. This
way we can get the actual addresses referred to in the stream.
Change-Id: I7917abda19696198086f051e995288317491aacf
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/67096
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Alex Frid [Thu, 8 Dec 2011 05:35:38 +0000 (21:35 -0800)]
ARM: tegra: clock: Use Tegra3 PLL lock indicators
Bug 873599
Change-Id: Ice84a63d90d39105e53505282fe126e56c4749db
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/68897
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Alex Frid [Sun, 20 Nov 2011 01:28:31 +0000 (17:28 -0800)]
ARM: tegra: dvfs: Add DVFS rails statistic
On Tegra3: complete account of in- and out-of-bound rails control.
On Tegra2: out-of-bound vdd_cpu control in LP2 state is not accounted.
Change-Id: Ib68cbbfe3e4f965e758aca17a0ba30277d530347
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/67340
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Jay Agarwal [Mon, 5 Dec 2011 12:09:26 +0000 (17:39 +0530)]
arch: arm: config: disabling pcie in defconfig
Pcie powermanagement issues are yet to be resolved,
so modifying the defconfig to not to enable the
driver by default
bug: 878874
Change-Id: Ie8787342b1ccf9e22486129633d15d566d50e4e0
Signed-off-by: Krishna Kishore <kthota@nvidia.com>
Reviewed-on: http://git-master/r/64772
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Jay Agarwal [Wed, 30 Nov 2011 08:19:28 +0000 (13:49 +0530)]
ARM: tegra: Update tegra_ioremap for PCIE.
Update tegra_ioremap for PCIE address mapping.
Bug 637871
Reviewed-on: http://git-master/r/35253
(cherry picked from commit
b04ab5d338b31b21af0db5983839368a6ec4f327 )
Change-Id: Ib4d631b311f077b61f3a31cd63a4d09ee393db7e
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/66924
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Antti P Miettinen [Thu, 3 Nov 2011 08:39:22 +0000 (10:39 +0200)]
regulator: tps80031: Set selector in __tps80031_ldo_set_voltage
Set selector also in __tps80031_ldo_set_voltage().
Bug 886170
Change-Id: I17dab9cdfa6397dbdf9dba0232e4f8de0cf364f0
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/62147
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Jay Agarwal [Mon, 5 Dec 2011 08:55:38 +0000 (14:25 +0530)]
arm: tegra: cardhu: pcie support for cardhu bsp
Enabling PCIE support in cardhu board.
Fixes bug: 637871
Reviewed-on: http://git-master/r/34474
(cherry picked from commit
bde3e58d998b6e76934152219b8803327cea2fad )
Change-Id: I18c548b458ad3d17ec07d2ec5b16fd83897b44b1
Signed-off-by: Krishna Kishore <kthota@nvidia.com>
Reviewed-on: http://git-master/r/62072
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Krishna Kishore [Tue, 30 Aug 2011 08:36:51 +0000 (14:06 +0530)]
arm: tegra: pcie: enabling MSI support for pcie
MSI style interrupt support is being added to
pcie driver
Fixes bug: 637871
Reviewed-on: http://git-master/r/47330
(cherry picked from commit
de7fd8768b32da66eaf4eaf58473c65f7a76808d )
Change-Id: I105db7d08b545e75832f12433d8c2d233444294a
Signed-off-by: Krishna Kishore <kthota@nvidia.com>
Reviewed-on: http://git-master/r/62066
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Jay Agarwal [Mon, 5 Dec 2011 08:43:01 +0000 (14:13 +0530)]
arm: tegra: pcie: Adding tegra3 support for pcie
Added support for tegra3 to pcie driver
Fixes bug: 637871
Reviewed-on: http://git-master/r/44989
(cherry picked from commit
9bbfb4189474ede7f16a20b564ac7da2a93f6750 )
Change-Id: Ic0bb5b8d3098030baee5d8db6ca043df71db5a8e
Signed-off-by: Krishna Kishore <kthota@nvidia.com>
Reviewed-on: http://git-master/r/62059
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Raj Jayaraman [Mon, 5 Dec 2011 22:01:14 +0000 (14:01 -0800)]
arm: tegra: enterprise: Add audio support for E1197 board.
Add audio and modem voice call support for E1197 board.
Bug 906348
Change-Id: Idb0d6263233c7aaebd1134b0c1e71560b6439079
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/68282
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Prashant Gaikwad [Thu, 1 Dec 2011 04:47:51 +0000 (10:17 +0530)]
arm: tegra: Invalidate TLB/BTAC afer enabling coherency
Change-Id: Idaf841e245f3bccaae77375bb839e8c00bbc7542
Reviewed-on: http://git-master/r/67592
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Bill Huang [Fri, 9 Dec 2011 05:45:23 +0000 (21:45 -0800)]
ARM: tegra: config: enable MMC_UNSAFE_RESUME for linux build
Bug 909788
Signed-off-by: Bill Huang <bilhuang@nvidia.com>
Change-Id: I903c26b1d3864ce91b4c519ff1af17993a79f248
Reviewed-on: http://git-master/r/69139
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Ken Chang [Fri, 9 Dec 2011 00:05:51 +0000 (08:05 +0800)]
asoc: tegra: init cache values for i2s register
init i2s->reg_cache[] by reading i2s regs in probe function.
bug 911332
Change-Id: I58711b5b8a1866878e9de02144396883df6ff3da
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/69081
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Varun Wadekar [Thu, 7 Jul 2011 11:20:04 +0000 (16:50 +0530)]
crypto: tegra-aes: store keys in individual requests
store the keys in the individual request context structure,
since there is no other way to manage keys across different
crypto operations. also retry requests thrice in case of
errors
Reviewed-on: http://git-master/r/40008
(cherry picked from commit
5437e3230679fbc6e342f7e6787e3cc1692e5df6 )
Change-Id: Iba23e20371661c8732995d13774cf3dbba6e24b4
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Krishna Reddy [Mon, 5 Dec 2011 20:57:07 +0000 (12:57 -0800)]
arm: tegra: Restore L2 Aux control reg after LP2 exit.
Bug 908229
Change-Id: I0ce5955e62a66d806ff8937342e8f80940725f39
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/68270
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Bitan Biswas [Thu, 8 Dec 2011 07:03:15 +0000 (12:33 +0530)]
arm: tegra: irq: PMC WAKE2 level configuration
Wake level was not getting programmed for wake sources beyond WAKE31.
Previous expression was using 32-bit operation. Changing constant 1
to 1ull corrects the calculation.
bug 907980
Change-Id: Ie2e5f9a7dd4024db9d96859251169027570540f0
Reviewed-on: http://git-master/r/68907
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Jon Mayo [Wed, 7 Dec 2011 20:09:34 +0000 (12:09 -0800)]
arm: tegra: defconfig: Enable TEGRA_NVHDCP
Enable CONFIG_TEGRA_NVHDCP
Bug 912422
Change-Id: I43e27094eca00a445340b62644e76d664d8e65ab
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/68743
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Kevin Huang [Wed, 16 Nov 2011 23:49:37 +0000 (15:49 -0800)]
video: tegra: dc: Move DSI clock configuration to DC.
We'd better place clock set-up in dc as HDMI. It makes code cleaner.
Also eliminate a false warning.
Bug 902786
Bug 850852
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/65024
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
(cherry picked from commit
e570e8dd45a66f11f0fc432f5919c5a036e34ba0 )
Change-Id: I90d73602048e2b3c706550128ba04665c307da22
Reviewed-on: http://git-master/r/68863
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Tested-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Scott Williams [Wed, 7 Dec 2011 20:29:15 +0000 (12:29 -0800)]
arm: tegra: Fix build break when PM_SLEEP is not selected
Fix the build break when PM_SLEEP is not select that was
introduced by the restructuring of the reset handler code
for Trusted Foundations support.
Change-Id: I039d84f9244be52dd0a6a3b50d78d7189acb2ea8
Reviewed-on: http://git-master/r/68753
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chris Johnson <cwj@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Colin Patrick McCabe [Wed, 7 Dec 2011 20:16:55 +0000 (12:16 -0800)]
nvmap_mru: fix off-by-one
Change-Id: I1b8fa9d950dc2e8260363593ec0e41f70d275fac
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Reviewed-on: http://git-master/r/68745
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Krishna Reddy [Tue, 30 Aug 2011 17:15:44 +0000 (10:15 -0700)]
video: tegra: nvmap: Update page attributes as per request.
After allocating pages, Update page attributes in kernel
page table as per mem type requested.
Bug 865816
Reviewed-on: http://git-master/r/56334
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
(cherry picked from commit
bea4d449f4ff7090e0c2797693d2348f4586d8f6 )
Reviewed-on: http://git-master/r/62720
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
(cherry picked from commit
975fb95585543124de282faa4481433b147f61c6 )
Change-Id: Iee71f8b37c405731314a1441cdb30ca848b41399
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/68744
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Colin Patrick McCabe [Wed, 7 Dec 2011 20:08:11 +0000 (12:08 -0800)]
nvmap_dev: fix BUG_ON of unsigned number
Change-Id: Ic5f70fe468651dab331059feda438d6e8871ef8a
Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com>
Reviewed-on: http://git-master/r/68741
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Stephen Warren [Wed, 12 Oct 2011 18:46:20 +0000 (12:46 -0600)]
net: wireless: bcm4329: Fix build with gcc-4.6.1
Add a couple -Wno-error options when building with the new toolchain;
it's stricter. These can be removed once the code is fixed not to
cause warnings (see bug 888158).
Bug 830289
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
(cherry picked from commit
4a2bbb6dc6ab70a8e562d8db4d6016c28c290ce0 )
Change-Id: I9944bf4a5fac005fed5ff5d92c38c5be32ea6f55
Reviewed-on: http://git-master/r/68740
Tested-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
Prashant Gaikwad [Tue, 6 Dec 2011 11:57:44 +0000 (17:27 +0530)]
Revert "ARM: tegra: power: Use peek ahead timers not event notification"
This reverts commit
3f5e640849383b1d5ed551aa84e0a89578519f09 .
Change-Id: I5af3fab193204d121a0ea4a939d6e950d2c4a633
Reviewed-on: http://git-master/r/68680
Reviewed-by: Andy Park <andyp@nvidia.com>
Tested-by: Andy Park <andyp@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Victor Ryabukhin [Wed, 7 Dec 2011 06:16:47 +0000 (15:16 +0900)]
tegra: HDMI: add underscan capability exposure via sysfs
TVs/monitors which do not support underscan will crop HDMI picture.
Underscan information might be needed in userspace to adjust HDMI
resolution so that the picture will be shown correctly on such devices.
Bug 911580
Bug 912187
Change-Id: I1eec810d860e13dafef895cb85b32fd8187a4e02
Signed-off-by: Victor Ryabukhin <vryabukhin@nvidia.com>
Reviewed-on: http://git-master/r/68616
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Raj Jayaraman [Wed, 7 Dec 2011 01:09:19 +0000 (17:09 -0800)]
ARM: defconfig: Enable CAIF support.
Bug 886459
(cherry picked from commit
80b35eff76334a1a62192aa99c9d5dcb8c1ba76b )
Change-Id: I7f7914eeff30001ce6c56ecd26d1c61e6e981df1
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/68559
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Raj Jayaraman [Wed, 23 Nov 2011 01:49:08 +0000 (17:49 -0800)]
misc: tegra-baseband: Control M7400 service pin.
M7400 service pin should be held high by a pullup internal to it
for flashless mode. This is not working. As a fix, drive the signal
high from AP.
Bug 886459
(cherry picked from commit
1516ce643ca9c6e52540023342c27791b8a69867 )
Change-Id: I8a5ba9be6bcaf9119f5b81fe30de20cb8dc412d0
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/68505
Reviewed-by: Steve Lin <stlin@nvidia.com>
Erik Lilliebjerg [Tue, 6 Dec 2011 14:30:42 +0000 (07:30 -0700)]
media: video: tegra: sh532u focuser driver
Adding default calibration data for the cases where no focuser
EPROM data exists.
Bug 909087
Change-Id: I303e8dd3883f93c1ebca1dd00c6726b0afc099d2
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/68466
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Raj Jayaraman [Fri, 14 Oct 2011 20:50:36 +0000 (13:50 -0700)]
arm: tegra: enterprise: Add support for M7400 modem.
Bug 878736
Bug 886459
(cherry picked from commit
b840e235505829d7e11f2a984fb39d34bfb8f8d9 )
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Change-Id: I08e48d03eced6e24f2b005d6f6a73cd4fec5c368
Reviewed-on: http://git-master/r/68295
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Varun Wadekar [Thu, 15 Dec 2011 06:21:03 +0000 (11:51 +0530)]
ARM: tegra: whistler: remove baseband init when there is no modem
When personnality/odmdata is not set to 0x2 (no i450 baseband) baseband init
is called. Side effect is loss of console on UARTA and LP0 failure.
Bug 912378
Bug 913070
Bug 907350
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/68980
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Conflicts:
arch/arm/mach-tegra/board-whistler.c
Change-Id: Iab96d89b3741ae4535ce3d3eccb8ba31d13a85ff
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Raj Jayaraman [Fri, 14 Oct 2011 20:32:31 +0000 (13:32 -0700)]
misc: tegra-baseband: Add support for M7400 modem.
Bug 878736
Bug 886459
(cherry picked from commit
6f6a3b6759f95b833a3c98ee45015592f388b161 )
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Change-Id: Ieb5e9313ad9d6a32a813dadd911f448d8b334b42
Reviewed-on: http://git-master/r/68289
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
Tested-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>
Daniel Solomon [Wed, 9 Nov 2011 23:31:26 +0000 (15:31 -0800)]
arm: tegra: enterprise: Power down CEC and CLK_32K_OUT/BLINK pads
- Disabling HDMI CEC, which is generally not supported by T30.
- Clear APBDEV_PMC_DPD_PADS_ORIDE_0_BLINK at boot time
- Pull down CLK_32K_OUT/BLINK
Bug 898597
Cherry-picked From: http://git-master/r/#change,63408
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Change-Id: Ic6e6a5ddf16adf9e8f5a847a31ce7c902e3df9bc
Reviewed-on: http://git-master/r/68558
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Terje Bergstrom [Mon, 28 Nov 2011 06:33:50 +0000 (08:33 +0200)]
video: tegra: host: Return EBUSY when mutex busy
ERESTARTSYS can be used only when there is a signal pending to cause a
system call restart. In other cases, we must return a proper error
number to use space.
Change-Id: I018b051ec4cb63a0509762c39b47cc4420a21baa
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/68178
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Terje Bergstrom [Fri, 2 Dec 2011 12:27:56 +0000 (14:27 +0200)]
video: tegra: host: Use polling in nvhost_cdma_flush()
nvhost_cdma_flush() waits for channel to become empty before returning.
If there is already another process waiting for semaphore,
nvhost_cdma_flush() needs to use polling.
Change-Id: Ic0c3d7adc68b3ed93056ec73c16f685d6f1ba15e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/68163
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Terje Bergstrom [Sat, 3 Dec 2011 17:15:24 +0000 (19:15 +0200)]
video: tegra: host: Fix race in suspend/resume
Implement proper mutex locking for nvhost_module_suspend(). At the same
time the ordering of suspend is changed to first suspend clients and
then host1x. This simplifies the power management code, and makes
nvhost_resume() a no-op.
Bug 906607
Change-Id: I60048773944369f73094140fb16682638966c731
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/68084
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Sumit Bhattacharya [Wed, 7 Dec 2011 15:00:34 +0000 (20:30 +0530)]
ASoC: Tegra WM8753 machine: Disable regulator when not in use
On whistler audio regulator used to remain enabled always independent
of whether audio playback/capture is going on or not. Only enable
audio regulator when any playback/capture is going on using audio
codec.
Change-Id: Ifb8bf722434306a429aa08345215efde75c8ab38
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68695
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Sumit Bhattacharya [Wed, 7 Dec 2011 14:50:43 +0000 (20:20 +0530)]
ASoC: Tegra: return accurate pcm pointer position
Use DMA driver tegra_dma_get_transfer_count api to get current DMA
position and use it to return accurate PCM poiter position.
Change-Id: I28906a1f2dd47dd91f03b8a79f53196752be6083
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68692
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Andre Sihera [Fri, 15 Jul 2011 11:06:06 +0000 (20:06 +0900)]
tegra: fb: HDMI monitor spec. not correct via "mode" device.
When monitor is auto-detected on HDMI port, a special structure
is initialised to hold the video mode properties for the plugged-
in monitor. From this the display string is generated for displa
via the "mode" character device under /sys.
When the monitor is disconnected, the structures associated with
the monitor tself are cleared, but the pointer to the video mode
properties structure was left initialised and so pointed into thin
air, which resulted in garbage appearing on the "mode" device.
Added explicit deinitialisation code to reset pointer to video
mode properties so "cat mode" within /sys yields an empty string
when the HDMI monitor is unplugged.
Bug 849877
Reviewed-on: http://git-master/r/41205
(cherry picked from commit
8cecf2d7fbdf4d00945f3dd13bfe00161d4231d5 )
Change-Id: Ibf3f070fa7904e8a01966d2886bbe07e9b69a607
Reviewed-on: http://git-master/r/68588
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Vinod G [Wed, 7 Dec 2011 02:21:16 +0000 (18:21 -0800)]
kernel: sound: soc: Enable voice call dai link
Enabling the dai link for voice call devices.
Change-Id: Ie89ae4cbc1ae987c56776706c5e4cf1bbd6c8f18
Reviewed-on: http://git-master/r/68575
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Vinod G [Wed, 7 Dec 2011 02:15:08 +0000 (18:15 -0800)]
kernel: arm: tegra: Enable baseband device.
Add bandband device needed for voice call connection.
Change-Id: I01c068d13dbb42d0689c3caa4f4c9a69dad2cb3a
Reviewed-on: http://git-master/r/68574
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Seshendra Gadagottu [Tue, 6 Dec 2011 05:04:24 +0000 (10:34 +0530)]
arm: tegra: defconfig: remove CONFIG_USB_EHCI_ONOFF_FEATURE
CONFIG_USB_EHCI_ONOFF_FEATURE is removed. Dynamic add/removel of
hcd driver can be used instead of this feature.
BUG 787720
Change-Id: I325d870b0d2242b97273eff40cfb228d5c965682
Reviewed-on: http://git-master/r/68394
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Seshendra Gadagottu [Tue, 6 Dec 2011 04:50:58 +0000 (10:20 +0530)]
usb: host: tegra: CONFIG_USB_EHCI_ONOFF_FEATURE deprecated
CONFIG_USB_EHCI_ONOFF_FEATURE is removed. Dynamic add/removel of
hcd driver can be used instead of above feature.
BUG 787720
Reviewed-on: http://git-master/r/65105
(cherry picked from commit
a07377e01cd0a67f04cb74345e5a372bfc0059fb )
Change-Id: I185c08d09440cf683afc5eb1dc3f0dff5f93d25b
Reviewed-on: http://git-master/r/68393
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Seshendra Gadagottu [Tue, 6 Dec 2011 04:07:15 +0000 (09:37 +0530)]
arm: tegra: enterprise: register/unregister functions for hsic
Added functions for register and unregister usb hsic device with
kernel. Updated xmm platform data with these function pointers.
BUG 787270
Reviewed-on: http://git-master/r/65092
(cherry picked from commit
7655d416cfef35bd68c9b0daf16253b4f4e013c6 )
Change-Id: Ie3c5478164a4ee1a5b2e00e39827bb005d30a904
Reviewed-on: http://git-master/r/68392
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
Bitan Biswas [Wed, 7 Dec 2011 16:39:02 +0000 (22:09 +0530)]
arm: tegra: irq: any polarity lp0 wake change
False lp0 wakeup due to wake sources configured as any polarity was
traced to an earlier change. Reverting the change.
bug 906073
bug 909193
Change-Id: I1b2d8ecb265e9a57b5d2514f86853bd59481b58a
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/68700
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Sumit Bhattacharya [Wed, 7 Dec 2011 12:28:14 +0000 (17:58 +0530)]
ASoC: Tegra: Acquire wake_lock during playback capture
Acquire wake_lock from alsa kernel when pcm playback/capture
starts and hold it until playack/capture ends. It is needed
to prevent device from going into suspend state in middle
of audio playback.
Change-Id: I71e5fae0268f73a3e57f8d886c1b228d46899ea4
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68671
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Sumit Bhattacharya [Wed, 7 Dec 2011 11:45:53 +0000 (17:15 +0530)]
ASoC: WM8903: Disable irq before suspend
When codec enters suspend mic bias gets turned off. As a result if a
mic is already plugged in a mic removal event gets triggered. Once
codec driver gets mic removal interrupt it sleeps for the duration
of debounce time which causes kernel power manager to abort suspend.
To avoid this scenario disable mic detect IRQ before powering off
codec and enable the same during resume.
Change-Id: Ic3c90d73c9f2742b6771f7e3fe0e3fb1f59e1cd9
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/68662
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>