7 years agoARM: tegra: config: remove roth specific defconfig
Laxman Dewangan [Mon, 17 Dec 2012 09:17:22 +0000]
ARM: tegra: config: remove roth specific defconfig

The roth related configuration is also supported in
tegra11 generic defconfig and hence removing the
roth specific defconfig.

bug 1191859

Change-Id: I8c2a230273426918081cea2bd80ce0e50fe7d932
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171861
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/173017
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

7 years agoARM: tegra: config: Align tegra11 defconfig with roth defconfig
Laxman Dewangan [Mon, 17 Dec 2012 09:14:33 +0000]
ARM: tegra: config: Align tegra11 defconfig with roth defconfig

Roth kernel build is the tegra11_roth_android_defconfig.
Moving the diffs from tegra11_roth_android_defconfig to
tegra11_android_defconfig to align the generic tegra11
android defconfig for roth.

bug 1191859

Change-Id: Ie562aac2ba786d9c074ed3f0c51f37e1bd8058b1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171860
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-on: http://git-master/r/173016
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

7 years agoARM: tegra: dalmore: Set TPS51632 ops mode to change control mode
Laxman Dewangan [Fri, 14 Dec 2012 06:32:42 +0000]
ARM: tegra: dalmore: Set TPS51632 ops mode to change control mode

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

7 years agoregulator: tps51632: add support for change control mode
Laxman Dewangan [Fri, 14 Dec 2012 06:30:27 +0000]
regulator: tps51632: add support for change control mode

TPS51632 output can be control through register write via i2c or
through input pwm signal.
Adding support for switching the control mode to I2C or PWM
dynamically.

Change-Id: I57d72eff5c819a2b84f25ba82482bb9723c2c452
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171310
Reviewed-on: http://git-master/r/172701

7 years agoregulator: add support for changing control mode of regulator
Laxman Dewangan [Fri, 14 Dec 2012 06:27:52 +0000]
regulator: add support for changing control mode of regulator

Some of device supports to control the regulator output to
be set either through register write via I2C or through PWM.
Add supports to switch the mode dynamically.

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

7 years agogpio: tegra: add tegra_is_gpio
aghuge [Tue, 4 Dec 2012 11:36:27 +0000]
gpio: tegra: add tegra_is_gpio

Added tegra_is_gpio function to
return true if pin is configured as gpio

Bug 1172972

Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/168285
(cherry picked from commit 312fc9fc203f77c2521a24991608511be0465695)

Change-Id: Ieac0af9a6ee000cbeb73e714395169799ae18e3b
Signed-off-by: aghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/172625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoRevert "video: tegra: nvavp: Disable powergating of VDE"
Jaiprakash Khemkar [Fri, 14 Dec 2012 08:08:09 +0000]
Revert "video: tegra: nvavp: Disable powergating of VDE"

This reverts commit 09e38b074d327b2acadbd6c5ca5c745021efb3a9.

* Below changes takes care of enabling the clocks just before
  programming the key to VDE for widevine
  http://git-master/r/#change,169007
  http://git-master/r/#change,169008

  Bug 1190582

Change-Id: Ib127760375a5f073a927e80a7735f9455be69d18
Signed-off-by: Jaiprakash Khemkar <jkhemkar@nvidia.com>
Reviewed-on: http://git-master/r/171337
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoRevert "ARM: tegra3: config: bluesleep as module for L4T"
Rohan Somvanshi [Thu, 20 Dec 2012 18:47:20 +0000]
Revert "ARM: tegra3: config: bluesleep as module for L4T"

This reverts commit c7fae8fafb503d68403c992249fb2f636fdb36ef

Change-Id: I52054f6a44d15a51fb21b5a1077e95f97b135cb2
Reviewed-on: http://git-master/r/173188
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegar11: dvfs: Update vi and cbus dvfs tables
Alex Frid [Tue, 18 Dec 2012 06:15:15 +0000]
ARM: tegar11: dvfs: Update vi and cbus dvfs tables

Bug 1161126

Change-Id: Ie9b5a6a4530d057b0e2de322f72a174b7092a75b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172155
(cherry picked from commit 41eefe6a3823e9ce68c4ba315a8eacb10960e513)
Reviewed-on: http://git-master/r/172879
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra3: config: bluesleep as module for L4T
Mursalin Akon [Fri, 7 Dec 2012 22:51:49 +0000]
ARM: tegra3: config: bluesleep as module for L4T

Bug 1193147

Change-Id: I8caef4a95dc3277655f3043c0e939744a6586747
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/169515
(cherry picked from commit 1be4eb6f907c8bcb33beb2a69b682b85461a626e)
Reviewed-on: http://git-master/r/172854
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Allen Martin <amartin@nvidia.com>

7 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Wed, 19 Dec 2012 07:06:07 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.03.39731

1. Support GCC for Secure services and drivers
2. Enables hazard detection timeout at TF boot time on all cores

Bug 1186790

Change-Id: I95adbb9d978ae36dc7b3550f8b3e169b95575091
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/172650
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

7 years agoARM: tegra11: roth: Add core edp initialization
Alex Frid [Wed, 19 Dec 2012 05:09:02 +0000]
ARM: tegra11: roth: Add core edp initialization

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

7 years agoARM: tegra11: pluto: Add core edp initialization
Alex Frid [Wed, 19 Dec 2012 05:07:45 +0000]
ARM: tegra11: pluto: Add core edp initialization

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

7 years agoARM: tegra11: clock: Handle unreachable EMC maximum rate
Alex Frid [Wed, 19 Dec 2012 03:12:34 +0000]
ARM: tegra11: clock: Handle unreachable EMC maximum rate

Handled the case when reaching maximum EMC rate in the EMC scaling
table requires PLLM re-scaling, but backup rate is not included into
the table. Set PLLM boot rate as maximum limit in this case.

Bug 1193281

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

7 years agovideo: tegra: host: change nvhost_clk_rate_args
Jihoon Bang [Thu, 13 Dec 2012 02:45:22 +0000]
video: tegra: host: change nvhost_clk_rate_args

Add attr bit field to moduleid of nvhost_clk_rate_args
to be able to set memory bandwidth instead of memory
clock frequency in user space. If memory bandwidth is set,
then corresponding memory clock frequency is calculated and
set based on type of memory controller.

Bug 1197543

Change-Id: Iba7e9bddbd26db5c3cb34916106378ce09143deb
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/170838
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

7 years agoARM: tegra11: clock: change emc mode for mpe and msenc
Jihoon Bang [Thu, 13 Dec 2012 02:32:16 +0000]
ARM: tegra11: clock: change emc mode for mpe and msenc

Change msenc.emc and mpe.emc to have SHARED_BW
for mode. msenc or mpe client in user space will set
required memory bandwidth for module instead of emc clock
frequency because emc clock frequency can be affected
by many other clients and therefore it's impossible
for mpe or msenc to predict emc clock frequency as
SHARED_FLOOR.

Bug 1197543

Change-Id: I68237d0af75c13008cdc44fb55bc516980ebeaae
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/170837
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra11: config: Select PLLM scaling option
Alex Frid [Tue, 18 Dec 2012 21:48:41 +0000]
ARM: tegra11: config: Select PLLM scaling option

Bug 1188643

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

7 years agoARM: tegra11: clock: Change SCLK high rate clock source
Alex Frid [Tue, 11 Dec 2012 22:36:35 +0000]
ARM: tegra11: clock: Change SCLK high rate clock source

Changed SCLK high rate clock source from secondary PLLM output
(pll_m_out1) to secondary PLLC output (pll_c_out1), when PLLM
scaling option is selected. Updated pll_c_out1 flags.

Bug 1188643

Change-Id: I899cf5b6d04cc27f63de7f01fb7aa78636e61ea6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172468
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra11: clock: Change default VI clock parent
Alex Frid [Tue, 11 Dec 2012 21:21:24 +0000]
ARM: tegra11: clock: Change default VI clock parent

Changed default VI clock parent to PLLP when PLLM scaling option
is selected (boot-loader leaves VI on PLLM, which is not allowed
in this case).

Bug 1188643

Change-Id: Ia2018855b05c9751c136211203325f5c0698aa91
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172467
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra11: clock: Initialize PLLC rate to 624MHz
Alex Frid [Tue, 18 Dec 2012 08:06:52 +0000]
ARM: tegra11: clock: Initialize PLLC rate to 624MHz

Bug 1188643

Change-Id: I7992aa198b66efb9c4c1bd28272857284c7fcf06
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172466
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra11: clock: Allow EMC rates above PLLM boot rate
Alex Frid [Sat, 15 Dec 2012 02:57:57 +0000]
ARM: tegra11: clock: Allow EMC rates above PLLM boot rate

Added kernel command line parameter "emc_max_dvfs". If this parameter
is set, and PLLM scaling is enabled, then EMC rate may exceed boot
PLLM frequency and reach maximum accepted rate in the EMC DVFS table.

Otherwise, EMC scaling rates are limited by boot PLLM rate (this is
backward compatible with current EMC maximum rate limitations).

Bug 1193281

Change-Id: I0c8b11b8866fe8b2c82dec5a344c04e7feee3c46
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172465
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra11: clock: Verify clock parents
Alex Frid [Tue, 11 Dec 2012 01:05:13 +0000]
ARM: tegra11: clock: Verify clock parents

Updated Tegra11 clock parents allowed policy, and verified that all
clocks are compliant with the policy after board clock initialization
is completed. Generated WARN() for any non-compliant clock.

Bug 1188643

Change-Id: Ie2258336b9ea960d4cd5fa9c27bb4d663ce993db
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/172464
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra11: clock: Add memory PLLM scaling option
Alex Frid [Sat, 8 Dec 2012 02:29:49 +0000]
ARM: tegra11: clock: Add memory PLLM scaling option

Added an option to scale memory PLLM using PLLC as a fixed rate
backup pll, as an alternative to current policy that keeps PLLM
at fixed rate and scales PLLC. By default this new option is not
selected, and PLLC scaling is still used.

Bug 1188643

Change-Id: I35736a477bea6537d237a4c70f097bac09eaf7e5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/171524
(cherry picked from commit 46d4248584b9b1cd35dddad14d730a2bd88cbcb7)
Reviewed-on: http://git-master/r/172463
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra11: dvfs: Update CL-DVFS debug interface
Alex Frid [Fri, 14 Dec 2012 05:39:32 +0000]
ARM: tegra11: dvfs: Update CL-DVFS debug interface

- Added Vmin read-only entry to CL_DVFS debugfs interface:
/d/clock/dfll_cpu/cl_dvfs/vmin_mv

- Updated rate monitor to account for output scaler at low rates.

Change-Id: If51294f3ce673c471223f38931f0a642a8c53141
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/171336
(cherry picked from commit 5a43f766efb2585c2f7f0c22a75a8d769b10f0eb)
Reviewed-on: http://git-master/r/172455
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra11: dvfs: Add CL-DVFS cooling device
Alex Frid [Fri, 7 Dec 2012 02:44:06 +0000]
ARM: tegra11: dvfs: Add CL-DVFS cooling device

Added CL-DVFS cooling device to keep operational voltage at cold
temperature above specified minimum threshold.

Bug 1177204

Change-Id: I31240ef7be6a28f18b401b89a90d4c38e3dad103
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/169925
(cherry picked from commit 92ff1509ef92f62e7e2a26324f0b6631e25b5183)
Reviewed-on: http://git-master/r/172453
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agommc: core: enable ext_csd raw fields for eMMC4.5
Naveen Kumar Arepalli [Tue, 18 Dec 2012 09:10:58 +0000]
mmc: core: enable ext_csd raw fields for eMMC4.5

ext_csd raw filds(erase, trim, sec feature) are used for
only comparison. eMMC 4.5 will run in 1 bit mode if this
check is not removed.

Bug 1199265

Change-Id: I0d3d3e457dd48f7e2ba7aa3e95c68a4afe0dd2b1
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/172225
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: usb_phy: Fix T11x OverCurrent selection bit
Suresh Mangipudi [Mon, 17 Dec 2012 10:49:11 +0000]
ARM: tegra: usb_phy: Fix T11x OverCurrent selection bit

The OCA bit in PORTSC is being set by default, this results in PORTSC
register reporting false status for over current.
Update the programming sequence such that the over_current bit is
cleared.

Bug 1199299

Change-Id: I17b2e6c48719986a87683da9ff52ff8874d7671d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/171886
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoMerge remote-tracking branch 'origin/dev/bcmdhd_update_rel-17' into HEAD
varun colbert [Wed, 19 Dec 2012 21:21:50 +0000]
Merge remote-tracking branch 'origin/dev/bcmdhd_update_rel-17' into HEAD

7 years agoARM: tegra11: dvfs: Add 1.2V core voltage entry
Alex Frid [Thu, 13 Dec 2012 04:54:05 +0000]
ARM: tegra11: dvfs: Add 1.2V core voltage entry

Bug 1161126

Change-Id: I95703e50adff2a75e89802de31af4969fd34cba3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170866
(cherry picked from commit c68987d01c5588bd27ce0831dfc32c628afec70a)
Reviewed-on: http://git-master/r/172191
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra11: dvfs: Update LP CPU tables and bins
Alex Frid [Thu, 13 Dec 2012 04:32:10 +0000]
ARM: tegra11: dvfs: Update LP CPU tables and bins

Bug 1161126

Change-Id: I994cb995b9f39f5e315ed04dde722bbb31364139
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170865
(cherry picked from commit b62edb65a0a2e2df4642d21f500e85a980116c72)
Reviewed-on: http://git-master/r/172190
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra11: dvfs: Update SCLK, VI, Host1x tables and bins
Alex Frid [Thu, 13 Dec 2012 04:06:35 +0000]
ARM: tegra11: dvfs: Update SCLK, VI, Host1x tables and bins

Bug 1161126

Change-Id: I24793b8c8c6f1fcdc4947a24e96b1550b7963abf
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170864
(cherry picked from commit 989b4fe0341292aed608db95ffc29e1a11b234b9)
Reviewed-on: http://git-master/r/172189
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra11: dvfs: Update cbus modules tables and bins
Alex Frid [Thu, 13 Dec 2012 02:52:20 +0000]
ARM: tegra11: dvfs: Update cbus modules tables and bins

Bug 1161126

Change-Id: I5a34a7c1513728d487195ec3090bd20882e6c4f0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170863
(cherry picked from commit ed058db45a4019e472bc34fd502a70205f9049ca)
Reviewed-on: http://git-master/r/172178
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agonet: wireless: bcmdhd: Increase PNO wakelock to 7 sec
Dmitry Shmidt [Mon, 19 Nov 2012 19:32:32 +0000]
net: wireless: bcmdhd: Increase PNO wakelock to 7 sec

Change-Id: Ib4d51cb3ee1c117c645dda663e08a1ee5954c81c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Fix dhd_txcomplete() dead lock
Franky (Zhenhui) Lin [Thu, 15 Nov 2012 18:42:47 +0000]
net: wireless: bcmdhd: Fix dhd_txcomplete() dead lock

For TX packet dhd_prot_hdrpull does nothing other than pull the prot
header from the skb. Use a NULL ifdix pointer to indicate a handling
of tx packet and skip most of the header parsing routine - we don't
need it for TX packet and we can skip extra unnecessary PROP_TXSTATUS
parsing. It will resloved dead lock case because we just exit
dhd_prot_hdrpull for TX path.

Change-Id: Ic41e1c549036baeb0fabfb0be4b8331a4bf60682
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Update wireless stack pm mode
Dmitry Shmidt [Tue, 6 Nov 2012 18:53:03 +0000]
net: wireless: bcmdhd: Update wireless stack pm mode

Change-Id: Iadf400f113884001894dca7cf098f971190765d1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Avoid suspend on watchdog
Dmitry Shmidt [Fri, 2 Nov 2012 16:38:42 +0000]
net: wireless: bcmdhd: Avoid suspend on watchdog

Change-Id: Ic41a8f369a2ee8b2a0084e6a1cbf6b454ff53353
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Fix host reodering and CRC error handling
Dmitry Shmidt [Tue, 30 Oct 2012 22:48:43 +0000]
net: wireless: bcmdhd: Fix host reodering and CRC error handling

Bug: 7389187

Change-Id: I3c4ed28a20de527b91fd1ef9ae51c59bab276b85
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoARM: tegra11: dvfs: Set speedo ID in core dvfs table
Alex Frid [Thu, 13 Dec 2012 01:13:33 +0000]
ARM: tegra11: dvfs: Set speedo ID in core dvfs table

Allow to set speedo id for each core dvfs table entry, instead
of common default -1 (don't care) setting. For now it is still
set to -1 for all entries.

Bug 1170986
Bug 1161126

Change-Id: I10d34266429f54605506ac1ee5d72666ee5e02d5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170862
(cherry picked from commit fde47f651afa86d35ee1576b45286c68cfd4ab60)
Reviewed-on: http://git-master/r/172177
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agonet: wireless: bcmdhd: Fix compilation without SUPPORT_PM2_ONLY
Dmitry Shmidt [Wed, 24 Oct 2012 17:05:23 +0000]
net: wireless: bcmdhd: Fix compilation without SUPPORT_PM2_ONLY

Change-Id: I9a95a81ec713824b3d6bfba86f62e420523ce0e4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Turn ON SUPPORT_PM2_ONLY
Dmitry Shmidt [Tue, 23 Oct 2012 20:35:15 +0000]
net: wireless: bcmdhd: Turn ON SUPPORT_PM2_ONLY

Bug: 7386287

Change-Id: I21e6c1b2691dca27434b1a77e64ca0d1314c6515
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoThermal: Add passive_delay sysfs attribute in thermal zone
Jinyoung Park [Fri, 30 Nov 2012 10:47:20 +0000]
Thermal: Add passive_delay sysfs attribute in thermal zone

Added passive_delay sysfs attribute to show and store passive_delay
in thermal zone.

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/167876
(cherry picked from commit 782c1fb12325abfaf72b04e338eccd7aafa3a6fe)

Change-Id: I0350f47fe9a8ea29a0f9e85e4cd91633bf635487
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/172169
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoThermal: Add available_policies sysfs attribute
Jinyoung Park [Fri, 30 Nov 2012 10:33:51 +0000]
Thermal: Add available_policies sysfs attribute

Added available_policies sysfs attribute to show thermal governors
on the system.

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/167875
(cherry picked from commit 4b9e5d912fb9f52f374e58c445f94c130b10815b)

Change-Id: I59ac87f6837814aa27c800f3083eb927239bb8e7
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/172168
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agonet: wireless: bcmdhd: Fix WD wakelock behavior
Dmitry Shmidt [Tue, 23 Oct 2012 18:39:40 +0000]
net: wireless: bcmdhd: Fix WD wakelock behavior

Change-Id: I7ebae2be248cbb4bc98e2b448641f65b77a320f4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Reduce keep-alive period to 28 sec
Dmitry Shmidt [Mon, 22 Oct 2012 21:18:27 +0000]
net: wireless: bcmdhd: Reduce keep-alive period to 28 sec

Bug: 7386287

Change-Id: I115135e1d2cba0135c5201b95a2599dcabac0247
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoHACK: net: wireless: bcmdhd: Skip freeing skb in case of FW hang
Dmitry Shmidt [Mon, 22 Oct 2012 20:07:29 +0000]
HACK: net: wireless: bcmdhd: Skip freeing skb in case of FW hang

Bug: 7392211

Change-Id: I724ee4d4932ccda7cfd259a18b8a99f67cb0e937
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Add sync for wlfc data access
Dmitry Shmidt [Thu, 18 Oct 2012 21:54:51 +0000]
net: wireless: bcmdhd: Add sync for wlfc data access

Change-Id: I2269eb3c26f0a14c1e01f067ac724fbfa6a4fb7b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoThermal: Remove dangling newline character in buf on policy_store()
Jinyoung Park [Fri, 30 Nov 2012 09:55:51 +0000]
Thermal: Remove dangling newline character in buf on policy_store()

Can't find governor by name string comparison due to dangling newline
character in buf on policy_store().

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/167874
(cherry picked from commit 5226b1816b49a0ce733ee332f31d29761a354006)

Change-Id: Ic96ec57b1fa90dd8a2a3fe7a23f4cb8ebc4bb7df
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/172167
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoARM: tegra11: clock: Fix system bus clock rounding
Alex Frid [Wed, 12 Dec 2012 01:24:16 +0000]
ARM: tegra11: clock: Fix system bus clock rounding

Made sure system bus clock (SCLK) round rate operation follows the
same policy on fractional divisors as set rate operation - either both
operations allow fractions, or both does not support them (otherwise,
clock rate stats are confused).

Change-Id: I3814d66905c01f2ff84b0402be9b9a3d0b113fd6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/171213
(cherry picked from commit 4c5f6f2a6a9055d58017f619cfcf4b72fe843a48)
Reviewed-on: http://git-master/r/172163
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra11: clock: Fix XUSB HS clock initialization
Alex Frid [Fri, 14 Dec 2012 03:19:13 +0000]
ARM: tegra11: clock: Fix XUSB HS clock initialization

XUSB HS clock initialization overwrote XUSB SS clock source settings
(both clocks share the source register). This is fixed now.

Change-Id: I722e55933534a954fde1012d88907ab7340dc81d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/171272
(cherry picked from commit fa7522b7a87124e969e5e57602aa1ca5a452f26e)
Reviewed-on: http://git-master/r/172162
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agonet: wireless: bcmdhd: Skip turning chip off if not responding
Dmitry Shmidt [Tue, 16 Oct 2012 22:00:04 +0000]
net: wireless: bcmdhd: Skip turning chip off if not responding

Bug: 7324935

Change-Id: I7ae2baea80c66a39b9fc9f3a640f3a999cd193eb
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agonet: wireless: bcmdhd: Propagate FW failure to upper layer
Greg Goldman [Tue, 16 Oct 2012 18:11:59 +0000]
net: wireless: bcmdhd: Propagate FW failure to upper layer

Bug: 7324935

Change-Id: I944a6da8a008ec3bcaf2f5a606e15e46eebac537
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoasoc:tegra: Support setting bit clock
ScottPeterson [Tue, 18 Sep 2012 22:01:54 +0000]
asoc:tegra: Support setting bit clock

Support for setting I2S bit clock from information
in the pdata structure.

Correctly supported DSPA and DSPB modes of I2S
during voice call.

Change-Id: I50e20ed66d2d0a01050d1d3902d179133f767f87
Signed-off-by: ScottPeterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/133669
Reviewed-on: http://git-master/r/146605
(cherry picked from commit 46e174b418c2e1b39260fae7e8113786545219d7)
Reviewed-on: http://git-master/r/172070
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agotegra: kernel: voice call debug
ScottPeterson [Mon, 10 Dec 2012 16:27:37 +0000]
tegra: kernel: voice call debug

Changed KB_ROW7 gpio to PULL_UP for better headset
detection.

Added vdd_sys_audio regulator for speaker amp

Debugging voice call UL/DL loss during stress testing.

Change-Id: Ib1930ff693306621aef269f0e0ff27aee2ab450f
Signed-off-by: ScottPeterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/171212

7 years agovideo: tegra: host: TSEC KFUSE load
Terje Bergstrom [Wed, 5 Dec 2012 11:56:09 +0000]
video: tegra: host: TSEC KFUSE load

Load KFUSE value to TSEC on boot.

Bug 1179007

Change-Id: If5128f059987fcd80d1d2dd4b76929e1f3f422ab
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/171934
Reviewed-by: Automatic_Commit_Validation_User

7 years agoinput: touch: atmel: Update Ftrace logging.
Vikas Jain [Fri, 14 Dec 2012 10:33:51 +0000]
input: touch: atmel: Update Ftrace logging.

With recent changes in driver, tracing was bypassed.
Update tracing point to reflect correct data.

Bug 1170830

Change-Id: I0c3ae5d42268ac8560759c0f2fd2a7aaabb3c2ce
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/171387
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: usb_phy: Fix race condition in resume
Abhishek Shukla [Sun, 9 Dec 2012 02:50:35 +0000]
arm: tegra: usb_phy: Fix race condition in resume

Resume could fail if remote wake is detected
by  PMC after controller has been put in suspend
during resume code. Restart bringing up host
controller as in case of remote wake if this hapens.

Bug 1179329

Change-Id: I7df4fcb73c565aedc4b22ff9cf229d3b50b99d15
Signed-off-by: Abhishek Shukla <abhisheks@nvidia.com>
Reviewed-on: http://git-master/r/169602
(cherry picked from commit c80deaefbf4c3b1e93dba6546e52bcd9fc72d0f0)
Reviewed-on: http://git-master/r/171255
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: Tegra: Common: Add Roth Related Board Types
Matt Wagner [Wed, 12 Dec 2012 05:03:10 +0000]
ARM: Tegra: Common: Add Roth Related Board Types

Add commandline board_info parsing for boards
present on Roth

Bug 1186719

Change-Id: I6743798c615dae6f66461cc39bd666daa7a2f6f9
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/170345
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: enterprise: Add oneshot mode pclk vals
Rakesh Iyer [Thu, 13 Dec 2012 00:58:13 +0000]
arm: tegra: enterprise: Add oneshot mode pclk vals

Upper layers depend on correct values of mode's pixel clock.
Add the correct values for one-shot mode.

Bug 1183265.

Reviewed-on: http://git-master/r/170673
(cherry picked from commit 440c7cef119226ffb950d775b79b9b32ec88532d)

Change-Id: I635ab50a6cb077893fa3c5bfe6efbc3c76324b77
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/172002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agocdc_ncm: fix bind failures for Icera devices
Neil Patel [Wed, 12 Dec 2012 20:00:48 +0000]
cdc_ncm: fix bind failures for Icera devices

The Icera 5AN, 5AN BSD, and Nemo devices are composite devices that
include a NCM interface. Therefore, the NCM match flags should have
the VID, PID, Class, Subclass, and Protocol set to avoid bind()
failures for non-NCM interfaces.

Bug 1197415

Change-Id: If68a6ffaa4e1871c6a22ec8839806949804f502c
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/170576
(cherry picked from commit 4688623777e523eacd29fdca8357c608963d26b6)
Reviewed-on: http://git-master/r/171965
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agommc: tegra: Add post resume support
Pavan Kunapuli [Mon, 17 Dec 2012 14:27:05 +0000]
mmc: tegra: Add post resume support

Adding post resume support to take care
of any platform specific requirements like
turning OFF clocks when device not present etc.

Reading card detect gpio value in resume to
get the proper card present status.

Bug 1188788
Bug 1161783

Change-Id: Ida5a7af031aafd3956198cede9ce12da03fa137b
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/171959
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agommc: tegra: Issue post reset seq after SW reset
Pavan Kunapuli [Mon, 17 Dec 2012 13:17:28 +0000]
mmc: tegra: Issue post reset seq after SW reset

Issue reset exit sequence after any SW reset to
ensure that any necessary settings are restored.

Bug 1188788

Change-Id: Ide24123459dbbd55c916ab389220df66b6461256
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/171944
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoARM: tegra11: clock: Restore SCLK and HCLK rate limits
Alex Frid [Tue, 11 Dec 2012 06:54:05 +0000]
ARM: tegra11: clock: Restore SCLK and HCLK rate limits

Set back minimum 12 MHz rate for system and AHB clocks (SCLK and
HCLK) - partial revert of cf02b47b2dfdbe1e19a40df6bd28620a0c422ce9
Bug 1057646 requires HCLK:PCLK 2:1 ratio only starting from 60MHz.

Change-Id: Ic82cac35b9861dccbc66b29c9d507c1100c73d7c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/169967
(cherry picked from commit e72c27aeecaa54e5984d87e63d06c96d838fcd8d)
Reviewed-on: http://git-master/r/171630
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: baseband: Avoid matching device id if enumeration fails.
Steve Lin [Fri, 14 Dec 2012 22:20:17 +0000]
arm: tegra: baseband: Avoid matching device id if enumeration fails.

Bug 1197194

Change-Id: I68cd6d505478ffc226f28853ef28ad6c269ff4d5
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/171550
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra11: dvfs: Update CPU dvfs tables and bins
Alex Frid [Wed, 12 Dec 2012 05:19:04 +0000]
ARM: tegra11: dvfs: Update CPU dvfs tables and bins

Based on characterization results:
- Integrated new cvb dvfs coefficients
- Expanded DFLL operating voltage range to 0.9V ... 1.35V with
  1.0V as dynamic tuning threshold
- Added speedo_id 2 to differentiate fast parts
- Duplicated CPU EDP table for new speedo_id

Bug 1170986
Bug 1178825
Bug 1161126

Change-Id: I49ccdb7c3d734dcdd3bb9f2542683d418d21ab5f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170368
(cherry picked from commit dbde7ee5f627874af256abe647fcf310e705d60c)
Reviewed-on: http://git-master/r/171629
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra11: dvfs: Add CPU rail DFLL mode trip-point
Alex Frid [Thu, 6 Dec 2012 07:41:19 +0000]
ARM: tegra11: dvfs: Add CPU rail DFLL mode trip-point

Added CPU rail DFLL mode trip-point necessary to limit minimum CPU
voltage at cold temperature. The respective cooling device is not
implemented, yet.

Bug 1177204

Change-Id: I6abe1bc3ace81935c25968385af1998052455da0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/168999
(cherry picked from commit d4f6d935f8e616852cfe83cc19cadf137169b239)
Reviewed-on: http://git-master/r/171628
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra11: clock: Skip lowering voltage on EMC backup
Alex Frid [Sun, 9 Dec 2012 02:42:41 +0000]
ARM: tegra11: clock: Skip lowering voltage on EMC backup

If EMC backup rate is below current rate, skip lowering voltage when
switching to backup clock source, Final voltage will be set correctly
after main clock source is re-locked, and EMC clock is switched to
main source.

Bug 1188643

Change-Id: I82a4a85449dbd589c7692f6640e1bd5e08e0bc9b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170604
(cherry picked from commit 87182db82edafbe5408cbbc0a9a7bd5f6a09f7ba)
Reviewed-on: http://git-master/r/171627
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra11: clock: Optimize traversing EMC DFS table
Alex Frid [Sun, 9 Dec 2012 06:39:09 +0000]
ARM: tegra11: clock: Optimize traversing EMC DFS table

Used last rounded EMC DFS table index to skip unnecessary
looping through the table.

Bug 1188643

Change-Id: I0dad723f2f6f58258fd79e33d95d7502ff0abf67
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/170605
(cherry picked from commit 2bf683002839bbeab704e72601956eccf09f4a05)
Reviewed-on: http://git-master/r/171626
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra11: clock: Don't preset EMC VREF bits
Alex Frid [Tue, 11 Dec 2012 01:13:35 +0000]
ARM: tegra11: clock: Don't preset EMC VREF bits

Don't preset VREF bits in XM2DQSPADCTRL3 registers during EMC clock
change procedure.

Change-Id: I3abb6d07d93632b61363e2b0f7de37e1d7312af0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/169874
(cherry picked from commit f44c79f042d50faca3da3e00add786ee29119624)
Reviewed-on: http://git-master/r/171625
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra11: clock: Use tabulated EMC clock register
Alex Frid [Fri, 7 Dec 2012 23:58:59 +0000]
ARM: tegra11: clock: Use tabulated EMC clock register

Instead of constructing settings for EMC clock source/divider
register, use value specified in the EMC DFS table.

Bug 1188643

Change-Id: I4d28ed00c0b049d4ab5ad645cbf721ef6453be8b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/169556
(cherry picked from commit 401a0e1cdbc81d5e711e3cdb20ac630dfa0a1dc1)
Reviewed-on: http://git-master/r/171624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra11: clock: Add latency entry to EMC DFS table
Alex Frid [Thu, 6 Dec 2012 20:44:26 +0000]
ARM: tegra11: clock: Add latency entry to EMC DFS table

Bug 1189313

Change-Id: I4e39647c0c4702f05f03ecd00c82aa568f5fedf6
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/169138
(cherry picked from commit 265d1a86a3d288d5b59cd2ab8e73cdbb03c706f3)
Reviewed-on: http://git-master/r/171623
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoarm: tegra: pluto: fix LP0 resume handling error for wake0
Neil Patel [Mon, 10 Dec 2012 21:58:34 +0000]
arm: tegra: pluto: fix LP0 resume handling error for wake0

During resume from LP0 due to MDM_COLDBOOT going low,
tegra_wake_to_irq() returns an error after seeing -EINVAL at index
0 of the tegra_wake_event_irq array. Since a gpio wake source is
mapped to index 0 in the tegra_gpio_wakes array, the value should
be -EAGAIN.

Bug 1195187

Change-Id: I534002727f0956867d5fdb182af2e63c1f023f0e
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/169809
(cherry picked from commit d83ea92b1b3620ae639a2564f7b18d15d82354b6)
Reviewed-on: http://git-master/r/171449
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

7 years agosecureos: Remove useless smc for t114
Hyung Taek Ryoo [Fri, 7 Dec 2012 00:05:05 +0000]
secureos: Remove useless smc for t114

This change removes obsolete smc which causes abort when resuming
in secure os build.
Same smc function called twice at boot time by function tegra_resume,
1st in virtual context, 2nd in physical, cache clean during exec of 2nd call.
In consequence, if remove this obsolete call, the abort issue is fixed.

Change-Id: I34254358cd9d79b84560711f0beac487f03a59ab
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/169227
(cherry picked from commit 98ca470997f9ddb1cd15e99ed3d453d7036988ca)
Reviewed-on: http://git-master/r/171333
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoRevert "ARM: tegra11: clock: Support cbus scaling below Fmax@Vmin"
Alex Frid [Fri, 7 Dec 2012 08:30:54 +0000]
Revert "ARM: tegra11: clock: Support cbus scaling below Fmax@Vmin"

Bug 1192471

Change-Id: I19d6a12b295dd469fb3fb96f22a66d601defcd2d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/169322
(cherry picked from commit 468f29ff0ac2f4f088c4ab44473d2631ed96959f)
Reviewed-on: http://git-master/r/171631
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agousb: gadget: tegra: Fix race condition
Rakesh Bodla [Fri, 14 Dec 2012 12:03:25 +0000]
usb: gadget: tegra: Fix race condition

There is race condition in turning ON the
PHY. Due to this phy is not turned ON in
some cases. Fixing this will make sure PHY
is turned ON and off properly.

Bug 1197760

Change-Id: If412cc6346562f03d3ee96a497adae8f5b15c9c6
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/171439
Reviewed-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoARM: tegra: dalmore: commandline parse for modem_id
Suresh Mangipudi [Thu, 13 Dec 2012 10:19:48 +0000]
ARM: tegra: dalmore: commandline parse for modem_id

Add support for reading the modem_id from the linux commandline.

Bug 1197639

Change-Id: If4a660b84086fc0f2abf810d8527f9657c2bbebd
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/170941
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoRevert "Arm: tegra: roth: remove tfa9887L audio codec"
Vinod Subbarayalu [Fri, 14 Dec 2012 20:40:25 +0000]
Revert "Arm: tegra: roth: remove tfa9887L audio codec"
Change i2c address as per new h/w design.

This reverts commit 61a9f1cce7fbf102f4010ab096b47d07ccfc2aaf.
and change tfa9887L address.

Change-Id: I0176909acf500dc3ea1e0d7c94b9e79644ef0750
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>
Reviewed-on: http://git-master/r/171523
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoALSA: hda: powergate HDA when clock gating
Jon Mayo [Fri, 7 Dec 2012 01:19:51 +0000]
ALSA: hda: powergate HDA when clock gating

Use powergating APIs to ensure that HDA and display play nice.
Export powergate APIs so snd-intel-hda can be built as a module.

Bug 1178366

Change-Id: I30559b9288fcbd86615a674756e70f04c9fb5d83
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/169245
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit ca49eeb9b0722505194635d68a7ed7a2b3a343b6)
Reviewed-on: http://git-master/r/171205

7 years agoRevert "Arm: tegra: config: Enable bq2419x charger driver"
Matt Wagner [Fri, 14 Dec 2012 04:22:44 +0000]
Revert "Arm: tegra: config: Enable bq2419x charger driver"

This reverts commit 492bf3a1cb016b3fbef4ba97ab18aa83553e2910.

Bug 1166204

Change-Id: Ib2a700cbeeee0ab17223c08ffe0121406ea0b2bf
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/171281
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: add refcount to powergate for display
Jon Mayo [Thu, 6 Dec 2012 21:55:27 +0000]
ARM: tegra: add refcount to powergate for display

Keep a refcount for DISA and DISB power domains, as they are shared between
multiple drivers.

Bug 1178366

Change-Id: I30edf2d4922705f15c762342d9f502880f1e01b7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/169147
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit 90857943e05b375f9a1f685c759edf2e762d01eb)
Reviewed-on: http://git-master/r/171211

7 years agoinput: misc: Changed sysfs permissions
Sumit Sharma [Thu, 13 Dec 2012 09:41:27 +0000]
input: misc: Changed sysfs permissions

Allow only root to write in sysfs

Bug 1179366

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

7 years agomedia: video: tegra: imx091: Fix pll_mult value
Sudhir Vyas [Thu, 13 Dec 2012 09:16:50 +0000]
media: video: tegra: imx091: Fix pll_mult value

The pll_mult value for imx091 new mode [524x390]
is incorrectly set. Which is being used to derive
VtPixelClk and later this clock is used to calculate
coarse-time, frame-length and frame-rate, hence all
are being calculated to wrong values.
Slow-mo faces the incorrect fps issue when same mode
needs to be programmed with different fps.

Bug 1180474

Change-Id: I668095cf3927c58947df79fd3f59b99e3bfac24a
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/#change,170414
Reviewed-on: http://git-master/r/170910
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: Rework timer for clusterswitching
Peter De Schrijver [Wed, 12 Dec 2012 16:44:10 +0000]
ARM: tegra: Rework timer for clusterswitching

This patch introduces a separate timer for clusterswitching. The timer will
queue the usual workitem on expiry. This allows all other operations to
happen immediately without having to cancel a delayed workitem. It also allows
the timer itself to be canceled when the conditions for a clusterswitch are
no longer fulfilled.

bug 1178947

Change-Id: Ieb63baf5a38ebcca29ad938365e46530f755a105
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
(cherry picked from commit 1dec3e79989d37f46c585a5265276bc2871c87a7)
Reviewed-on: http://git-master/r/170634
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoARM: tegra: usb: Fix phy_power_on condition
Petlozu Pravareshwar [Mon, 3 Dec 2012 06:01:39 +0000]
ARM: tegra: usb: Fix phy_power_on condition

When the Phy is left powered on, in non LP0 event phy_resume
should not be programmed while after an LP0 event it should be
programmed.

Bug 1166740

Change-Id: I046c38bcf5589e270fdd99dcd99af057f9bfba1c
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/167715
(cherry picked from commit 4f036fdcc489310dd88b48166f6f86af98b6d3eb)
Reviewed-on: http://git-master/r/170439
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: usb: fix hsic resume sequence
Suresh Mangipudi [Fri, 23 Nov 2012 10:40:31 +0000]
ARM: tegra: usb: fix hsic resume sequence

2LS sequnence for HSIC resume is removed.

Bug 1164414

Change-Id: I31fed9cc0edcdf447543c54284742f7ce35cb44b
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/165893
(cherry picked from commit 9900e863f85fcb8e9c6acc00318e18223360845b)
Reviewed-on: http://git-master/r/170429
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agovideo: tegra: host: save devfreq_rate in scale3d
Jihoon Bang [Thu, 6 Dec 2012 22:58:56 +0000]
video: tegra: host: save devfreq_rate in scale3d

Save 3d clock and 3d.emc clock to devfreq_rate.
This allows nvhost to set current devfreq_rate
before it goes idle instead of setting default_rate
which is max frequency for 3d.

Bug 1166272

Reviewed-on: http://git-master/r/169184
(cherry picked from commit c733ee60a6fc9bba859fbaa983218a3fb1227315)

Change-Id: Ide54cf8ff620b95ddf57a86c77f5930bd134028e
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/170552
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agoregulator: bq24192: Disable supply by default
Rakesh Bodla [Tue, 11 Dec 2012 14:44:10 +0000]
regulator: bq24192: Disable supply by default

Disable voltage supply by default.

Bug 1179219

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

7 years agoARM: t11x: Enable hazard detection timeout
Bo Yan [Mon, 3 Dec 2012 18:22:41 +0000]
ARM: t11x: Enable hazard detection timeout

bug 1159132

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

7 years agoARM: tegra11: config: Enable INA3221 config
Anshul Jain [Thu, 13 Dec 2012 20:46:22 +0000]
ARM: tegra11: config: Enable INA3221 config

Bug 1160066

Change-Id: I80d6ea65c437b21dbb3e7459282876e09e80db78
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/#change,169216
Reviewed-on: http://git-master/r/170327
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: config: tegra11: enable FAN_THERM_EST config
Anshul Jain [Thu, 13 Dec 2012 20:37:56 +0000]
ARM: config: tegra11: enable FAN_THERM_EST config

Bug 1159205

Change-Id: Ic17a7344387ac3eaa507ac5d144fde8a750d28df
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/169223
Reviewed-on: http://git-master/r/170326
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: config: tegra11: enable PWM_FAN config
Anshul Jain [Thu, 13 Dec 2012 21:12:26 +0000]
ARM: config: tegra11: enable PWM_FAN config

bug 1179033

Change-Id: Ib3ec36bca0ceec6d260c3d5e093b5dda7c2f42b6
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/169234
Reviewed-on: http://git-master/r/170324
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra: roth: Add fan pwm device support
Anshul Jain [Wed, 5 Dec 2012 04:41:22 +0000]
ARM: tegra: roth: Add fan pwm device support

Following updates:
Makefile includes board-roth-fan
board-roth-fan initialized platform data for pwm fan driver
board-roth-pinmux change setting of PWM0
Change pll_p to 37Mhz

Bug 1179033

Change-Id: I36918256aed4e73c537cbfcbac57c3b011538d0a
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/167680
Reviewed-on: http://git-master/r/170323
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agomedia: video: tegra: nvavp: Fix nvmap handle issue
Gajanan Bhat [Wed, 12 Dec 2012 20:06:04 +0000]
media: video: tegra: nvavp: Fix nvmap handle issue

In open call we were assigning the driver's nvmap handle to
the nvavp's client context which would get released in release
call to driver. This will cause driver's nvmap handle to be
invalid if a parallel client context is running and driver does
any nvmap operation.

Bug 1013063
Bug 1192772

Change-Id: I9528d233755ddf7cc3dd9cce52816c5521e687e7
Signed-off-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-on: http://git-master/r/170997
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoArm: tegra: config: Enable bq2419x charger driver
Syed Rafiuddin [Wed, 12 Dec 2012 11:57:01 +0000]
Arm: tegra: config: Enable bq2419x charger driver

Enable bq2419x battery charger driver

Bug 1179923

Change-Id: Ie7453b7f13167733fa924c810377cee3f68d149b
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/170523
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoArm: tegra: roth: remove tfa9887L audio codec
Syed Rafiuddin [Tue, 11 Dec 2012 05:03:20 +0000]
Arm: tegra: roth: remove tfa9887L audio codec

remove audio codec tfa9887L registration as we
are not using the componenet on roth platform

Bug 1179923

Change-Id: I0380066dcaf84aafd26c1a7cf008ed14ea81267f
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/170522
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoArm: tegra: roth: add max17048 battery data
Syed Rafiuddin [Mon, 10 Dec 2012 09:12:14 +0000]
Arm: tegra: roth: add max17048 battery data

Add battery characterization data for max17048
fuel-gauge driver.

Bug 1179923

Change-Id: I2d50b3c82f42c12e2fcb09c31557d0e2f2a2396d
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/170521
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoArm: tegra: roth: add callback for max17048
Syed Rafiuddin [Wed, 12 Dec 2012 14:15:33 +0000]
Arm: tegra: roth: add callback for max17048

Add callback in bq24192 platform data to update status
to max17048

Bug 1179923

Change-Id: I98b272cf91304a3a6d1332194b2837712b3b7380
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/170520
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agopower: bq24192: update charger status to fg driver
Syed Rafiuddin [Wed, 12 Dec 2012 15:28:29 +0000]
power: bq24192: update charger status to fg driver

update charger status to fuel-gauge dirver to
reflect the same in GUI

Bug 1179923

Change-Id: Ib2f60fc611d1753447a94461ad0aa8baf523f4bb
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/170519
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agopower: max17048: remove charger driver dependencies
Syed Rafiuddin [Thu, 13 Dec 2012 07:25:32 +0000]
power: max17048: remove charger driver dependencies

max17048 driver uses api's available in the smb349 charger driver.

Removing the dependencies from max17048 driver

Bug 1179923

Change-Id: Iacf36278a8bf3f7c83ac89007d6a6d2f63f954ee
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/170518
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

7 years agoARM: tegra: dalmore: Mask SDR104,DDR50 for SDIO
Pavan Kunapuli [Fri, 7 Dec 2012 13:41:30 +0000]
ARM: tegra: dalmore: Mask SDR104,DDR50 for SDIO

Mask SDR104 and DDR50 UHS mode support for SDIO
devices as CRC errors are observed in these modes.

Bug 1181574

Reviewed-on: http://git-master/r/169397
(cherry picked from commit e09cb1caf153f614e06ac7c788d43a19e808d0c8)

Change-Id: I93fb9fecc5eadcccc4c1c7180100d723719bc74b
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/170405
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agommc: tegra: Allow masking of UHS modes
Pavan Kunapuli [Fri, 7 Dec 2012 14:47:46 +0000]
mmc: tegra: Allow masking of UHS modes

Add support for masking any of the UHS modes
due to issues on specific platforms.

Bug 1181574

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/169396
(cherry picked from commit e8e28a080144de184d57b2037460a3e9b0133bb9)

Change-Id: Ic898a1d178a3cc200d3993a558ad732243e189f9
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/170404
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>