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

Create initial board files and config files for Macallan.

The commit id of the original change in rel-17 is c02427baf3890
But due to that the kernel in main differs from that in rel-17,
a little rebase needs to be done and we need to squash the following commits:
cdefd04d0fd6a: macallan:  Move all tj dependent thermals from nct to soc_therm
ccc79951c26bb: macallan: Upgrade CL-DVFS disable output ops
b37127d1c36d6: Add raydium touch clock names for macallan

Bug 1216782

Change-Id: I2384f68892989f10af64e2291f7ee53d9100e8f1
Signed-off-by: Hayden Du <haydend@nvidia.com>
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/203144
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agocrypto: remove reference to privare nvmap.h
Krishna Reddy [Thu, 21 Feb 2013 19:33:17 +0000]
crypto: remove reference to privare nvmap.h

Prepare for marshal/unmarshal of nvmap handles.
Bug 1228120

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

5 years agomedia: video: tegra: remove reference to private nvmap.h
Krishna Reddy [Thu, 21 Feb 2013 19:32:44 +0000]
media: video: tegra: remove reference to private nvmap.h

Prepare for marshal/unmarshal of nvmap handles.
Bug 1228120

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

5 years agovideo: tegra: remove reference to private nvmap.h
Krishna Reddy [Thu, 21 Feb 2013 19:32:09 +0000]
video: tegra: remove reference to private nvmap.h

Prepare for marshal/unmarshal of nvmap handles.
Bug 1228120

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

5 years agovideo: tegra: dc: remove reference to private nvmap.h
Krishna Reddy [Thu, 21 Feb 2013 19:31:36 +0000]
video: tegra: dc: remove reference to private nvmap.h

Prepare for marshal/unmarshal of nvmap handles.
Bug 1228120

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

5 years agomedia: tegra: max77665-flash: flash not turned on
Charlie Huang [Fri, 8 Feb 2013 01:36:56 +0000]
media: tegra: max77665-flash: flash not turned on

The default mode of register CHG_CNFG_00 is 0x04 which will disable
the flash function.

Update the default mode to 0x0C.

Change-Id: Icb8952817c8078e702b6764f5e398458f0078850
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/198594
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Anton Poon <antonp@nvidia.com>
Tested-by: Anton Poon <antonp@nvidia.com>
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: dalmore: Update power rails
Pradeep Goudagunta [Wed, 28 Nov 2012 09:11:02 +0000]
ARM: tegra: dalmore: Update power rails

Support to update power rails based on power-configuration
received from the bootlaoder.

Bug 1175109

Change-Id: I879acca1a9eb01b3a15df0c604584cb67d18fe9b
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/166836
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: Add support to parse power-config
Pradeep Goudagunta [Wed, 28 Nov 2012 05:04:58 +0000]
ARM: tegra: Add support to parse power-config

Add support to parse power-config from linux command line. Which
is used to configure power rails.

Bug 1235384

Change-Id: I93e15ff6aeb5121c47475a6c13d12fc81087aa49
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/198782
(cherry picked from commit a25474ea298611dad69f1448635afd009549a969)
Reviewed-on: http://git-master/r/166775
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra14x: Fix sdram self-refresh entry/exit
Prashant Malani [Wed, 27 Feb 2013 23:13:53 +0000]
ARM: tegra14x: Fix sdram self-refresh entry/exit

Make self refresh code similar to that used for
T30, since T148 has single channel EMC.

Change-Id: I6376175dbc293b8daa4e6c43273c8f5a1ace9f00
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/204851
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: soctherm: enable throttling and shutdown on GPU zone
Diwakar Tundlam [Sun, 17 Feb 2013 08:20:25 +0000]
arm: tegra: soctherm: enable throttling and shutdown on GPU zone

Bug 1169070
Bug 1200077

Change-Id: I10c0a189c470c2929a3576f24d2947aa773e4ece
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/201880
(cherry picked from commit 4cb1044919ffcc2d56166baa2c74ff72fd7ce901)
Reviewed-on: http://git-master/r/204761
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>

5 years agoarch: arm: tegra_bb: remove unused ioremap
Martin Chabot [Mon, 25 Feb 2013 14:23:58 +0000]
arch: arm: tegra_bb: remove unused ioremap

BBC private region is no more mapped into kernel
This saves 64MB of vmalloc space

Bug 1233224

Change-Id: I523ba3d936c28e94a39e23daf30bb1e80cff7951
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/203817
(cherry picked from commit 9505df4e024ba45c11e3fd9ba373356be13d19d2)
Reviewed-on: http://git-master/r/204574
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Greg Heinrich <gheinrich@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agodrivers:staging:nvshm: Add support for BBC serial number
Alexandre Berdery [Thu, 14 Feb 2013 10:44:18 +0000]
drivers:staging:nvshm: Add support for BBC serial number

If compatible SHM config version, BBC serial number (PCID) is
populated in tegra_bb sysfs

Bug 1226888

Change-Id: Ic2ee91547b0454ecbefac5aee580f247b1e081d4
Signed-off-by: Alexandre Berdery <aberdery@nvidia.com>
Reviewed-on: http://git-master/r/200765
(cherry picked from commit 35f75aa0191e05d6c8d3b9dac8316e93bb877d8e)
Reviewed-on: http://git-master/r/204573
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-by: Neil Patel <neilp@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agodrivers: stagging: nvshm: remove iobuf free when interface down
Martin Chabot [Wed, 13 Feb 2013 00:46:08 +0000]
drivers: stagging: nvshm: remove iobuf free when interface down

This was causing a kernel panic because all iobuf refs are
invalid when interface is down.

Bug 1235843

Change-Id: I4185d41c833ed43dbff544f1e2230beb9b0132b2
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/200279
(cherry picked from commit de33d8c22c708f69c991361ab9d309e4d1ec4c40)
Reviewed-on: http://git-master/r/204572
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Neil Patel <neilp@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm: tegra: iomap: enable pcie aperture in the iotable if pcie is enabled
Krishna Reddy [Fri, 22 Feb 2013 21:23:37 +0000]
arm: tegra: iomap: enable pcie aperture in the iotable if pcie is enabled

It was enabled unconditionally and wasting vmalloc space
when pcie is not enabled.
Bug 1233224

Change-Id: I82206b58d8b10d5d48e5cef5745a57315230cc40
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/203395
(cherry picked from commit f6c28eb7586b1923b50b03ef2e5b2cd30ac7f974)
Reviewed-on: http://git-master/r/204318
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agoarm: tegra: la: restore ptsa and la to values to same as before suspend
Krishna Reddy [Tue, 19 Feb 2013 19:26:53 +0000]
arm: tegra: la: restore ptsa and la to values to same as before suspend

add support to disable display la and ptsa updates.
add chip specific la and ptsa resume support.

Change-Id: Ib1fed1829187a3a23426c3f7dfaf838fbd780de0
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/202087
(cherry picked from commit eef6b14b98044c56b444bd824a0eb63f5393ba48)
Reviewed-on: http://git-master/r/204317
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agoarm: tegra: la: fix ptsa boot value for t148
Krishna Reddy [Fri, 15 Feb 2013 20:11:31 +0000]
arm: tegra: la: fix ptsa boot value for t148

set display margin to 1.0 from 1.1
restore la, ptsa values during resume.

Change-Id: Ie322f317cf34c8676b1f178c399c6e67321ac1c3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/201259
(cherry picked from commit 00e5fb940f830c5033123515a9e15e51ff0a5e02)
Reviewed-on: http://git-master/r/204316
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agoinput: touch: raydium: correct queueing of resumes
David Jung [Thu, 21 Feb 2013 21:45:45 +0000]
input: touch: raydium: correct queueing of resumes

Raydium code drop. Queue a maximum of one resume.

Bug 1225919

Change-Id: Ice8433752483c9a1b1b73266705d3d19fbd553ff
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/203052
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: nvmap: move client used api to linux/nvmap.h
Krishna Reddy [Thu, 21 Feb 2013 19:23:59 +0000]
video: tegra: nvmap: move client used api to linux/nvmap.h

Prepare for marshal/unmarshal of nvmap handles.
Bug 1228120

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

5 years agoARM: tegra14: ceres: Add init ram_console driver
Hoang Pham [Wed, 27 Feb 2013 00:17:40 +0000]
ARM: tegra14: ceres: Add init ram_console driver

Bug 1242435

Signed-off-by: Hoang Pham <hopham@nvidia.com>
Change-Id: Idf5c46d26388e7a694fa28157f743113e29e0bae
Reviewed-on: http://git-master/r/204330
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra_fuse: Fix incorrect 3d fuse read
Hoang Pham [Sat, 16 Feb 2013 01:51:34 +0000]
ARM: tegra_fuse: Fix incorrect 3d fuse read

Bug 1237080

Signed-off-by: Hoang Pham <hopham@nvidia.com>
Change-Id: Ic2a47b1f5e082d8c9f7df1fc6bf299b3fd374774
Reviewed-on: http://git-master/r/201415
(cherry picked from commit 6198abe347144a24bfde499f15ee1e506c65ac4c)
Reviewed-on: http://git-master/r/204293
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Sachin Jadhav <sachinj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra: roth: fix regulator in initialized mode
Rakesh Iyer [Thu, 21 Feb 2013 19:12:59 +0000]
arm: tegra: roth: fix regulator in initialized mode

Dont skip regulator setup in initialized mode.

Bug 1238868

Change-Id: I9df92fd152a177e72c066aa66ac1ac819e99707e
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/203012
(cherry picked from commit 9c803f9b450cbb71f288501fc5f366166809f382)
Reviewed-on: http://git-master/r/204249
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: roth: Set initialized mode for panel
Rakesh Iyer [Thu, 14 Feb 2013 20:43:03 +0000]
arm: tegra: roth: Set initialized mode for panel

Set initialized mode only for roth panel. This excludes dalmore 5''.

Bug 1219004

Change-Id: I5944b8aa0770610d07ddc891be72cd22b5245f6a
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/200901
(cherry picked from commit c7dcbe1f5f5a03f1f696fa655bf0c05ad179e2fe)
Reviewed-on: http://git-master/r/204248
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: dsi: Dont program initialized panels
Rakesh Iyer [Wed, 6 Feb 2013 00:04:03 +0000]
video: tegra: dsi: Dont program initialized panels

Do not program some panels that the bootloader has already initialized.
This avoids periods of blanking during boot.

Bug 1219004

Change-Id: Ie08b20a0892d62dc1b960d37f709eda933e886cc
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/197685
(cherry picked from commit 1d3bfb96cb6e6b09609cca842bb4cc5c90ee33c3)
Reviewed-on: http://git-master/r/204247
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agovideo: tegra: host: retune 3dfs algorithm for 114
Samuel Russell [Wed, 13 Feb 2013 23:43:59 +0000]
video: tegra: host: retune 3dfs algorithm for 114

Adjust the tuning of 3dfs for 114 chips to perform better for
increased POR clocks.

Bug 1220024
Bug 1232650
Bug 1231533

Change-Id: I2e5ff3e86c84fc2180c8500e6d109fe85410d833
Signed-off-by: Samuel Russell <samuelr@nvidia.com>
Reviewed-on: http://git-master/r/203909
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Refactor cdma timeout
Arto Merilainen [Wed, 16 Jan 2013 13:32:33 +0000]
video: tegra: host: Refactor cdma timeout

This patch:

 - Refactors CDMA timeout to follow better split between device
   dependent and independent parts
 - Does a minor fix in CDMA timeout handling code. The channel
   timeout is set to be at most 500ms

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

5 years agovideo: tegra: host: Remove duplicate syncpt names
Arto Merilainen [Tue, 5 Feb 2013 12:46:33 +0000]
video: tegra: host: Remove duplicate syncpt names

This patch removes syncpoint definitions from hardware specific
syncpoint header. The data is moved to globally accessible nvhost.h
at include/linux.

Change-Id: I4e18232903a989490706db4cc21cd6cdf665fe7e
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/197477
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: ceres: add raydium touch clock names
Tom Cherry [Wed, 27 Feb 2013 01:15:34 +0000]
ARM: tegra: ceres: add raydium touch clock names

Change-Id: Ibe23b0a01747c9bca56ad2d92ba71e6e8b33504f
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/204349
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agovideo: tegra: host: Syncpt value wrapping fixes
Arto Merilainen [Thu, 21 Feb 2013 07:43:18 +0000]
video: tegra: host: Syncpt value wrapping fixes

Syncpoint wrapping was not handled in timeout code. This patch
adds necessary fixes to prevent errors in corner cases.

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

5 years agovideo: tegra: camera: change unit of emc clock
Jihoon Bang [Wed, 20 Feb 2013 04:17:40 +0000]
video: tegra: camera: change unit of emc clock

Change unit of emc clock from Hz to Byte/sec.
Camera SW in userspce submits required peak
memory BW to camera driver.

Bug 1237491

Change-Id: Idb425509af33acb92c84379efd07f0d6fe5dd165
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/202315
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Karsten Patzwaldt <kpatzwaldt@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agovideo: tegra: host: Sysfs nodes for host1x caps
Arto Merilainen [Mon, 18 Feb 2013 12:24:50 +0000]
video: tegra: host: Sysfs nodes for host1x caps

This patch adds sysfs capability entries for mlocks, waitbases and
syncpoints.

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

5 years agovideo: tegra: camera: Fix camera broken issue
Sudhir Vyas [Wed, 27 Feb 2013 01:08:48 +0000]
video: tegra: camera: Fix camera broken issue

Fix camera broken issue on main/ceres.

Bug 1243432

Change-Id: I196afd166418bc01d394d20e33f78d6a92b73193
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/204343
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agodrivers: misc: therm_est: Fixed buffer issues
Diwakar Tundlam [Wed, 20 Feb 2013 19:58:13 +0000]
drivers: misc: therm_est: Fixed buffer issues

Cleaned up some buffer issues which became apparent with
http://git-master/r/145060

bug 1158994

Change-Id: Ie5f605bd7eee4efce548764a7ce2fd3f0c230844
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/202625
(cherry picked from commit 5e8643cab0e91b80bebe6266c32aa05fee4a0a10)
Reviewed-on: http://git-master/r/204253
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>

5 years agoARM: tegra: support modem EDP request/threshold updates
Neil Patel [Thu, 21 Feb 2013 19:16:07 +0000]
ARM: tegra: support modem EDP request/threshold updates

The modem client unregisters and re-registers during crash recovery.
Since permissions are set at init we need use sysfs files for request
and threshold updates that are present at boot.

Bug 1242282

Change-Id: I5023eb39f78224a7022dafd9af2ab753b1449952
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/203017
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agovideo: tegra: dc: add advanced cursor support
Kevin Huang [Fri, 25 Jan 2013 19:31:17 +0000]
video: tegra: dc: add advanced cursor support

Support advanced display cursor for t11x and t14x.

For t14x, window H is set to window mode by default in the sense that
cursor is not necessary for most phones. It can be switched to cursor
mode as below.
echo 0 > /sys/class/graphics/fb0/device/win_h

To switch cursor between normal and legacy mode, user can set flag of
tegra_dc_ext_cursor through the ioctl TEGRA_DC_EXT_SET_CURSOR.

Change-Id: If5ef50401b8a2b2fd22500636d07506983aee0b5
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/194210
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agomedia: video: tegra: imx132: Add 1080p 1-lane mode
Sudhir Vyas [Thu, 24 Jan 2013 06:56:33 +0000]
media: video: tegra: imx132: Add 1080p 1-lane mode

Add new 1-lane sensor mode support for ceres platforms,
as front sensor is connected on CIL-E 1-lane.

Bug 1180015

Change-Id: I13e169a24fc40bdfffcad2cbfea19aebe942f1da
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/193649
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agovideo: tegra: dc: ext: fix memleak and check args
Jon Mayo [Thu, 7 Feb 2013 02:04:59 +0000]
video: tegra: dc: ext: fix memleak and check args

check overflow of win_num argument to TEGRA_DC_EXT_FLIP2 ioctl.
fix kernel memory leak when ioctl fails.
copy the correct number of window args on TEGRA_DC_EXT_FLIP ioctl.

Change-Id: I57b27f348ead1ac4cdef45a83dc2c46c9c70c582
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/204183
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: pluto: added speaker AMP EDP data
Dara Ramesh [Tue, 26 Feb 2013 05:43:16 +0000]
arm: tegra: pluto: added speaker AMP EDP data

added EDP states in audio platform data for speaker AMP
support.

Bug 1160686

Change-Id: I6843bdeffe20c9e1ac649b17f60a464e33b0ee8e
Reviewed-on: http://git-master/r/197478
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/204088
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agosoc: tegra: add speaker AMP EDP support
Dara Ramesh [Tue, 26 Feb 2013 05:22:54 +0000]
soc: tegra: add speaker AMP EDP support

a) registered speaker AMP EDP client
b) implemented throttle callback function for EDP

Bug 1160686

Change-Id: I79906d3fd5dbfbedea7512d9745c59d700e325d5
Reviewed-on: http://git-master/r/193065
Reviewed-on: http://git-master/r/197478
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/204078
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoEDP: adding debugfs support
Sivaram Nair [Mon, 18 Feb 2013 21:09:52 +0000]
EDP: adding debugfs support

This patch adds debufs support for the EDP manager and clients. Client
drivers may use the client object's dentry pointer to add their own
debugfs entries.

Change-Id: I193afe7175d3e1407d5dee2341ac55a8972a3ace
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit 35cde2ba740b2227ff375b66b76c3696e4aa4d49)
Reviewed-on: http://git-master/r/203828
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: makefile restructuring
Sivaram Nair [Mon, 18 Feb 2013 21:30:19 +0000]
EDP: makefile restructuring

CONFIG_EDP_FRAMEWORK is removed from the make file - it is already used
by the parent makefile, so it is not needed here.

Change-Id: Id9fe804930dcc6e8fac351966679ffde4afae6a8
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit 3f8ca1df5946649c8fab384b35f4ee84aa4b6b72)
Reviewed-on: http://git-master/r/203827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoarm: tegra: dalmore: Reduce wakeup delay for 25x16 panel
Animesh Kishore [Thu, 21 Feb 2013 11:42:11 +0000]
arm: tegra: dalmore: Reduce wakeup delay for 25x16 panel

Bug 1222536
Bug 1215278

Change-Id: I7fadbe2b0d937cf8ac317420ad89b2f70f124cac
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/202910
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoasoc: tegra: fix Coverity issue
Deepak Nibade [Mon, 25 Feb 2013 10:12:35 +0000]
asoc: tegra: fix Coverity issue

Fix improper use of negative value
Coverity id : 22291

Bug 1046331

Change-Id: Id572d73731f8f4e4f8ebe9b6e6dec994188f06f7
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/203765
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoarm: tegra: user interface for voltage limiting
Amit Kamath [Thu, 13 Dec 2012 12:03:28 +0000]
arm: tegra: user interface for voltage limiting

userspace will monitor temperature and voltage. If it exeeds the
required temperature vs voltage limit for a substantial amount of
time then it would perform capping

bug 1042409

Reviewed-on: http://git-master/r/170976
(cherry picked from commit 4c5bccc389c278dfff1860cfae8db19f78581f65)

Change-Id: I84ba22abc98c5169b4ba04ca0bac1c87cdbcd38a
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/199868
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agousb: gadget: tegra: add NV charger detection
Rakesh Bodla [Mon, 18 Feb 2013 22:17:58 +0000]
usb: gadget: tegra: add NV charger detection

Adding the support to detect NV charger and
set current limit to withdraw as 2.0amps.

Bug 1193528

Reviewed-on: http://git-master/r/192055
(cherry picked from commit bb144cc9933df39cf88a68e256e93e1529922ffa)

Change-Id: I32c10817bf21b226fcefdc9409d2c1405251ccbd
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/196703
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra14: clock: Relax CPU rate increase warning check
Alex Frid [Sun, 24 Feb 2013 03:00:28 +0000]
ARM: tegra14: clock: Relax CPU rate increase warning check

Ported from Tegra11 commit ddef76dab4a6a6142497189fa3d0d6a27d8b31d1

Change-Id: I74f43b769bf1249581f796b469e30313747c6709
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/203621
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra11: clock: Relax CPU rate increase warning check
Alex Frid [Sun, 17 Feb 2013 08:50:05 +0000]
ARM: tegra11: clock: Relax CPU rate increase warning check

Do not generate warning on CPU rate increase before dvfs regulators
are connected if target rate is below boot rate.

Change-Id: Ic8357f781029d4dab169b22a08333ff5b9472847
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201539
(cherry picked from commit ddef76dab4a6a6142497189fa3d0d6a27d8b31d1)
Reviewed-on: http://git-master/r/203620
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: clock: Record boot rates for all clocks
Alex Frid [Sun, 17 Feb 2013 08:46:46 +0000]
ARM: tegra: clock: Record boot rates for all clocks

Change-Id: Ibb376c7251e453c207f8bbd6e7d65642eac8aea6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201538
(cherry picked from commit 481b1c76b3cd0e39ffd6d1e96cde37cac8affdd5)
Reviewed-on: http://git-master/r/203619
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: clock: Fix boot over-clocking warnings
Alex Frid [Sun, 17 Feb 2013 08:39:45 +0000]
ARM: tegra11: clock: Fix boot over-clocking warnings

- Increase maximum rate for secondary PLLM output to the main PLLM
output limit
- Removed non supported sata clocks from the clock tree

Change-Id: I208df494a41ed620937086feb0271cd1dc85a5b6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201537
(cherry picked from commit c70f6b86b9f46226cc8fed5fa76ef1e05d315dd8)
Reviewed-on: http://git-master/r/203618
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: clock: Add warning on boot over-clocking
Alex Frid [Sun, 10 Feb 2013 07:24:54 +0000]
ARM: tegra: clock: Add warning on boot over-clocking

Change-Id: If0ae2c46d9a8a927b1fddc809b7daf05c2b49c21
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/199201
Reviewed-on: http://git-master/r/203617
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra14: dvfs: Update switch between DFLL and PLL
Alex Frid [Sun, 24 Feb 2013 02:20:40 +0000]
ARM: tegra14: dvfs: Update switch between DFLL and PLL

Ported from Tegra11 commit 4a0c6ef45d3f806835c27fc492a09e2eb254b0a6

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

5 years agoARM: tegra11: dvfs: Update switch between DFLL and PLL
Alex Frid [Tue, 12 Feb 2013 19:04:40 +0000]
ARM: tegra11: dvfs: Update switch between DFLL and PLL

Modified procedures for auto-switching between PLL and DFLL CPU clock
sources.

- On switch from PLL to DFLL do not allow legacy DVFS to set voltage
for target rate in one shot. Limit setting to minimum DFLL voltage,
and let DFLL to complete voltage ramp after the switch.

- Similarly on switch from DFLL to PLL, first use DFLL mode to lower
cpu voltage to DFLL minimum, leaving only delta down to target for
legacy DVFS.

This modifications speed up the transitions and make them safer, since
major change of voltage, rate, and consumed current happens in DFLL
mode.

Change-Id: I42eee166510bd74d046bc6b3cb232ca10233ead9
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/200382
(cherry picked from commit 4a0c6ef45d3f806835c27fc492a09e2eb254b0a6)
Reviewed-on: http://git-master/r/203613
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: pismo: Fix build warnings
Kaz Fukuoka [Thu, 21 Feb 2013 03:02:54 +0000]
ARM: tegra: pismo: Fix build warnings

Change-Id: I64ae7095504b0d250334f0c603e1b151f0a2154a
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/202792
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agodrivers: misc: Hysteresis support in fan est
Anshul Jain [Sat, 22 Dec 2012 01:09:24 +0000]
drivers: misc: Hysteresis support in fan est

This driver now can support hysteresis in trip
temps. It now allows different cdev states for
rising and falling trend in thermal framework.

Bug 1200196
Bug 1201225

Change-Id: I9559eefdb1f2313e1d06f8945fdc1b68f62c6934
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/#change,173927
(cherry picked from commit 44330da37f6c45a1215df26c10ef55fd0828b8fd)
Reviewed-on: http://git-master/r/173066
(cherry picked from commit a3f396a68ecf540fa0c6b4c86babdc24c89bfd5b)
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/201620
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: Enable -Werror in mach-tegra
Kaz Fukuoka [Thu, 21 Feb 2013 02:52:19 +0000]
ARM: tegra: Enable -Werror in mach-tegra

Change-Id: Ifc0b400ec7488282546cde106810b082c7ec8b0e
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/200938
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agocdc_ncm: changing Icera Nemo modem PID to 0x1007
Steve Lin [Tue, 5 Feb 2013 01:06:19 +0000]
cdc_ncm: changing Icera Nemo modem PID to 0x1007

Bug 1176649

Change-Id: I6222f28e1a323333a324745a764b8384795ce5d1
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/197220
(cherry picked from commit 477b3112d297ff3948a86c08fc5dd8e2d512c6e1)
Reviewed-on: http://git-master/r/203520
Reviewed-by: Automatic_Commit_Validation_User

5 years agoPM / Domains: Add debug fs to display domains status
Prashant Gaikwad [Wed, 20 Feb 2013 11:24:18 +0000]
PM / Domains: Add debug fs to display domains status

Add debug fs entry to show the domain and device status.

/sys/kernel/debug/pm_domains/domain_summary

Bug 1010971

Change-Id: I4eb821f8bf825e83b72778f30e05d22fc885eb72
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/202504
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: sata: set SATA clock to 272MHz
sreenivasulu velpula [Thu, 7 Feb 2013 09:13:43 +0000]
arm: tegra: sata: set SATA clock to 272MHz

Bug 1221686
Bug 1170169

Reviewed-on: http://git-master/r/198306
(cherry picked from commit 02f85c2a866df1ae47a7f51707dba88b214b9b83)

Change-Id: I90470d7f11436671db7f7f2af85fbf9de85adaf7
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/201614
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomisc: nct1008: modify shutdown functionality
Sri Krishna chowdary [Tue, 22 Jan 2013 14:03:14 +0000]
misc: nct1008: modify shutdown functionality

i2c transation can happen through means other than
work_func. Wait for any ongoing i2c transaction and
then shutdown.

Bug 1202277

Change-Id: I8e89ee5aec170cae3897e45ddd7379e8d12eace2
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/193058
(cherry picked from commit 87458dcf18aa894243e67bb8ac0b02abeededa51)
Reviewed-on: http://git-master/r/195913
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: teagr11: power: Don't put PLLC in IDDQ on LP1 entry
Alex Frid [Fri, 15 Feb 2013 07:57:50 +0000]
ARM: teagr11: power: Don't put PLLC in IDDQ on LP1 entry

Change-Id: I5cfc4cb611b2610cfb84e64937c09cc5b994ad18
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201058
(cherry picked from commit ba91a5d2026e6736d6b6819899272fc883950b19)
Reviewed-on: http://git-master/r/203622
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm: tegra: isomgr: add api to allow bw margining.
Krishna Reddy [Thu, 14 Feb 2013 01:15:35 +0000]
arm: tegra: isomgr: add api to allow bw margining.

few code optimizations as well.

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

5 years agoARM: tegra: roth: Change default fan cap
Anshul Jain [Mon, 24 Dec 2012 00:52:50 +0000]
ARM: tegra: roth: Change default fan cap

Bug 1200202
Bug 1200196
Bug 1200075

This is for 8k fans, default cap is for normal mode

Change-Id: Ica358a16ad8597785644d48addd994bd3633d4df
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/#change,174013
(cherry picked from commit 1199eeb30f50f6ea94fea0137dc1139e75b88d9a)
Reviewed-on: http://git-master/r/189760
(cherry picked from commit da6141e57d8e40347ad4102571a6c6b7167f4fe0)
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/202446
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoarm: tegra: la: restore la and ptsa during resume
Krishna Reddy [Fri, 15 Feb 2013 19:50:55 +0000]
arm: tegra: la: restore la and ptsa during resume

resore la and ptsa to boot values during resume.
remove unnecessary code.

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

5 years agoarm: tegra: isomgr: update iso bw percentage for t148
Krishna Reddy [Wed, 13 Feb 2013 00:50:55 +0000]
arm: tegra: isomgr: update iso bw percentage for t148

update comments and iso percentage for t148
validate args for correct usage during tegra_isomgr_register.
add magic validation to detect invalid handles passed.

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

5 years agoarm: tegra: dalmore: Reduce display wakeup time
Animesh Kishore [Wed, 20 Feb 2013 09:01:35 +0000]
arm: tegra: dalmore: Reduce display wakeup time

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

5 years agovideo: tegra: host: Debug dump to use trylock
Terje Bergstrom [Tue, 19 Feb 2013 08:34:34 +0000]
video: tegra: host: Debug dump to use trylock

Use mutex_trylock() instead of mutex_lock() in debug dump. Debug dump
is not safety critical, so it's ok to sometimes dump state of a
channel that has been torn down.

This fixes a deadlock when channel close waits on queue to clear up
with reflock acquired, submit in queue times out, and timeout code
tries to acquire reflock at debug dump.

Change-Id: Ice9bd3c617808d0b3178912358d7c90f30765be4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/201974
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yury Gribov <ygribov@nvidia.com>
Tested-by: Yury Gribov <ygribov@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>

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

Bug 1225028

Change-Id: I252cfc136f5fe2c2118ae4d24d5c2ba64fb94437
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/195027
(cherry picked from commit 14fb9a6d7716c436481621d2a382d1be4b931032)
Reviewed-on: http://git-master/r/201925
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agohwmon: ina3221: Support for turning off ina
Anshul Jain [Thu, 24 Jan 2013 02:05:56 +0000]
hwmon: ina3221: Support for turning off ina

This is an optimization to turn off INA device based on number of cores
online. Also, this change removes support for turning on/off INA at runtime
using sysfs node. Additionaly, this change creates a new API power2_*,
which return 0 if ina device is turned off.

Bug 1223376
Bug 1207777

Change-Id: I0beedffa10d7e11e280e96c2c58c4dd191b87819
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/193580
(cherry picked from commit 1b530bd6b64363214580f6717b53888613cf7d4e)
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/201924
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

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

Bug 1223355
Bug 1229151

Change-Id: I626f18c5cd409050e51f51dacfd6b36bfbcf788c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/196736
(cherry picked from commit 5aad1f18b8d0b725e3a96bd062a565abdb5c15dc)
Reviewed-on: http://git-master/r/201782
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: camera: fix out-of-bounds read
Deepak Nibade [Mon, 18 Feb 2013 08:20:35 +0000]
video: tegra: camera: fix out-of-bounds read

fix Coverity issue
Coverity id : 22383

Bug 1046331

Change-Id: I8802e4d499b42f6c0ced28779cdebff819acf0f5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/201687
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agonetlink: remove return value check for netlink_broadcast()
Amit Kamath [Fri, 14 Dec 2012 12:19:26 +0000]
netlink: remove return value check for netlink_broadcast()

Based on commit to change return value for netlink_broadcast
commit ff491a7334acfd74e515c896632e37e401f52676
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date:   Thu Feb 5 23:56:36 2009 -0800

Change-Id: I2adcfcb9f877effa2b04db74c8e90af36604e885
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/171416
(cherry picked from commit 643a087c659273d4f138404819079125a374c405)
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/201682
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: dvfs: Add sysfs entry for rail stats
Amit Kamath [Fri, 4 Jan 2013 06:31:05 +0000]
ARM: tegra: dvfs: Add sysfs entry for rail stats

bug 1042409

Change-Id: I12948a46242eb167a940b05e95d8457ff66ab2ef
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/188561
(cherry picked from commit 9d3f6767c3837facf7ed2052efbd1bbe2a0cd89b)
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/201647
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: power: Add voltage to freq convertion interface.
Amit Kamath [Mon, 17 Dec 2012 07:22:30 +0000]
ARM: tegra: power: Add voltage to freq convertion interface.

Use EDP generated tables to calculate the frequency supported at
a specified voltage

bug 1042409

Reviewed-on: http://git-master/r/171819
(cherry picked from commit b15b288083e02f0caa7644a2e01f0703b501187f)

Change-Id: Id2aa6ac61023b9c9de1810fe6a46e4a1bc70eed0
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/199964
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: ceres: enable avdd_lcd_ext for LG panel
Vineel Kumar Reddy Kovvuri [Tue, 19 Feb 2013 09:36:11 +0000]
ARM: tegra: ceres: enable avdd_lcd_ext for LG panel

Enable avdd_lcd_ext regulator for LG dsi panel.

Bug 1235181

Change-Id: I75b3aabaac084eae59108af4b1bdef9f307707e7
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/202004
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra14x: Do not put any pads into DPD
Seshendra Gadagottu [Sat, 16 Feb 2013 00:43:05 +0000]
ARM: tegra14x: Do not put any pads into DPD

Change-Id: Ia472efe1915c0ab6d378fef83f390d40c8eaae34
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/201369
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: tegra: Add CPA to t148
Alex Waterman [Tue, 19 Feb 2013 19:44:22 +0000]
ARM: tegra: Add CPA to t148

Enable changing of page attributes for t148.

Change-Id: Ib1ed3a07891961807dcdcdc84e1f2de620f05eb4
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/202096
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra: Fix EMC register list
Alex Waterman [Thu, 14 Feb 2013 22:42:20 +0000]
ARM: tegra: Fix EMC register list

Fix the EMC burst register list used during the clock change. An
register was being incorrectly updated and could cause some boards
and builds to crash right after the clock change sequence.

Change-Id: I5dabcad9eb5e4b54fdbae3427a3cf67b8b2aa7b6
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/200904
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra14: clock: Change PLLX VCO max to 2.6GHz
Kaz Fukuoka [Thu, 14 Feb 2013 20:09:13 +0000]
ARM: tegra14: clock: Change PLLX VCO max to 2.6GHz

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

5 years agovideo: tegra: dsi: Convert TE gpio to spio
Animesh Kishore [Mon, 11 Feb 2013 15:32:26 +0000]
video: tegra: dsi: Convert TE gpio to spio

- TE pin should always be spio
- Remove one-shot hacks

Bug 1232203

Change-Id: I9108bfdc0683185c280428cddd1b380fe3895910
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/199456
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoarm: tegra: ceres: Pass TE gpio to driver
Animesh Kishore [Mon, 11 Feb 2013 15:32:01 +0000]
arm: tegra: ceres: Pass TE gpio to driver

Add TE gpio field in platform data.

Bug 1232203

Change-Id: I5e27dec40f77e8ca99337a97cb7f9b33f5bd12c1
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/199455
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agodrivers: staging: nvshm: change cache invalidation macro
Martin Chabot [Tue, 12 Feb 2013 03:59:19 +0000]
drivers: staging: nvshm: change cache invalidation macro

Reverse order of L1/L2 cache invalidation to avoid
corruption seen with low latency change on BBC

Bug 1234867

Change-Id: Id85fae3b9048952ca49658caa06d48ccad521d8f
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/199845
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoasoc:tegra: fix dam cif programming
Dara Ramesh [Mon, 11 Feb 2013 08:23:14 +0000]
asoc:tegra: fix dam cif programming

Change-Id: Ifb838ea81cd0b0f0864494b7a70e36569d934d15

Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Change-Id: I144c9994447affdca6a2b7ef8145d37826559895
Reviewed-on: http://git-master/r/200630
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gaurav Sarode <gsarode@nvidia.com>

5 years agoARM: tegra14: Enable CPUFREQ and CPUQUIET
Seshendra Gadagottu [Tue, 12 Feb 2013 21:44:11 +0000]
ARM: tegra14: Enable CPUFREQ and CPUQUIET

Bug 1233218

Change-Id: I52fa6f79fef119559f7ac318beabc359b2a91a99
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/200175
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoASoC: Tegra: Remove spdif device for t14x
Ravindra Lokhande [Wed, 13 Feb 2013 23:37:19 +0000]
ASoC: Tegra: Remove spdif device for t14x

Change-Id: I702275cee7485d98e4982cf86314c1726d4a6dfe
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/200577
Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gaurav Sarode <gsarode@nvidia.com>

5 years agoarm: tegra: la: fix fdcdwr2 offset in t148 la table
Krishna Reddy [Wed, 13 Feb 2013 22:53:37 +0000]
arm: tegra: la: fix fdcdwr2 offset in t148 la table

Change-Id: Ibcfa339446f253b7a93c0f94137734d42dabb84d
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/200549
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra14: Correct cpu power gating stats
Seshendra Gadagottu [Wed, 13 Feb 2013 01:41:08 +0000]
ARM: tegra14: Correct cpu power gating stats

CPU0 power gating time should include corresponding
noncpu and rail(for fast cluster only) power gating time.

Bug 1215708

Change-Id: I3d562613cecd84c9261df7c343662bf35b36206d
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/200305
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: tegra14: clock: Initialize pll_c
Kaz Fukuoka [Tue, 12 Feb 2013 22:45:51 +0000]
ARM: tegra14: clock: Initialize pll_c

Initialize pllc and pll_c_out1 in the same way as Tegra11.

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

5 years agoARM: tegra14: clock: Clean up
Hoang Pham [Wed, 13 Feb 2013 04:14:42 +0000]
ARM: tegra14: clock: Clean up

- Remove extra debug prints for bringup
- Change WARN_ON() to BUG_ON()

Change-Id: If7628491a2c714f27c0081863c328fc43275b606
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/200070
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra14: clock: Fix up PLLC IDDQ
Kaz Fukuoka [Tue, 12 Feb 2013 20:10:08 +0000]
ARM: tegra14: clock: Fix up PLLC IDDQ

Until bug 1235180 is fixed, fix PLLC IDDQ in kernel.

bug 1235180

Change-Id: Iadd3f39eaf540011a54de58301031c9eb16a00f5
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/200110
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra14: clock: Remove obsolete modules
Hoang Pham [Tue, 12 Feb 2013 01:36:27 +0000]
ARM: tegra14: clock: Remove obsolete modules

Change-Id: If40a437cc9a5e1d8d8e0211de966099ce73e5110
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/197264
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoregulator: max77660: Keep max77660 BUCK3/5 FPWM
Pradeep Goudagunta [Thu, 7 Feb 2013 16:35:31 +0000]
regulator: max77660: Keep max77660 BUCK3/5 FPWM

As per ES 1.0 errata BUCK3 and BUCK5 should be kept
in Force PWM mode.

Bug 1232422

Change-Id: Ia37a6cb4be4ea2e48fbf28b64116f0f02a5b192d
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/198301
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agodrivers: staging: nvshm: abort irq when BBC is crashed
Martin Chabot [Sun, 10 Feb 2013 01:24:08 +0000]
drivers: staging: nvshm: abort irq when BBC is crashed

Now irq request is aborted after 1s if not cleared

Bug 1234170

Change-Id: I10fb354f08813ee38c700f86c174ff931b64315c
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/199158
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra14: enable L1 prefetch
Bo Yan [Thu, 7 Feb 2013 03:10:02 +0000]
ARM: tegra14: enable L1 prefetch

Bug 1234168

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

5 years agovideo: dc: hdmi: Fix the tdms values.
Kevin Huang [Mon, 11 Feb 2013 21:35:47 +0000]
video: dc: hdmi: Fix the tdms values.

Bug 1232412

Change-Id: I69ffc8b7c490e8886be7b068caf79352b5159541
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/199699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoarm: tegra: Low freq EMC DFS and tables
Alex Waterman [Fri, 8 Feb 2013 07:35:59 +0000]
arm: tegra: Low freq EMC DFS and tables

This adds preliminary support for EMC DFS at low frequencies.
Frequencies supported at the moment: 12.75, 102, and 204 MHz.

This is disabled by default; however, it can be enabled at run
time through sysfs.

Change-Id: Ieb2fe2c0e0bac6acd39ce90d51a22684d9048f7c
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/198682
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra14: kconfig: Enable TEGRA_CPU_DVFS
Seshendra Gadagottu [Mon, 11 Feb 2013 01:05:59 +0000]
ARM: tegra14: kconfig: Enable TEGRA_CPU_DVFS

Change-Id: I1203faeec8e0b9ebd28e3d58c3b53fbfc5902418
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/199237
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

5 years agoARM: tegra14: clock: Add Audio dmic clocks
Hoang Pham [Sun, 10 Feb 2013 19:16:26 +0000]
ARM: tegra14: clock: Add Audio dmic clocks

Change-Id: Idaf88d74f0ba9b6dc040385b857bbef715ada9e6
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/199217
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

5 years agoARM: tegra14x: cache: Enable L2 double line fill
Seshendra Gadagottu [Sat, 9 Feb 2013 21:45:10 +0000]
ARM: tegra14x: cache: Enable L2 double line fill

Bug 1233329

Change-Id: I3cade3c1c2dea594a230b6ff28ece3576d0c388e
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/199133
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agomisc: nct1008: cancel work before suspend
Bitan Biswas [Mon, 11 Feb 2013 10:42:12 +0000]
misc: nct1008: cancel work before suspend

bug 1227548

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

5 years agomipi_bif: tegra: Fix command sequence for INT_READ
Chaitanya Bandi [Mon, 11 Feb 2013 08:35:33 +0000]
mipi_bif: tegra: Fix command sequence for INT_READ

Bug 1022139

Change-Id: I924862423cdabad798973c524f74562e88dd4625
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/199307
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agomipi_bif: Export mipi_bif_unregister_device
Chaitanya Bandi [Mon, 11 Feb 2013 08:28:00 +0000]
mipi_bif: Export mipi_bif_unregister_device

Bug 1022139

Change-Id: I8e2918bcebbc576b39a5d6ffac453a74c20a4e63
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/199306
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>