6 years agousb: xhci: tegra: enable SS wake intr for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable SS wake intr for active ports

Enabling SS wake interrupt only for active ports as passed
by board file.

Bug 1268244

Change-Id: Iee368f51c875594085798c055d37633b3d6f02a8
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229993
(cherry picked from commit 9b0292923e23f6ade3f515fa180f08ef4f14654c)
Reviewed-on: http://git-master/r/235059
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: enable HS wake intr for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable HS wake intr for active ports

Enabling HS wake interrupt only for active ports as passed
by board file.

Bug 1268244

Change-Id: I8c5120d290762084c7fd02f60d415a7b19d52bdf
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229992
(cherry picked from commit 900660be1be54a64a1f8e49c231664c2d20bdd7c)
Reviewed-on: http://git-master/r/235058
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: enable SS wake signal for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable SS wake signal for active ports

Enabling SS wake only for active ports as passed by board file.

Bug 1268244

Change-Id: Ib0c9e94a9353b2ce3a3ece3082b86726e2c041f9
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229991
(cherry picked from commit 19e2fc3504f0ef07d6a0d45deff831ef7d43125e)
Reviewed-on: http://git-master/r/235057
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: enable SS VCORE only for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable SS VCORE only for active ports

Enabling SS VCORE only for active ports as passed by board file.

Bug 1268244

Change-Id: Ifd2a04340c2b17d3e1410f233c3a6949050818a6
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229990
(cherry picked from commit 8c59ce76e72d88eecaafeaf6ea31b2f7152310b3)
Reviewed-on: http://git-master/r/235056
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: refactor padctl programming
Ajay Gupta [Mon, 3 Jun 2013 17:09:37 +0000]
usb: xhci: tegra: refactor padctl programming

Removes the padctl_data being passed from board file as
some of them can be computed inside driver based on active
ports on a board. Some padctl datas are platform specific and
so have been moved to arch/arm/mach-tegra/xusb.c

Bug 1268244

Change-Id: I782768eddbb2a1e240fa798982eb64a3459ba617
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229987
Reviewed-on: http://git-master/r/235055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: cleanup hs disconnect fix
Ajay Gupta [Tue, 14 May 2013 22:11:34 +0000]
usb: xhci: tegra: cleanup hs disconnect fix

HS disconnect fix has introduced Coverity bug by returning
unconditionally from a function leaving dead code after return.
Fixing the same by checking a flag "ignore_freq_change" which
will be set for T114 in arch/arm/mach-tegra/xusb.c.

Bug 1046331

Change-Id: I7b86a47b7d1051db6d29fb56fb27c4a426df2ec6
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229986
(cherry picked from commit 758d93a5fc85cecde8a34f108650e3cbbd41aba4)
Reviewed-on: http://git-master/r/235054
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: read port number from board data
Ajay Gupta [Tue, 14 May 2013 21:34:00 +0000]
usb: xhci: tegra: read port number from board data

Bug 1268244

Change-Id: I9cb06015f096de6c3f65a8bef73441918ab1e58f
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228502
Reviewed-on: http://git-master/r/235053
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: xusb: read usb_calib once in common file
Ajay Gupta [Tue, 14 May 2013 20:16:36 +0000]
ARM: tegra: xusb: read usb_calib once in common file

Moved usb_calib read part in arch/arm/mach-tegra/xusb.c from
Dalmore and Pluto board files.

Bug 1268244

Change-Id: I1188499da7138c5b02c8d26d298646ad179226e1
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228501
(cherry picked from commit f42db0c62ddb8826797cf285df3a5547039a6a22)
Reviewed-on: http://git-master/r/235052
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: read padctl data from new place
Ajay Gupta [Tue, 14 May 2013 19:30:42 +0000]
usb: xhci: tegra: read padctl data from new place

xusb platform device will now have padctl data inside baord_data
which is a struct inside tegra_xusb_platform_data

Bug 1268244

Change-Id: I147eacfcdeaec22d7d101a739af82ccb2b3febf0
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228500
Reviewed-on: http://git-master/r/235051
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: refactor xusb registration
Ajay Gupta [Tue, 14 May 2013 19:09:59 +0000]
ARM: tegra: refactor xusb registration

Refactored xusb device registration to support multi chip
and multi board configuration.

Added arch/arm/mach-tegra/xusb.c where all board files belonging
to any tegra chip would call tegra_xusb_init() with board specific
config to register xusb platform device.

Bug 1268244

Change-Id: I6fc08e9c762e93c68172be58b187add6f62171cb
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228499
Reviewed-on: http://git-master/r/235050
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: xusb: set PD_CHRP and PD_DISC always zero
Ajay Gupta [Tue, 21 May 2013 15:54:04 +0000]
ARM: tegra: xusb: set PD_CHRP and PD_DISC always zero

This is needed to save 4mW power.

Bug 1275290

Change-Id: Id96916c1a9d85f915284369942a59e454becc1d8
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/231016
(cherry picked from commit fd2289697553352c75838a35a8898a168de85bdb)
Reviewed-on: http://git-master/r/235049
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: process set bandwidth fw message
Ajay Gupta [Mon, 20 May 2013 21:46:22 +0000]
usb: xhci: tegra: process set bandwidth fw message

Bug 1266234

Change-Id: I0c89373913391bd8b04f2245d178eae44a9bded5
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/231004
Reviewed-on: http://git-master/r/235048
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: Tegra: Roth: Update DVFS for P2454 and P2560
Sang-Hun Lee [Tue, 21 May 2013 18:33:19 +0000]
ARM: Tegra: Roth: Update DVFS for P2454 and P2560

Bug 1181038

Change-Id: I1bb349448106dcc30e7d7fd6d62bbe9dfd2f9f7f
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/223940
(cherry picked from commit aa528008d1fc4f706e897f7618d59f8e577129a0)
Reviewed-on: http://git-master/r/231255
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: Tegra: Roth: Toggle DDC pull down with hpd
Graziano Misuraca [Thu, 4 Apr 2013 00:23:06 +0000]
ARM: Tegra: Roth: Toggle DDC pull down with hpd

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

Bug 1237421

Change-Id: I57bb7209ac79762f90c88e999a75133d8125c453
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/216317
(cherry picked from commit 222b3bd12b2c5a5e2537ce1a89e356b646f5be79)
Reviewed-on: http://git-master/r/224297
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agopower: test_power: add voltage_ocv and temp parameters
Timo Alho [Mon, 3 Jun 2013 07:40:05 +0000]
power: test_power: add voltage_ocv and temp parameters

This patch extends test_power by adding configurable parameters for
open circuit voltage and temperature of the battery.

Change-Id: I91a8450f3059e476ec64a36a30491140a91d6433
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/234903
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agommc: tegra: Code clean up
Naveen Kumar Arepalli [Mon, 3 Jun 2013 04:26:49 +0000]
mmc: tegra: Code clean up

For SDR 50 mode don't run the sdmmc controller at freq greater
than 104MHz other than T30 platforms.

Bug 1239457

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

6 years agomedia: video: tegra: imx135: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:59:45 +0000]
media: video: tegra: imx135: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: Ica2b05b59b86df8cc7e1179e5e42fca93b169bba
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234468
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agomedia: video: tegra: imx132: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:59:12 +0000]
media: video: tegra: imx132: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I5ca45aba3d8aaf49926df0c77375b714afb90e27
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234467
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agomedia: video: tegra: ov9772: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:58:45 +0000]
media: video: tegra: ov9772: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I38990e3a830b93368c6d7800a8d2207aeaada08a
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234466
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agomedia: video: tegra: imx091: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:50:09 +0000]
media: video: tegra: imx091: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I222a93d9bc29f01d9f582f614c3513e439e634e5
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234465
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: decouple MCLK from vi device
David Schalig [Thu, 30 May 2013 08:24:38 +0000]
arm: tegra: decouple MCLK from vi device

Allow clocks vi_sensor and vi_sensor2 to be used from any device,
not only tegra_camera (vi) device. This is a prerequisite to
move sensor MCLK control into sensor drivers, and to use MCLK for
non-camera devices.

Also, the default recommendation for camera MCLK is different
between T20/T30/T114 and T148: On T148 cameras should use vi_sensor2
while on other Tegra families it should be vi_sensor. Thus
create a clock alias 'default_mclk', to allow sensor drivers without
explicit MCLK config default to the right one.

Bug 1298672

Change-Id: Ifda4d39d927560e2f2c50c953f2a9c372e9cf72c
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234044
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: roth: keep smart dimmer off on boot
Rakesh Iyer [Sun, 31 Mar 2013 06:49:02 +0000]
arm: tegra: roth: keep smart dimmer off on boot

Keep smart dimmer off during boot for a consistent backlight setting.

Bug 1263334.

Change-Id: I2bc663f1e366c488d16641d99899bc51b9197867
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/214844
(cherry picked from commit c52c073efc2e47c5eab2f0802b07c96d23302065)
Reviewed-on: http://git-master/r/229755
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: macallan: set the LDO5 to 2.8V
Hunk Lin [Sat, 11 May 2013 07:47:36 +0000]
arm: tegra: macallan: set the LDO5 to 2.8V

This rail is used for avdd of CAM2. Checked the datasheet of OV9772,
the avdd's typical value is 2.8V.

Bug 1287854

Change-Id: I9d38554f79d02cf1177c4a44c77b8b14d371e08a
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/227723
(cherry picked from commit ff221e553ea99b822181965b1ae5fc8191b72996)
Reviewed-on: http://git-master/r/228241
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: macallan: set apply_uV for LDOs
Hunk Lin [Tue, 7 May 2013 09:51:18 +0000]
arm: tegra: macallan: set apply_uV for LDOs

apply_uV should be set if min == max, so change this flag for LDOs which
min == max.

Bug 1280145

Change-Id: I683b88c6ab011811a44a830550ef254f0e1ff609
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/226127
(cherry picked from commit 6019174f94407020d7d49e8128a24b5ea54faf63)
Reviewed-on: http://git-master/r/226963
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: backlight: EDP client for backlight
Vineel Kumar Reddy Kovvuri [Wed, 29 May 2013 05:31:05 +0000]
video: backlight: EDP client for backlight

Implements EDP client for Atlantis & Ceres backlight system
Bug 1266737

Change-Id: I236a4e9f4e17b50b9ee068c80e91411e3edd3a8e
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/221554
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agopower: palmas-battery: remove build warnings
Laxman Dewangan [Mon, 3 Jun 2013 09:16:17 +0000]
power: palmas-battery: remove build warnings

Fix build warnings:
-----------
palmas_battery.c: In function 'palmas_battery_current_now':
palmas_battery.c:540:20: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_voltage_now':
palmas_battery.c:612:17: warning: unused variable 'palmas' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_temperature':
palmas_battery.c:624:17: warning: unused variable 'palmas' [-Wunused-variable]
palmas_battery.c: In function 'palmas_gasgauge_calibrate':
palmas_battery.c:1225:11: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_current_avg':
palmas_battery.c:1311:15: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_current_setup':
palmas_battery.c:1413:15: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_remove':
palmas_battery.c:1637:17: warning: unused variable 'palmas' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_probe':
palmas_battery.c:1500:13: warning: 'di' may be used uninitialized in this function [-Wuninitialized]
palmas_battery.c:1585:14: warning: 'retry_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
-----------

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

6 years agoiommu/tegra: smmu: Introduce conditional GFP_ATOMIC
Hiroshi Doyu [Tue, 28 May 2013 12:34:27 +0000]
iommu/tegra: smmu: Introduce conditional GFP_ATOMIC

Introduce conditional GFP_ATOMIC to avoid unnecessary OOM with
GFP_ATOMIC at non atomic context.

bug 1281030

Change-Id: Ia3d0a48dcb5661b18efc2810b17d6e2925469204
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/233317
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoisomgr: optimize the reserve/realize calls
Krishna Reddy [Wed, 22 May 2013 19:34:07 +0000]
isomgr: optimize the reserve/realize calls

optimize the reserver/realize calls if there is
no change in bw requested.
update the trace message for set_margin API.

Change-Id: Ic271c0fc02b5c058b4837bfee55ae875123d073e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/231701
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agostaging: nvshm: fix race condition at tty init
Martin Chabot [Wed, 29 May 2013 14:28:30 +0000]
staging: nvshm: fix race condition at tty init

Fix kernel panic when data is received before
tty is installed.
Add more sanity check to avoid potential crashes
Remove unused variables
Remove tty flow control warning to avoid filling log

Bug 1295849

Change-Id: I388d93ddc01e8ad120dd1015d39c9227afadbc53
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/233766
Reviewed-by: Julien Vuillaumier <jvuillaumier@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Herve Fache <hfache@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agovideo: tegra: nvmap: detect invalid pointers passed to nvmap
Krishna Reddy [Thu, 30 May 2013 23:42:39 +0000]
video: tegra: nvmap: detect invalid pointers passed to nvmap

detect invalid pointers passed to nvmap and avoid crash in nvmap.
generate warnings for API's that don't return error, to ease
client code debug.

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

6 years agoARM: tegra14: pm: don't always shut pllp in LP1BB
Prashant Malani [Thu, 30 May 2013 20:57:51 +0000]
ARM: tegra14: pm: don't always shut pllp in LP1BB

If we are entering in LP1BB, and EMC is running
off of PLLP, we should refrain from switching it
off.

Bug 1295878

Change-Id: I5c87edc231fde529fd7d28f1d5574ebb74cf8427
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/234273
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Herve Fache <hfache@nvidia.com>
Tested-by: Herve Fache <hfache@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agoARM: tegra: gizmo: Change SE prefetch settings
Shravani Dingari [Thu, 30 May 2013 05:48:39 +0000]
ARM: tegra: gizmo: Change SE prefetch settings

Remove IMMEDIATE bit setting for SE and use
default value of zero for this bit

Bug 1287300

Change-Id: I68e61ddba0e9a4257ceb79d453006eacc98d0fe1
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/233979
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoASoC: Tegra: Add support for dual mic
Ravindra Lokhande [Fri, 3 May 2013 16:42:39 +0000]
ASoC: Tegra: Add support for dual mic

To send dual mic data to modem we need to remove DAM from uplink path.

This changes removes dam from uplink path and sets codec rate to
16khz and uses dam for downlink.

Bug 1234999
Bug 1263251

Change-Id: I2ebfb206543afe352268049327a284e54e1933f8
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/225300
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agohwmon: ina230: add function to check alert flag
Timo Alho [Fri, 31 May 2013 18:58:07 +0000]
hwmon: ina230: add function to check alert flag

This patch adds a function to check the status of alert flag. This
enables alert functionality to be used (by polling) for ina devices
that do not have alert IO signal connected to AP.

Change-Id: Id9cf87a324a6c817d431b544f38e4cd9ebb7f28f
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/234634
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agovideo: tegra: dsi: Guard auto calibration for 11x SOC
Vineel Kumar Reddy Kovvuri [Tue, 28 May 2013 07:58:05 +0000]
video: tegra: dsi: Guard auto calibration for 11x SOC

Guard auto calibration logic with CONFIG_ARCH_TEGRA_11x_SOC
to make future chips unaffected.

Bug 1294647

Change-Id: If700bc846858423250d7b92909f87f01c613e093
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/233220
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: Load all sync points in waitchk
Terje Bergstrom [Tue, 5 Mar 2013 08:24:30 +0000]
video: tegra: host: Load all sync points in waitchk

Waitchk updates only a few sync point values from hardware because
the loop end condition is misconfigured. Fix that, and use the
standard bitmap macros for declaring the waitchk mask.

Remove checking for current > max, because that is easy to fail in
case of wrapping sync point.

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

6 years agoregulator: core: disable parent if child enabled during registration
Laxman Dewangan [Tue, 28 May 2013 14:44:57 +0000]
regulator: core: disable parent if child enabled during registration

If regulator's parent is enabled because of regulator is found to
be enabled during registration then disable parent if:
- regulator registration failed or
- when full constraints is enabled and regulator get disabled.

bug 1285809

Change-Id: I7a7c551543a9cbecf83bf10ef783e72aaa8c2173
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Venkat Reddy <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/233346
(Cherrypicked commit 93b10111379bbbef916b86105510f1b7bd6bf77f)
Reviewed-on: http://git-master/r/234761
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: mcerr: Include proper header for tegra148
Bo Yan [Fri, 31 May 2013 17:13:52 +0000]
ARM: tegra: mcerr: Include proper header for tegra148

Change-Id: I03ccdd575d798d2740982bf747f87f7000d8f49b
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/234583
Reviewed-by: Automatic_Commit_Validation_User

6 years agopower: max77660: Add support for all interrupt types
Darbha Sriharsha [Thu, 30 May 2013 22:14:16 +0000]
power: max77660: Add support for all interrupt types

Add reporting and support for all max77660
battery charger interrupt types.

Bug 1277651

Change-Id: If4d3bcc92f48603ee916ec3bfaf75dfe0c410363
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/234308
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max17048: Remove power supply type reporting
Darbha Sriharsha [Thu, 30 May 2013 21:57:19 +0000]
power: max17048: Remove power supply type reporting

Remove AC and USB power supply reporting from max17048 fuel gauge
driver

Bug 1277651

Change-Id: I6f1b00deff02e006c7f147f12b0c39c9593a0ee4
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/234305
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max77660-charger: Remove power supply change notification
Darbha Sriharsha [Thu, 30 May 2013 14:08:01 +0000]
power: max77660-charger: Remove power supply change notification

Removing the power supply type notification from charger driver.
There is no info on charging driver other than charging current and
hence deriving the charging source based on charging current is
in-accurate. Hence removing the power supply notification.

Bug 1277651

Change-Id: I3b81020bd73a0dfe2d8eb2a4a955e9806ebf7bfa
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/234304
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: palmas: move tracking config to config flags
Laxman Dewangan [Fri, 31 May 2013 15:00:55 +0000]
regulator: palmas: move tracking config to config flags

There is different platform data for enable tracking and
enable tracking for ldo8.

Now there is config_flags to configure the each rails with platform
specific, use this flags for tracking enable/disable also and remove
the duplicate member for tracking control.

This reduces the number of members on platform data and make the
configuration easy.

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

6 years agoregulator: palmas: add config flags to configure regulator behavior
Laxman Dewangan [Fri, 31 May 2013 13:16:44 +0000]
regulator: palmas: add config flags to configure regulator behavior

Add the config variable on regulator init data to configure the rails
behavior like force off on suspend etc.

bug 1278567

Change-Id: I01f8f5729dfa67ba9f301d2f06825b152ef6857a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/227077
(Cherrypicked commit feffc32237ad8c3e16d8b05de259d2a6d4a76fa8)
Reviewed-on: http://git-master/r/234558
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: nvmap: unmarshal handle id during dma buf share
Krishna Reddy [Thu, 30 May 2013 00:27:16 +0000]
video: tegra: nvmap: unmarshal handle id during dma buf share

unmarshal the handle id received from user space

Change-Id: I2ef95aeef50b8fd5548298adb288fe8827fcaff5
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/233905
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

6 years agovideo: tegra: nvmap: fix handle validation issue
Krishna Reddy [Wed, 29 May 2013 23:12:34 +0000]
video: tegra: nvmap: fix handle validation issue

fix handle validation issue during handle duplicate from fd

Change-Id: I3bc57c6d91e8e934bbbe3fe4099b840b86ad7fa2
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/233880
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: init static keys when lock debugging is enabled
Emma Yan [Mon, 21 Jan 2013 07:49:57 +0000]
video: tegra: host: init static keys when lock debugging is enabled

Fixed the warning messages from lockdep_init_map()

Bug 1048760

Reviewed on: http://git-master/r/140882
(cherry-picked from commit I651800826d1aa849c8aa51f18a52712d66fa2e35)

Change-Id: I4c5707cdc252e23b78772eab857f2afac8d80581
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/192772
(cherry picked from commit a9724a0344c9bd777aabb478dfdff66a7db30841)
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/201628
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: SOC_THERM: write directly to the CAR SUPER_CCLKG_DIVIDER register
Paul Walmsley [Wed, 29 May 2013 23:38:27 +0000]
ARM: tegra: SOC_THERM: write directly to the CAR SUPER_CCLKG_DIVIDER register

The SOC_THERM driver writes directly to the CAR
SUPER_CCLK_DIVIDER.SUPER_CDIV_USE_THERM_CONTROLS bit to enable thermal
controls.  (It shouldn't be writing to the CAR IP block directly,
ideally; but that's a different patch.)

The problem is that it appears that this write will be silently
ignored if the G cluster is not currently active when the write
occurs.  The impact is that, if the SOC_THERM driver initializes while
the system is running on the LP core, thermally-driven pulse skipping
probably won't be enabled.

Found during a code review.

Bug 1298364

Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com>
Cc: Diwakar Tundlam <dtundlam@nvidia.com>
Cc: Matthew Longnecker <mlongnecker@nvidia.com>
Change-Id: I7d5162db4f658571d4c6e0077403be2e1d9cb942
Reviewed-on: http://git-master/r/234311
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: Use memmgr from user in ctx save
Terje Bergstrom [Thu, 30 May 2013 11:15:33 +0000]
video: tegra: host: Use memmgr from user in ctx save

User space based context save uses memory manager from the old hardware
context. The old hardware context will get deleted when the channel is
closed. Use the instance from user context instead, and acquire a
reference.

Bug 1295222

Change-Id: Ic549a09bfa5945dfc1752070529083461c5a7aca
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/234106
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomisc: max77660-sim: Configure pull up for sim detection
Matthieu Vincenot [Wed, 22 May 2013 18:24:09 +0000]
misc: max77660-sim: Configure pull up for sim detection

bug 1226197

Change-Id: Iea2a1eab88a1d3072ff346fca3dd86a731f417fa
Signed-off-by: Matthieu Vincenot <mvincenot@nvidia.com>
Reviewed-on: http://git-master/r/231683
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: hdmi: serialize hotplug processing
Rakesh Iyer [Thu, 4 Apr 2013 00:23:51 +0000]
video: tegra: hdmi: serialize hotplug processing

Serialize HDMI hot plug processing to handle boot init and spurious hotplugs.

Bug 1254317.

Change-Id: I7a695033eea659500c7b73da321ec3345084fa97
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/217552
(cherry picked from commit fe0e7c5ffda8e6768d536f30d73d2e25a2c45852)
Reviewed-on: http://git-master/r/217098
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoCpufreq: interactive: change min_sample_time
Puneet Saxena [Mon, 13 May 2013 14:11:00 +0000]
Cpufreq: interactive: change min_sample_time

Reduce min_sample_time so that frequency can be
ramped down quickly.

Bug 1281679

Change-Id: I1585c30a6bb4c2cb6e5567c8e472e03af3596971
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/227977
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>

6 years agoCpufreq: interactive: Add fresh google interactive gov
Puneet Saxena [Fri, 31 May 2013 07:07:53 +0000]
Cpufreq: interactive: Add fresh google interactive gov

Existing interactive gov code diverged significantly from
the version maintained by Google.

The change ports current version of Google interactive governor
code maintained in "android-3.4" branch.

Merge branch 'android-3.4' into android-tegra-nv-3.4

Conflicts:
drivers/cpufreq/cpufreq_interactive.c
include/trace/events/cpufreq_interactive.h

Bug 1281679

Signed-off-by: Puneet Saxena <puneets@nvidia.com>

6 years agovideo: tegra: nvavp: Add sync point increment support
Soumen Kumar Dey [Thu, 30 May 2013 06:49:47 +0000]
video: tegra: nvavp: Add sync point increment support

Move sync point increment to CPU side for T11X and T14X.

bug 1279729

Change-Id: I3ff5efc2300635411aaa5b71a3455e0b27808460
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
Reviewed-on: http://git-master/r/232770
(cherry picked from commit e55037e29a3d506edcd2cf2f908ded12ee233fe9)
Reviewed-on: http://git-master/r/234015
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra14x: add TLK LP2 SMC enter call to tegra_cpu_core_power_down
Scott Long [Wed, 29 May 2013 23:32:11 +0000]
ARM: tegra14x: add TLK LP2 SMC enter call to tegra_cpu_core_power_down

We were missing a TLK SMC hook in the LP2 power-down-in-idle path on
T148 that could lead to random data aborts (w/o this call we don't get
a chance to flush caches before the reset occurs).

Note this same hook already exists for T114.

Tested with tot TLK by running testapp in a while loop for 1+ hours.

Bug 1222572

Change-Id: Ifc8a34ad0468c594f22983dac4014a05cac0ac26
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/233914
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agomfd: palma: Mask/Clear all interrupt before device off
Laxman Dewangan [Wed, 29 May 2013 15:59:54 +0000]
mfd: palma: Mask/Clear all interrupt before device off

It may be possible to have interrupt pending or interrupt
can be generated during the power off, mask and clear all
interrupts before switching off the device. This will prevent
the spurious power-on of device.

bug  1281865

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

6 years agoarm: dts: pluto: Add panel dt support
Animesh Kishore [Sat, 25 May 2013 13:04:25 +0000]
arm: dts: pluto: Add panel dt support

dt support for default pluto panel.

Bug 1172236

Change-Id: I10e002bc2654a3ddfd457b6e78bbfdf1fb9a9c4c
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/232782
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: dsi: Add panel dt support
Animesh Kishore [Mon, 27 May 2013 12:37:04 +0000]
video: tegra: dsi: Add panel dt support

Incorporate all support required for default pluto panel.

Bug 1172236

Change-Id: Iebd3ba490a1d10a97a09ca5e0631241b6f9069bc
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/232781
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agostaging: nvshm: Always re-enable IPC IRQ
Alexandre Berdery [Fri, 24 May 2013 15:55:36 +0000]
staging: nvshm: Always re-enable IPC IRQ

Upon BB->AP IRQ reception, whatever result of ipc_work, IRQ is always
re-enabled and IPC driver never unregistered

Bug 1295721

Change-Id: If625c1e39c9e157abf2774184fcf3c5112626ed4
Signed-off-by: Alexandre Berdery <aberdery@nvidia.com>
Signed-off-by: Hervé Fache <hfache@nvidia.com>
Reviewed-on: http://git-master/r/232636
Reviewed-by: Martin Chabot <mchabot@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agovideo: tegra: host: prune repeated code related to runtime pm
Mayuresh Kulkarni [Fri, 24 May 2013 14:22:28 +0000]
video: tegra: host: prune repeated code related to runtime pm

some notable changes are as below:

- wherever possible replace platform_get_drvdata() with
dev_get_drvdata. this is mostly done for runtime pm
call-backs which have argument struct device *
- adjust the clock on/off to take struct device * argument
- add a member generic_pm_domain inside nvhost_private_data
and use to hold the pm domain for modules which support
power partition in hardware
- adjust the power on/off call-backs of pm domain to retrieve
owner device's platform data and use it to perform the
operations

Change-Id: I6eb9225dc4a499f9ca2cb1c9f0fbfbd7f9fbaa0a
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/232619
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: la: remove unused la config options
Krishna Reddy [Thu, 23 May 2013 21:51:14 +0000]
arm: tegra: la: remove unused la config options

Change-Id: I5ecfd5d445c6fc58a34b038b24f36e156b7cfac0
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/232308
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: la: use config option TEGRA_DISABLE_BBC_LATENCY_ALLOWANCE
Krishna Reddy [Thu, 23 May 2013 19:47:49 +0000]
arm: tegra: la: use config option TEGRA_DISABLE_BBC_LATENCY_ALLOWANCE

Bug 1295199

Change-Id: Ifd69027d66c3d72dbc91ca68b728edfbd12e6938
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/232280
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: add config option to disable bbc latency allowance
Krishna Reddy [Thu, 23 May 2013 19:44:32 +0000]
arm: tegra: add config option to disable bbc latency allowance

enable the config option for t14x either
Bug 1295199

Change-Id: I96ef74a25ec80b113c4dd7cee6bd7e620cd22af8
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/232279
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoHDCP: finish hdmi access before turning nvhdcp off
Rakesh Iyer [Fri, 10 May 2013 00:42:11 +0000]
HDCP: finish hdmi access before turning nvhdcp off

Wait for hdmi accesses to finish before turning nvhdcp off.

Bug 1275577.

Change-Id: Ieef8635b66cfdddece7b2e1140b776b91350d272
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/227243
(cherry picked from commit ac6205a26fbf52d8439524543321012ed95c9d78)
Reviewed-on: http://git-master/r/231236
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: pcie: Skip pcie partition powergating at boot up.
Nitin Sehgal [Thu, 16 May 2013 07:28:54 +0000]
arm: tegra: pcie: Skip pcie partition powergating at boot up.

- PCIE enumeration fails with powergating on some boards

bug 1263661

Change-Id: Iacd60b4909872c17bc5208b6eba80b51b04c8011
Signed-off-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-on: http://git-master/r/229245
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoregulator: max77660: Support ES 1.1 suggestions
Pradeep Goudagunta [Tue, 14 May 2013 09:03:31 +0000]
regulator: max77660: Support ES 1.1 suggestions

As per ES 1.1 errata:
-No BUCKx should be in FPWM mode.
-Enable GLPM for BUCK3 and BUCK5.

Bug 1287479

Change-Id: Ib147ded6f06caa4019f459c900477372c950bd1c
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/228320
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: macallan: correct the roof_floors of ldos
Hunk Lin [Thu, 25 Apr 2013 12:55:31 +0000]
arm: tegra: macallan: correct the roof_floors of ldos

Set roof_floor of ldo2/ldo3/ldo9/ldoln to be 0. These three rails' ON/OFF
should be controlled by drivers.
External control(roof_floor) should be only used for the power rails which
require to be on during system idle/active and do not require to be on when
it is in sleep/lp0.

Bug 1278668
Bug 1278671
Bug 1278672
Bug 1279327

Change-Id: Ia5114538a7bdf9b8d3ae39f2a26d0cbf7ec70c95
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/222923
(cherry picked from commit 4c27e06ef3b977e0d3c3f1844c64b93ab022f00e)
Reviewed-on: http://git-master/r/226493
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoASoC: Tegra: use set_tdm_slot function for voice call
Ravindra Lokhande [Tue, 28 May 2013 14:34:27 +0000]
ASoC: Tegra: use set_tdm_slot function for voice call

When I2S mode is TDM then use snd_soc_dai_set_tdm_slot function
else use snd_soc_dai_set_fmt

Bug 1295882

Change-Id: If2c60bcde03c76f0f9047dee501bdd4ad0045d72
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/233343
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoasoc: codecs: rt5640: Remove unused variables.
Sami Liedes [Mon, 6 May 2013 16:09:25 +0000]
asoc: codecs: rt5640: Remove unused variables.

Remove the unused val and mask variables in
rt5640_set_dmic[12]_event() functions to silence compiler warnings.

Change-Id: Ic102e3054c24ed56c43ce0d7a0066a8e0de94833
Signed-off-by: Sami Liedes <sliedes@nvidia.com>
Reviewed-on: http://git-master/r/225731
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: Provide ramp delay through regulator constraints
Laxman Dewangan [Thu, 30 May 2013 10:16:42 +0000]
ARM: tegra: Provide ramp delay through regulator constraints

Provide the ramp delay through regulator constraints in place
of platform data which is no more used for Palma based platform
like Dalmore, Pluto, Atlantis, Roth etc.

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

6 years agovideo: tegra: nvmap: Validate client and ref at unpin()
Hiroshi Doyu [Wed, 29 May 2013 10:32:59 +0000]
video: tegra: nvmap: Validate client and ref at unpin()

Validate the passed param, client and ref at nvmap_unpin()
with virt_addr_valid().

bug 1295222

Change-Id: I69301022ad18681fa52bc72e6392276cd949aed1
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/233708
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: support pixel format byte swap
Jon Mayo [Thu, 23 May 2013 02:25:19 +0000]
video: tegra: support pixel format byte swap

reserve upper bits of pixformat to indicate byte swizzle option.
reorder and increase field sizes of tegra_dc structure.

Change-Id: Ibd84dafcc478f6c8f51669f2db52270d5723961c
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/232768
(cherry picked from commit 1c6286c8c3d8fc2148281c59f38949824844db4e)
Reviewed-on: http://git-master/r/231899
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: emc: Allow printing of table info
Alex Waterman [Mon, 29 Apr 2013 20:19:30 +0000]
ARM: tegra: emc: Allow printing of table info

Use the following debugfs node to get info about the specific
tables running on the device:

  /d/tegra_emc/table_info

Change-Id: Id3c959c59785013dcd22908eebe989dc16646f90
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/227678
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomedia: video: tegra: sh532u: fix physical range
Phil Breczinski [Tue, 7 May 2013 01:53:27 +0000]
media: video: tegra: sh532u: fix physical range

Previously, physical range returned different every time.  Hardcode
to the known desired physical range to allow focuser to pass more
stringent focuser tests to be added to automated testing.

Bug 1279178

Change-Id: Ic838860a18e2d1961a08396dd45e37790bbb1378
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/225976
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael Stewart <mstewart@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra14x: Copy SDRAM params to Scratch regs
Prashant Malani [Wed, 30 Jan 2013 23:24:17 +0000]
ARM: tegra14x: Copy SDRAM params to Scratch regs

Copy the packed SDRAM parameters for a particular
MC/EMC frequency setting into PMC SCRATCH
registers for use during LP0BB.

Bug 1025839
Bug 1234031

Change-Id: I34980029ca6bec71d3b36562749c15eba6886a5e
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/207714
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agovideo: tegra: host: Reset MSENC at powerup
Terje Bergstrom [Thu, 30 May 2013 07:47:13 +0000]
video: tegra: host: Reset MSENC at powerup

Reset MSENC at powerup in Tegra14. This is a workaround to a hardware
problem.

Bug 1282966

Change-Id: I26d643f2b51ee58eda1044adbe3df59e96153391
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/234028
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Senthilkumar Loganath <sloganath@nvidia.com>
Tested-by: Senthilkumar Loganath <sloganath@nvidia.com>
Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>

6 years agoasoc: tegra: fix headset detection
Chandrakanth Gorantla [Wed, 29 May 2013 11:05:21 +0000]
asoc: tegra: fix headset detection

war for fix headset detection issue by handling it through tegra
gpio itself instead of depending on codec. This war is due to hw
issue with TI codec.

bug 1281731

Change-Id: I63253dea1c9a489379d1762d3218bbecf7c248d1
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/233994
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoasoc: tegra: rt5640: Register audio map based on micbias_gpio support
Rahul Mittal [Thu, 23 May 2013 10:36:54 +0000]
asoc: tegra: rt5640: Register audio map based on micbias_gpio support

Register proper audio map based on micbias_gpio support
Remove usage of board names in the driver

Bug 1290577

Change-Id: Ie2be3620327e030534b0045ba7b06a3aeb553966
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/232088
(cherry picked from commit e3e5d91a5debb4367450eda996ba3aa95e8d3af5)
Reviewed-on: http://git-master/r/233978
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: Add flag in pdata for micbias_gpio support on platform
Rahul Mittal [Thu, 30 May 2013 05:23:06 +0000]
ARM: tegra: Add flag in pdata for micbias_gpio support on platform

Add micbias_gpio_absent field to audio platform data
Codec machine driver can know if micbias_gpio is present or not

Bug 1290577

Change-Id: I5cf18184caa9feb9fb8d55c489df6048e33e74ff
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/232087
(cherry picked from commit 2fd3bb4b23fc07ac078b8d71c9296a105205a1c0)
Reviewed-on: http://git-master/r/233977
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoEDP: tegra: filter out isolated gpu peaks
Sivaram Nair [Mon, 27 May 2013 14:25:12 +0000]
EDP: tegra: filter out isolated gpu peaks

Isolated gpu load peaks degrade CPU performance without benefitting the
GPU use case.

This patch implements a filter to detect such events by requiring the
GPU load to be above gpu_high_threshold for at least gpu_high_count
(default is 2) number of consecutive notifications.

Bug 1293353

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

6 years agoEDP: tegra: compensate for performance reductions
Sivaram Nair [Mon, 27 May 2013 14:20:20 +0000]
EDP: tegra: compensate for performance reductions

While calculating the CPU freq cap for a given AP+DRAM power budget (the
allowed E-state level), performance is lost in two places.
(1) after applying the gain factor: since the E-state level
multiplied by the gain factor does not exactly match a row
in the AP+DRAM table (resulting in the selection of a lower
value).
(2) while looking up in the cpu power limit table: some delta mW
is lost as in the above case (since there is no exact match, we
are choosing a lower level)

(1) is fixed by adding the delta amount to cpu power
(2) is fixed by choosing a ceiling value (this is OK since in almost all
cases, we have some battery cap remaining).

Bug 1293353

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

6 years agoARM: tegra: EDP: adjust cpu power limit table
Sivaram Nair [Mon, 27 May 2013 14:16:51 +0000]
ARM: tegra: EDP: adjust cpu power limit table

The power cap levels are adjusted so that they are uniformly
spaced. This will make it easier to calcualte the ceiling values.

This patch effectively reverts 7ccb28ec4d5080f62c88c0ef1828a6ad5b4fefc7.

Bug 1293353
Bug 1279622

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

6 years agoEDP: tegra: use core_gain from board data
Sivaram Nair [Wed, 22 May 2013 12:57:22 +0000]
EDP: tegra: use core_gain from board data

core_gain is made board specific. This patch makes the needed changes in
the tegra core sys EDP client code.

Bug 1266730

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

6 years agoARM: tegra: add core_gain to pluto and macallan
Sivaram Nair [Wed, 22 May 2013 12:53:50 +0000]
ARM: tegra: add core_gain to pluto and macallan

Adding board specific core_gain values.

1266730

Change-Id: I2badce930c1927372302b7afbbfdbb379db3fb6f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/233590
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM:tegra: Add P2560 board id
Xiaohui Tao [Thu, 23 May 2013 22:47:25 +0000]
ARM:tegra: Add P2560 board id

Change-Id: If8d86fc7f347d87d98aa9253908070cc5e46426b
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/232324
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra: emc: Fix DSR override
Alex Waterman [Wed, 29 May 2013 17:42:24 +0000]
ARM: tegra: emc: Fix DSR override

A kernel panic was triggerable if the EMC tables were not loaded and
a device requested DSR to be reset to normal. In the case that the
tables do not exist - maybe got rejected onload - we can't reset to
"normal" because there is no normal.

Bug 1294214

Change-Id: I3e02de38e67d4979f462c759ffd070297b5aa239
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/233797
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: ahb: enable WR_WAIT_COMMIT_ON_1K bit
Ashwini Ghuge [Tue, 28 May 2013 09:48:00 +0000]
ARM: tegra: ahb: enable WR_WAIT_COMMIT_ON_1K bit

Enable WR_WAIT_COMMIT_ON_1K bit in AHB_GIZMO_AHB_MEM
for T114 A02 chip on Dalmore

Bug 1286714

Change-Id: I264818f7183e5dce7d6d2c3e6a4ccdc31281582b
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/233258
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: macallan: update board file
Diwakar Tundlam [Thu, 23 May 2013 21:55:09 +0000]
arm: tegra: macallan: update board file

Update initial soctherm config for Macallan.

Bug 1216782

Change-Id: Id53d353ae0913ee6c361c538db6362f442ef9099
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/232317
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: soctherm: fix heavy throttling on GPU zone
Diwakar Tundlam [Thu, 23 May 2013 21:21:51 +0000]
arm: tegra: soctherm: fix heavy throttling on GPU zone

Fixed initialization of GPU throttling in level2 thermal control regs.

Bug 1169070

Change-Id: I121449b20fb987f61c6142e3783cd924f19a5bd6
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/232300
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: dc: unset initialized flag
Rakesh Iyer [Fri, 22 Feb 2013 03:45:00 +0000]
video: tegra: dc: unset initialized flag

Unset initialized flag once initialization is done.

Bug 1238868

Change-Id: I5f38b1883b6212f6ec1d9d767ec026dce52c7170
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/203157
(cherry picked from commit 0ed2cea2af44be08dac592fe9b9b2176b136a3f0)
Reviewed-on: http://git-master/r/231227
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: hdmi: set underscan if supported
Rakesh Iyer [Thu, 28 Mar 2013 23:39:56 +0000]
video: tegra: hdmi: set underscan if supported

Set underscan on TV if it supports it.

Bug 1234468.

Change-Id: I507e927bcf4ef51847f8671a7152da1a22259338
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/214248
(cherry picked from commit 99cf6a0f42a0a0f2a793bf6ccf57ae6a79d3cdc1)
Reviewed-on: http://git-master/r/229753
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agovideo: tegra: nvmap: Add tegra_iovmm_vm_insert_pages()
Hiroshi Doyu [Wed, 3 Apr 2013 11:30:36 +0000]
video: tegra: nvmap: Add tegra_iovmm_vm_insert_pages()

Use ops->map_pages() for nvmap.

bug 1274699
bug 1254010
bug 1226176
bug 999937

Change-Id: Ibaaf27a3c5cb4086561f1b4bcd40ebb5a40cd12c
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/226141
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoiommu/tegra: smmu: Add ->map_pages() for perf
Hiroshi Doyu [Wed, 3 Apr 2013 12:50:17 +0000]
iommu/tegra: smmu: Add ->map_pages() for perf

Implement iommu_ops->map_pages() for tegra-smmu.

bug 1274699
bug 1254010
bug 1226176
bug 999937

Change-Id: I0d50d2e73cd9d4c17416e67f100de7194078808f
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/226140
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoiommu/tegra: smmu: iterate {SECTION,GROUP} instead of TLB_FLUSH_ALL
Hiroshi Doyu [Mon, 22 Apr 2013 10:10:00 +0000]
iommu/tegra: smmu: iterate {SECTION,GROUP} instead of TLB_FLUSH_ALL

TLB_FLUSH_{ALL,ASID} has SMMU H/W bug at HUM OoO. To work around
this H/W bug, iterate TLB_FLUSH_{SECTION,GROUP} for all PDIR index
instead of TLB_FLUSH_ALL although a big perf penalty is expected.

Enable flush_{ptc,tlb}_all when unmap entry is larger than some
specific value.

bug 1274699
bug 1254010
bug 1226176
bug 999937

Change-Id: I3e8f1eb0316a6829a14661b8e1d4cfcd7e2ec85b
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/226139
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoiommu/tegra: smmu: Add smmu_flush_{ptc,tlb}_range()
Hiroshi Doyu [Thu, 2 May 2013 08:45:14 +0000]
iommu/tegra: smmu: Add smmu_flush_{ptc,tlb}_range()

Add smmu_flush_{ptc,tlb}_range(), a little bit more efficient because
it skips unnecessary flushing by unit.

bug 1274699
bug 1254010
bug 1226176
bug 999937

Change-Id: I879d39d6e514662c1ce70fa4e3bc62a3eeb5b31a
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/226138
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoARM: tegra: SMMU IOVA allocation to be aligned 16KB
Hiroshi Doyu [Fri, 19 Apr 2013 07:28:29 +0000]
ARM: tegra: SMMU IOVA allocation to be aligned 16KB

Align a SMMU IOVA allocation to 16KB to work around SMMU HUM
reordering issue for T{30,114,148}. TLB can accomodate IOVA 16KB range
at once so that 16KB aligned IOVA allocation makes TLB operation
atomic for a buffer. This is necessary for some of Tegra SoCs, not for
all.

bug 1274699
bug 1254010
bug 1226176
bug 999937

Change-Id: I2e7d87e1e7e7089743a5116b5950381decc07d2a
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/226137
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoasoc: tegra: disable bias off for AIC3033
Chandrakanth Gorantla [Mon, 27 May 2013 11:41:47 +0000]
asoc: tegra: disable bias off for AIC3033

disable bias off for AIC3033 as headset detection is not working
bug 1281731

Change-Id: Icaa4d55a99a809449eabc36bec6a50c648174d11
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/232969
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomedia: tegra: ad5823: add missed reglator_disable
Jake Park [Wed, 22 May 2013 10:30:44 +0000]
media: tegra: ad5823: add missed reglator_disable

Adding missed regulator_disable() into probe().
While probing ad5823 focuser, regulator vdd should be turned on
before i2c operations and should be turned off after i2c oeprations.

Bug 1293915

Change-Id: Ie9936e699ad3e3b08eb1dad55182e33dc89244a3
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/231547
(cherry picked from commit d48c71109f44a2982032dcf2206c3b8ac080f9e4)
Reviewed-on: http://git-master/r/232851
Reviewed-by: Karl Kim <kkim@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agomedia: video: tegra: apply ov7695 quality tune
Jake Park [Mon, 20 May 2013 07:01:18 +0000]
media: video: tegra: apply ov7695 quality tune

Bug 1278482

Change-Id: Ib74a3a8d018a5082f3098fa058609d634bfb2010
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/230186
(cherry picked from commit 819ac5b3ac5613f82b8e05e04fd8d45d95ec18bc)
Reviewed-on: http://git-master/r/232850
Reviewed-by: Karl Kim <kkim@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agomedia: video: tegra: change IMX132 readout orientation
Frank Chen [Wed, 13 Feb 2013 23:50:15 +0000]
media: video: tegra: change IMX132 readout orientation

Rotate IMX132 frame 180 degree to match sensor
orientation.

Bug 1294324

Change-Id: I25a80cafaa21452212f48bcf1760d4e184943e4f
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/232748
GVS: Gerrit_Virtual_Submit
Reviewed-by: Gary Fitzer <gfitzer@nvidia.com>
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: host: Enable host1x for context save
Terje Bergstrom [Thu, 23 May 2013 05:50:14 +0000]
video: tegra: host: Enable host1x for context save

Enable host1x when doing 3D context save. As host1x has ignore_children
enabled, host1x is not enabled by runtime PM automatically when 3D is
enabled.

nvhost always enables explicitly both client and host1x. Context save is
an exception: for it PM runtime enables power itself, and because of
ignore_children, host1x power is not enabled at the same time.

Bug 1272223

Change-Id: Ie52d15de7ac4689f7955e79a225ddd7f14947dbb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/231993
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>