6 years agoasoc: tegra: Voice call with cs42l73 ASP+VSP support
ScottPeterson [Fri, 2 Nov 2012 01:28:17 +0000]
asoc: tegra: Voice call with cs42l73 ASP+VSP support

Using cs42l73 VSP audio port for voice call in pluto

Bug 1056501

Change-Id: I58697b1a08f5e2d1199da5255d1ff086367ad23c
Signed-off-by: ScottPeterson <speterson@nvidia.com>
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/162574
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: dalmore/pluto: on-sensor flash cntl
Charlie Huang [Tue, 20 Nov 2012 02:11:04 +0000]
ARM: tegra: dalmore/pluto: on-sensor flash cntl

enable on-sensor flash control function of imx091.

bug 1170146

Change-Id: Ib571a50c35fc5533f9f084c381f10a1fcf45b150
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/164844
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agodrivers: tegra: imx091: flash control support
Charlie Huang [Fri, 2 Nov 2012 23:16:04 +0000]
drivers: tegra: imx091: flash control support

add support of the on-sensor flash control

bug 1170146

Change-Id: Ie8f48c5f8065ce4b35f24e7839f78fc6d8579482
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/161015
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agovideo: tegra: host: Modify 3dfs algorithm
Samuel Russell [Thu, 20 Sep 2012 01:10:19 +0000]
video: tegra: host: Modify 3dfs algorithm

Modify the 3dfs algorithm to address power regressions.
 - Use exponential-moving-average
 - Implement block before modifying target again
 - Only scale up or down by 1 step at a time
 - Inside hint limits use a combination of idle and hint

Bug 1048740
Bug 971602

Change-Id: Ic7d7950c57742410801f897d6439c71ab18355e7
Signed-off-by: Samuel Russell <samuelr@nvidia.com>
Reviewed-on: http://git-master/r/134915
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simo Melenius <smelenius@nvidia.com>
Tested-by: Simo Melenius <smelenius@nvidia.com>
Tested-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoarm: tegra: pluto: Add clock for voice codec i2s device
Rahul Mittal [Thu, 22 Nov 2012 09:16:23 +0000]
arm: tegra: pluto: Add clock for voice codec i2s device

Bug 1056501

Change-Id: Ibf33524973aca3ffeaf3f120bfba4a3401f84c2c
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/165655
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoa2220: Set audience passthrough modes for ASP+VSP
Rahul Mittal [Thu, 22 Nov 2012 09:13:47 +0000]
a2220: Set audience passthrough modes for ASP+VSP

PORT D -> C for ASP
PORT B -> A for VSP

Bug 1055246
Bug 1056501

Change-Id: I4811d01427b0fb2fef4fcb5eb54245ea0ca975a5
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/165654
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: pluto: Add i2s pdata for voice codec
Rahul Mittal [Thu, 22 Nov 2012 09:12:05 +0000]
arm: tegra: pluto: Add i2s pdata for voice codec

Bug 1055246
Bug 1056501

Change-Id: Ib2f9e0155db9f7c2b695b04c70c8f07aeb57e59b
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/165653
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agomedia: video: tegra: ov9772: correct group hold
Phil Breczinski [Wed, 21 Nov 2012 08:11:40 +0000]
media: video: tegra: ov9772: correct group hold

Update the group hold function and support to properly implement
group hold on the ov9772 sensor.  Improves preview flicker
problem.

Bug 1161168

Change-Id: I19d071d97b8bc55096799b76aa86c839211c471a
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/165279
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agonet: mhi: mhdp optimizations and typo corrections
Xavier LANGELLIER [Fri, 12 Oct 2012 15:05:18 +0000]
net: mhi: mhdp optimizations and typo corrections

mhdp driver optimizations and typo corrections

Bug 1167018

Change-Id: Icc829b4c42bee941ceb361cb0c04d01ece6cbf14
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/165099
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: mhi: Remove keep alive feature in MHDP
Xavier LANGELLIER [Thu, 11 Oct 2012 13:01:38 +0000]
net: mhi: Remove keep alive feature in MHDP

Remove keep alive feature in MHDP (rework)

Bug 1167018

Change-Id: I0beddcc334e7528461f525f0c8beedda8bef405c
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/165081
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: mhi: mhdp support for bonding
Xavier LANGELLIER [Thu, 11 Oct 2012 12:48:10 +0000]
net: mhi: mhdp support for bonding

mhdp support for bonding. Set to off by default. Add option
CONFIG_MHDP_BONDING_SUPPORT to activate the feature.

Bug 1167018

Change-Id: I9dc77cc78495a1b142db9325a2d0726329bfe626
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/165079
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: mhi: mhdp keep alive feature is not required
Xavier LANGELLIER [Thu, 11 Oct 2012 09:58:49 +0000]
net: mhi: mhdp keep alive feature is not required

mhdp keep alive feature is not required anymore. This change is
independant of the RIL one.

Bug 1167018

Change-Id: Ib2aef6ff6883c5666646471c89a82ac5a186a1a2
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/165068
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agonet: mhi: reduce MAX_MHDPHDR_SIZE
Xavier LANGELLIER [Tue, 18 Sep 2012 13:08:48 +0000]
net: mhi: reduce MAX_MHDPHDR_SIZE

Bug 1167018

Change-Id: Id77202afb28b6532700b7482fff5e162b37cd601
Signed-off-by: wtsai <wtsai@nvidia.com>
Reviewed-on: http://git-master/r/165063
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoasoc: tegra: cs42l73: ASP + VSP support
Rahul Mittal [Thu, 22 Nov 2012 09:11:17 +0000]
asoc: tegra: cs42l73: ASP + VSP support

Music with ASP
Voice with VSP

Bug 1055246
Bug 1056501

Change-Id: Ia54035b811376d9bd42b558c53f7d61f956017b6
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/160886
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: fixed issues with host1x_init calls
Gaurav Batra [Wed, 21 Nov 2012 01:13:15 +0000]
arm: tegra: fixed issues with host1x_init calls

Change-Id: I1ca4b57c2c3624fef9249602d0b25fd847738e41
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/165208
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agortc: palmas: add battery backup charging support
Laxman Dewangan [Tue, 20 Nov 2012 06:46:51 +0000]
rtc: palmas: add battery backup charging support

Add platform data for RTC to select the battery
backup charging or not.

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

6 years agoARM: tegra: clock: change message priority
Darbha Sriharsha [Thu, 15 Nov 2012 11:31:20 +0000]
ARM: tegra: clock: change message priority

This is to change the message priority of
messages printing CPU clock rate changes
from "warning" level to info level so
that they are not caught in tests written to
catch kernel warnings and errors

Bug 116526

Change-Id: I9884c26956f1cc56137be6d587aa881e1ecea607
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/163950
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agovideo: tegra: dc: reduce crc messages to dev_dbg
Adam Cheney [Tue, 13 Nov 2012 20:37:10 +0000]
video: tegra: dc: reduce crc messages to dev_dbg

Messages that confirm when CRC is enabled or disabled
only need to be shown in DEBUG mode.

bug 1056778

Change-Id: Ifa16345e60ef3bc3d1f1b1ee9277bf720ead7b51
Signed-off-by: Adam Cheney <acheney@nvidia.com>
Reviewed-on: http://git-master/r/163308
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Morell <rmorell@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: clock: allow tracing of clk_set_parent
Peter Boonstoppel [Wed, 21 Nov 2012 00:54:35 +0000]
ARM: tegra: clock: allow tracing of clk_set_parent

Change-Id: I1d79c61961d84e7cecb9bfdd158f564673595746
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/165205
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agovideo: tegra: host: Wait for idle before regread
Terje Bergstrom [Tue, 20 Nov 2012 08:25:40 +0000]
video: tegra: host: Wait for idle before regread

Wait for idle before doing a 3D register read.

Bug 1157195

Change-Id: I3f017f04d1b42b666c24d27811040b15c95ddd2f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/164949
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jussi Rasanen <jrasanen@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra11x: Simplify cpu hotplug sequence
Bo Yan [Tue, 20 Nov 2012 04:58:52 +0000]
ARM: tegra11x: Simplify cpu hotplug sequence

There is no need to clear CPU CSR register. The "ENABLE" bit (bit 0)
is set by software, but cleared by hardware once the sequence is
completed. In case of failure, it's desirable not to change it for
debug purpose.

After CPU_CSR clear is removed, the power mask is set by the CPU
that's booting up.

Change-Id: I4879c64ec5858ed85008fbeeedb8232e35643a8c
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/164891
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agovideo: tegra: host: Compress debug dump
Terje Bergstrom [Mon, 19 Nov 2012 17:11:16 +0000]
video: tegra: host: Compress debug dump

UART is slow for long debug spews. Compress the output by removing
decoding into opcodes.

We also remove KERN_INFO from each printk, as that causes a newline
between each word.

Bug 1175902

Change-Id: I9f2c2baa5483e5c1eb82c9c4c3c2133ecb3209ac
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/164733
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

6 years agomedia: video: tegra: ov9772: reduce set mode time
Phil Breczinski [Sat, 17 Nov 2012 02:36:58 +0000]
media: video: tegra: ov9772: reduce set mode time

Reduces time to set mode on ov9772 sensor.
Eliminate unneeded sleep times at mode switch.
Implement active wait following software reset.

Change-Id: I25e978eaf64815ba73f8cc42f7ecfdabac95f46c
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/164502
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoarm: tegra: sdhci: Set emmc voltage to 1.8V
Naveen Kumar Arepalli [Fri, 9 Nov 2012 06:39:00 +0000]
arm: tegra: sdhci: Set emmc voltage to 1.8V

Set emmc supply interface voltage to 1.8V

Bug 1165367

Change-Id: I75cc67802b6371ec84a7593514d986b8c9e99a52
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/162583
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: dvfs: Increase DSI rate limit at low voltage
Alex Frid [Wed, 7 Nov 2012 06:24:38 +0000]
ARM: tegra11: dvfs: Increase DSI rate limit at low voltage

Bug 1167916

Change-Id: Ie2411863d1b1249b67831d4a77b2c5efa1dad7f1
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/162190
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agohwmon: ina3221: add support for INA3221
Deepak Nibade [Mon, 5 Nov 2012 12:55:12 +0000]
hwmon: ina3221: add support for INA3221

-add driver to support INA3221 in both
triggered/continuous mode
-add header file in include/linux
-modify Makefile, Kconfig

Bug 1160066

Change-Id: Id0e001d680bb6896e263c0d6c848e1f978290520
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/161227
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Liang Cheng (SW) <licheng@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb:class:nv-usb: driver to measure usb throughput
Preetham Chandru R [Mon, 22 Oct 2012 09:55:45 +0000]
usb:class:nv-usb: driver to measure usb throughput

a class driver to measure usb throughput

Change-Id: Ibadfb7f5722e6969c93064fcf4ca79139fd08728
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/138994
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: gadget: nvusb: gadget driver to measure kpi
Preetham Chandru R [Mon, 22 Oct 2012 11:34:40 +0000]
usb: gadget: nvusb: gadget driver to measure kpi

This gadget driver is used to measure the usb kpi

Change-Id: I1ec52af2e76a6c35ad0e4b52c68deb4be76807be
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/138830
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agovideo: tegra: host: Fix memory leak on pin
Tuomas Tynkkynen [Fri, 9 Nov 2012 16:14:02 +0000]
video: tegra: host: Fix memory leak on pin

A scatter-gather table was left unfreed when unpinning a handle.

Bug 1173911

Change-Id: Iba3b06aa97fc69657f168a9d2aaf7959ef0ac890
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/162709
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>

6 years agousb: otg: tegra: Fix builtin_host functionality
Petlozu Pravareshwar [Fri, 9 Nov 2012 13:10:30 +0000]
usb: otg: tegra: Fix builtin_host functionality

When builtin_host is disabled sysfs interface
to enable host mode should be created otherwise
it should not be created. Also, enable ID interrupt
only if builtin_host is enabled.

Bug 1050988

Change-Id: I9618eab83e0c49847f9cb89718d9ea3c76ac129e
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/162356
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agomedia: video: tegra: moving to clk prepare APIs
Sivaram Nair [Thu, 1 Nov 2012 15:56:34 +0000]
media: video: tegra: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
clk_prepare_enable and clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: If72e1542f1b4784aeb3aac95b3ae28080e1f351d
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/162331
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agovideo: tegra: host: Restore several regs from other regs
Wei Sun [Thu, 8 Nov 2012 00:07:05 +0000]
video: tegra: host: Restore several regs from other regs

Part 1/3 checkin.

restore reg 0xe44 from reg 0x40e
restore reg 0x403 and 0xe45 from reg 0x411

bug 972588
bug 962360
bug 1159659

Change-Id: Ibf0ddd18ef6127afff9e45f640b22779280896c5
Signed-off-by: Wei Sun <wsun@nvidia.com>
Reviewed-on: http://git-master/r/162163
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: config: enable tegra_prepower_config
Nagarjuna Kristam [Mon, 12 Nov 2012 06:00:03 +0000]
arm: config: enable tegra_prepower_config

Bug 1167337

Change-Id: I0636b24799186cbe6e052bcd8964bd9909270621
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/159789
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: fiq_debugger: fix compilation
Bibek Basu [Wed, 21 Nov 2012 06:03:16 +0000]
ARM: tegra: fiq_debugger: fix compilation

fiq debugger is broken as it includes mach/system.h
which no longer exists.This patch fix this error
by removing the inclusion of system.h

Bug 1179127

Change-Id: I36032de186e3fe3ac9aeafec45023d22823c9cc3
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/165253
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agowatchdog: tegra: fix compilation error
Bibek Basu [Wed, 21 Nov 2012 04:51:03 +0000]
watchdog: tegra: fix compilation error

include module.h to fix broken compilation
with tegra watchdog enabled

Bug 1179099

Change-Id: Ic03f43ab3f3fef0c190a46271d16b192f04539f7
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/165241
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: soctherm: Fix section mismatch warnning
Jinyoung Park [Tue, 20 Nov 2012 08:00:37 +0000]
arm: tegra: soctherm: Fix section mismatch warnning

The soctherm_fuse_read_tsensor function was marked with __init macro,
but it's referenced by soctherm_init_platform_data function which is not
initialization function.
This is violation of __init macro usage in kernel. The __init macro
should be marked on initialization function, because functions __init
marked will be located in special section(.init.text) and this section will
be freed after boot is complete.

Bug 1176013

Change-Id: I5d042040f585b71b112d546226fd3c185c52e427
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/164970
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: dalmore: Add core EDP limits initialization
Alex Frid [Sat, 17 Nov 2012 06:13:38 +0000]
ARM: tegra11: dalmore: Add core EDP limits initialization

Bug 1165638

Change-Id: I5194de9f292c0a21fc262b80be07ab534755f92c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/164833
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: power: Add core EDP basic implementation
Alex Frid [Thu, 15 Nov 2012 06:16:18 +0000]
ARM: tegra11: power: Add core EDP basic implementation

Added mechanism to limit maximum GPU and memory frequency in order
to keep core rail current within power supply capabilities. The
actual limits yet to be characterized, and they will depend on

(a) Chip SKU
(b) Regulator current limit
(c) Slow (LP) CPU state (On/Off)
(d) Temperature range (trip-points TBD)
(e) User profile (balanced, favor GPU, favor EMC)
(f) Core module state (reserved)

Dependencies (a) and (b) are resolved statically when core EDP
is initialized for the particular chip. Core EDP limits will be
changed dynamically when run-time conditions (c), (d), (e), and
(f) are changed.

This commit implements only initialization of the core EDP limits
table and debugfs access to the table. Dynamic control is not
implemented. EDP table data is just a template.

Core EDP configuration option is unselected by default.

Bug 1165638

Change-Id: Ia1187f4e5d59d2668a5058e47fea7ae668018413
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/164832
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra: Setup core rail maximum current parameter
Alex Frid [Sat, 17 Nov 2012 06:09:22 +0000]
ARM: tegra: Setup core rail maximum current parameter

Bug 1165638

Change-Id: I380da3c2cd36fd3e21bedfdcfd1ba9683ae1ba12
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/164831
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: power: Move EDP initialization after EMC
Alex Frid [Sat, 17 Nov 2012 03:58:12 +0000]
ARM: tegra11: power: Move EDP initialization after EMC

Bug 1165638

Moved EDP initialization on Tegra11 platforms after EMC DFS is
initialized. This will be necessary in order to initialize core
rail EDP along with CPU rail EDP (currently only the latter is
supported).

Change-Id: I9ccf76a98f17db92bcf538fd7d702bfb7febe096
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/164830
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra: dvfs: Don't set common core edp default voltage
Alex Frid [Sun, 18 Nov 2012 06:46:16 +0000]
ARM: tegra: dvfs: Don't set common core edp default voltage

Removed 1.2V default core edp voltage setting from common code.
Let Tegra family specific dvfs layers to set different defaults:
1.2V for Tegra3, and 1.1V for Tegra11 (Tegra2 does not support
core edp limits at all).

Change-Id: I4b3a2a5d9e61ee4dcce80eca473d4a8de496df3c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/164580
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: Tegra: Dalmore: Fix Pinmux for Hall Effect Sensor
Matt Wagner [Sat, 17 Nov 2012 20:30:55 +0000]
ARM: Tegra: Dalmore: Fix Pinmux for Hall Effect Sensor

Change KB_ROW8 to PULL_UP since the Hall Effect Sensor is
active low.  This allows the board to boot correctly if the
sensor module is broken or missing

Bug 1177461

Change-Id: Icb390b634314f4cdc9bfe12902b263396c7d9302
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/164544
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoarm: tegra: pluto: Keep SMPS9 always ON for eMMC
Karthik Ramakrishnan [Sat, 17 Nov 2012 02:25:24 +0000]
arm: tegra: pluto: Keep SMPS9 always ON for eMMC

The emmc in Pluto in some of the boards shows high power
in suspend state. Putting the regulator rail always ON
keeps the eMMC rail in low power. Helps in lp0 system
power by 40-50mW in some of the boards.

Change-Id: I51803aba31bfbee71b9665095fe758d216e48cf9
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/164498
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra11: dvfs: Update cbus, vi, and host1x dvfs tables
Alex Frid [Wed, 14 Nov 2012 06:10:29 +0000]
ARM: tegra11: dvfs: Update cbus, vi, and host1x dvfs tables

Bug 1161126

Change-Id: I2a238aa4d4100529b7d82f919e676c40c7685b93
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/163461
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: dvfs: Update system bus dvfs table
Alex Frid [Wed, 14 Nov 2012 05:51:47 +0000]
ARM: tegra11: dvfs: Update system bus dvfs table

Bug 1161126

Change-Id: I5a17b63b1163c1b4a223f609885918565a10ebcc
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/163460
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra11: dvfs: Update LP CPU dvfs table
Alex Frid [Wed, 14 Nov 2012 05:43:45 +0000]
ARM: tegra11: dvfs: Update LP CPU dvfs table

Bug 1161126

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

6 years agoARM: tegra11: dvfs: Expand core voltage range
Alex Frid [Wed, 14 Nov 2012 03:48:06 +0000]
ARM: tegra11: dvfs: Expand core voltage range

Expanded core voltage table range from [1.0V ... 1.120V] to
[0.9V ... 1.120V]. Updated low voltage entries for I/O domains
with safe dvfs limits. Kept all engines clocks within old range,
so effectively this commit has no effect on actual operational
voltage.

Bug 1161126

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

6 years agomedia: video: tegra: ov9772: correct 720p size
Phil Breczinski [Tue, 13 Nov 2012 21:26:29 +0000]
media: video: tegra: ov9772: correct 720p size

Changes dimensions of 720p output resolution from 1284x724
to 1280x720, eliminating corruption seen at the right side
of the image.

Bug 1156852

Change-Id: Ifd931f96f6bec506ae270c33cda2931a62c91c23
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/163316
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: pluto: max77665: Enable irq support
Pradeep Goudagunta [Sun, 11 Nov 2012 12:15:17 +0000]
ARM: tegra: pluto: max77665: Enable irq support

Bug 1011298

Change-Id: I1a5bc7a292c46850f702c1cad174bf1a036c0160
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/162909
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agomfd: max77665: Make irqf selection from pdata
Pradeep Goudagunta [Tue, 20 Nov 2012 09:52:11 +0000]
mfd: max77665: Make irqf selection from pdata

-Make irqf selection from platform data.
-Avoid i2c trasactions in atomic context.

Bug 1011298

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

6 years agomfd: tps65090: Fix interrupt clearing
Pradeep Goudagunta [Fri, 9 Nov 2012 13:30:16 +0000]
mfd: tps65090: Fix interrupt clearing

-Fix interrupt clearing for tps65090.
-Fix irq mask/unmask.
-Enable only battery and charging interrupts.
-Add irq_flag selection as pdata

Bug 1054751

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

6 years agoARM: tegra: dalmore: tps65090: Enable irq support
Pradeep Goudagunta [Fri, 9 Nov 2012 13:32:27 +0000]
ARM: tegra: dalmore: tps65090: Enable irq support

Bug 1054751

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

6 years agoARM: tegra11: config: enable ina230 sensor
Deepak Nibade [Thu, 8 Nov 2012 09:32:58 +0000]
ARM: tegra11: config: enable ina230 sensor

Bug 1049224

Change-Id: I32e3801c880ed6183b45b7168d705b2a270a599e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/162335
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra: pluto: add ina226 power monitor devices
Deepak Nibade [Thu, 8 Nov 2012 09:16:46 +0000]
ARM: tegra: pluto: add ina226 power monitor devices

-make use of ina230.c driver for INA226 chip since
ina226 and ina230 are compatible with each other
-update rail names for pluto
-update other data such as calibration_data,
power_lsb, divisor
-add precision_multiplier to use foating value
of power_lsb

Bug 1049224

Change-Id: I0c57bac7e0096a09f83240578ca4f0a39d6a39b1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/162318
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: usb: disable USB hotplug through PHY
Rakesh Bodla [Thu, 8 Nov 2012 06:33:04 +0000]
arm: tegra: usb: disable USB hotplug through PHY

Disabling the USB hotplug detection mechanism
through phy interrupts. Now USB hotplug detection
will done through PMC.

Bug 1057339
Bug 1171244

Change-Id: If9d1931fd3fc0a8cd8a7985a56e9c89686e4fe87
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/162268
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agousb: host: tegra: USB hotplug detection using PMC
Rakesh Bodla [Thu, 8 Nov 2012 06:30:59 +0000]
usb: host: tegra: USB hotplug detection using PMC

Add logic for detection of USB hotplug using PMC.
Update the call backs appropriately.

Bug 1057339
Bug 1171244

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

6 years agohwmon: ina230: add function to measure power
Deepak Nibade [Wed, 7 Nov 2012 12:57:31 +0000]
hwmon: ina230: add function to measure power

-do calculation using calibration_data, power_lsb,
divisor received from respective board files
-remove sysdev include

Bug 1049224

Change-Id: I673e67cb42972aad1a3c5e5ea995072d40839d05
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/162025
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: Remove DT code when DT not supported
Terje Bergstrom [Wed, 7 Nov 2012 08:40:18 +0000]
ARM: tegra: Remove DT code when DT not supported

L4T and some SoCs does not have support device trees, but the kernel
configuration still enables CONFIG_USE_OF.

Disable CONFIG_USE_OF in Kconfig. It is enabled already by all
defconfigs where DT is really supported. This allows drivers to
migrate to device trees gracefully. Also adds CONFIG_USE_OF back to
tegra3_android_defconfig as it was accidentally removed.

Change-Id: I2edb7128f43d2cf23fc3d599f3c9964830548479
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/161941
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra: pluto: Disable USB host on USB1
Rakesh Bodla [Tue, 6 Nov 2012 05:45:55 +0000]
ARM: tegra: pluto: Disable USB host on USB1

Disabling the USB host on USB1.

Bug 1050988

Change-Id: I674e11043f9e39fb19c7c0d64a85f50bea4defe3
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/161532
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoARM: tegra:usb_phy:program ID_PD bit conditionally
Rakesh Bodla [Tue, 6 Nov 2012 05:40:44 +0000]
ARM: tegra:usb_phy:program ID_PD bit conditionally

Enable ID_PD bit if host functionality is not needed
for power savings on AVDD_USB rail.

Bug 1050988

Change-Id: I2e33b0d0c5ea8f71ef207f4468468cdf132b6cf6
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/161531
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoarm: tegra: usb: USB hotplug detection using PMC
Rakesh Bodla [Thu, 8 Nov 2012 06:24:00 +0000]
arm: tegra: usb: USB hotplug detection using PMC

Add logic for detection of USB hotplug using PMC.

Bug 1057339
Bug 1171244

Change-Id: I0064fa95ce99ead0f16fe38de75db9ed107fc5c9
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/161275
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

6 years agoasoc: tegra: cs42l73: VSP capture changes
Dara Ramesh [Tue, 20 Nov 2012 04:50:53 +0000]
asoc: tegra: cs42l73: VSP capture changes

a) VSPOUTL/VSPOUTR and VSPIN as a single power bit to control,
   disabling the playback path (VSPIN) causing VSPOUTL/VSPOUTR
   (capture path) disables.

   removed power management option with  VSP AIF Stream widgets,
   making the actual power controlled by a new VSPINOUT supply
   widget. That way the power will be enabled as required.

b) added ADC Left/Right in DAPM route table for Headset Mic.

c) enabled MIC2 bias when headset is detected.

d) removed static VSPIN DAPM stream widget from DAPM route table.

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

6 years agoARM: tegra11x: enable i-cache after power ungating
Bo Yan [Tue, 13 Nov 2012 19:19:51 +0000]
ARM: tegra11x: enable i-cache after power ungating

Change-Id: I05485b8076460af46ab4784d48cf5148696cce13
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/163294
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: power host1x during HDCP link
Jon Mayo [Tue, 20 Nov 2012 00:17:25 +0000]
video: tegra: dc: power host1x during HDCP link

Add tegra_dc_io_start/end to take host1x references while negotiating HDCP.
Without these the module can be turned off and some state won't be
programmed properly.

Bug 1176386

Change-Id: I1893b017f09a406965b478b0a9de1730b16ca0ac
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/164809
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomac80211&nl80211: support to abort a scan request on tx
Wei Ni [Fri, 2 Nov 2012 05:40:04 +0000]
mac80211&nl80211: support to abort a scan request on tx

mac80211 & nl80211: add support to abort a scan request on tx

The original issue is the chromium issue:
http://code.google.com/p/chromium-os/issues/detail?id=11485

This fix comes from:
https://gerrit.chromium.org/gerrit/#change,5744
https://gerrit.chromium.org/gerrit/#change,5745

Since this change is for ChromeOs and will affect Android P2P function,
so we add config option MAC80211_SCAN_ABORT for it.

Bug 1051830

Change-Id: I77504f4d279f3f3d99b5e5f9d734480888d62193
Signed-off-by: Wei Ni <wni@nvidia.com>
Reviewed-on: http://git-master/r/160777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomisc: tegra-cryptodev: Enhancement to support RSA
Mallikarjun Kasoju [Fri, 9 Nov 2012 13:19:15 +0000]
misc: tegra-cryptodev: Enhancement to support RSA

Enchancement to support user space RSA algorithm

Bug 1033173

Change-Id: Icb6d456bea6c934a8365b5dff8210407fb5c8522
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/162684
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: usb_phy: Tracking circuit power down
srinivas thaduvai [Fri, 9 Nov 2012 11:27:13 +0000]
ARM: tegra: usb_phy: Tracking circuit power down

LP0-RemoteWakeup failing with the current PD_TRK sequencee
due to PD_TX glitch issue.

PD_TRK sequence implemented after UHSIC_RESET disable to fix
this issues.

Bug 1037962
Bug 1173752

Change-Id: Icc475cd99e789bef25437b2cb994be935b6a2dce
Signed-off-by: srinivas thaduvai <sthaduvai@nvidia.com>
Reviewed-on: http://git-master/r/162664
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agodrivers: net: Auto select MHI_NETDEV based on MHI.
Raj Jayaraman [Fri, 16 Nov 2012 22:59:09 +0000]
drivers: net: Auto select MHI_NETDEV based on MHI.

Bug 1054808

Change-Id: I2cc87b0d633052fbcfd7bf02c2575c10e64930ac
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/164439
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agoarm: tegra: pluto: Handle modem power gpio difference on Varuna.
Raj Jayaraman [Fri, 16 Nov 2012 22:55:24 +0000]
arm: tegra: pluto: Handle modem power gpio difference on Varuna.

Bug 1054808

Change-Id: I681abd4b37350b5139739ab116e52fd702286753
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/164438
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: cpuquiet: Fix compiler warnings
Peter Boonstoppel [Fri, 16 Nov 2012 19:01:51 +0000]
ARM: tegra: cpuquiet: Fix compiler warnings

Bug 1055406

Change-Id: I5033cc19e170d932c3697821a0f3273957789995
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/164384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>

6 years agoarm: tegra: usb: make ehci-hcd as loadable module
Petlozu Pravareshwar [Fri, 16 Nov 2012 14:44:14 +0000]
arm: tegra: usb:  make ehci-hcd as loadable module

exporting the symbol for the proper behaviour
while inserting the ehci-hcd module.

Bug 1022439

Change-Id: Ie3b49e59b46581882475fa5304fb3b8800b0f78a
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/164342
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoiommu: Add GCOV_PROFILE
Hiroshi Doyu [Fri, 16 Nov 2012 06:39:43 +0000]
iommu: Add GCOV_PROFILE

Include iommu in GCOV profiling when enabled by defconfig.

Change-Id: I5b3f11ac477971a6452277c9a96c49ff98e2c247
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/164284
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agodrivers: tegra: ad5816: power sequence update
Charlie Huang [Fri, 16 Nov 2012 01:49:08 +0000]
drivers: tegra: ad5816: power sequence update

add a 1mS delay after power is on to avoid i2c error in set arc mode.

bug 1174413

Change-Id: I481dbc4f8ec57f029985bbf34c0fec8db1921117
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/164185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra11x: Fix race condition in cpu hot plug
Bo Yan [Thu, 15 Nov 2012 22:07:17 +0000]
ARM: tegra11x: Fix race condition in cpu hot plug

The secondary CPU power up can happen so fast that it enters power
gating even before the CPU that's trying to bring it up gets a
chance to check status in PMC register. This can happen because
interrupt and preemption are not disabled, so the primary CPU can
switch to do something else, when it comes back to check PMC status,
it's already too late. When this happens, it will simply declare a
timeout failure, though the secondary power up is actually successful.

The fix is to check online status as well, because the CPU that's
coming up will set online flag before entering idle loop.

Another enhancement is to skip the status check altogether if this
is not the first boot up after cold boot or warm boot. The
synchronisation done in __cpu_up is more adequate.

For the first boot after cold boot or warm boot, set the timeout
back to 100ms.

Bug 1169512

Change-Id: Ie4b873d853c40207c7b1bc1acf0982a7bf0ecd9f
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/164065
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>

6 years agodrivers:video:tegra:Use correct clock for freqtbl
Arto Merilainen [Tue, 25 Sep 2012 06:48:18 +0000]
drivers:video:tegra:Use correct clock for freqtbl

The device clock is bounded to its clock domain. This change makes
podgov to use the clock domain's clock while generating freqtbl.

Change-Id: I5f5501e62494a0f0fcc5a317aba5cc4f7d34de62
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/163987
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Simo Melenius <smelenius@nvidia.com>
Reviewed-by: Samuel Russell <samuelr@nvidia.com>
Tested-by: Samuel Russell <samuelr@nvidia.com>

6 years agovideo: tegra: host: handle function return value
Deepak Nibade [Thu, 15 Nov 2012 12:44:10 +0000]
video: tegra: host: handle function return value

-fix Coverity issue of unchecked return value
-use pr_err to report error

Coverity id : 20846

Bug 1046331

Change-Id: Id90be48d700d0098e9e4761be33090e7a44ce9e3
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/163958
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: remove comms configuration based on commchip_id
Nagarjuna Kristam [Wed, 31 Oct 2012 12:43:10 +0000]
arm: tegra: remove comms configuration based on commchip_id

comms chip is auto detected and configurations are loaded correspondigly.
so remove commchip_id dependency to perform BT/Wifi configurations.

Bug 1167337

Change-Id: I4ae4df126d0ec00bf6fa1f3c8753149808a0b751
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/163937
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: pluto: use native remote wake for onboard i500
Neil Patel [Mon, 12 Nov 2012 20:50:08 +0000]
arm: tegra: pluto: use native remote wake for onboard i500

Bug 1174774

Change-Id: I673e6f74759ca0af918f671a67a4c2998677c1bd
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/163088
Reviewed-by: Steve Lin <stlin@nvidia.com>
Tested-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: dc: add ioctl to expose CMU.
Kevin Huang [Mon, 12 Nov 2012 00:43:38 +0000]
video: tegra: dc: add ioctl to expose CMU.

Bug 1169109

Change-Id: I98ee2794724299113c7aab3a60703f2927c9ea8d
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/162990
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoArm: tegra: correct idle_top_freq description
Puneet Saxena [Fri, 9 Nov 2012 10:16:45 +0000]
Arm: tegra: correct idle_top_freq description

idle_top_freq: Shadow cluster max frequency

Change-Id: I9359f31e73cb9f3ac9a9360322f0322d36b6309c
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/162650
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agodriver: nor: tegra: Adding suspend and resume routine
Bhavesh Parekh [Thu, 4 Oct 2012 10:02:36 +0000]
driver: nor: tegra: Adding suspend and resume routine

Adding suspend and resume function for TegraNOR to restore the config
registers and timing register

bug 1010500
bug 1053727

Change-Id: I2531c0deaf17c02437b8fab9e15f9a90a9584110
Signed-off-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-on: http://git-master/r/141525
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
(cherry picked from commit 4c6b09264410173c66314d42d3379d53012a1882)
Reviewed-on: http://git-master/r/161870
Tested-by: Nitin Agrawal <nitina@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: dvfs: Recompute EDP tables after dfll mode changes
Diwakar Tundlam [Tue, 6 Nov 2012 21:19:25 +0000]
ARM: tegra: dvfs: Recompute EDP tables after dfll mode changes

Also recompute on clock-late-init for EDP table with correct dfll mode

Bug 1167145

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

6 years agoARM: Tegra: Dalmore: Added gpiokeys for 1001 Dalmores
Graziano Misuraca [Tue, 16 Oct 2012 21:26:46 +0000]
ARM: Tegra: Dalmore: Added gpiokeys for 1001 Dalmores

1001 SKU Dalmores don't use a kb matrix and instead
use the gpio pins for Volume +/-. Reading sku in init
and configuring kbc/gpio-keys appropriately.

Bug 1155134

Change-Id: Ie40f078d58527fc088da2bca04b44d96e53bf27a
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/143336
(cherry picked from commit 320ac6307e2b1781afa0c67668eb926354f2cddb)
Reviewed-on: http://git-master/r/161326
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agovideo: tegra: dc: Powergate DISA & DISB.
Kevin Huang [Sat, 10 Nov 2012 01:57:35 +0000]
video: tegra: dc: Powergate DISA & DISB.

DISA & DISB are new power partitions on t11x. Powergate them when
it's not connected.

Bug 1059497
Bug 1059488

Change-Id: Ib64ebc767ac376d24690e70350509b253e5e96fa
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/159177
Reviewed-by: Automatic_Commit_Validation_User

6 years agoMerge main (main-promo-2012.11.16-B3) into rel-17-mr1
Dan Willemsen [Sat, 17 Nov 2012 00:50:12 +0000]
Merge main (main-promo-2012.11.16-B3) into rel-17-mr1

Conflicts:
arch/arm/configs/tegra3_android_defconfig

Change-Id: I5ad16d292d2f75c6d87c96539da42bbb005360a7
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agodrivers: tegra: turn off leds at LP0/LP1 & exit
Charlie Huang [Wed, 14 Nov 2012 19:32:45 +0000]
drivers: tegra: turn off leds at LP0/LP1 & exit

turn off leds before entering LP0/LP1 mode and before exit.

bug 1172430
bug 1172390

Change-Id: I94f48f2b4f4215c5ce50c03af1b63e9341d47071
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/163652
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>

6 years agoARM: tegra: dalmore: fix orientation vector
Xiaohui Tao [Tue, 6 Nov 2012 18:46:01 +0000]
ARM: tegra: dalmore: fix orientation vector

Change of gyro orientation vector to fix the orientation issue
with dalmore.

Bug 1169860

Change-Id: I652518273d6bf04bc44e992a1c71783c6b0e4f00
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/161737
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: pluto/dalmore: Add power reg support
Robert Collins [Thu, 4 Oct 2012 23:43:15 +0000]
arm: tegra: pluto/dalmore: Add power reg support

Bug 1166741

Change-Id: I68e871c8c0803d4360e8e57baca6b28bb0e5786b
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/160378
(cherry picked from commit dc9447c58b513630417caaa1b7ecd84e22a8d086)
Reviewed-on: http://git-master/r/159636
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: pluto: Enable sensors for pluto.
Robert Collins [Fri, 12 Oct 2012 22:13:18 +0000]
arm: tegra: pluto:  Enable sensors for pluto.

Bug 1166741

Change-Id: Ib7983ef920a2a466b3f4643a8b4a92d4fc8a85de
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/160377
(cherry picked from commit eebef58c9caddd6dab7eea0471a3eeb02d016435)
Reviewed-on: http://git-master/r/144177
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoRevert "video: tegra: dc: use apis to calculate EMC frequency"
Rohan Somvanshi [Fri, 16 Nov 2012 19:47:33 +0000]
Revert "video: tegra: dc: use apis to calculate EMC frequency"

This reverts commit 16e2a251ebc3d37e747ca8aa2ad6dba68f9f42eb

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

6 years agoARM: tegra: edp: Edp as single active cooling dev
Joshua Primero [Wed, 24 Oct 2012 21:25:10 +0000]
ARM: tegra: edp: Edp as single active cooling dev

With the new Linux Thermal API we can implement EDP thermals
as a single active cooling device instead of the multiple
cooling devices we had before which was messy.

bug 1059470

Change-Id: Iecc338a5ae7749d19017d7b30229017c35f76f1c
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/159981
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agodrivers: misc: nct: Expose active dev interface
Joshua Primero [Wed, 24 Oct 2012 21:18:31 +0000]
drivers: misc: nct: Expose active dev interface

Exposed the new active cooling device interface from new
Linux Thermal Framework API in the nct1008 driver.

bug 1059470

Change-Id: I34417984aa846499aef636d1391f88313e333cb4
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/159980
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoaudio: a2220: updated audience driver
Dara Ramesh [Thu, 15 Nov 2012 06:37:05 +0000]
audio: a2220: updated audience driver

a) disabled extern3 clock after loading the firmware.
b) default set to slave mode configuration.
   (PORTA -> PORTC in pass through)
c) added new firmware for bypass mode.
d) moved the firmware tables into a2220_fw.h file.
e) remove redundant code and do the cleanup.

Bug 1175011

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

6 years agoARM: Tegra: Tegra specific traces to own module
Antti P Miettinen [Wed, 14 Nov 2012 13:19:28 +0000]
ARM: Tegra: Tegra specific traces to own module

Use a separate module for Tegra specific power trace events.

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

6 years agoARM: tegra11: dalmore: Add pdata for SMP457 regulator
Alex Frid [Fri, 9 Nov 2012 20:36:22 +0000]
ARM: tegra11: dalmore: Add pdata for SMP457 regulator

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

6 years agoEnable PCIE for devAir
Peter Daifuku [Mon, 12 Nov 2012 17:30:55 +0000]
Enable PCIE for devAir

Bug 1031556

Change-Id: Ie77c3046e38cb1da36abee8dbbfa7959ed7a07f5
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/163057
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: tegra: configs: cleanup tegra3 and tegra11 android defconfig
Nagarjuna Kristam [Mon, 12 Nov 2012 05:52:20 +0000]
ARM: tegra: configs: cleanup tegra3 and tegra11 android defconfig

Change-Id: I75eb0a91f696f51fa0435f6e459782daf78461c4
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/162950
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agodrivers: misc: nct: Simple trend function
Joshua Primero [Sat, 10 Nov 2012 00:49:20 +0000]
drivers: misc: nct: Simple trend function

Implemented a simple trend function for nct driver.

bug 1059470

Change-Id: I64668858ed1cb50c1d18395deedb7821c21c2aab
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/162816
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: pluto: Update EMC clock scaling table
Alex Frid [Thu, 8 Nov 2012 01:45:17 +0000]
ARM: tegra11: pluto: Update EMC clock scaling table

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

6 years agoARM: tegra11: dalmore: Update EMC clock scaling table
Alex Frid [Thu, 8 Nov 2012 01:59:31 +0000]
ARM: tegra11: dalmore: Update EMC clock scaling table

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