6 years agovideo: tegra: host: Syncpoints deliver waitbases
Arto Merilainen [Thu, 24 Jan 2013 07:52:32 +0000]
video: tegra: host: Syncpoints deliver waitbases

This patch adds support for delivering waitbase information as a part
of nvhost_job_syncpt structure. This removes hacks in timeout code.

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

6 years agovideo: tegra: host: Support multi-syncpt jobs
Arto Merilainen [Thu, 17 Jan 2013 07:49:13 +0000]
video: tegra: host: Support multi-syncpt jobs

This patch adds internal structures for supporting multi-syncpoint
submits. This patch does not introduce userspace API changes.

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

6 years agoarm: tegra: Add chain-b as sub-domain to chain-a
Prashant Gaikwad [Tue, 19 Mar 2013 09:36:44 +0000]
arm: tegra: Add chain-b as sub-domain to chain-a

During suspend process 3d modules are suspended before host1x
module which turns off chain-a domain before chain-b. But host1x
is still waiting for syc point update from 3d module.

Bug 1253372

Change-Id: Ie13027ef996f7af4d051ba1d2d53330d474a2cc4
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/210739
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Tested-by: Prashant Malani <pmalani@nvidia.com>

6 years agoarm: tegra: bbc: create sim regulator sysfs interface
Vinayak Pane [Tue, 19 Mar 2013 04:31:17 +0000]
arm: tegra: bbc: create sim regulator sysfs interface

Create sysfs nodes for controlling sim card regulators.
These sysfs nodes will expose consumer regulator functions
to enable and set voltage level.

Bug 1255834

Change-Id: Ia4b7a34f0bc097b46a09cd994c8f04c28e95fdbf
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/210591
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: dvfs: Re-arrange DFLL clock initialization
Alex Frid [Wed, 27 Feb 2013 22:59:31 +0000]
ARM: tegra11: dvfs: Re-arrange DFLL clock initialization

- Re-assigned DFLL clock init operation to late init function inside
init operation itslef (instead of external assignment during global
tegra11x clocks initialization)

- Included into DFLL clock initialization call to Cl-DVFS debug init,
so that DFLL clock pointer can be passed as an argument, rather than
retrieved in CL-DVFS debug init from hard coded DFLL clock name.

- Added write attribute to tune_high_mv debugfs entry

Change-Id: I03c4cd5e33d7f27ad73ae3319ee1c318e135a639
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/204969
Reviewed-on: http://git-master/r/210461
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: soctherm: No hysteresis needed since HW has it implicitly
Diwakar Tundlam [Thu, 14 Mar 2013 02:00:44 +0000]
arm: tegra: soctherm: No hysteresis needed since HW has it implicitly

Due to the way HW implements up and down threholds for a trip_point,
there is an implicit hysteresis of about 1C. Additional hysteresis is
not needed.

Removed setting default hysteresis in driver and edp cooling device.

If additional hysteresis is needed, setting it in trip_info in board
files will take effect as before for PASSIVE trip points.

Bug 1250096

Change-Id: I84597bccc46f19f02b4fa710035f13dd9102e2f3
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/209376
(cherry picked from commit 20562e8399e9299d34029e681c2eb1757f5894aa)
Reviewed-on: http://git-master/r/210453
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarch: arm: tegra: tegra_bb: remove null char in serial
Martin Chabot [Fri, 15 Mar 2013 15:36:14 +0000]
arch: arm: tegra: tegra_bb: remove null char in serial

Bug 1254387

Change-Id: I4ddbc8e2f1a706bdd1522a6619609fdb29be01a8
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/210051
Reviewed-by: Stephane Dion <sdion@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agodriver: ahci: tegra: Process platform data
sreenivasulu velpula [Tue, 12 Mar 2013 10:17:26 +0000]
driver: ahci: tegra: Process platform data

Bug 1221686
Bug 1170169

Reviewed-on: http://git-master/r/199928
(cherry picked from commit fa54b46cca4e715c188b4fd3d66c24aca7dba610)

Change-Id: I146b123c23e04e441880e151dec8df9b91b23b18
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/209903
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra14: Enable TEGRA_USE_DFLL_RANGE
Seshendra Gadagottu [Wed, 13 Mar 2013 00:33:58 +0000]
ARM: tegra14: Enable TEGRA_USE_DFLL_RANGE

Enabling DVCO(DFLL) by default

Bug 1238968

Change-Id: Ia5664cf93c24cdd59d1d4f7ed1db100013ae1386
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/208631
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomedia: video: tegra: lm3565: camera flash bringup
Charlie Huang [Tue, 29 Jan 2013 23:26:00 +0000]
media: video: tegra: lm3565: camera flash bringup

lm3565 is a high current flash led driver of TI.
Bring up is on Atlantis.

bug 1180300

Change-Id: I70e0067886f2e4318f68b984193b551364daa9db
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/208473
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoVideo:tegra:ad5816: Changing control register value of ad5816.
Amey Asgaonkar [Fri, 8 Mar 2013 23:12:28 +0000]
Video:tegra:ad5816: Changing control register value of ad5816.

Change the 3rd bit in the control register of focuser-ad5816 to disable
low voltage shutdown circuitry.This change is done to support ad5816g
version of the focuser.

Bug:1234993

Change-Id: I42c80c13ed91f3ceb6ad8f2e2b69499948aa3539
Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Reviewed-on: http://git-master/r/207768
Reviewed-by: Gilbert Yeung <gyeung@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agovideo: tegra: dc: request bandwidth from isomgr
Jon Mayo [Tue, 18 Dec 2012 22:57:29 +0000]
video: tegra: dc: request bandwidth from isomgr

Report event TEGRA_DC_EXT_EVENT_BANDWIDTH through tegra_dc_ctrl device
when there is not enough bandwidth.

Bug 1169265

Change-Id: Ia95b1ecc7eb16db6f3a709e7c9efc59ab2490ead
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/207766
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra14: Remove display from pg skiplist
Terje Bergstrom [Fri, 8 Mar 2013 06:56:56 +0000]
ARM: tegra14: Remove display from pg skiplist

Remove display from power gating skiplist, and as the list is now
empty, remove the logic.

Bug 1224907

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

6 years agousb: gadget: tegra: Add USB NV Charger Support
Rohith Seelaboyina [Tue, 5 Feb 2013 10:30:24 +0000]
usb: gadget: tegra: Add USB NV Charger Support

Add Support for NV charger and set correct current limits
for nv charger and non standard charger.

Bug 1225941

Change-Id: I3e9e6749e6df1929f961133e724602ffa0ded63d
Reviewed-on: http://git-master/r/197382
(cherry picked from commit 6dcd17d9bb08984aa4458ba5894a45ed4021c450)
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/206600
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: usb_phy: Fix terminiation delay for NvCharger
Rohith Seelaboyina [Tue, 5 Feb 2013 10:03:59 +0000]
ARM: tegra: usb_phy: Fix terminiation delay for NvCharger

Increase termination delay to stabilize the line status

Bug 1225941

Change-Id: Iee3b4eb80e01269e16326a9d6795938e3c8949ae
Reviewed-on: http://git-master/r/195532
(cherry picked from commit 7354d033224c300545fdc3462c9531bbdaf01af6)
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/206599
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: Add syncpt management control
Arto Merilainen [Wed, 20 Feb 2013 14:13:40 +0000]
video: tegra: host: Add syncpt management control

This patch adds support for enabling and disabling syncpoint
management.

Change-Id: I59b5c86f51f26c90a474b283a440112eac31d86c
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/202572
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoARM: kprobes: Fix kprobes build
Igor Nabirushkin [Thu, 31 Jan 2013 23:05:24 +0000]
ARM: kprobes: Fix kprobes build

Fix incorrect changes in the arch_arm_kprobe
function (commit 3b3f4d24917c97fa75aa4fba2b09797ef94cea38)

Bug 1228659

Change-Id: I679a3cfa7b8b7803984230d71e51f0952c2069bb
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/196423
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: Tegra11: Add support for EMC bindings
Prashant Gaikwad [Tue, 4 Sep 2012 08:29:22 +0000]
ARM: Tegra11: Add support for EMC bindings

Implement function to parse EMC tables from device
tree.

Bug 999688

Change-Id: Ib7268da6d660d2d0b0b4c79416b5ad0e088eef75
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/130702
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: Define DT bindings for T114 EMC tables
Prashant Gaikwad [Tue, 4 Sep 2012 08:50:53 +0000]
arm: tegra: Define DT bindings for T114 EMC tables

Bug 999688

Change-Id: I33b56bda4ac3c09442f142ce13e05a81497902d6
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/130701
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: soctherm: Return trend STABLE if temp within hysteresis
Diwakar Tundlam [Wed, 13 Mar 2013 00:48:50 +0000]
arm: tegra: soctherm: Return trend STABLE if temp within hysteresis

Bug 1250096

Change-Id: I7e1ff0e8c5a294311d14fbfdfb32cfdd8311d854
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/208611
(cherry picked from commit 82360cc97e61442c2f5b40f9e3a6d0c1c3edb938)
Reviewed-on: http://git-master/r/210156
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: soctherm: decouple update for CPU and GPU zones
Diwakar Tundlam [Sat, 9 Mar 2013 00:34:28 +0000]
arm: tegra: soctherm: decouple update for CPU and GPU zones

Bug 1250096

Change-Id: I391f459ce9945bb3fa0013232258ba11d1eb8ec1
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/207786
(cherry picked from commit d1aebab68c1fd0998614d9e90ea3a27b14cfe3f9)
Reviewed-on: http://git-master/r/210155
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: Simplify sched_clock read function
Bo Yan [Mon, 4 Mar 2013 23:49:58 +0000]
ARM: tegra: Simplify sched_clock read function

ARM common code now supports suspend of sched_clock, the
corresponding implementation in timer.c can be simplified.

Change-Id: I72f92a71c654388de64e1160f3852dfc4f476e04
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/206089
(cherry picked from commit acd0330022c675b8c7b50b751c029ba93763b2a1)
Reviewed-on: http://git-master/r/210110
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoarm: tegra: soctherm: Init error if we find FUSE is improper
Diwakar Tundlam [Fri, 15 Mar 2013 19:47:28 +0000]
arm: tegra: soctherm: Init error if we find FUSE is improper

Change-Id: I52ef93850a9ebbe214c759d3d5f06221e547fcde
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/210106
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvmap: Unpin memory on errors
Hiroshi Doyu [Fri, 15 Mar 2013 12:50:50 +0000]
video: tegra: nvmap: Unpin memory on errors

This patch adds a missing handle_unpin() calls to nvmap_pin_ids() and
_nvmap_pin() error paths.

Bug 1246095

Change-Id: I6b8e632aa8d90f2436cfbaad8015e11527c6da83
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/210009
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agosound: soc: codecs: Add ad1937 driver for E1860
Nitin Nagaraja [Tue, 8 Jan 2013 06:05:29 +0000]
sound: soc: codecs: Add ad1937 driver for E1860

Changed number of channels supported for playback and record to 16.

Bug 992424

Change-Id: I43f75b0b943413bb01788c857dac1577f86ac0bd
Reviewed-on: http://git-master/r/189435
(cherry picked from commit ebf9427afd35373b1e19c643a934876600eb98df)
Signed-off-by: Nitin Nagaraja <nitinn@nvidia.com>
Reviewed-on: http://git-master/r/209839
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: bbc: set max iso bw
Neil Patel [Mon, 11 Mar 2013 18:03:45 +0000]
ARM: tegra: bbc: set max iso bw

Set the max iso bw for the BBC and ensure it is not exceeded when
updating the LA/DDA settings.

Bug 1177400

Change-Id: I5404c18af9a852330c55401452e001105c264b39
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/208128
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agonet: usb: smsc95xx: Fix MAC address assignment.
Manoj Chourasia [Wed, 17 Oct 2012 13:39:39 +0000]
net: usb: smsc95xx: Fix MAC address assignment.

If the smsc ethernet device which is suppose to
get the MAC from commandline goes down and come
back again, random MAC address gets assigned to
it.

This issue is fixed by this patch by setting
smsc_mac_addr_set to false while unbinding the
driver. This also fixes issue that can raise
because of two smsc ethernet devices present
in system.

bug 1058873, bug 1237380

Change-Id: Ice2433608f889278fde876070386794c32330d6e
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/203720
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ashutosh Patel <ashutoshp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Sehgal <nsehgal@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoconfig: tegra11: add EDP kconfig option
Matt Pedro [Mon, 28 Jan 2013 17:05:32 +0000]
config: tegra11: add EDP kconfig option

Add the 'CONFIG_TEGRA_EDP_LIMITS' kconfig option to the
tegra11_defconfig file.

bug 1198562

Change-Id: I68bed35bd6c19c5138c4c8230396f59731a53ab2
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/194739
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agommc: enable flag for disabling access to boot partitions
Vishal Singh [Fri, 15 Mar 2013 09:41:24 +0000]
mmc: enable flag for disabling access to boot partitions

Enabling the flag, MMC_CAP2_BOOTPART_NOACC, to disable access to
boot partitions on eMMC.

Bug 1235175.

Change-Id: I710316a0e71a68842342c131e0e74f527867b653
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/206328
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: Set 3dfs parameters for 148
Samuel Russell [Thu, 14 Feb 2013 01:12:03 +0000]
video: tegra: host: Set 3dfs parameters for 148

Add a case to 3dfs to set parameters specific for 148 chips

Bug 1179425

Change-Id: I697a35ccbc5b021f709e224f29eb8217f259f29c
Signed-off-by: Samuel Russell <samuelr@nvidia.com>
(cherry picked from commit 2cca2f519eac132fa8c07f4b385efff14ca6d0d4)
Reviewed-on: http://git-master/r/208458
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agommc: sdhci: Issue ACMD12 for SD and MMC only
Pavan Kunapuli [Mon, 7 Jan 2013 15:34:23 +0000]
mmc: sdhci: Issue ACMD12 for SD and MMC only

Auto CMD 12 should be issued for multi block read and write of MMC
and SD cards only.

Bug 1211829

Change-Id: I88d18d8f35309299654239d1774b3167710b9d74
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/189207
(cherry picked from commit b82f8eab4b5dd93544f267605aef53e1bb5399b4)
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/201668
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agommc: tegra: move postreset code to reset exit
Naveen Kumar Arepalli [Fri, 15 Mar 2013 11:18:24 +0000]
mmc: tegra: move postreset code to reset exit

move postreset code to reset exit.

Bug 1239457

Change-Id: Icb5f2f3f0dbf8c7d89c3eca7e7df13b71d2db1ce
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/207014
(cherry picked from commit bf93ff4541448e7560d866f00d129906d8aefceb)
Reviewed-on: http://git-master/r/207949
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11: clock: Update emc to cpu rate ratio
Amit Kamath [Tue, 12 Feb 2013 12:38:18 +0000]
ARM: tegra11: clock: Update emc to cpu rate ratio

The gain for performance to frequency in not proportionate at higher
emc frequencies. Hence limiting the highest emc frequency for above
1.5 Ghz of cpu frequency.

Bug 1172722

Change-Id: I379a57f2d94f2442664bb580f9ce6048c5b69fe0
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/199980
(cherry picked from commit 4fc5ccf54d51f9ffe9739c4d12adbcf79b27365f)
Reviewed-on: http://git-master/r/210324
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomisc: tegra-baseband: Adding dual modem support
Steve Lin [Thu, 14 Mar 2013 23:37:50 +0000]
misc: tegra-baseband: Adding dual modem support

Bug 1249542

Change-Id: I3aac999c6b19340b17c8dc8f558731257b0fd627
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/209781
(cherry picked from commit ac969ec5e9b5310f1bfb626dd90b5a698614214b)
Reviewed-on: http://git-master/r/210450
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: Support i500 Nemo in MDM2
Steve Lin [Wed, 27 Feb 2013 17:44:32 +0000]
ARM: tegra: Support i500 Nemo in MDM2

Support i500 Nemo in the MDM2 slot on pluto.

Bug 1249542

Change-Id: I14993814e0a4477df78b36b934eef9c6235fdc12
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/204711
(cherry picked from commit f407df8dfdec35d42a5b5f7054fa7885288e187b)
Reviewed-on: http://git-master/r/210443
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoasoc: codecs: max97236: fix headset mic detection
Dara Ramesh [Mon, 18 Mar 2013 05:54:15 +0000]
asoc: codecs: max97236: fix headset mic detection

clear interrupts and enable jack detection in probe.

Change-Id: I44edbd8886bdf95c08511f7654b509b97185ee71
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/210293
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Sylvain Barge <sbarge@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: clock: Fix spelling in function names
Alex Frid [Sun, 3 Mar 2013 04:01:10 +0000]
ARM: tegra: clock: Fix spelling in function names

Change-Id: I9e37f91e7b7ae7adec40e6290a6c3c423cd2d912
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/205782
Reviewed-on: http://git-master/r/210257
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra11: clock: Always enable common XUSB gate
Alex Frid [Sat, 2 Mar 2013 07:16:51 +0000]
ARM: tegra11: clock: Always enable common XUSB gate

Added separate common XUSB gate clock. It has to be always enabled,
so that h/w sequencers that automatically control XUSB operations can
properly work.

Bug 1227562

Change-Id: Iaa02b4c3d95b288eb3c47d00fd2054f96dc6dfe7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/205748
(cherry picked from commit 9c35e1c37ee64d9e2244a08d4193710f07bf3f59)
Reviewed-on: http://git-master/r/210254
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agowatchdog: tegra: Only support one wdt device
Bo Yan [Fri, 8 Mar 2013 02:12:01 +0000]
watchdog: tegra: Only support one wdt device

Change-Id: I91dd3214092ab5b450e74bc5bf772ee02f6b432e
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/207770
(cherry picked from commit 17d14202ad24baec56574b52001cc7ba4c625b9c)
Reviewed-on: http://git-master/r/210112
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: TMR8/TMR9 not to be used for watchdog
Bo Yan [Fri, 8 Mar 2013 02:02:32 +0000]
ARM: tegra: TMR8/TMR9 not to be used for watchdog

TMR7 is used for watchdog. TMR10 is used for suspend/resume
recovery only.

Change-Id: If62a1da879d61e95c48c47ab0d0cbb549c5dfc37
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/207769
(cherry picked from commit 763294ab64328871b2257d9cbfd91204c175758b)
Reviewed-on: http://git-master/r/210111
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: emc: Add API for dynamic self refresh
Alex Waterman [Wed, 13 Mar 2013 17:25:53 +0000]
ARM: tegra: emc: Add API for dynamic self refresh

Add an API to disable dynamic self refresh on the fly. These DSR
settings override the EMC tables DSR settings.

bug 1249082

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

6 years agogpio: palmas: Add support for GPIO8 to GPIO15
Sumit Sharma [Thu, 14 Mar 2013 04:46:52 +0000]
gpio: palmas: Add support for GPIO8 to GPIO15

Added support to read write GPIO8 to GPIO15 registers

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

6 years agomfd: palmas: Add support for INT5 irqs
Sumit Sharma [Fri, 15 Mar 2013 10:09:00 +0000]
mfd: palmas: Add support for INT5 irqs

Added support for INT5 irqs for TPS80036

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

6 years agomfd: palmas: Implement irq chip for driver locally
Laxman Dewangan [Tue, 12 Mar 2013 09:26:54 +0000]
mfd: palmas: Implement irq chip for driver locally

In place of using regmap irq for the plamas interrupt support,
implement the same in locally. This gives the oportunity to
implement irq_set_type() which is needed for the gpio edge
trigger level.

bug 1251695

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

6 years agogpio: palmas: use palmas API for getting irq
Laxman Dewangan [Tue, 12 Mar 2013 08:32:39 +0000]
gpio: palmas: use palmas API for getting irq

To get the irq number for given gpio, use the palmas API
palmas_irq_get_virq() in place of directly using regmap API.

Change-Id: I2305b6c6c852a914efd08c4e020dba4301bd83fc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/208339
(cherry picked from commit 6fc336cce326023d27d5ce311f79480b990714f1)
Reviewed-on: http://git-master/r/209989
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sumit Sharma <sumsharma@nvidia.com>

6 years agortc: palmas: get irq number through platform_get_irq()
Laxman Dewangan [Tue, 12 Mar 2013 08:30:29 +0000]
rtc: palmas: get irq number through platform_get_irq()

The palmas mfd driver pass the RTC interrupt through the IRQ_RESOURCE
and hence RTC driver can get the irq by calling platform_get_irq().

Change-Id: Ib6e4afd0511ab6cf80df43defe29ffe50480f27c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/208338
(cherry picked from commit 34e9e76622d4cb6288fcfffbb537382628855a86)
Reviewed-on: http://git-master/r/209988
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Sumit Sharma <sumsharma@nvidia.com>

6 years agoARM: tegra: cpuquiet: augment no_lp to force both LP and G
Simo Melenius [Fri, 8 Mar 2013 09:24:12 +0000]
ARM: tegra: cpuquiet: augment no_lp to force both LP and G

- tegra_cpuquiet 'no_lp' node now accepts '-1' to force LP cluster on
- when a cluster is forced the switches take place immediately without
  any delay

Bug 1247636

Change-Id: I1ec07acc3cf51419a4770542c6a1c90b92e0bf66
Signed-off-by: Simo Melenius <smelenius@nvidia.com>
Reviewed-on: http://git-master/r/208772
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit ab16bbb6f581da538448d2a64e03dd272b8fb985)
Reviewed-on: http://git-master/r/210358

6 years agousb: otg: tegra: Enable id interrupts in resume
Rakesh Bodla [Thu, 14 Mar 2013 09:31:29 +0000]
usb: otg: tegra: Enable id interrupts in resume

Enable id interrupts in otg resume for boards which
support pmu vbus detection. Also removing the mutex
lock from interrupt context.

Bug 1245272

Change-Id: I9e0790909d9cff8c577ce5040776a44b2f03cb23
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/209517
(cherry picked from commit 54381dd3763316ec02fe4c6ffb8bc64dc0de0276)
Reviewed-on: http://git-master/r/210241
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: usb_phy: Fix IDDQ_OVERRIDE programming
Rakesh Bodla [Thu, 14 Mar 2013 11:31:40 +0000]
ARM: tegra: usb_phy: Fix IDDQ_OVERRIDE programming

Put UTMIPLL to IDDQ if all UTMIP USB2 controllers
are in reset or suspend states. Also, bring UTMIPLL
out of to IDDQ while controllers exiting reset or
suspend states.

Bug 1201974

Change-Id: I1696905601962e372b361a6473ec12a86b816124
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/192639
(cherry picked from commit 0847fa3200e20afed1a36498b3084e975b02d07e)
Reviewed-on: http://git-master/r/210240
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoASoC: Tegra: Add i2s controller DSP B mode
Ravindra Lokhande [Sat, 16 Feb 2013 06:49:22 +0000]
ASoC: Tegra: Add i2s controller DSP B mode

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

6 years agoARM: tegra: Provide linear map for framebuffer when cleared
Raghavendra VK [Fri, 15 Mar 2013 03:04:18 +0000]
ARM: tegra: Provide linear map for framebuffer when cleared

bug 1249252

Change-Id: Ib736c365f659c4f7896c46d24b583feb2581daf3
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/209835
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoRevert "mmc: block: Ignore mmc_blk_abort for out_of_range"
Naveen Kumar Arepalli [Mon, 28 Jan 2013 13:01:58 +0000]
Revert "mmc: block: Ignore mmc_blk_abort for out_of_range"

This reverts commit d188a339803f22e3c140fc51588e4d38dc93d01c.

Bug 947965
Bug 1194300

Change-Id: I64b207664e469b7417fcfba699fdbfddfb889c49
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/194667
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: isomgr: Allow max iso bw relax
Krishna Reddy [Fri, 15 Mar 2013 00:09:17 +0000]
arm: tegra: isomgr: Allow max iso bw relax

Change-Id: I59ae2619b55c6fb17a65693c66b80e4a797b8f69
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/209795
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agovideo: tegra: dc: fix the logic for dis ref-count.
Kevin Huang [Thu, 14 Mar 2013 05:25:37 +0000]
video: tegra: dc: fix the logic for dis ref-count.

Use simple logic to meet the requirement of use cases.
All logic is implemented in powergate module. Dependency
of dis partitions are transparent to client.

Change-Id: I6649dc8bf704fcb763dd5b038f947ed0da2c84c4
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/200652
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agovideo: tegra: dc: provide debugfs to force hotplug
Jon Mayo [Sun, 10 Feb 2013 05:42:13 +0000]
video: tegra: dc: provide debugfs to force hotplug

debugfs node tegra_hdmi/hotplug controls the override.
0 for normal hpd, 1 for force on, -1 for force off

Change-Id: I41bfbcd26460924ed60bd27de68046ff77b1e869
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/208201
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoThermal: pid_thermal_gov: Add max_dout
Jinyoung Park [Mon, 18 Feb 2013 12:05:27 +0000]
Thermal: pid_thermal_gov: Add max_dout

Added max_dout to limit derivative output to avoid extreme response
if delta temperature gets too large and added its sysfs node.
The max_dout is percentage of max_err.

Bug 1200111

Change-Id: I2a5a984a4dbfe430e2ec9edbb32e036dcfa23b53
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/201770
(cherry picked from commit cd510d29e80c34e0047a9f7c7014ceca10d1ca7a)

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Change-Id: I0d510fbb64b4a5e71e3c91edea609b84da62968a
Reviewed-on: http://git-master/r/207600
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoiommu/tegra: smmu: BIND_DRIVER attaches device to IOMMU
Hiroshi Doyu [Wed, 6 Mar 2013 08:07:52 +0000]
iommu/tegra: smmu: BIND_DRIVER attaches device to IOMMU

BUS_NOTIFY_BIND_DRIVER needs to attach a devie to IOMMU when it's
removed at previous UNBOUND_DRIVER.

bug 1247074

Change-Id: Ide91e4ae0a54f835fc195854cd858fff7620418e
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/206592
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoinput: touch: raydium: update suspend power
David Jung [Tue, 19 Feb 2013 19:50:45 +0000]
input: touch: raydium: update suspend power

Nvidia changes to update the suspend so
that it stays in sleep mode mode during suspend.

Bug 1237626
Bug 1192465
Bug 1246020

Change-Id: I87b0a5e0782127eabd1ad688c1b66c316f2027e5
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/202103
(cherry picked from commit e6db5373e74620669ae15fd7cf6a44cd8173faa1)
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/206407
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: t114/t148: increase camera i2c speed
Charlie Huang [Mon, 25 Feb 2013 20:42:11 +0000]
ARM: tegra: t114/t148: increase camera i2c speed

to 400K on camera i2c bus on these platforms:
dalmore
pluto
ceres
macallan

bug 1234944

Change-Id: I6ac5369d03e5f7a8ac95ecdc7bfea33ef9c16f95
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/203928
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: dvfs: Add dvfs rails thermal profiles
Alex Frid [Wed, 6 Mar 2013 07:34:16 +0000]
ARM: tegra: dvfs: Add dvfs rails thermal profiles

Added thermal profiles for dvfs rails: vdd_cpu and vdd_core. Thermal
profile for each rail specifies a set of temperature trip-points and
matching minimum voltage levels (thermal floors) that limit voltage
down scaling within the respective temperature ranges. For now, only
monotonically descending profiles are supported.

Converted Tegra11 implementation of cold temperature minimum voltage
limit into single-trip-point profile.

Bug 1248374

Change-Id: Ib7f32c2266fdf7c8a28fe4cfaaeefe5a5a6eaacb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/208151
(cherry picked from commit d882f63a6b288e2f28065d3814e11b05403d4156)
Reviewed-on: http://git-master/r/209865
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: usb: Increase CPU frequency range
Rakesh Bodla [Fri, 8 Mar 2013 12:17:02 +0000]
ARM: tegra: usb: Increase CPU frequency range

Now tegra chips cpu frequency has increased and updating
the range accordingly.

Bug 1216779

Change-Id: I57d530bcc5f4b8d5969ed7b5ffc21987e23809e8
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207587
(cherry picked from commit e338bb00cb8e4b286147add38e652221b91ff73c)
Reviewed-on: http://git-master/r/209671
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: usb_phy:remove unnecessary phy api
Rakesh Bodla [Fri, 8 Mar 2013 17:45:13 +0000]
ARM: tegra: usb_phy:remove unnecessary phy api

Removing unnecessary phy apis.

Bug 1242710

Change-Id: I920c5fd41f6daa2d3e7eb2964904574901a4d585
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207635
(cherry picked from commit 8180284740475e5a9ea5b2e90a79d5d8ee78311a)
Reviewed-on: http://git-master/r/209652
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: host: tegra:remove unnecessary phy api calls
Rakesh Bodla [Fri, 8 Mar 2013 17:42:14 +0000]
usb: host: tegra:remove unnecessary phy api calls

Some of the variables are passed through platform data,
no need to call phy callbacks for initialization.

Bug 1242710

Change-Id: Ic16db9c1daefb19e2ffa8cc0bd6ac4ac48fdd569
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207634
(cherry picked from commit d578ccc61540ec39d7f090cd261172392e52436e)
Reviewed-on: http://git-master/r/209651
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: gadget: tegra:remove unnecessary phy api calls
Rakesh Bodla [Fri, 8 Mar 2013 17:41:46 +0000]
usb: gadget: tegra:remove unnecessary phy api calls

Some of the variables are passed through platform data,
no need to call phy callbacks for initialization.

Bug 1242710

Change-Id: Ib143d9c56b695fd4f27b8e38444f68077bea48ec
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207633
(cherry picked from commit 51e6c3733c4e58f2009c801a55f5d899eb11888c)
Reviewed-on: http://git-master/r/209650
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: Tegra: Keep L2 available while MMU is on
Antti P Miettinen [Wed, 3 Oct 2012 10:37:15 +0000]
ARM: Tegra: Keep L2 available while MMU is on

As page tables can be outer cacheable we want to keep L2
available while MMU is on. Therefore, upon resuming from power
gating, enable L2 before MMU enable and upon power gating entry
disable L2 after MMU has been disabled. The optimization
is not stable with secure OS so leave the optimization out
for secure OS config. T148 has separate caches so there L2 flush
cannot be avoided. Also the caches are of different size so
the l2x0 module is initialized upon resume.

Bug 1046695

Change-Id: I520db89e880c08113e0b3e29a88efaad0c100045
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/204852
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agovideo: tegra: nvmap: marshal/unmarshal handles in non-ioctl path
Krishna Reddy [Wed, 27 Feb 2013 18:44:08 +0000]
video: tegra: nvmap: marshal/unmarshal handles in non-ioctl path

Bug 1228120

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

6 years agovideo: tegra: nvmap: marshal/unmarshal handles in the ioctl path
Krishna Reddy [Wed, 27 Feb 2013 18:39:06 +0000]
video: tegra: nvmap: marshal/unmarshal handles in the ioctl path

Bug 1228120

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

6 years agosoc: tegra: fix coverity errors
Dara Ramesh [Tue, 5 Mar 2013 10:44:53 +0000]
soc: tegra: fix coverity errors

fix memory cleanup and array comparison with null.
Coverity id : 22509
Coverity id : 22512

Bug 1046331

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

6 years agoARM: tegra11: power: Restrict entry to Fmin@Vmin
Alex Frid [Wed, 6 Mar 2013 01:22:08 +0000]
ARM: tegra11: power: Restrict entry to Fmin@Vmin

Don't use Fmin@Vmin idle state while VDD_CPU rail is updating.

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

6 years agoARM: tegra: dvfs: Fix CL-DVFS scale calculation
Alex Frid [Wed, 6 Mar 2013 00:54:25 +0000]
ARM: tegra: dvfs: Fix CL-DVFS scale calculation

Change-Id: I8e17fdf1e9d197d56d49963a526c0fe474b14a45
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/206481
(cherry picked from commit e891444deb9fd024da36aa69a2c7c6f2323e3665)
Reviewed-on: http://git-master/r/208931
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra11: clock: Preset EMC monitor rate
Alex Frid [Sun, 3 Mar 2013 03:37:42 +0000]
ARM: tegra11: clock: Preset EMC monitor rate

Use EMC boot rate as EMC monitor output reading during initialization
until actual monitoring starts.

Bug 1239168

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

6 years agomedia: video: tegra: Add imx132 DT support
Sudhir Vyas [Fri, 8 Mar 2013 12:53:17 +0000]
media: video: tegra: Add imx132 DT support

Bug 1242873
Bug 1201664

Change-Id: Ia68be3c0d68aa04323d5f985998aed3cf8f9e1cd
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/207582
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agovideo: tegra: host: always update 3dfs status
Samuel Russell [Wed, 13 Mar 2013 21:09:02 +0000]
video: tegra: host: always update 3dfs status

Always update 3dfs dev_status whether scaling is enabled or
disabled

Bug 1242049

Change-Id: Ifb2b9b3ee4134697aefbd99ff8234399770df0b4
Signed-off-by: Samuel Russell <samuelr@nvidia.com>
Reviewed-on: http://git-master/r/208953
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoASoC: Tegra: Fix DL issue for T14x
Ravindra Lokhande [Thu, 14 Mar 2013 17:50:58 +0000]
ASoC: Tegra: Fix DL issue for T14x

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

6 years agogadget:tegra decrease uFrame count for interrupt latency
Philip Rakity [Sat, 9 Mar 2013 01:50:15 +0000]
gadget:tegra decrease uFrame count for interrupt latency

The usb command register defines the minimum time
that the usb controller can interrupt the cpu. This
is set (by default) to 1ms (8 uFrames). This value
was set in the standard a LONG time ago. Reduce the
interrupt time to 125uS as tegra is able to handle
interrupts at this rate. This change improves the
adb throughtput.

This change improves the adb throughtput from 1.2 MB/sec
to 5.5-5.9 MB/Sec.

Bug 1216801

Change-Id: I43957cf23247846e8cab11eea7a9a0d4e4def2e1
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/207349
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: bbc: support latency parameter
Neil Patel [Fri, 8 Mar 2013 04:56:56 +0000]
ARM: tegra: bbc: support latency parameter

This change adds support for setting the latency arg for the
isomgr interface through sysfs.

Bug 1177400

Change-Id: If4fec1847183efce6ad1447f273604bcdf88f825
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/207429
Reviewed-by: Stephane Dion <sdion@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agovideo: tegra: dc: Fix syncpt update of windows D/H
Michael Frydrych [Wed, 13 Mar 2013 13:10:39 +0000]
video: tegra: dc: Fix syncpt update of windows D/H

Sync points of windows D and H are wholly managed by
the client.

Change-Id: I19051a0cf0a777c5d8853ca32bdd8857c8d42388
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/208830
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: remove duplicate defines for chip_id
Mayuresh Kulkarni [Tue, 12 Mar 2013 10:09:43 +0000]
ARM: tegra: remove duplicate defines for chip_id

- the chip id have been defined in 2 places: fuse.h as
TEGRAXX & mach/hardware.h as TEGRA_CHIPID_TEGRAXX
- some part of code used defines from fuse.h while others
used mach/hardware.h
- this commit removes the defines in fuse.h and converts
all the code to use the defines from mach/hardware.h
- kernel in dev-chips is also using defines from
mach/hardware.h

Change-Id: Ia65f8ead3f8eccdd6cba4a159c3d0e16a2566e41
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/208375
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: nvmap: move private api's to private nvmap.h
Krishna Reddy [Wed, 27 Feb 2013 01:51:47 +0000]
video: tegra: nvmap: move private api's to private nvmap.h

Bug 1228120

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

6 years agomedia: video: tegra: use user id version nvmap api's
Krishna Reddy [Wed, 27 Feb 2013 01:50:25 +0000]
media: video: tegra:  use user id version nvmap api's

Prepare for marshal/unmarshal of nvmap handles.
Bug 1228120

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

6 years agovideo: tegra: dc: check if WinD and WinH are dirty
Jon Mayo [Fri, 8 Mar 2013 22:12:00 +0000]
video: tegra: dc: check if WinD and WinH are dirty

Change-Id: Id90803c865b4ec0f25288b8163fecaae64b18173
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/208881
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: dc: correct DC feature table
Jon Mayo [Fri, 8 Mar 2013 22:11:07 +0000]
video: tegra: dc: correct DC feature table

Windows support 1x1 to 4096x4096 size.

Change-Id: I7d1a7e182ba5c740af1061e2ceb22cac092bedf0
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/208880
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: pluto: fix coverity error
Dara Ramesh [Tue, 5 Mar 2013 10:36:08 +0000]
arm: tegra: pluto: fix coverity error

added new variable to check edp support.
Coverity id : 22509
Coverity id : 22512

Bug 1046331

Change-Id: Ia5d63c8e6ddfb98c7218efa53103aaa286c67298
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/209440
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agovideo: tegra: host: Debug code improvements
Arto Merilainen [Wed, 13 Mar 2013 09:44:21 +0000]
video: tegra: host: Debug code improvements

This patch modifies debug code to:
- not inform about unlocked channels,
- use the correct register for determining the mlock owner
- inform if a channel has observed an invalid opcode.

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

6 years agoARM: tegra14: disable thermal DVFS
Seshendra Gadagottu [Thu, 7 Mar 2013 23:43:52 +0000]
ARM: tegra14: disable thermal DVFS

Fix incorrect THERMAL_DVFS_ENABLE usage.

Change-Id: I52237e02eab18e60491fd09aa905f7591988924a
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/207335
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra14: set core voltage to 1250mv
Seshendra Gadagottu [Thu, 7 Mar 2013 21:22:17 +0000]
ARM: tegra14: set core voltage to 1250mv

Change-Id: I2b0c2a255102b7e81dc141568518eae3e41d8766
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/207292
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>

6 years agoARM: tegra11: Improve accuracy of persistent clock
Bo Yan [Thu, 28 Feb 2013 07:23:21 +0000]
ARM: tegra11: Improve accuracy of persistent clock

The 56b mask passed into clocks_calc_mult_shift makes sure there
is no 64b overflow in cycles to time units conversion. However,
we pay the cost of accuracy. With 12M clock in nano-second
conversion, the mult is 333, the shift is 2, so we loss 1s for
every 1000s.

Fix the arithmatic to improve accuracy. Now we will run overflow
risk when the number of cycles is huge and clock frequency is low.
With 56b width of clock source, if multiplier is set to the maximum
"0xFFFFFFFF", overflow will happen if clock rate is below 3.9Mhz.
This risk can be ingored since it implies a long time period of
more than 500 years. Higher clock rate only makes this risk lower.

Change-Id: If449d866372d33e878c2c17e024e514c95030c72
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/205600
(cherry picked from commit 8767e2c1663545d4569fc13955fe5b21e6f67cc3)
Reviewed-on: http://git-master/r/208664
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: defconfig: Log suspend time, remove ARM errata
Bo Yan [Mon, 4 Mar 2013 23:32:46 +0000]
ARM: tegra11: defconfig: Log suspend time, remove ARM errata

The ARM errata defined so far don't apply to Cortex-A15.

Also enable support for suspend time logging.

Change-Id: I6e79c309c8ebdb0de82580f1c2d70968dbfd62a5
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/206082
(cherry picked from commit 20d9a455b76d37262f30045b7f30b35ad1ae7937)
Reviewed-on: http://git-master/r/208662
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra114: Dalmore: Increase cpu_timer
Bo Yan [Sat, 2 Mar 2013 00:30:12 +0000]
ARM: tegra114: Dalmore: Increase cpu_timer

CPUPWRGOOD_TIMER for Dalmore board needs to be increased to 500us.

The scope shot shows 420us from assertion of CPU_PWR_REQ to the point
when VDD_CPU is fully ramped up and stable. Add 80us as safe margin.

bug 1243411

Change-Id: I7e01f6e697224ca5ca65b79ba34a46da647b4303
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/205706
(cherry picked from commit e24beb4883269e90c4bc460423254ac3b8761107)
Reviewed-on: http://git-master/r/208661
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra114: Roth: Increase cpu_timer
Bo Yan [Tue, 5 Mar 2013 01:03:58 +0000]
ARM: tegra114: Roth: Increase cpu_timer

Thor and Dalmore use the same PMIC, so CPUPWRGOOD_TIMER should also
be the same

bug 1243411

Change-Id: Id4a20d2a5b1ff25e35add1574aba371a49bc9e6e
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/206131
(cherry picked from commit 628e4d17609ee1ad88b1a88b3344065023cc1b76)
Reviewed-on: http://git-master/r/208660
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: dvfs: Remove debug read of CL-DVFS I2C space
Alex Frid [Wed, 13 Mar 2013 20:26:51 +0000]
ARM: tegra: dvfs: Remove debug read of CL-DVFS I2C space

Dual access to I2C registers from Cl-DVFS h/w and s/w running on cpu
is not allowed during CL-DVFS operations in closed loop. To prevent
possible collision with debugging/testing tools removed I2C divider
from CL-DVFS registers debugfs dump.

Change-Id: I22bebd22d308001ec425451fc4134256131d0b89
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/208945
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra14: dvfs: Set cold limit before switch to G CPU
Alex Frid [Wed, 13 Mar 2013 19:13:12 +0000]
ARM: tegra14: dvfs: Set cold limit before switch to G CPU

During CPU cluster switch set CPU rail cold temperature limit in dfll
mode before switching to G CPU.

Ported from Tegra11, commit 92de167904c19a9c353de0ed22a3422549effae8

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

6 years agoARM: tegra11: dvfs: Re-named dvfs cooling devices
Alex Frid [Sun, 17 Feb 2013 07:44:12 +0000]
ARM: tegra11: dvfs: Re-named dvfs cooling devices

Change-Id: I6580f2fa952c623555c4f782774e3b279d597b3c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201832
(cherry picked from commit 3d90d10f4e72222ef4250f9a716d581c9eaa3f76)
Reviewed-on: http://git-master/r/208921
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: dvfs: Update CPU thermal control in dfll mode
Alex Frid [Sun, 17 Feb 2013 06:22:34 +0000]
ARM: tegra: dvfs: Update CPU thermal control in dfll mode

During CPU cluster switch set CPU rail cold temperature limit in dfll
mode before switching to G CPU. Thus, the limit may be set only if
temperature is already low (before this commit the limit was set when
switching to LP CPU, and as such must be set unconditionally for the
worst case of cold temperature).

Made sure dfll and pll mode cooling devices have the same trip-points,
and dfll cooling device is enabled only when cold temperature voltage
limit is below DFLL minimum voltage.

Change-Id: Ia26b6caf3fbbd56f723661513474babad64b5d97
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201831
(cherry picked from commit 92de167904c19a9c353de0ed22a3422549effae8)
Reviewed-on: http://git-master/r/208920
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: phy:Disable PMC when driver unregister
Rakesh Bodla [Tue, 5 Mar 2013 15:27:51 +0000]
ARM: tegra: phy:Disable PMC when driver unregister

PMC should be disabled while unregistering
the driver.

Bug 1246325

Change-Id: I8eb51f0fd3596af524cf8c3b56acbdb58bb00402
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/206346
(cherry picked from commit 81d083d71480126be3320954c95c1482c5d9bbc5)
Reviewed-on: http://git-master/r/208753
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: mach-tegra: resolve tegra_cpu_lock race condition
Sang-Hun Lee [Mon, 11 Feb 2013 01:48:24 +0000]
arm: mach-tegra: resolve tegra_cpu_lock race condition

Problem description:

 - lock used in cpuquiet, cpu-tegra3.c, tegra2-throttle.c, and tegra3_throttle
   originate from cpu-tegra.c, tegra_cpu_lock
 - edp_update_limit and tegra_auto_hotplug_governor need a protection from
   tegra_cpu_lock. These are also called by tegra_cpu_set_speed_cap
 - Some callers of tegra_cpu_set_speed_cap do not acquire tegra_cpu_lock,
   but some do

Fix description:

 - Create a locked variant and unlocked variant of tegra_cpu_set_speed_cap
   to make it explicit that tegra_cpu_lock is needed for tegra_cpu_set_speed_cap
 - Replace existing calls with new variants of tegra_cpu_set_speed_cap appropriately

Bug 1225764

Change-Id: I8aa6356df278375e3a9105023f66c8286e3fdbef
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/199238
(cherry picked from commit 91bdd64c3c80480195a5ccdb8cef969ca5a18afc)
Reviewed-on: http://git-master/r/207640
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

Remove race conditions around cpq_state access

Bug 1225764

Change-Id: I73f28b81d9488633294eaa04369f15993f742cb0
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/197265
(cherry picked from commit d844483506f82efb7bb12206ff98f5cd80a4d436)
Reviewed-on: http://git-master/r/207639
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: pluto: Make imx132 DT support changes
Sudhir Vyas [Fri, 8 Mar 2013 12:46:24 +0000]
ARM: tegra: pluto: Make imx132 DT support changes

Bug 1242873
Bug 1201664

Change-Id: Ic69380592147e83958a8e2860931dd766f8da4cd
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/207579
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: dts: tegra114: Add imx132 sensor DT support
Sudhir Vyas [Fri, 8 Mar 2013 11:12:38 +0000]
arm: dts: tegra114: Add imx132 sensor DT support

Bug 1242873
Bug 1201664

Change-Id: I3fe658a0117e074151dc6ec25b69f8390bef0501
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/207553
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoasoc: tegra: add e1853 board support
Songhee Baek [Mon, 13 Aug 2012 22:54:38 +0000]
asoc: tegra: add e1853 board support

Added config option for e1853 board

Bug 992422

Reviewed-on: http://git-master/r/123191
(cherry picked from commit 084598e15f7cae0bf191dc343d60f4f705415367)

Reviewed-on: http://git-master/r/123197
(cherry picked from commit 25fd36cd72e5d62c0c9d6b108c95220f6d7d34a5)

Change-Id: Ia46e67740daa0f47729d32ceffe37c16d4ab04d6
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/207087
Tested-by: Nitin Nagaraja <nitinn@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>