6 years agomisc: ti-st: fix memory leak and wakelock handle
Rakesh Goyal [Thu, 28 Feb 2013 14:13:03 +0000]
misc: ti-st: fix memory leak and wakelock handle

1) Release memory in error case
2) release wake lock in error case

Bug 1179655

Change-Id: Ie4ae6fccd31f664aae92101df4e21653c4c10eef
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/205138
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: xhci: tegra: update fuse programming from usb_calib0
Ajay Gupta [Tue, 19 Feb 2013 18:51:32 +0000]
usb: xhci: tegra: update fuse programming from usb_calib0

usb_calib0 fuse description has changed and so driver needs
to program correct value of hs_curr_level for
XUSB_PADCTL_USB2_OTG_PAD1_CTL_0_0

Also reviewed and cleaned up the pad programming both in
Dalmore and Pluto.

Bug 1237038
Bug 1172686

Change-Id: Ib47f20d6aea724d1acdea0241e5598d19dbc4dee
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/204775
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agonet: wireless: bcmdhd: fix bcm43341 fw_path for softap
Om Prakash Singh [Wed, 27 Feb 2013 12:31:29 +0000]
net: wireless: bcmdhd: fix bcm43341 fw_path for softap

Bug 1239409

Change-Id: I78e07aaf9665bd19838d1e46ee7b343dc9d347bf
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/204600
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: macallan: set cpu_lp2_min_residency to 1000
Kerwin Wan [Wed, 27 Feb 2013 10:46:37 +0000]
arm: tegra: macallan: set cpu_lp2_min_residency to 1000

Bug 1216668

Change-Id: I65972a1c3f0654326ba5004d5827c6761a7114ba
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/204534
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agommc: host: sdhci: Add data/cmd error prints
rrajk [Tue, 26 Feb 2013 09:51:23 +0000]
mmc: host: sdhci: Add data/cmd error prints

Added data and cmd error prints to debug the system.

Change-Id: Ia98abecc51373cfe1674b074db413187e460786e
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/204140
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: pluto: reduce power on VDDIO_GMI_AP
Eric Miao [Wed, 20 Feb 2013 11:58:07 +0000]
ARM: tegra: pluto: reduce power on VDDIO_GMI_AP

PULL_{UP/DOWN} for GMI pins will consume more power during LP0,
change to NORMAL reduces power consumption during LP0 from 0.3mW
to 0.03mW.

Bug 1239392

Change-Id: I476a4cefe3b798fd8ab492298cc1013b5e964d3b
Signed-off-by: Eric Miao <emiao@nvidia.com>
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/202506
Reviewed-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: pluto: BCMDHD Wifi EDP support
Harshavardhan Nalajala [Wed, 20 Feb 2013 10:11:14 +0000]
ARM: tegra: pluto: BCMDHD Wifi EDP support

Wifi EDP support for BCMDHD

Bug 1160685

Change-Id: I59bb065159739643a610ca7835b55169e566a15a
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/202459
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agonet: wireless: bcm4335: power off card when not in use
Om Prakash Singh [Thu, 14 Feb 2013 04:24:52 +0000]
net: wireless: bcm4335: power off card when not in use

Power off the card when wifi is off and power up only when wifi
is turned on

Bug 1011349

Change-Id: I018c3757280c81c9077dd07949422bf572fc3a0d
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/200667
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: clock: Mark CEILING users in the clock tree
Alex Frid [Thu, 28 Feb 2013 06:46:02 +0000]
ARM: tegra: clock: Mark CEILING users in the clock tree

Marked cap shared users with "^" sign in the clock tree.

Change-Id: Ia85d15cd616fb17db22c366e1ca096a842c1be9f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/204988
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agomedia:video:tegra:imx091: Fix inconsistent return value
Frank Chen [Wed, 27 Feb 2013 18:39:36 +0000]
media:video:tegra:imx091: Fix inconsistent return value

The power on function for imx091 returns different
values in Dalmore and Pluto board files. Both of them
should return 1 for success.

Bug 1188605

Change-Id: I4587040e0752aae6afa13af819461fcf03932686
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/204739
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ruicheng Dai <rdai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarch: arm: macallan: Change Orientation Vector
Xiaohui Tao [Mon, 11 Feb 2013 19:59:51 +0000]
arch: arm: macallan: Change Orientation Vector

Bug 1231664
Bug 1241654

Change-Id: I4322185349b56e3e10956cf0ed9e6e504a50ac72
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/204490
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra114: config: Remove PCIE support
Bo Yan [Wed, 27 Feb 2013 02:18:12 +0000]
ARM: tegra114: config: Remove PCIE support

T114 does not support PCIE.

Change-Id: Ibccc932630dd5480d296f49b46407a999d9dd195
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/204375
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomisc: nct1008: modify shutdown functionality
Gaurav Batra [Tue, 26 Feb 2013 21:59:10 +0000]
misc: nct1008: modify shutdown functionality

Bug 1234272

The shutdown function acquires the lock and waits on
the worker function to finish which itself needs the lock.
This results in the deadlock. Moved the lock call after
the wait on workers to finish.

Change-Id: I894d6b7342f9d42d86946d592ce912ddb0e476d9
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/204282
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: Fix gallery crash when switching cameras
Frank Chen [Tue, 26 Feb 2013 21:40:54 +0000]
media: video: tegra: Fix gallery crash when switching cameras

Revert previous imx132 and ov9772 changes. The hot plug
feature is only needed for imx091 sensor.

Bug 1188665
Bug 1241957

Change-Id: Ie2a17862dd54fb9287c2c5d80b15a6a7b9a8ed01
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/204276
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ruicheng Dai <rdai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoEDP: update documentation
Sivaram Nair [Tue, 26 Feb 2013 12:12:05 +0000]
EDP: update documentation

Adding documentation about debugfs features and tegra specific
implementation.

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

6 years agopower: max17042: trace battery status
Sivaram Nair [Tue, 26 Feb 2013 08:54:33 +0000]
power: max17042: trace battery status

We need visibility into the main battery status variables for EDP tuning
purposes. Added a debug print for this purpose.

Bug 1234447

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

6 years agoedp: fix potential null pointer de-referrence
Sivaram Nair [Fri, 4 Jan 2013 15:46:14 +0000]
edp: fix potential null pointer de-referrence

Fixing a bug found by coverity

Change-Id: I4e6d8cb4897d810247d445cd024821fe594bec3a
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
(cherry picked from commit 9ef8d39d0c23dde5cfd955c0a1d40feed5d7b98d)
Reviewed-on: http://git-master/r/204144
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agopower: max77665: Add suspend/resume support for max77665
Chaitanya Bandi [Tue, 26 Feb 2013 08:08:05 +0000]
power: max77665: Add suspend/resume support for max77665

Added suspend/resume support for max77665 charger

Bug 1238671

Change-Id: Iab0d5cb8b9159c26bcc9fc76648faefc03ffbaed
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/204108
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm:tegra11:thor: set smsp3 mode_sleep to auto
Wen Yi [Wed, 20 Feb 2013 20:19:32 +0000]
arm:tegra11:thor: set smsp3 mode_sleep to auto

smps consumes 11mA more in pwm than pfm mode when load
is low such as when device is in LP0. Use nsleep mechanism
to transition smps3 into pfm mode when device goes into
LP0 to save power for LP0.

Bug 1237001

Change-Id: I74fb52513f4453a5a442c4e45c839d062b1bea1c

Signed-off-by: Wen Yi <wyi@nvidia.com>
Change-Id: I618ab027b8c8246272bc512902d78003feb9bd39
Reviewed-on: http://git-master/r/203965
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agosecurity: tf_driver: integrate latest TL release
Hyung Taek Ryoo [Tue, 19 Feb 2013 21:45:53 +0000]
security: tf_driver: integrate latest TL release

Tegra4 version: TF_TEGRA4_AC02.06.40323

Added support of secure interrupts in the custom drivers.

Bug 969938

Change-Id: Ic08d0a9c73cf6ab2f147bf89377c306fbe58fd2a
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/202154
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoasoc: codecs: Set ASI1 I2S Port as Master
Vijay Mali [Thu, 14 Feb 2013 06:11:05 +0000]
asoc: codecs: Set ASI1 I2S Port as Master

Remove code for seting WCLK and BCLK divisor.
AIC3262 firmware should configure the divisors.

Bug 1235898

Change-Id: I89abdbb07372b36573048b8a1fca149173a82f07
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/200683
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoarm: tegra: pluto: Set HiFi I2S in slave mode
Vijay Mali [Thu, 14 Feb 2013 05:53:38 +0000]
arm: tegra: pluto: Set HiFi I2S in slave mode

Set HiFi I2S in slave mode.
Fix power regression.

Bug 1235898

Change-Id: Iaa5460f7b9be49970ad63763476992348c162ece
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/200678
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: pinmux: correct pinmux register resource
Jay Cheng [Tue, 5 Feb 2013 00:02:01 +0000]
ARM: tegra11: pinmux: correct pinmux register resource

the last mux register expand to 0x3408 offset

Change-Id: Idc82ea6513fbc5a555540a9e416b2042554853ce
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-on: http://git-master/r/197199
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: Update entry condition for Fmin@Vmin
Bo Yan [Mon, 25 Feb 2013 22:49:38 +0000]
ARM: tegra11: Update entry condition for Fmin@Vmin

Currently, we do Fmin@Vmin if sleep length is longer than its
threshold, but shorter than threshold for C0NC. Change this
behavior so that we do Fmin@Vmin not only when sleep length
falls between the threshold of Fmin@Vmin and threshold of C0NC,
but also when sleep length is longer than Fmin@Vmin threshold
and cluster wide power down is not enabled in sysfs.

This means if sleep length is above C0NC threshold and
C0NC/rail-gating are not enabled in sysfs, cpuidle will do
Fmin@Vmin instead of per-core power gating.

Change-Id: I9b3f3d772d54fbb10b47edfe60342c23f372fb90
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/203962
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>

6 years agovideo: tegra: dsi: set DSI_TWAKEUP to 0xff
Ken Chang [Tue, 26 Feb 2013 04:57:31 +0000]
video: tegra: dsi: set DSI_TWAKEUP to 0xff

Given that the min TWAKEUP time defined in the spec is 1ms, change
DSI_TWAKEUP from 0x7f to 0xff.

This will give:
1. ~1ms TWAKEUP for high resolution panels, which have 1Gbps DSI.
2. 2-4ms TWAKEUP for average panels.

Bug 1041269

Change-Id: I61102455861cac5c735453ddb9781ff6a4d999cf
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/203584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: gpio: correct touch gpio_reset in platform data
Hunk Lin [Tue, 26 Feb 2013 13:10:57 +0000]
ARM: tegra: gpio: correct touch gpio_reset in platform data

Touch's gpio_reset is used in some platforms. Change gpio_reset to right
value in platform data.

Bug 1242929

Change-Id: Ib806b6c8aabda4623e38c66f4f42d349777b089e
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/203300
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: add "memory" to clobber list
Peter De Schrijver [Thu, 14 Feb 2013 10:41:59 +0000]
ARM: tegra: add "memory" to clobber list

The inline asm needs "memory" in its clobber list to prevent gcc from caching
the mcr read too agressively.

Bug 1207116

Change-Id: Ia93e8115b9bd8bf0539e7b7d55ffeda2efc0e7e6
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/200751
(cherry picked from commit 1b6b10eecb161f323f30ad77bafd3a28c28a6de0)
Reviewed-on: http://git-master/r/201828
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

6 years agohwmon: ina230: check conversion ready bit
Deepak Nibade [Wed, 6 Feb 2013 16:12:51 +0000]
hwmon: ina230: check conversion ready bit

check conversion ready bit before reading
current/power registers and wait till it is set

Bug 1228591

Change-Id: I2d1278a1d36f3d591106a005d5875307d6e7de19
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/198002
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra11: dvfs: Tune CL-DVFS target module trimmers
Alex Frid [Wed, 23 Jan 2013 04:34:11 +0000]
ARM: tegra11: dvfs: Tune CL-DVFS target module trimmers

Added mechanism to tune CL-DVFS target module trimmers (along with
CL-DVFS settings) when low/high voltage range boundary is crossed.
Updated CPU clock trimmers on Tegra11 per characterization results.

Bug 1223242

Change-Id: If44a19bd8406e7c109b59b0c9e01182adcd591cb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/193286
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarch: arm: macallan: Change analog power for touch
Xiaohui Tao [Wed, 27 Feb 2013 19:24:41 +0000]
arch: arm: macallan: Change analog power for touch

Rayidum needs power supply for their analog power to be at least
3v. Change the supply from 2.9v to 3.1v

Bug 1241244

Change-Id: Ief2f0e8412da4c608d0c18950ac5ea3830880a4f
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/204756
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>

6 years agovideo: tegra: host: msenc: fix clean-up paths
Mayuresh Kulkarni [Thu, 21 Feb 2013 08:56:27 +0000]
video: tegra: host: msenc: fix clean-up paths

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

6 years agovideo: tegra: reset the cache of fb_pan_display
Ramalingam C [Mon, 28 Jan 2013 16:33:55 +0000]
video: tegra: reset the cache of fb_pan_display

Enabling the tegra_fb_pan_display for fbconsole by resetting the
cache of offset.

Bug 1219063
Bug 1216172
Bug 1216329

Change-Id: I3ca52834e7e3bb5d2f99ce6687266485f55afce1
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/194749
(cherry picked from commit 212d419241fb78bfdcaa053af6699233ee473ea2)
Reviewed-on: http://git-master/r/202389
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: Addition of tegra_fb_pan_display_reset
Ramalingam C [Mon, 28 Jan 2013 16:23:30 +0000]
arm: tegra: Addition of tegra_fb_pan_display_reset

Addition of tegra_fb_pan_display_reset in include/mach/fb.h

Bug 1219063
Bug 1216172
Bug 1216329

Change-Id: I044fe65cdc55e36d6221413a7e84cf1862b59591
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/194748
(cherry picked from commit 51512e5b8b6e57d60d3bc744f67360226ee9db5b)
Reviewed-on: http://git-master/r/202388
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: pinmux: call SoCs specific default pinmux
Laxman Dewangan [Mon, 25 Feb 2013 13:33:58 +0000]
ARM: tegra: pinmux: call SoCs specific default pinmux

Call SoCs specific default pinmux option to initialise the pinmux
configuration for given SoCs during pinmux driver initialisation.

bug 1206472

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

6 years agoARM: tegra11: pinmux: make init table for default drive strength
Laxman Dewangan [Mon, 25 Feb 2013 13:30:49 +0000]
ARM: tegra11: pinmux: make init table for default drive strength

Make default table for drive strength for some of the pad which
is suggested for all Tegra114 platform from characterization data.

The AT2 pad group should be set to 0x03730000 as per characterisation
data to reduce rise time and fall time to less than 1ns

bug 1206472

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

6 years agoextcon: rename switch class to "switch_extcon"
Laxman Dewangan [Sun, 27 Jan 2013 13:34:37 +0000]
extcon: rename switch class to "switch_extcon"

Rename switch class to "switch_extcon" as it conflicts with already
created name.

(Cherrypicked from commit
347af1b7d898484b2dfdc6cb8fc3853b5af18d47)
Reviewed-on: http://git-master/r/194457

Change-Id: I5c6387fa9176ed1152034fd0ce8450787a0b882a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/203770
Tested-by: Hayden Du <haydend@nvidia.com>

6 years agoArm: tegra: roth: Set emmc voltage to 1.8V
Naveen Kumar Arepalli [Mon, 25 Feb 2013 04:32:52 +0000]
Arm: tegra: roth: Set emmc voltage to 1.8V

Enable OCR mask as the eMMC interface rail supports
1.8V only

Bug 1233759

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

6 years agowatchdog: palmas: add palams wathdog timer
Laxman Dewangan [Sun, 24 Feb 2013 17:15:06 +0000]
watchdog: palmas: add palams wathdog timer

Add watchdog timer driver for palma device.
The timer can be start/stop and set timing through watchdog subsystem
callbacks.

The driver also support wakeup capability and wakeup can be enable/disable
through user level power wakeup sysfs interface.

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

6 years agomfd: palmas: add watchdog timer driver as mfd sub driver
Laxman Dewangan [Sun, 24 Feb 2013 17:14:12 +0000]
mfd: palmas: add watchdog timer driver as mfd sub driver

Change-Id: Id912367e2cbce37b71daf02756c4dcb611f7c418
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/203662
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomfd: palmas: add palmas-extcon as mfd sub driver.
Laxman Dewangan [Sun, 24 Feb 2013 15:34:03 +0000]
mfd: palmas: add palmas-extcon as mfd sub driver.

palma-extcon is sub palma driver used for detection of VBUS and ID
pin state. Add this driver as sub mfd device.

bug 1229629

Change-Id: I4f789d6d2193620f08f9e36576512aa6f3d9dc38
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/203656
Tested-by: Hayden Du <haydend@nvidia.com>

6 years agoextcon: palma: add vbus detection through extcon notification
Laxman Dewangan [Sun, 24 Feb 2013 15:32:38 +0000]
extcon: palma: add vbus detection through extcon notification

Add VBUS detection on palmas and notify the state through extcon
framework.

Change-Id: Ic5bb577aa66330e93b909df7dfc297aaf55fa0e6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/203655
Tested-by: Hayden Du <haydend@nvidia.com>

6 years agoARM: tegra: dvfs: Rename CL-DVFS minimum rate field
Alex Frid [Sun, 24 Feb 2013 06:17:29 +0000]
ARM: tegra: dvfs: Rename CL-DVFS minimum rate field

Renamed CL-DVFS minimum rate field: from dfll_rate_min to dvco_rate_min
to clearly differentiate minimum rate DVCO inside DFLL can run at under
CL-DVFS control, and DFLL clock rate, that can be scaled down from DVCO
rate by the DFLL clock skipper.

Change-Id: I21e52050ca48b3cc31d54a40488ccfb75953b999
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/203635
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: Tegra11: Macallan: update emc DVFS table
Hayden Du [Sat, 23 Feb 2013 13:19:31 +0000]
arm: Tegra11: Macallan: update emc DVFS table

bug 1222285
bug 1239328

Change-Id: I9bf0ba059b307ddb08b8339ac9ee5731c5869008
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/203599
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: power: Update CPU EDP limits
Alex Frid [Sat, 23 Feb 2013 04:08:05 +0000]
ARM: tegra11: power: Update CPU EDP limits

Bug 1161126

Change-Id: Ic480197f8f57650085385135db5186ac738ec994
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/203563
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: common: get proper SKU
Sri Krishna chowdary [Fri, 22 Feb 2013 09:06:04 +0000]
ARM: tegra: common: get proper SKU

Bug 1235867

Change-Id: Ib7237a1a5032a87dd129f39d4b3d244bd3123971
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/203214
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: pcie: synchronize all asynch function calls
Preetham Chandru R [Thu, 21 Feb 2013 11:22:52 +0000]
ARM: tegra: pcie: synchronize all asynch function calls

Wait until all asynchronous function calls have been done otherwise
we might get into a deadlock situation when a mass storage device is
connected to usb 3.0 port.

Bug 1162845

Change-Id: I0fa2a85188a1d388273b3ae752e5ce9cf4d5d23b
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/202906
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoASoC: Tegra: Fix I2S_SLOT_CTRL2 reg access
Sumit Bhattacharya [Wed, 20 Feb 2013 16:48:55 +0000]
ASoC: Tegra: Fix I2S_SLOT_CTRL2 reg access

When I2S_SLOT_CTRL2 register is modified for TX or RX port previous
value in the register for the other port need to be saved. This will
fix concurrent playback capture issues in BT SCO mode.

Bug 1233807

Change-Id: I618c0e929e0d2c6f16a327a1cc66c61a6d8f6fe6
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/202583
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

6 years agonet: wireless: bcmdhd: Wifi EDP support
Harshavardhan Nalajala [Wed, 20 Feb 2013 10:22:36 +0000]
net: wireless: bcmdhd: Wifi EDP support

BCMDHD changes for Wifi EDP support

Bug 1160685

Change-Id: I404dce894ccdd542598641dbbf9e99bfb33ba123
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/202465
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: config: BCMDHD Wifi EDP support
Harshavardhan Nalajala [Wed, 20 Feb 2013 10:18:59 +0000]
ARM: tegra: config: BCMDHD Wifi EDP support

Config for WIFI EDP support in BCMDHD

Bug 1160685

Change-Id: I1b71ec95a60849e0184cc064b8be1c856bfe538d
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/202460
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agotime: alarmtimer: print cause of failure if suspend failed
Laxman Dewangan [Wed, 20 Feb 2013 09:59:59 +0000]
time: alarmtimer: print cause of failure if suspend failed

Print/display the cause of error if suspend fails. This helps in
debugging the failure case.

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

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

Bug 1169070
Bug 1200077

Change-Id: I10c0a189c470c2929a3576f24d2947aa773e4ece
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/201880
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: pluto: Unmask HS200 mode support
Naveen Kumar Arepalli [Mon, 18 Feb 2013 08:43:51 +0000]
ARM: tegra: pluto: Unmask HS200 mode support

Unmasking HS200 mode support and setting 156MHz as the clock limit
for HS200 mode.

Bug 1225343

Change-Id: I59df69c9c15dc7608cd680e977b93770c8444d8b
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/201697
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra11: config: Enable CONFIG_USE_OF for L4T
Matt Pedro [Thu, 24 Jan 2013 17:08:20 +0000]
arm: tegra11: config: Enable CONFIG_USE_OF for L4T

Enable CONFIG_USE_OF for tegra11 L4T config.

bug 1029338

Change-Id: I584b60c75c6cb030f6e8632ce82cdc3e956808d3
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/193850
(cherry picked from commit fadc96066c5ab70e405278fa8fa7f9cc78cb3bef)
Reviewed-on: http://git-master/r/200105
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra3: config: Enable CONFIG_USE_OF for L4T
Matt Pedro [Wed, 23 Jan 2013 21:06:56 +0000]
arm: tegra3: config: Enable CONFIG_USE_OF for L4T

Enable CONFIG_USE_OF for tegra3 L4T config.

bug 1029338

Change-Id: Ia877adf52330d20ffc8e2cd42e3fe91698ed5721
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/193849
(cherry picked from commit 8cb6d375e915b1482b649dc09892e7c9445937b7)
Reviewed-on: http://git-master/r/200104
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agovideo: tegra: nvmap: protect usecount variable from race conditions
Krishna Reddy [Wed, 16 Jan 2013 19:24:38 +0000]
video: tegra: nvmap: protect usecount variable from race conditions

make usecount variable atomic to avoid race conditions in
nvmap_usecount_dec().
optimize away usecount variable when carveout compaction is disabled.

Bug 1215506

Change-Id: I570bcc258e578ace2b1e8151c027fcd4cf559bda
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/191753
(cherry picked from commit 5e4a61657d75b0364e5ec7d584856f808df96a7f)
Reviewed-on: http://git-master/r/195796
Reviewed-by: Yong Goo Yi <yyi@nvidia.com>
Tested-by: Yong Goo Yi <yyi@nvidia.com>

6 years agoinput: touch: raydium: correct queueing of resumes
David Jung [Thu, 21 Feb 2013 23:46:09 +0000]
input: touch: raydium: correct queueing of resumes

Raydium code drop. Queue a maximum of one resume.

Bug 1225919

Change-Id: I710ae7252bd207c6de53af719646426a9be36405
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/203084
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: comms: add phy callbacks for OEM2 modem
Vinayak Pane [Fri, 11 Jan 2013 02:52:50 +0000]
arm: tegra: comms: add phy callbacks for OEM2 modem

Adding USB PHY callback functions for auto-suspend feature
to work on Pluto.

Bug 1228365

Change-Id: I0f15a64701f29564034072cbdb4f5bf5edb26a81
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/190489
(cherry picked from commit 3c8ea07bcd7383b881aa45c10709ac29e87fe766)
Reviewed-on: http://git-master/r/203048
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: comms: add variant of OEM2 modem
Vinayak Pane [Fri, 11 Jan 2013 02:03:45 +0000]
arm: tegra: comms: add variant of OEM2 modem

Adding USB vendor id and product id for current
variant of OEM2 modem.

Bug 1228365

Change-Id: I0a051262f16b4ad43621c09f3b7c7503d8f26327
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/190465
(cherry picked from commit bf65f7c4984c165a42b03aaba591ac297bba9747)
Reviewed-on: http://git-master/r/203036
Tested-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agotegra: comms: Enable OEM2 modem.
Michael Hsu [Sat, 1 Dec 2012 02:31:03 +0000]
tegra: comms: Enable OEM2 modem.

Enable OEM2 modem for tegra platform.

Bug 1228365

Change-Id: Ifd5a61420222528572990f58581c9d7158bc8f12
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/167901
(cherry picked from commit 969e86e95ce0571ec887af2f68ca69b2cc5163a1)
Reviewed-on: http://git-master/r/203034
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

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

Dont skip regulator setup in initialized mode.

Bug 1238868

Change-Id: I9df92fd152a177e72c066aa66ac1ac819e99707e
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/203012
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoEDP: allow reducing manager cap on the fly
Sivaram Nair [Thu, 21 Feb 2013 16:54:22 +0000]
EDP: allow reducing manager cap on the fly

Current mechanism for reducing the maximum capacity of an EDP manager is
little cumbersome and requires multiple steps. This patch implements it
in a better way and allows the developer to achieve the effect in a
single debugfs modification.

Change-Id: I842105ae4bfe47d9856e477033b8543ee1664e2e
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/202983
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: modem_boot - add new E-state
Sivaram Nair [Thu, 21 Feb 2013 16:52:15 +0000]
ARM: tegra: modem_boot - add new E-state

A new E-state (E1) is added with 0mW for modem boot client. This makes
it easy to tune the overall budget (by moving modem_boot to E1 if
needed).

Change-Id: I229c4c8fe38efb3ebff42e0f42ce731ee1cac96a
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/202982
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: dvfs: Re-arrange CL-DVFS pm callbacks
Alex Frid [Wed, 20 Feb 2013 02:41:16 +0000]
ARM: tegra11: dvfs: Re-arrange CL-DVFS pm callbacks

Moved CL-DVFS closed loop suspend/resume operations from CL-DVFS
device power management callbacks to platform syscore callbacks.
This is done to avoid I2C bus contention between CL-DVFS exit from
closed loop and drivers s/w access to power I2C during suspend and
shutdown entry. Possible remedy for such contention - abort suspend,
and restore CL-DVFS closed loop - would adversely affect suspend
residency time. On the other hand during syscore operations CL-DVFS
h/w is the only one using power I2C bus.

CL-DVFS device suspend callback is still used to force cold zone
voltage limit, regardless of entry temperature to be safe when SoC
is resumed at cold.

This partially reverts commit 37d1df541838c65677d0ae4eb529de9160336a7f,
and commit 965dbfab96b842f50574c8ec092207b465ca0401

Bug 1237641

Change-Id: I4424babe16776fa410a0b0f54f4b7e605a1e25c4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/202644
GVS: Gerrit_Virtual_Submit
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

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

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

bug 1158994

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

6 years agoarm: tegra: fuse: Include platform_device.h to suppress warnings/errors
Sumit Sharma [Mon, 25 Feb 2013 03:54:31 +0000]
arm: tegra: fuse: Include platform_device.h to suppress warnings/errors

Include platform_device.h in fuse.h to suppress compile time warnings/errors

Bug 1238580

Change-Id: I6f9634f6e81f2a420b732f4391c24c2cca2ff320
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/203687
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: fuse: Register tegra fuse device for macallan
Sumit Sharma [Sat, 23 Feb 2013 06:20:16 +0000]
arm: tegra: fuse: Register tegra fuse device for macallan

Registered tegra-fuse device for macallan

Bug 1238580

Change-Id: If64705740e21bd1452328a071f531995e8a25828
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/203581
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoarm: tegra: fuse: Fixed T14x fuse errors
Sumit Sharma [Wed, 16 Jan 2013 02:36:28 +0000]
arm: tegra: fuse: Fixed T14x fuse errors

-Removed multiple function declaration from t14x_fuse_offsets.h
-Fixed chip id for T14x

Bug 1238580

Change-Id: I35838680f1d9a6b865abcb50ce4572a149a6a08b
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/191134
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
(cherry picked from commit a1a33243916a44f603855d43b0437d70626b0b48)

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: Ic052658fe350c0f4a4874edfdead351eed0241c2
Reviewed-on: http://git-master/r/203580
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoarm: tegra: Removed write to FUSE_PRIV2INTFC_START_0
Sumit Sharma [Wed, 9 Jan 2013 09:25:39 +0000]
arm: tegra: Removed write to FUSE_PRIV2INTFC_START_0

Removed write to FUSE_PRIV2INTFC_START_0 after burning fuses for T11x & T14x

Bug 1238580

Change-Id: I0a9efffa31b8a651d9b92d4ce8e9c832480cec08
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/190187
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 3c3513fb14624a62c980e6fb9eed894d3dd49c27)

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: Id66a49289c5a5aae5f4dd5307461afc14c80f3db
Reviewed-on: http://git-master/r/203579
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoarm: tegra: fuse: Added more fuse fields & fixed some errors
Sumit Sharma [Tue, 8 Jan 2013 04:37:20 +0000]
arm: tegra: fuse: Added more fuse fields & fixed some errors

-Added public_key, pkc_disable, vp8_enable & odm_lock fuse files for t11x
-Fixed fuse start offsets in tegra11x_fuse_offsets.h
-Removed odm_reserved fuse from odm_production write protection

Bug 1238580

Change-Id: I368f4197d3c646b548b25670490b2103787e0086
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/187452
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 4fd8532e969f5be24da5b819f8fcfdcc211f1117)

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: Ia2e7877752ffb5d523d6a30343e9506b2eba6d67
Reviewed-on: http://git-master/r/203578
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoarm: tegra: fuse: Registered tegra-fuse device in T114 board files
Sumit Sharma [Mon, 19 Nov 2012 05:48:28 +0000]
arm: tegra: fuse: Registered tegra-fuse device in T114 board files

Registered tegra-fuse platform device in pluto & dalmore board file

Bug 1238580

Change-Id: Ia679f5c34194ccc1f5ca93ec4e3f75e6fab58f89
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/162062
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 1b6f4dd24c09fcb1b40d5c3245f09b822fd9d773)

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: I6566c5decc67df49fcb090318d169fb83e41d9a4
Reviewed-on: http://git-master/r/203577
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: fuse: Registered tegra-fuse device in T30 board files
Sumit Sharma [Mon, 19 Nov 2012 06:30:31 +0000]
arm: tegra: fuse: Registered tegra-fuse device in T30 board files

Registered tegra-fuse platform device in cardhu, enterprise & kai board files

Bug 1238580

Change-Id: I31eeddaa2132378497a617cfbd90d40f6db71cbf
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/164631
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
(cherry picked from commit 719086199d7d082897d42f3e7ff4be0b56c229ec)

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: I5c2406507beab25ac4b6e4ab1f7638f48495604c
Reviewed-on: http://git-master/r/203576
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoarm: tegra: Added fuse device register common function
Sumit Sharma [Thu, 8 Nov 2012 09:47:45 +0000]
arm: tegra: Added fuse device register common function

Added fuse platform device registration function

Bug 1238580

Change-Id: I37ea96a1b1030ce1d4bfb25225457865f04fe39e
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/162343
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit 223cd8c52911b96755959764188c8d0ca024f12c)

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: Ia22dd9d8bea7dbc1bba11d972a322c85709e9242
Reviewed-on: http://git-master/r/203575
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: fuse: Converted fuse driver into platform driver
Sumit Sharma [Thu, 13 Dec 2012 11:03:48 +0000]
arm: tegra: fuse: Converted fuse driver into platform driver

Converted fuse driver into platform driver
Added fuse device and Makefile changes

Bug 1238580

Change-Id: I041c6741fb7a64b43378f8042bb9970d73b85c76
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/162061
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
(cherry picked from commit 6dec82d06969d8d005fc0577fdb8bbbc4fe37a02)

Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Change-Id: Ic7fd58d2174631586772cd7d99a1e12c670b5805
Reviewed-on: http://git-master/r/203574
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoARM: tegra: add pluto core system EDP device
Sivaram Nair [Wed, 20 Feb 2013 10:54:00 +0000]
ARM: tegra: add pluto core system EDP device

This patch adds and registers core system EDP device for pluto

Change-Id: I3a98216e11661cab9dddc35dcf935bab1d23cd22
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/202578
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoEDP: tegra: core sysedp platform driver
Sivaram Nair [Wed, 20 Feb 2013 10:49:25 +0000]
EDP: tegra: core sysedp platform driver

This patch adds implementation for the core system EDP platform driver.
This client will request EDP budget from the battery EDP manager and
distribute it amoung CPU, GPU and EMC according to the EDP capping table
(provided by the board file)

Bug 1159974

Change-Id: I2c31584dc1019aedc111df2e6008a2f10fd27723
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/202577
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: increase pluto battery edp capacity
Sivaram Nair [Wed, 20 Feb 2013 10:45:06 +0000]
ARM: tegra: increase pluto battery edp capacity

Use a sufficiently large enough value to be able to meet the performance
benchmarks for now - we need to tune this value later.

Change-Id: Iae58da1811d73751e9487d9b7398e102230966ac
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/202576
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: define one sd_brightness for all platforms
Gaurav Batra [Tue, 19 Feb 2013 23:15:56 +0000]
arm: tegra: define one sd_brightness for all platforms

Bug 1236443

Change-Id: I18c6c6d111305da0c46d7b5d4c369e445403557c
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/202230
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Tested-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

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

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

Bug 1237626
Bug 1192465

Change-Id: I87b0a5e0782127eabd1ad688c1b66c316f2027e5
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/202103
Tested-by: Hunk Lin <hulin@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: host: Send load value to EDP
Terje Bergstrom [Tue, 15 Jan 2013 08:17:07 +0000]
video: tegra: host: Send load value to EDP

Bug 1159974

Change-Id: I72a6d6de4d2f5fd3d686aa8c8e64d71a24e96323
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
(cherry picked from commit f2d43692a723332a2061e3c9282d663ad162c986)
Reviewed-on: http://git-master/r/198393
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Tested-by: Sivaram Nair <sivaramn@nvidia.com>

6 years agoarm: tegra: dalmore: Reduce wakeup delay for 25x16 panel
Animesh Kishore [Thu, 21 Feb 2013 12:14:41 +0000]
arm: tegra: dalmore: Reduce wakeup delay for 25x16 panel

Bug 1222536
Bug 1215278

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

6 years agoARM: tegra11: clock: Change initial parent for XUSB clocks
Alex Frid [Thu, 21 Feb 2013 05:47:58 +0000]
ARM: tegra11: clock: Change initial parent for XUSB clocks

Bug 1227562

Change-Id: Ia472cbc56021196eb9a10d6626a34be3cb1c5e08
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/202827
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agovideo: tegra: host: tsec: fix clean-up paths
Mayuresh Kulkarni [Wed, 20 Feb 2013 15:04:47 +0000]
video: tegra: host: tsec: fix clean-up paths

bug 1239273

Change-Id: If7d7fdfcdfa168b398fd4afc18cabe66fe331e22
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/202563
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoArm: tegra: roth: ldo9 warm boot state fix
Naveen Kumar Arepalli [Wed, 20 Feb 2013 14:59:55 +0000]
Arm: tegra: roth: ldo9 warm boot state fix

mantain the last software set value to the ldo

Bug 1238228

Change-Id: I29a4cb275c533253acff5cfa896a6e5f1414d861
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/202562
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: pluto: modify power rail data for reworked boards
Deepak Nibade [Wed, 20 Feb 2013 10:47:05 +0000]
ARM: tegra: pluto: modify power rail data for reworked boards

- values of resistors are different on boards which are reworked
for power measurement
- modify rail data to reflect this change
- make use of power_config to detect whether board is power
reworked or not

Bug 1228591

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

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

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

Change-Id: I7735d48f01db9cf8f7e9c5a08099bbf1f07a7069
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/201843
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomedia: video: tegra: Check sensor ID when power on.
Frank Chen [Thu, 14 Feb 2013 21:42:30 +0000]
media: video: tegra: Check sensor ID when power on.

Read the sensor ID after power on so we can return
failure as quick as possible if the sensor is not
present.

Bug 1188665

Change-Id: Ic4c21f38bd4895c15ec1891c26b265f02c587332
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/200890
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Robert Lin <robertl@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11x: Remove & simplify TSC & timer init
Bo Yan [Thu, 14 Feb 2013 17:13:36 +0000]
ARM: tegra11x: Remove & simplify TSC & timer init

Remove TSC and generic timer frequency programming from
kernel now since they are done in bootloader.

Simplify persistent timer routine by directly converting
from timer counter.

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

6 years agopower: max17048: add TECHNOLOGY property
Syed Rafiuddin [Thu, 7 Feb 2013 09:12:53 +0000]
power: max17048: add TECHNOLOGY property

Additon of POWER_SUPPLY_PROP_TECHNOLOGY property
to display technology of the battery

Bug 1232370

Change-Id: If4cd2e1f56fe05168713e4b395e8ddfb337db547
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/198323
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

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

Bug 1176649

Change-Id: I6222f28e1a323333a324745a764b8384795ce5d1
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/197220
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: dalmore: Reduce display wakeup time
Animesh Kishore [Thu, 21 Feb 2013 08:20:08 +0000]
arm: tegra: dalmore: Reduce display wakeup time

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

6 years agoRevert "tegra11: nvavp: clock: increase sclk boost frequency"
Hunk Lin [Wed, 20 Feb 2013 08:54:02 +0000]
Revert "tegra11: nvavp: clock: increase sclk boost frequency"

This reverts commit 92d5d73e8d9d3db0a6153d1f3a603aeb42445f9c. The
change increase sclk in screen on case, which cause power regression.

Bug 1239309

Change-Id: Ifbdf7c3db8b212c0e4fafa6101ad1fc9a34134c9
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/202448
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: fix overwriting bug with balance throttling
Hyungwoo Yang [Wed, 20 Feb 2013 04:08:56 +0000]
ARM: tegra: fix overwriting bug with balance throttling

This change fixes bug that balanced cooling devices overwrite
target frequencies from each others. So frequencies from serious throttling
can be overwritten by other cooling devices which just started its throttling.

Change-Id: I4c0eb0de56aa9e7d8aab52d46258014aa3b2498b
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/202341
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>

6 years agovideo: tegra: dc: HDMI AVI and generic infoframe
Jon Mayo [Wed, 20 Feb 2013 00:52:43 +0000]
video: tegra: dc: HDMI AVI and generic infoframe

Adjust timing calculations when converting stereo/3D modes.
Mask off stereo/3D mode flags when searching for CEA format number.

Bug 1227041
Bug 1230953
Bug 1237702
Bug 1227070

Change-Id: I71e1e1003b0b4900782531d946aa6f25a299eff7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/202278
Reviewed-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>

6 years agovideo: tegra: host: prevent 3d.emc underflow
Samuel Russell [Tue, 19 Feb 2013 21:22:34 +0000]
video: tegra: host: prevent 3d.emc underflow

Prevent underflow in 3d.emc calculation causing 3d.emc
to be locked at max

Bug 1220024

Change-Id: I7894fb433fa240dbfe752f1670be0f4f1f4fdc4d
Signed-off-by: Samuel Russell <samuelr@nvidia.com>
Reviewed-on: http://git-master/r/202150
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agommc: Limit MMC speed to 52MHz if not HS200
Al Cooper [Fri, 30 Nov 2012 15:53:35 +0000]
mmc: Limit MMC speed to 52MHz if not HS200

If "caps2" host capabilities does not indicate support for MMC
HS200, don't allow clock speeds >52MHz. Currently, for MMC, the
clock speed is set to the lesser of the max speed the eMMC module
supports (card->ext_csd.hs_max_dtr) or the max base clock of the
host controller (host->f_max based on BASE_CLK_FREQ in the host
CAPS register). This means that a host controller that doesn't
support HS200 mode but has a base clock of 100MHz and an eMMC module
that supports HS200 speeds will end up using a 100MHz clock.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit ccb52a00fd3fdea428e29816cbacb0a78090d474)

Change-Id: I2967fcc733b7178bdf54d6f75f65bdff253fc1cc
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/202051
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agommc: core: fix the decision of HS200/DDR card-type
Seungwon Jeon [Wed, 25 Apr 2012 07:17:37 +0000]
mmc: core: fix the decision of HS200/DDR card-type

Current implementation decides the card type exclusively. Even though
eMMC device can support both HS200 and DDR mode, card type will be
set only for HS200. If the host doesn't support HS200 but has DDR
capability, then DDR mode can't be selected.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit 96cf5f02aee8bbeff38824b18b9ec583d687f846)

Change-Id: Id2b9095f8ffe59c520850acd40681a9ef15c3ff9
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/202050
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: roth: enable unaligned_dma_buf for ehci3
Rohith Seelaboyina [Tue, 19 Feb 2013 09:18:34 +0000]
ARM: tegra: roth: enable unaligned_dma_buf for ehci3

unaligned_dma_buf is enabled if mem_alignment and coherency
fixes are enabled

Bug Bug 1235943

Change-Id: I5d9d88c0e8b7791bff1e261a5113cb88b34a0c0b
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/201945
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoregulator: palmas: implement sleep mode configuration
Laxman Dewangan [Mon, 18 Feb 2013 14:39:00 +0000]
regulator: palmas: implement sleep mode configuration

Palma is having different set of bits to configure sleep mode.
Implement the set_sleep_mode for core to configure these bits.

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

6 years agoregulator: add support for sleep mode configuration
Laxman Dewangan [Mon, 18 Feb 2013 14:37:37 +0000]
regulator: add support for sleep mode configuration

Some of PMIC like Palma support different bits for configuring
rail's mode which is used in sleep mode of device.

Add support for configuring this mode bits.

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

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

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

Change-Id: Ic8357f781029d4dab169b22a08333ff5b9472847
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201539
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>