6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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)

6 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)

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>

6 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

6 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

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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>

6 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

6 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>

6 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>

6 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>

6 years agoARM: tegra: cardhu: report height/width for E1506
Rakesh Iyer [Wed, 25 Jul 2012 21:10:35 +0000]
ARM: tegra: cardhu: report height/width for E1506

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

Bug 1014380.

Change-Id: Ic78b6843f65f44d6162e3c4313aae37bd0e96ba1
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/118438
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>

6 years agoALSA: usb-audio: register switch device
Ravindra Lokhande [Fri, 27 Jul 2012 17:06:29 +0000]
ALSA: usb-audio: register switch device

Register android switch device which is used to convey device plug-in
and plug-out to userspace.

Bug 1009921, Bug 1019877

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

6 years agogpio: tegra: configure pins during irq_set_type
Stephen Warren [Mon, 19 Mar 2012 16:31:58 +0000]
gpio: tegra: configure pins during irq_set_type

When a Tegra GPIO is used as an IRQ, it should be enabled as a GPIO (so
the pinmux module isn't driving it as an output) and configured as a GPIO
input (so the GPIO module isn't driving it as an output). Set this up
automatically whenever an IRQ is requested, so that users of IRQs don't
need to do this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>

Change-Id: I5159fe099e483145977ecdba63a2bc4302105932
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/118658
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agospi: tegra: create workqueue before register spi master
Laxman Dewangan [Wed, 25 Jul 2012 08:22:03 +0000]
spi: tegra: create workqueue before register spi master

Create all resource require for spi transfer before registering
spi master as the spi communication is possible during the
registration.

bug 1023003

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

6 years agoarm: tegra: Add HSIC to list of wake up sources
Venu Byravarasu [Fri, 20 Jul 2012 09:48:27 +0000]
arm: tegra: Add HSIC to list of wake up sources

bug 1010916

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

6 years agoarm: tegra3: usb_phy: Add support for HSIC wakeup
Venu Byravarasu [Tue, 24 Jul 2012 12:42:22 +0000]
arm: tegra3: usb_phy: Add support for HSIC wakeup

As part of this patch following changes are made:
1. HSIC regulator enable/disable is added
2. HSIC phy close is added.

bug 1010916

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

6 years agoarm: tegra: la: hack latency allowance formula
Michael Frydrych [Wed, 11 Jul 2012 08:43:42 +0000]
arm: tegra: la: hack latency allowance formula

Remove the ad-hoc scale factor of final latency allowance.
Scale the fifo size to pretend that our FIFO is only as deep
as the lowest fullness we expect to see.

Bug 995270

Change-Id: I78ed2246d2031a2303f81a19fe05c95572a692b0
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/118816
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Graziano Misuraca <gmisuraca@nvidia.com>
Tested-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: clock: increase Tegra3 pll post-lock delay
Sang-Hun Lee [Fri, 27 Jul 2012 16:57:54 +0000]
ARM: tegra: clock: increase Tegra3 pll post-lock delay

Bug 1022877

Change-Id: I9200d3345a933ab0ccb31f833184ee4a621228f0
Reviewed-on: http://git-master/r/118774
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>

6 years agomisc: tegra-throughput: adding throughput dev node
Ilan Aelion [Thu, 28 Jun 2012 00:58:11 +0000]
misc: tegra-throughput: adding throughput dev node

Creates a miscdev at /dev/tegra-throughput which gl will use to set a
target frame rate. In addition it receives notifications from dc on
flip events. On each notification the percentage ratio of the actual
frame time to the target frame time is calculated. In subsequent
changes this ratio will be reported to other modules as a throughput
hint.

Bug 991589

Change-Id: Ieaa2b2755b63d2d071de31e3ef819d4c3b51a956
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agomedia: video: nvavp: Add bsea/vcp clocks for Audio
Vandana Salve [Fri, 25 May 2012 13:34:06 +0000]
media: video: nvavp: Add bsea/vcp clocks for Audio

1) Enable bsea/vcp clocks for Audio support by ioctl
2) Send kernel event NVE276_OS_INTERRUPT_APP_NOTIFY
to user space
3) Suspend Resume support

bug 964514

Change-Id: I72fb790baa093b4bcd99a128c886dc049fa0fbb6
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/108493
cherry picked from commit 4432c5fa5e9072ff019d994f3bc8239bd34ddad1
Reviewed-on: http://git-master/r/114589
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: soctherm: Create soctherm driver
Joshua Primero [Mon, 23 Jul 2012 19:30:58 +0000]
ARM: tegra: soctherm: Create soctherm driver

Created initial soctherm drivers. Initialized soctherm
registers.

Change-Id: Ie32c4635c0fb9495a4e1c599fbbcf4cfb43b506b
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/120545
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Re-arrange shared bus update
Alex Frid [Thu, 2 Aug 2012 00:16:51 +0000]
ARM: tegra11: clock: Re-arrange shared bus update

Separated emc and sclk shared bus update in preparation for emc
update policy implementation. For now these functions are still
identical.

Given that cbus update was already separated, all tegra11 shared
buses have their own update procedures. However, the target rate
calculation can be extracted into common function - re-arranged
the code accordingly.

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

6 years agoARM: tegra11: clock: Clip aggregated shared bus BW
Alex Frid [Wed, 1 Aug 2012 19:39:00 +0000]
ARM: tegra11: clock: Clip aggregated shared bus BW

Clip aggregated shared bus BW to bus maximum rate.

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

6 years agoARM: tegra11: clock: Apply shared bus ceiling always
Alex Frid [Wed, 1 Aug 2012 19:23:06 +0000]
ARM: tegra11: clock: Apply shared bus ceiling always

Apply shared bus ceiling regardless of whether Tegra11 SHARED_CEILING
user is enabled or disabled. Thus, we no longer need to enable ceiling
user - and the bus itself via child-parent relations - to cap the bus
rate.

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

6 years agoARM: tegra11: clock: Update EMC clock mux
Alex Frid [Wed, 1 Aug 2012 05:22:55 +0000]
ARM: tegra11: clock: Update EMC clock mux

Updated EMC clock mux to include PLLC and low jitter PLLM inputs.

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

6 years agoarch: arm: config: Update minimal linux config
Krishna Monian [Fri, 6 Jul 2012 20:00:23 +0000]
arch: arm: config: Update minimal linux config

Add support to build USB driver as a module

Change-Id: I1c5e39f3d87bed6299b5790f6194f6a9ff7de058
Reviewed-on: http://git-master/r/115072
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Monian <kmonian@nvidia.com>
Tested-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: Tegra: Enterprise: Add KEY_POWER as the wakeup key
Varun Wadekar [Fri, 3 Aug 2012 06:43:13 +0000]
ARM: Tegra: Enterprise: Add KEY_POWER as the wakeup key

Bug 1021087
Bug 1018514

Change-Id: I93fb3922afad941143c988f148e06e9e2ca82350
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/120822
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>

6 years agoARM: SMP: Don't double print secondary boot message
Alex Frid [Thu, 2 Aug 2012 20:32:49 +0000]
ARM: SMP: Don't double print secondary boot message

Removed double-printing of secondary boot message (merge artifact).

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

6 years agoARM: tegra30: clock: Update common clock table
Alex Frid [Thu, 2 Aug 2012 20:10:32 +0000]
ARM: tegra30: clock: Update common clock table

Updated Tegra30 common clock initialization table to fix merge
artifacts and align with main code base.

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

6 years agoARM: Tegra: Correct DAM clock names
Rahul Mittal [Thu, 2 Aug 2012 16:27:36 +0000]
ARM: Tegra: Correct DAM clock names

Correcting DAM clock names in clock tree

Change-Id: Ib00f0c8013005f69854493cc9cf13f7828fdb8bf
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/120395
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: Fix statistics debugfs format
Hiroshi Doyu [Thu, 2 Aug 2012 08:38:17 +0000]
iommu/tegra: smmu: Fix statistics debugfs format

Fix the format along with IOVMM.

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

6 years agoARM: tegra: smmu: Fix statistics debugfs format
Hiroshi Doyu [Thu, 2 Aug 2012 08:25:38 +0000]
ARM: tegra: smmu: Fix statistics debugfs format

Fix the format along with IOMMU.

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

6 years agoRevert "Revert "media: video: tegra: sh532u: Focuser range tuning support""
Krupal Divvela [Thu, 2 Aug 2012 07:13:50 +0000]
Revert "Revert "media: video: tegra: sh532u: Focuser range tuning support""

Make focuser structs definitions same as
user space definitions

This reverts commit ca4bc41e88cf643169ccc4b10a6f130761f171da.

Bug 1027053
Bug 1026282

Change-Id: I91d0a0f5786a573efaa30ee0c55d65692001f37e
Signed-off-by: Krupal Divvela <kdivvela@nvidia.com>
Reviewed-on: http://git-master/r/120297
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoregulator: palmas: Fix compilation failures
Mallikarjun Kasoju [Wed, 1 Aug 2012 15:11:19 +0000]
regulator: palmas: Fix compilation failures

Fix palmas regulator compilation failures.

Change-Id: I6f4596efde05f5318d865690e772cfe2e05d5ce0
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/120064
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: regulator for Palmas Kconfig
Mallikarjun Kasoju [Wed, 1 Aug 2012 06:54:32 +0000]
regulator: regulator for Palmas Kconfig

Add the Kconfig/Makefile stuff for the palmas regulator driver

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 4c5dabce4ee9412b320a83ab98850aa5834451bc)

Conflicts:

drivers/regulator/Kconfig

Change-Id: Ia1ccf846205c163fb1d183eac127db662b1c8bc3
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/120063
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoregulator: regulator driver for Palmas series chips
Graeme Gregory [Fri, 18 May 2012 15:53:57 +0000]
regulator: regulator driver for Palmas series chips

Palmas has both Switched Mode (SMPS) and Linear (LDO) regulators in it.
This regulator driver allows software control of these regulators.

The regulators available on Palmas series chips vary depending on the muxing.
This is handled automatically in the driver by reading the mux info from OTP.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit e5ce4208f111e5b6ae22df334750324711c28320)

Change-Id: I87a8bbcebbc76da641a7cccdccb899c3548f1151
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/120062
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agommc: tegra: Fix Tegra architecture conditionals
naveenk [Wed, 1 Aug 2012 11:41:09 +0000]
mmc: tegra: Fix Tegra architecture conditionals

To avoid warning: tegra_sdhci_get_ro' defined but not used
use chip specific defination

Bug 837103

Change-Id: I7f371f34869f0d635f13445ee80001785c745bce
Reviewed-on: http://git-master/r/120025
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agovideo: tegra: nvmap: Add support PLATFORM_IOMMUABLE
Hiroshi DOYU [Mon, 19 Mar 2012 09:53:49 +0000]
video: tegra: nvmap: Add support PLATFORM_IOMMUABLE

nvmap supports both w/ PLATFORM_IOMMUABLE and w/o PLATFORM_IOMMUABLE.

Change-Id: Icc0b4025ef067787a3ea449a17d53e714d3ef607
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120019
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: tegra: smmu: Add TEGRA_IOMMU_SMMU along with TEGRA_IOVMM_SMMU
Hiroshi Doyu [Wed, 1 Aug 2012 07:26:41 +0000]
ARM: tegra: smmu: Add TEGRA_IOMMU_SMMU along with TEGRA_IOVMM_SMMU

To migrate from IOVMM to IOMMU.

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

6 years agoARM: tegra: curacao: Add TEGRA_IOMMU_SMMU along with TEGRA_IOVMM_SMMU
Hiroshi DOYU [Tue, 17 Jul 2012 07:05:20 +0000]
ARM: tegra: curacao: Add TEGRA_IOMMU_SMMU along with TEGRA_IOVMM_SMMU

Add missing one to migrate from IOVMM to IOMMU.

Change-Id: I7741affa1dd435fae937232596d59f7402a28fb6
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120017
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: Fix build error because of rebase
Hiroshi DOYU [Tue, 17 Jul 2012 07:04:21 +0000]
iommu/tegra: smmu: Fix build error because of rebase

Fix build error because of rebase.

Change-Id: Ie6cfbf3367287057a94bae0252b23caad6035193
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120016
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: new API to map linear IOVA
Hiroshi DOYU [Mon, 26 Mar 2012 10:26:15 +0000]
iommu/tegra: smmu: new API to map linear IOVA

For the case w/o CONFIG_TEGRA_IOMMU_SMMU_LINEAR.

REVISIT: This API should be replaced with a new DMA API,
"dma_map_linear_at()" later.

Change-Id: I6f545bdf1c6485a98a96c02d22bf7997c449ee5d
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120014
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: Fix error initial value at domain_init
Hiroshi Doyu [Mon, 30 Jul 2012 05:39:19 +0000]
iommu/tegra: smmu: Fix error initial value at domain_init

err initial value should be -EAGAIN. Otherwise 2nd iteration always
fails in the case as[0] is occupied.

[Hiroshi Doyu: Backport from the upstream.]

Change-Id: I2d5c3dd4d7107c227634abe5727bcc935b35cfeb
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120013
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: Cleanup with lesser nest
Hiroshi Doyu [Mon, 30 Jul 2012 05:39:18 +0000]
iommu/tegra: smmu: Cleanup with lesser nest

Small clean up with lesser nest for readability.

[Hiroshi Doyu: Backport from the upstream.]

Change-Id: Ic23fc103a301b564f36544a03d5f5a6078543675
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120012
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: Don't call alloc_pdir with as->lock
Joerg Roedel [Tue, 17 Jul 2012 09:47:14 +0000]
iommu/tegra: smmu: Don't call alloc_pdir with as->lock

Instead of taking as->lock before calling alloc_pdir() and
releasing it in that function to allocate memory, just take
the lock only in the alloc_pdir function and run the loop
without any lock held. This simplifies the complicated
lock->unlock->alloc->lock->unlock sequence into
alloc->lock->unlock.

[Hiroshi Doyu: Backport from the upstream.]

Change-Id: I2894761f7476a1a1aaaad0220edd3b030e7d510e
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/120011
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: Fix unsleepable memory allocation at alloc_pdir()
Hiroshi Doyu [Mon, 2 Jul 2012 01:26:38 +0000]
iommu/tegra: smmu: Fix unsleepable memory allocation at alloc_pdir()

alloc_pdir() is called from smmu_iommu_domain_init() with spin_lock
held. memory allocations in alloc_pdir() had to be atomic. Instead of
converting into atomic allocation, this patch once releases a lock,
does the allocation, holds the lock again and then sees if it's raced
or not in order to avoid introducing mutex and preallocation.

[Hiroshi Doyu: Backport from the upstream.]

Change-Id: I0ff4ced51bb09cd9d706d2acdfbfc96feafcb1e9
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reported-by: Chris Wright <chrisw@sous-sol.org>
Cc: Chris Wright <chrisw@sous-sol.org>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-on: http://git-master/r/120010
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoiommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()
Hiroshi Doyu [Mon, 2 Jul 2012 01:26:37 +0000]
iommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()

alloc_pdir() is called with smmu->as[?].pdir_page == NULL. No need to
check pdir_page again inside alloc_pdir().

[Hiroshi Doyu: Backport from the upstream.]

Change-Id: I69da0c91efae892ca2bfd202dd25c3bf09884ca9
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-on: http://git-master/r/120009
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

6 years agoARM: tegra11: clock: Add internal LA clock initialization
Alex Frid [Sat, 28 Jul 2012 06:04:06 +0000]
ARM: tegra11: clock: Add internal LA clock initialization

Enabled clocks used by internal LA (LA, DDS, DP2 and HDMI) if
requested by settings in MISC_GP_TRANSACTOR_SCRATCH_0 register.

Bug 1001015

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

6 years agoBluetooth: prevent multiple l2cap_sock_kill function calls
Nagarjuna Kristam [Wed, 25 Jul 2012 12:12:19 +0000]
Bluetooth: prevent multiple l2cap_sock_kill function calls

Remove SOCK_DEAD check inside l2cap_sock_kill, as this prevents cleanup of
l2cap sockets when bluetooth is turned off from UI
Instead of SOCK_DEAD check inside l2cap_sock_kill, add SOCK_DEAD check
inside l2cap_sock_close_cb to prevent multiple l2cap_sock_kill function calls.
This check avoids kernel panic, when l2cap_sock_close_cb function is called with
same socket multiple times.

Bug 1018499

Change-Id: I77388ffb1407138646feb9fbea467ca12e4a0855
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/118321
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agobluesleep: destroy wake lock when probe function failed
Kerwin Wan [Wed, 1 Aug 2012 04:31:16 +0000]
bluesleep: destroy wake lock when probe function failed

bug 1024242

Change-Id: Ifc87514d9824ae3deba3503e57421fadf995e4dc
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/119873
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoarm: tegra11x: usb_phy: Add HSIC changes from main
Venu Byravarasu [Mon, 30 Jul 2012 11:49:28 +0000]
arm: tegra11x: usb_phy: Add HSIC changes from main

Pulling in multiple changes of HSIC from main into t114.

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

6 years agousb: Add support for building USB driver as a module
Krishna Monian [Thu, 12 Jul 2012 14:29:04 +0000]
usb: Add support for building USB driver as a module

- Export required symbols for USB driver support as a module
- Remove call to set_irq_flags since this is not exported to modules

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

6 years agoasoc: tegra: SMMU buffers support
Vijay Mali [Tue, 24 Apr 2012 13:30:08 +0000]
asoc: tegra: SMMU buffers support

Use SMMU buffers for audio playback and record.

For bug 886681

Change-Id: I7bdfc07c01df3ee744fa4ff9f2ff892320035e6e
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/120070
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>

6 years agogpio: palmas: fix compilation failures
Pradeep Kumar [Wed, 1 Aug 2012 10:35:51 +0000]
gpio: palmas: fix compilation failures

Update palmas gpio support driver as per updated palmas core.

Bug 978821

Change-Id: If4b4a297db2acaa36f9b4184137ac5f73d6dd7f2
Reviewed-on: http://git-master/r/119989
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

6 years agoGPIO: Add Palmas GPIO support
Graeme Gregory [Fri, 21 Oct 2011 14:10:43 +0000]
GPIO: Add Palmas GPIO support

Palmas has a maximum of 8 GPIO available but depending on the package and
OTP programming of the chip they may not all be exposed to pins on the
chip

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
(cherry picked from commit 0f9c01bcec3f032de5bf04213ee7055b068e5d06)

Bug 978821

Change-Id: Ic4bb7f6762535fd77e4b0b507dbc6873270ed33b
Reviewed-on: http://git-master/r/119988
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

6 years agoARM: tegra: curacao: Add Audio Devices
Vijay Mali [Wed, 1 Aug 2012 07:34:52 +0000]
ARM: tegra: curacao: Add Audio Devices

Register audio devices for i2s, WM8903
Add platform data for these devices
Update kernel config for WM8903

Change-Id: I8165088df38ea228da96dc02998c841e52c4d804
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/119920
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agommc: tegra: Fix build break
Bo Yan [Tue, 31 Jul 2012 18:03:18 +0000]
mmc: tegra: Fix build break

Fix build break due to misplaced conditional compilation macros

Change-Id: I1ed554a25a9123c94d85c08371a77350292b58e5
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/119725
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>

6 years agoarm: tegra: power: Add debugfs entry for CPU regulator limit
Daniel Solomon [Tue, 24 Jul 2012 22:02:03 +0000]
arm: tegra: power: Add debugfs entry for CPU regulator limit

Add a debugfs node to override VDD_CPU regulator current limit
at /d/edp_reg_override. Values written to this node will be
subtracted from the regulator's current limit; EDP table will
be recalculated accodingly.

Change-Id: I523fa73bf5a8fa806477f4884e920b5866417cf3
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/118815
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: always set dev->power_specified
Peter De Schrijver [Mon, 23 Jul 2012 12:50:07 +0000]
ARM: tegra: always set dev->power_specified

We specify power_usage for LP3 as well. Hence this flag needs always to be set
even when CONFIG_PM is not enabled.

Change-Id: If4a0b99b2d00b8607b0fd87848f6b17fd934d1c7
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/118026
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: remove unneeded calls to local_irq_disable
Peter De Schrijver [Mon, 23 Jul 2012 15:45:06 +0000]
ARM: tegra: remove unneeded calls to local_irq_disable

cpu_idle() in arch/arm/kernel/process.c already calls local_irq_disable. No
need to do that in our own code. We do have to call local_irq_enable however,
because we can't use the common cpuidle timekeeping code as we want to keep
separate stats for the LP cluster.

Change-Id: I95c0ca2168f10204f4de435d4290014445c729c1
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117693
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: remove trace_power_start calls
Peter De Schrijver [Mon, 23 Jul 2012 14:03:38 +0000]
ARM: tegra: remove trace_power_start calls

These calls are now done by the cpuidle framework in cpuidle_idle_call(). They
would also need to be replaced by trace_power_start_rcuidle because otherwise
the rcu_read_lock()s that protect the tracepoint will not be honored.

Change-Id: I7115fc4e69a499ed9a056cbd13bfe9e19892ceba
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117692
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomedia: video: fix sectionmismatch for ar0832_remove_debugfs
Peter De Schrijver [Thu, 19 Jul 2012 12:46:21 +0000]
media: video: fix sectionmismatch for ar0832_remove_debugfs

ar0832_remove_debugfs is also called from ar0832_create_debugfs, hence it can
not be in the __devexit section.

Change-Id: Id50fea4bfeee8df50b57f93a7b752c35136ce17c
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117054
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: fix section mismatch for get_core_count
Peter De Schrijver [Thu, 19 Jul 2012 12:44:05 +0000]
ARM: tegra: fix section mismatch for get_core_count

get_core_count calls scu_get_core_count which is part of the __init section.
Hence we can only call this from another function inside this section.
Refactor the code to initialize number_of_cores at boottime in an __init
function.

Change-Id: I200a6ea297a8abe1a3b3fbdd050de5917875d7bc
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117053
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: fix section mismatches
Peter De Schrijver [Thu, 19 Jul 2012 12:33:26 +0000]
ARM: tegra: fix section mismatches

tegra_auto_hotplug_work_func references cpu_up and cpu_down which are part of
the __cpuinit section. Also tegra_auto_hotplug_init should be part of it
because it references tegra_auto_hotplug_work_func. These functions are only
useful if hotplug is enabled, hence there is no problem putting them in the
__cpuinit section.

Change-Id: I770f9f5c10b7e7dd890eed5b611778d78d151f22
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117050
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: fix sectionmismatch for soc_smp_ops
Peter De Schrijver [Thu, 19 Jul 2012 12:29:10 +0000]
ARM: fix sectionmismatch for soc_smp_ops

soc_smp_ops is indirectly referenced by handle_IPI, hence it can not be part of
the __cpuinit section.

Change-Id: Id6d4fedf861a6edc4c1f73155c49738cad1eb126
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/117049
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>