7 years agoregulator: tps80031: register regulators as mfd sub device
Laxman Dewangan [Thu, 2 Aug 2012 08:04:01 +0000]
regulator: tps80031: register regulators as mfd sub device

Converting tps80031 regulator driver to be register as mfd
sub device of the tps65910 and register all its regulators from
single probe calls.
Add separate platform data for the regulator to be supply from
board as part of tps80031 platform data.

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

7 years agoregulator: tps80031: separate device info with platform info
Laxman Dewangan [Fri, 27 Jul 2012 08:22:01 +0000]
regulator: tps80031: separate device info with platform info

Currently the platform specific data is sharing with
device information structure and hence it restrict to
use the multiple instance of the device.
Separating the device specific information to the platform
specific data and allocating different memory for
storing platform specific data.

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

7 years agoARM: tegra: p1852: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:27:22 +0000]
ARM: tegra: p1852: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: ventana: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:26:22 +0000]
ARM: tegra: ventana: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: cardhu: get rid of tegra_gpio_enable() in hsic registration
Laxman Dewangan [Tue, 31 Jul 2012 08:56:16 +0000]
ARM: tegra: cardhu: get rid of tegra_gpio_enable() in hsic registration

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: Id54a26bc2f3a968c60364b1d5109dd23ff724b94
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119606
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: remove hsic phy params from boards
Venu Byravarasu [Mon, 30 Jul 2012 11:04:24 +0000]
arm: tegra: remove hsic phy params from boards

As HSIC phy params are not customizable, removing
them from board files.

bug 1024260

Change-Id: I6b7702c95810c683ab3d9f79e975657f3f601cd0
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119300
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: usb_phy: Hard code HSIC phy params
Venu Byravarasu [Mon, 30 Jul 2012 12:47:34 +0000]
arm: tegra: usb_phy: Hard code HSIC phy params

As HSIC does not have any customizable phy params,
hard coding them in the phy driver.

bug 1024260

Change-Id: I64d5c7f91b077134b54b0aadaf44f129ceaa99e5
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119299
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: usb: Remove HSIC phy params
Venu Byravarasu [Mon, 30 Jul 2012 10:57:32 +0000]
arm: tegra: usb: Remove HSIC phy params

As HSIC phy parameters are not customizable, removing them
from platform_data structure.

bug 1024260

Change-Id: I00fcc0559be43ad336b5b03a7a47443dfaa80d06
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-on: http://git-master/r/119298
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: cardhu: Disable ACCELIRQ
Prem Sasidharan [Fri, 27 Jul 2012 22:22:15 +0000]
arm: tegra: cardhu: Disable ACCELIRQ

Setting MPU_ACCEL_IRQ_GPIO to 0. This helps prevent creation of
device node /dev/accelirq and enable timerirq to provide polling
ticks for the MPU sensors. The MPU sensors are not currently
operating in interrupt mode, the sensors needs to be polled at
regular interval. MPU sensor HAL enables the polling timer in
the absense of /dev/accelirq device node.

Bug 947670

Signed-off-by: Prem Sasidharan <psasidharan@nvidia.com>
Change-Id: I8a2c60da00e7d288ec785aa204bdb3207d717028
Reviewed-on: http://git-master/r/119098
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agomedia: video: tegra: Focuser range tuning support
Sudhir Vyas [Thu, 26 Jul 2012 05:42:33 +0000]
media: video: tegra: Focuser range tuning support

* Add support for focuser range tuning.
* Fix focuser position move programming.
* Optimize focuser read/write.
* Optimize focuser power consumption.
* Fix foucser sound issue while capture.
* Improve overall focuser performance.

Bug 1013062
Bug 1018136
Bug 978541

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

7 years agousb: otg: tegra: enable warning as error flag
Deepak Nibade [Wed, 25 Jul 2012 04:52:32 +0000]
usb: otg: tegra: enable warning as error flag

-enable warnings as errors compilation flag
-handle errors of missing semicolon and mismatched argument type

bug 949219

Change-Id: I29b1c08c590c94fa1aa43a9e37abf0385e3597d5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118235
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: codecs: max98088: fix no audio after reset
Sayak Ghosh Choudhury [Thu, 2 Aug 2012 09:29:53 +0000]
asoc: codecs: max98088: fix no audio after reset

98088 codec register value is altered to fix no audio issue after
reset. Previously after reset the register value was getting wiped
out.

Bug 1017782

Change-Id: I060929bfb868c48dc4db9def171a3bdd167a3913
Reviewed-on: http://git-master/r/120319
Tested-by: Sayak Choudhury <sayakc@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoarm: tegra: enterprise: Pinmux changes for Enterprise A04
Karthik Ramakrishnan [Wed, 20 Jun 2012 07:23:07 +0000]
arm: tegra: enterprise: Pinmux changes for Enterprise A04

Pinmux configurations updated according to the schematics of
Enterprise A04. The unused pins are marked Tristate and turned
low. The directions are updated for other pins.

Bug 990845

Change-Id: I787bdd77848af59b5c33d030f0c040e7431d6c06
Signed-Off-By: Karthik Ramakrishnan <karthikr@nvidia.com>
Reviewed-on: http://git-master/r/105205
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: enterprise: change BB to DAP5 from DAP3 for A04
Tom Cherry [Tue, 8 May 2012 22:41:16 +0000]
arm: tegra: enterprise: change BB to DAP5 from DAP3 for A04

Due to a hardware issue, Audio Baseband lines are changed
for A04 board from DAP3 to DAP5. All other boards retain
the same older line

Bug 980383

Change-Id: If9ecfaa7328a9a7148f95d604926975172c0886a
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-On: http://git-master/r/#change,109067
(cherry picked from commit c3de03de4d97937e6a989ae6c79c8c430afd300e)
Reviewed-on: http://git-master/r/105168
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoalsa: hda: add alsa ctl to query max channels
Nikesh Oswal [Thu, 26 Jul 2012 10:28:46 +0000]
alsa: hda: add alsa ctl to query max channels

add alsa ctl to query maximum supported
channels

Bug: 998697

Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Change-Id: Id2f0e6a62d2413615f13a0c18757c05610ef0c2c
Reviewed-on: http://git-master/r/118602
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agovideo: tegra: host: use strcmp in nvhost_bus_match
Mayuresh Kulkarni [Tue, 24 Jul 2012 07:17:24 +0000]
video: tegra: host: use strcmp in nvhost_bus_match

- replace the usage of strncmp with strcmp in
nvhost_bus_match()
- strncmp was needed when we had device name as
<name.ip-version>. but now the device name is <name>
which matches with the driver name.
- multiple devices get bind with the same driver using
id_table which uses .version field as an index in id_table

Change-Id: If0b6f0ee18626d5e7ff801b8515ef5168069c3f2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/117953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

7 years agoarm: tegra: fuse: check SENSE_DONE after fuse programming
Roger Hsieh [Mon, 30 Jul 2012 08:20:38 +0000]
arm: tegra: fuse: check SENSE_DONE after fuse programming

Make fuse burning take effect by checking SENSE_DONE. Without this
chip options will not be available on fuse registers until
power on reset or LP0 resume.

Bug 1020726

Change-Id: Id547d1ea51b023ba904f5751c2ad65667375777d
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/119271
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agow1: master: tegra: treat compile warning as error
schowdary [Tue, 24 Jul 2012 15:51:27 +0000]
w1: master: tegra: treat compile warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ifc6b454e3debf44c14720d2aa908147902d57b79
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118087
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agovideo: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:46:06 +0000]
video: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib183b75f73df1a141f1dfdbc330369da838b24b9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agocrypto: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:42:04 +0000]
crypto: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ie5b8eb8ebb3ca37ac111fb0acc64cd8667e2c8e1
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118079
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agomisc: tegra-cryptodev: treat warning as error
schowdary [Tue, 24 Jul 2012 15:36:01 +0000]
misc: tegra-cryptodev: treat warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Iacd963ea85f9a29b79776b7cd504838d992ff1bc
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118076
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agomisc: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:24:36 +0000]
misc: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib5f433fc2ef9cf3777c34eda91b1eff8e815bcb9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118073
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agopower: tegra: enable warnings as errors flag
Deepak Nibade [Tue, 24 Jul 2012 13:26:28 +0000]
power: tegra: enable warnings as errors flag

-enable warnings as errors compilation flag

bug 949219

Change-Id: Iccacce77b98498e7d13119cf41db9d34d2bea492
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118044
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agonet: caif: tegra: enable warnings as errors flag
Deepak Nibade [Tue, 24 Jul 2012 13:18:31 +0000]
net: caif: tegra: enable warnings as errors flag

-enable warnings as errors compilation flag

bug 949219

Change-Id: Ifeaba174d59c437e0068324b73dffd287f90c957
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>

7 years agowatchdog: tegra: enable compile warning as error
schowdary [Tue, 24 Jul 2012 13:16:07 +0000]
watchdog: tegra: enable compile warning as error

- Add compilation flag to treat warning as error
- Handle error of unused variable
- Handle error of uninitialised variable

bug 949219

Change-Id: I07437be5eaa7bf7abe5494c828690b6be3b98178
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118039
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agousb: gadget: treat warning as errors for tegra_udc.c
Deepak Nibade [Tue, 24 Jul 2012 13:10:54 +0000]
usb: gadget: treat warning as errors for tegra_udc.c

bug 949219

Change-Id: If76cece9a5c929216024b165f48f37c4046faffc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118037
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agonand: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 13:00:09 +0000]
nand: tegra: treat warnings as errors

add compilation flag to treat warnings as errors

bug 949219

Change-Id: Iac1b0e608ac5b19f5f84380ab7ffc76e14c3d7a0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118033
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoiommu: tegra/gart: resolve compilation warning
schowdary [Tue, 24 Jul 2012 12:33:47 +0000]
iommu: tegra/gart: resolve compilation warning

- Add compilation flag to treat warning as error
- resolve label defined but not used error in smmu

bug 949219

Change-Id: Ie6693cf21904008bbe927b27817a9cd02ed0d34f
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118025
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoserial: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:17:56 +0000]
serial: tegra: treat warnings as errors

-add compilation flag to treat warning as error

bug 949219

Change-Id: I1b4eb4a38abbf6140ab5929bb51eec469b96b710
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>

7 years agotegra: sata: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:05:14 +0000]
tegra: sata: treat warnings as errors

-add compilation flag to treat warning as error

bug 949219

Change-Id: I23c961756ebe7b84ff019995e5c0704693fdf13f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118016
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Yen Lin <yelin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: usb: link ulpi resume sequence
Suresh Mangipudi [Wed, 1 Aug 2012 05:50:58 +0000]
arm: tegra: usb: link ulpi resume sequence

lp0 resume for link_ulpi_phy has been modified.To fix the issue of
frequent disconnects while resuming from LP0.

Bug 997267

Change-Id: If92b8245b154e9b872b80d80a2ab359c87107a39
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/119511
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: tps80031: make regualtor_init_data as pointer type
Laxman Dewangan [Wed, 1 Aug 2012 08:51:19 +0000]
regulator: tps80031: make regualtor_init_data as pointer type

The platform data of tps80031 have the regualtor_init_data as
non-pointer type. Converting this as pointer type for aligning
to regulator driver policy and easy support for DT.

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

7 years agoARM: tegra: enterpise: name all regulator rails
Laxman Dewangan [Wed, 1 Aug 2012 08:44:29 +0000]
ARM: tegra: enterpise: name all regulator rails

Provide name for all tps80031 regulator rails locally
in place of depending on the name provided by driver.

Change-Id: I845d0b27077ff6362ab1d19ba7c057260de3722e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119973
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoregulator: tps80031: rename regulator-name enums
Laxman Dewangan [Wed, 25 Jul 2012 07:57:22 +0000]
regulator: tps80031: rename regulator-name enums

Renaming the regulator name from TPS80031_ID_* to
TPS80031_REGULATOR_* for better readability.

Change-Id: I627b6ddb78a60e44da2a869c0d51dd84166302ed
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119972
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoRevert "Revert "regulator: tps80031: rename regulator-name enums""
Simone Willett [Tue, 31 Jul 2012 23:32:09 +0000]
Revert "Revert "regulator: tps80031: rename regulator-name enums""

This reverts commit 70e40e9cf025c73fde46d1a5577547dc37182a64

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

7 years agomisc: tegra_baseband: power: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:49:52 +0000]
misc: tegra_baseband: power: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I19296beb619cb6adc8daa02cde825aef45d8d42f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119613
Reviewed-by: Rajkumar Jayaraman <rjayaraman@nvidia.com>

7 years agommc: host: tegra: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:48:54 +0000]
mmc: host: tegra: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I2c9bce83a283f6ef45754075cf3b7b1bc5c1d9ac
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119612
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: enterprise: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:29:23 +0000]
ARM: tegra: enterprise: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I3f81c54d2e1933684689df88814b98f617da3545
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119611
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: get rid of tegra_gpio_enable() in touch init
Laxman Dewangan [Tue, 31 Jul 2012 09:07:52 +0000]
ARM: tegra: get rid of tegra_gpio_enable() in touch init

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I3e3e49fb3b970b090f2184c21601f676356212a4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119608
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: David Jung <djung@nvidia.com>

7 years agoARM: tegra: cardhu: get rid of tegra_gpio_enable() in panel init
Laxman Dewangan [Tue, 31 Jul 2012 08:58:19 +0000]
ARM: tegra: cardhu: get rid of tegra_gpio_enable() in panel init

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I394cb55d90c625f1608a0ac80b24228b57b351c1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119607
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: i2c_recovery: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:53:58 +0000]
ARM: tegra: i2c_recovery: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

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

7 years agoARM: tegra: usb_modem: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:48:18 +0000]
ARM: tegra: usb_modem: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I19fea4d4752b72809bf65fbd0a0b255705ec33f8
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119604
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: usb_phy: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 08:44:16 +0000]
ARM: tegra: usb_phy: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I6629743f34ffc6fa3b505deff5b9dc940b7160ef
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119603
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: baseband: Fix sysfs node permissions
Steve Lin [Tue, 31 Jul 2012 00:34:00 +0000]
arm: tegra: baseband: Fix sysfs node permissions

Restricting the modem sysfs node permissions to owner only.
Bug 1025901

Change-Id: I85095c06b6f5329403b66389a5f27383464f2c64
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/119436
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chinmay Kamat <ckamat@nvidia.com>
Reviewed-by: Alexandre Berdery <aberdery@nvidia.com>

7 years agoMPU6050: Disable irq when suspend all sensors
Hunk Lin [Mon, 30 Jul 2012 16:19:09 +0000]
MPU6050: Disable irq when suspend all sensors

When we suspend all sensors, MPU6050 continue generating irqs.
So set MPUREG_INT_ENABLE to 0 for saving power.

Bug 1021448

Signed-off-by: Hunk Lin <hulin@nvidia.com>
Change-Id: I90acb0b5e297c61c205a20b8eb54e6164a4d5b32
Reviewed-on: http://git-master/r/119344
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prem Sasidharan <psasidharan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomfd: tps65090: align driver with mainline
Venu Byravarasu [Fri, 16 Mar 2012 05:40:19 +0000]
mfd: tps65090: align driver with mainline

Align the driver with mainline.

This is vbased on commit
3c33be06f9aa0949ad24e67dfcae1f2a3006f4e1
---------------
mfd: Add support for TPS65090

TPS65090 is a Texas Instrument PMIC. It contains 3 Step-Down converters, 2
always on LDO's and  7 current limited load switches.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
--------------

Change-Id: I26545520f2cc72100a927cb60b38693153a4afce
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119320
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

7 years agoregulator: tps62361: make all register as non-volatile
Laxman Dewangan [Tue, 31 Jul 2012 10:14:03 +0000]
regulator: tps62361: make all register as non-volatile

All register fo TPS62361 is non-volatile and so implementing
this api for regmap actual caching.

bug 993297

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

7 years agommc: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 13:11:46 +0000]
mmc: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error
- Modified sdhci-tegra.c to remove compile warning

bug 949219

Change-Id: I704ea95e3b8ca8862482b6793b71ca4e5114f832
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118036
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: usb: Clear pmc wake alarm
Krishna Yarlagadda [Tue, 31 Jul 2012 10:48:50 +0000]
ARM: tegra: usb: Clear pmc wake alarm

After a pmc wake, walk pointer and wake alarm should be cleared.
Currently wake alarm is cleared only in case of remote wakeup.
Clearing wake alarm for all cases of pmc wake.

Bug 1024496

Change-Id: I5374d792fe1564fd4a04a48d9fa9de2c93cc94dd
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/119619
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: cardhu: report height/width for cardhu
Rakesh Iyer [Thu, 26 Jul 2012 21:30:05 +0000]
ARM: tegra: cardhu: report height/width for cardhu

For accurate Dots-per-inch computation we need to report height/width for
the cardhu panel.

Bug 1003707.

Change-Id: I9a3413d06d97bed532ffc501000ca9bc2360e842
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118777
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoRevert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"
naveenk [Thu, 26 Jul 2012 08:56:55 +0000]
Revert "Modified the hot-plug governor down_delay to be 500ms instead of 2s"

This is required as it is causing performance regression for SD, eMMC and USB

Bug 1006055
Bug 1021754

This reverts commit 2f5a59bbeee465fb33d012b8dc714fa0c1637209.

Change-Id: Ie54c28859ead976b5c554191d42eb22569370063
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/118575
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: xmm: repair ipc_ap_wake_state at reset
Vinayak Pane [Wed, 25 Jul 2012 04:13:56 +0000]
arm: tegra: xmm: repair ipc_ap_wake_state at reset

Preparing strict checking for ipc_ap_wake_state during
modem initialization.

Modify the flashless xmm wake irq part to avoid mixing
with flashed modem irq handler.

Remove unused init1 workqueue from the driver.

Bug 1003141

Change-Id: I7b06b1783a140c0cc5121478e4983fab39862d7c
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/118475
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

7 years agoARM: Tegra: Added support to run at two frequency modes
Xiao Bo Zhao [Fri, 29 Jun 2012 19:46:11 +0000]
ARM: Tegra: Added support to run at two frequency modes

CPU clock is now capped at an normal frequency that is below
its maximum and allowed to run at a high frequency
only once within a period of time. By default the delay is set to
5*DOWN_DELAY, allowing a maximum of 20% high frequency time.

Sysfs knobs were also added that allows userspace tuning

Bug 1003531

Change-Id: Ie4a0e565630187bdacd6f31b1f35778eb31bfc81
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/118163
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: usb_phy: Fix fake remote wakeup
Abhishek Shukla [Fri, 27 Jul 2012 07:34:18 +0000]
ARM: tegra: usb_phy: Fix fake remote wakeup

1. Move hsic line value detectors power on config to the beginning of
the sequence before enabling interrupt on hsic line wake event. This
avoids any fake event caused by any glitches introduced by this
switching.
2. Clear any prior interrupts for the line wake event before enabling
interrupt for the line wake event. This also clears any fake events
generated because of any glitches.
3. Fix wake event type to NONE in the disable routine during resume
interrupt.

Bug 1019619
Bug 1018416

Signed-off-by: Abhishek Shukla <abhisheks@nvidia.com>
Change-Id: I934fa2514897c4c23bc62ff8365f6fffe7915bd0
Reviewed-on: http://git-master/r/116699
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoarm: tegra: enterprise: Use pll_p as clk source for PWR_I2C
Chaitanya Bandi [Tue, 10 Jul 2012 12:59:19 +0000]
arm: tegra: enterprise: Use pll_p as clk source for PWR_I2C

Using pll_p as clock source for PWR_I2C and set bus frequency
to 390Khz to make clock divider as 0x82.

Bug 1001924

Change-Id: Ib7936b0da9a754cc6b4858eb40a941eee606ac65
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/114577
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoRevert "regulator: tps80031: rename regulator-name enums"
Simone Willett [Tue, 31 Jul 2012 23:30:10 +0000]
Revert "regulator: tps80031: rename regulator-name enums"

This reverts commit 5bc340e408aa3f009651735c71f3c97676fbe79f

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

7 years agoARM: tegra: aruba: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:54:53 +0000]
ARM: tegra: aruba: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: I9e07a452f81c31abf29260cd3d833ee275d4d694
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: harmony: get rid of tegra_gpio_enable()
Laxman Dewangan [Tue, 31 Jul 2012 09:52:40 +0000]
ARM: tegra: harmony: get rid of tegra_gpio_enable()

The gpio mode of pin is configured when setting
direction and hence this call is no more required.

Change-Id: Ic36636535be7be9b799b9f6bf0c56aac89675e63
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agomedia: tegra: ov5650: update 320x240 mode
Wei Chen [Mon, 30 Jul 2012 23:53:14 +0000]
media: tegra: ov5650: update 320x240 mode

Add default values for coarse time and gain
settings.

Bug 990513

Change-Id: I7f6bae50de911f26d10991e1094de211c8f05632
Signed-off-by: Wei Chen <wechen@nvidia.com>

7 years agovideo: tegra: dc: suppress underflow warning
Jay Cheng [Mon, 30 Jul 2012 23:30:14 +0000]
video: tegra: dc: suppress underflow warning

change printk to trace_printk

Bug 995270

Change-Id: I71caadb76f6101f377e44ad3f3dc24ede0a099d5
Signed-off-by: Jay Cheng <jacheng@nvidia.com>

7 years agoARM: tegra: cardhu: WAKE19 disable
Bitan Biswas [Mon, 30 Jul 2012 16:02:05 +0000]
ARM: tegra: cardhu: WAKE19 disable

We see repeated WAKE19 (VBUS) resumes when USB device cable is connected
for E1186/E1187 cardhu boards. Hence, this change disables the WAKE19 to
prevent the problem

bug 1025421

Change-Id: If7ebf68ebf257a9bea58652042d77f0c19f40366
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agousb: otg: tegra: correct improper register update
Rakesh Bodla [Mon, 30 Jul 2012 14:58:36 +0000]
usb: otg: tegra: correct improper register update

Value of WAKEUP register is not updated
properly. Correcting it to take appropriate
value.

Bug 1008660

Change-Id: Ic1dcfed6639c8e8c686bc6931216fd268e4521ed
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>

7 years agoARM: configs: tegra: enable ISO9660 fs
Vishal Singh [Thu, 19 Jul 2012 13:50:49 +0000]
ARM: configs: tegra: enable ISO9660 fs

Enabling ISO9660 file system (and its JOLIET extension) support in
kernel.

Bug 1018276.

Change-Id: I1acaf5dc3a571b75a81860485d3c668ea82d822c
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/117372
Tested-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
(cherry picked from commit c35638147c3fa9d56f124b4d6c0435aadad53d97)

7 years agoarm: tegra: p1852: Add USB_G_ANDROID support
Amlan Kundu [Mon, 16 Jul 2012 09:35:23 +0000]
arm: tegra: p1852: Add USB_G_ANDROID support

+ require for android adb

bug 1005255

Change-Id: If2c8d197f987ddd43a9b6a6cc602ac1e2f4ae2f8
Signed-off-by: Amlan Kundu <akundu@nvidia.com>
Reviewed-on: http://git-master/r/114562
(cherry-picked from 6640721b05059f03325abadfebe2f08026a41a88)

7 years agovideo: tegra: nvmap: Fix two integer overflows.
Tuomas Tynkkynen [Mon, 30 Jul 2012 09:40:45 +0000]
video: tegra: nvmap: Fix two integer overflows.

nvmap_ioctl_pinop kmalloc's a temporary buffer, whose length is directly
given by ioctl parameter from usermode. The total size of the buffer
is not checked for overflow, which will cause a kernel panic with some
inputs.

Also, a sizeof() is applied to wrong type when calculating the amount
of bytes to copy from userspace.

nvmap_map_into_caller_ptr attempts to validate that the memory range
to be mapped is correct, but integer overflow can cause the check to
fail. This will lead to mapping wrong pages from the allocated
handle later on, when the page fault handler gets called.

Bug 1025502

Change-Id: I71a09c40c209dba9c5b37c3912e92a81e6f87e80
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>

7 years agoarm: tegra: p1852: Add android defconfig for p1852
Amlan Kundu [Mon, 30 Jul 2012 07:05:17 +0000]
arm: tegra: p1852: Add android defconfig for p1852

bug 1025348

Change-Id: I0206c273af45b51fdd67e94c80f915a33950a929
Signed-off-by: Amlan Kundu <akundu@nvidia.com>

7 years agousb: cdc_ether: Add rmnet device info to ZM5250
BH Hsieh [Mon, 30 Jul 2012 07:16:04 +0000]
usb: cdc_ether: Add rmnet device info to ZM5250

Modified device info element for ZM5250 to
sync with framework.

Change-Id: I855678edccef50c549960ee209e500ec6d692e36
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>

7 years agoregulator: tps80031: rename regulator-name enums
Laxman Dewangan [Wed, 25 Jul 2012 07:57:22 +0000]
regulator: tps80031: rename regulator-name enums

Renaming the regulator name from TPS80031_ID_* to
TPS80031_REGULATOR_* for better readability.

Change-Id: I6176cb213d23e44061549fd1e81306756a324523
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: enterprise:all configuration through regulator init data
Laxman Dewangan [Thu, 26 Jul 2012 11:39:56 +0000]
ARM: tegra: enterprise:all configuration through regulator init data

In place of using the separate platform data for configuring
regualtor's init states, pass all information through
regulator init data only.

Change-Id: I76f05bfa0da1b8867e7d4d5578ed9067eed6a882
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoarm: tegra: usb_phy: Separate the consumer supply
Penny Chiu [Wed, 25 Jul 2012 07:35:25 +0000]
arm: tegra: usb_phy: Separate the consumer supply

Add usb host controller device names for avdd_usb
consumer supply. This change will make all usb
host controller devices have separate regulator
debugfs.

Bug 946361

Change-Id: I8f2a49bffc4623eac2e3f71333b602fb7a6caf7d
Signed-off-by: Penny Chiu <pchiu@nvidia.com>

7 years agoi2c: tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 15:56:39 +0000]
i2c: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: If40890724e2ba6b9c8356c9b031216eb526a5fd8
Signed-off-by: schowdary <schowdary@nvidia.com>

7 years agohwmon/tegra: treat compilation warning as error
schowdary [Tue, 24 Jul 2012 13:30:27 +0000]
hwmon/tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: I1106e3d7d13e0c6305a8709ddfdf85e7652f26a1
Signed-off-by: schowdary <schowdary@nvidia.com>

7 years agortc/tegra: treat compilation warning as error
schowdary [Wed, 25 Jul 2012 07:00:01 +0000]
rtc/tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ic52b13519b817ab3861bd56692ec6b6da60edc48
Signed-off-by: schowdary <schowdary@nvidia.com>

7 years agogpio: tegra: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 08:02:02 +0000]
gpio: tegra: treat warnings as errors

add compilation flag to treat warnings as errors

bug 949219

Change-Id: Icc202aabd0a43a7c48a32e40fdf7bffe0142c2ff
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>

7 years agoarm: tegra: usb_phy: add close operation for hsic
Vinayak Pane [Sat, 21 Jul 2012 02:02:29 +0000]
arm: tegra: usb_phy: add close operation for hsic

hsic phy_power_off keeps hsic bus in suspend state
through PMC interface. The bus should go in reset
state at phy_close otherwise the connected device
will not enumerate after ehci-remove.

Bug 1003141

Change-Id: Ifa91d06a3c10221e74de67c68ea1f930d843d19f
Signed-off-by: Vinayak Pane <vpane@nvidia.com>

7 years agokthread: disable preemption during complete()
Peter Boonstoppel [Thu, 19 Jul 2012 21:58:10 +0000]
kthread: disable preemption during complete()

After a kthread is created it signals the requester using complete()
and enters TASK_UNINTERRUPTIBLE. However, since complete() wakes up
the requesting thread this can cause a preemption. The preemption will
not remove the task from the runqueue (for that schedule() has to be
invoked directly).

This is a problem if directly after kthread creation you try to do a
kthread_bind(), which will block in HZ steps until the thread is off
the runqueue.

This patch disables preemption during complete(), since we call
schedule() directly afterwards, so it will correctly enter
TASK_UNINTERRUPTIBLE. This speeds up kthread creation/binding during
cpu hotplug significantly.

Change-Id: I856ddd4e01ebdb198ba90f343b4a0c5933fd2b23
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>

7 years agoRevert "mmc: host: Disable SDIO card clock when idle"
Pavan Kunapuli [Mon, 25 Jun 2012 10:12:55 +0000]
Revert "mmc: host: Disable SDIO card clock when idle"

Without card clock, inband interrupt is not working on
some wifi chips.

Bug 981683

This reverts commit b31946b34507209f26c6d709e23fd1c0cedd25f8.

Change-Id: I2dd86edb2445bd6db7917adf509b7a018d31aaed
Reviewed-on: http://git-master/r/110839

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Change-Id: I6f2266ac5b6bd9585272958b4b8a89af1b3cdffb
Reviewed-on: http://git-master/r/119009
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agoARM: tegra: wifi dpd control for reset
Bitan Biswas [Fri, 27 Jul 2012 10:39:39 +0000]
ARM: tegra: wifi dpd control for reset

Wifi On/Off needs to toggle GPIO pins under SDMMC that could be
in IO DPD mode.

bug 1021526

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

7 years agoregulator: tps65090: align driver with mainline
Laxman Dewangan [Mon, 30 Jul 2012 12:59:25 +0000]
regulator: tps65090: align driver with mainline

Align driver with mainline.
This is based on mainline change
452534e50780697a7e1d3cf87cdfdd2b5a0d3c6b
------------------
regulator: Add TPS65090 regulator driver

Add TPS65090 regulator driver

TPS65090 PMIC from TI consists of 3 step down converters,
2 always on LDOs and 7 current limited load switches. The
output voltages are ON/OFF controllable and are meant to
supply power to the components on target board.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-----------------

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

7 years agoARM: tegra: usb: keep usb vdd regulator on
Rakesh Bodla [Mon, 30 Jul 2012 09:46:18 +0000]
ARM: tegra: usb: keep usb vdd regulator on

Adding the conditions during which USB vdd
regulator should be kept ON.

Bug 1024425
Bug 1012078
Bug 1018538

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

7 years agoARM: tegra: usb: free allocated resources in error
Rakesh Bodla [Fri, 27 Jul 2012 18:38:08 +0000]
ARM: tegra: usb: free allocated resources in error

Free allocated resources at approriate error
conditions.

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

7 years agomfd: tps80031: add subdevs through mfd_add_devices()
Laxman Dewangan [Thu, 26 Jul 2012 11:06:17 +0000]
mfd: tps80031: add subdevs through mfd_add_devices()

Add provision to register sub devices through mfd sub
devices. This will help to move all sub devices as
mfd subdevices.

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

7 years agomfd: tps80031: rewrite exit path in probe failure
Laxman Dewangan [Thu, 26 Jul 2012 11:00:58 +0000]
mfd: tps80031: rewrite exit path in probe failure

Rewrite exit path in case of failure in registration in
probe.

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

7 years agommc: core: Fix PowerOff Notify suspend/resume
Pavan Kunapuli [Fri, 27 Jul 2012 09:48:02 +0000]
mmc: core: Fix PowerOff Notify suspend/resume

Modified the mmc_poweroff to resume before sending the poweroff
notification command. In sleep mode only AWAKE and RESET commands are
allowed, so before sending the poweroff notification command resume from
sleep mode and then send the notification command.

PowerOff Notify is tested on a Synopsis Designware Host Controller
(eMMC 4.5). The suspend to RAM and resume works fine.

Change-Id: Ib4642a29e423aee6041a92cc72a388d677674ae3
Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
Tested-by: Girish K S <girish.shivananjappa@linaro.org>
Reviewed-by: Saugata Das <saugata.das@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

Bug 1007644
Bug 936069

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Change-Id: I2e3d421c82eb765cb640876691ffe4818d7e146b
Reviewed-on: http://git-master/r/118918
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agommc: sdhci: Avoid power on/off during sleep
Pavan Kunapuli [Tue, 10 Jul 2012 13:27:25 +0000]
mmc: sdhci: Avoid power on/off during sleep

If eMMC sleep support is enabled, set MMC_PM_KEEP_POWER
to avoid host power off and power on. Instead, restore
the host context in resume.

Bug 1007644
Bug 936069

Change-Id: I74578bb1f9e297b3af6bd79b9215364334984836
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/118913
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: usb_phy: Fix remotewakeup resume code
Vinod Atyam [Thu, 26 Jul 2012 09:21:33 +0000]
ARM: tegra: usb_phy: Fix remotewakeup resume code

1) After remote wakeup resume code is not waiting until
RESUME and SUSPEND bit cleared.  Instead it is waiting
for RESUME bit to get set. This is updated properly now.
2) During resume, no need to depend on port speed to
take HSIC in high speed.

Bug 1019619

Change-Id: I3d06255da65045bdf5c6a4deb10a3c6f96aef661
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/118582
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: p1852: Fixes for I2S master mode
Nitin Pai [Tue, 10 Jul 2012 13:31:34 +0000]
arm: tegra: p1852: Fixes for I2S master mode

Change the Drive strength of DAP1 for I2S to operate in both
master and slave mode.
Changed the Pull Up/Down mechanism for I2S4 to operate in master/slave
mode.

Bug 1009249

Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/114587
(cherry picked from commit 29ec5dfb81b823880f393bece5daf5396ef77629)
Change-Id: I24a252370b993150a553c9f81fb44e6d8f86589a
Reviewed-on: http://git-master/r/118251
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agommc: tegra: Don't set MMC_PM_KEEP_POWER by default
Pavan Kunapuli [Fri, 27 Jul 2012 10:58:00 +0000]
mmc: tegra: Don't set MMC_PM_KEEP_POWER by default

For SDIO devices, MMC_PM_KEEP_POWER would be set
by wifi driver during suspend. It need not be set
by default.

Bug 1011349

Change-Id: I779a438b45afed2cc0fd7283d89c24e9049cfe39
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/118954
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoARM: tegra: dvfs: enable regulator before using it
Laxman Dewangan [Thu, 26 Jul 2012 09:51:09 +0000]
ARM: tegra: dvfs: enable regulator before using it

The dvfs system require the regulator for regulating
the voltage. The regulator should be enable before
using it to make sure the reference count enabling rail
of that rail should be properly counted.

Change-Id: Ib8b673ecb7939ac80f46bdf90ffec27b8f62df6b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/118598
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agovideo: tegra: dsi: Fix host HS transmission
Animesh Kishore [Wed, 25 Jul 2012 11:55:39 +0000]
video: tegra: dsi: Fix host HS transmission

Fixing host transmission with HS enabled.

Bug 999141

Change-Id: I9dcc5282971830865dacf16dbbbebf4096aeb00e
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/118315
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoasoc: tegra: i2s: Fixes for audio_clock_2x rate
Nitin Pai [Mon, 2 Jul 2012 08:32:31 +0000]
asoc: tegra: i2s: Fixes for audio_clock_2x rate

audio_clock_2x parent needs to be set first before
changing the rate, else it will not work.

Bug 1019017

Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/116682
(cherry picked from commit fdc4da6d96e7be4aa2accf098de48543e745cf11)
Change-Id: I93aeb1afed8732e8a1b1cff4ab03b9a9f654804f
Reviewed-on: http://git-master/r/118250
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agospi: tegra: enable warning as error flag
Deepak Nibade [Wed, 25 Jul 2012 05:12:21 +0000]
spi: tegra: enable warning as error flag

-enable warnings as errors compilation flag
-handle error of uninitialised variable

bug 949219

Change-Id: I9e754b1cbf086f99433d47aef793a8635185a25e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118239
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Tested-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: Add profile that disables runnable threads
Xiao Bo Zhao [Wed, 25 Jul 2012 02:21:08 +0000]
ARM: tegra: Add profile that disables runnable threads

Add profile [0, 0, 0] which effectively disables runnable threads

Bug 1003531

Change-Id: Ia45e533d5a6531b06c44c6d95f2f7cfd93cf976e
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/118219
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoarm: tegra: Added sysfs knobs for RT thresholds
Xiao Bo Zhao [Mon, 9 Jul 2012 21:53:18 +0000]
arm: tegra: Added sysfs knobs for RT thresholds

Added different bias levels to RT and added the option to
modify the bias level through sysfs knobs

Bug 1003531

Reviewed-on: http://git-master/r/114271
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
(cherry picked from commit 654bc674034f384d8826806fb443d4e9c67b9b3b)

Change-Id: I2e647a65fb89926dd9f0b2ac3edc3dca8eb659a1
Reviewed-on: http://git-master/r/118201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agonet: wireless: bcmdhd: power off card when not in use
Om Prakash Singh [Tue, 24 Jul 2012 16:27:06 +0000]
net: wireless: bcmdhd: 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: I26a8188d932516c0490dec858acd9e8ea2c5adf8
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/118097
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: Added sysfs knob that checks app profile support
Xiao Bo Zhao [Fri, 20 Jul 2012 02:56:28 +0000]
ARM: tegra: Added sysfs knob that checks app profile support

Currently app profile is only supported for AP37
hence added sysfs knob that uses cpu_speedo_id in
order to check app profile support

Bug 1003531

Change-Id: I12b9bc1700b3c925a1f1d51bb00584e7e5d6f0a3
Signed-off-by: Xiao Bo Zhao <xiaoboz@nvidia.com>
Reviewed-on: http://git-master/r/117852
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

7 years agoARM: tegra: dvfs: Adjust VDD_CPU to offset aging
Anshul Jain [Mon, 23 Jul 2012 21:59:32 +0000]
ARM: tegra: dvfs: Adjust VDD_CPU to offset aging

Add silicon aging for VDD_CPU, this recovers some of millivolts based on
the age of the chip.

BUG 1006420

Change-Id: Idddb5861ab039e7ece262dec3697a69c3534ccf2
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/116911
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agoARM: tegra3: clock: Put graphic clks to safe range
Jong Kim [Sat, 21 Jul 2012 00:15:57 +0000]
ARM: tegra3: clock: Put graphic clks to safe range

Initialize graphic and video input clocks in to safe frequency ranges.

bug 966041

Change-Id: I48a035b42bad5a6d36f56e2b0610baf0703c3bcd
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/117484
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agovideo: tegra: host: use fps in 3dfs by default
Ilan Aelion [Tue, 17 Jul 2012 16:19:04 +0000]
video: tegra: host: use fps in 3dfs by default

enable using frame rate information in 3d frequency scaling by default

Bug 991589

Change-Id: I410c86e3a56ddf00610133333dd518b4f46aa9ec
Reviewed-on: http://git-master/r/116867
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

7 years agovideo: tegra: host: adding throughput hint in 3dfs
Ilan Aelion [Mon, 16 Jul 2012 23:31:57 +0000]
video: tegra: host: adding throughput hint in 3dfs

adding support for using a throughput hint given by the tegra-gfx misc
device in the 3d scaling code. If throughput hint usage is enabled and
the latest throughput hint is recent enough (less than 1 second old),
the throughput hint is used to control 3d frequency scaling. Otherwise
the existing idle time percentage estimate is used.

Bug 991589

Change-Id: I68893e5ce7ef922b95ce5f5b3664eb8e1fdd4027
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116866
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>