7 years agoarm: tegra: usb_phy: fix hsic suspend issue on xmm
Vinayak Pane [Tue, 12 Jun 2012 01:08:14 +0000]
arm: tegra: usb_phy: fix hsic suspend issue on xmm

XMM modem fails at auto-suspend on hsic. Fixing this issue
by enabling PMC sleepwalk code conditionally and only at
phy-on and phy-off routines.

Bug 991709

Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/109324
(cherry picked from commit 100f818a16ce97411a98ddb0e2c5c9e73a9e654a)

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

7 years agoARM: tegra: usb: correct fuse.h include path
Rakesh Bodla [Fri, 6 Jul 2012 12:01:58 +0000]
ARM: tegra: usb: correct fuse.h include path

Correct the fuse.h include path.

Reviewed-on: http://git-master/r/113895
(cherry picked from commit e0a6bea533c7f56ebd7c75e4bc0ec5b55ee9664e)
Change-Id: Ib6cf4f86ba3420d20bcd5e64da4c15ef38759938
Reviewed-on: http://git-master/r/115373
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agohwmon: tegra: tsensor:Simplify counter calculation
Daniel Fu [Thu, 12 Jul 2012 09:30:10 +0000]
hwmon: tegra: tsensor:Simplify counter calculation

Simplify the temp to counter conversion in tsensor,
Also it can improve a little bit accuracy of temp to
counter conversion.

Change-Id: I5764334d5d94e317dd9400bc03cb5d7a64096ee0
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/115340
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoarm: tegra: sd: enable sd dpd
Wen Yi [Thu, 21 Jun 2012 04:42:13 +0000]
arm: tegra: sd: enable sd dpd

This is a WAR solution that allows for the turning on
SD DPD feature.

The original issue is that enabling SD DPD immediately after device comes
out of LP0 causes ULPI disconnect. The root cause of that is
not known.

The WAR is to delay the enabling of SD DPD for 100ms after
device comes out of LP0.

Bug 929628

Change-Id: I3c5e35ace422e5441535c2c0fe18545b53bbddc4
Signed-off-by: Wen Yi <wyi@nvidia.com>
(cherry picked from commit bffb7b917d52a3523af80db21322ec7ba5fd33f9)
Reviewed-on: http://git-master/r/113392
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agosdhci: tegra: enable sd dpd
Bitan Biswas [Mon, 25 Jun 2012 14:34:54 +0000]
sdhci: tegra: enable sd dpd

This is a WAR solution that allows for the turning on
SD DPD feature.

The original issue is that enabling SD DPD immediately after device comes
out of LP0 causes ULPI disconnect. The root cause of that is
not known.

The WAR is to delay the enabling of SD DPD for 100ms after
device comes out of LP0.

Bug 929628

Change-Id: I946771a8e92459464ce571295f96f197db25c061
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit beba2b34af7ff9313aed074342b9bb86b12620a8)
Reviewed-on: http://git-master/r/113391
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoRevert "arm: tegra: power: disable all sd dpd"
Bitan Biswas [Tue, 24 Jan 2012 07:52:23 +0000]
Revert "arm: tegra: power: disable all sd dpd"

This reverts commit 8924926cdb77c6ab270867d4caef7a8cdacd11f2.

Bug 924452
Bug 929628

Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 142b34993404c853579864f7b7b4f320fb92a715)

Change-Id: I9d49703799e32d410beba18938e94e4b641eea6f
(cherry picked from commit 8de60b7a832bfbbf09e75def756379dbb2d14c3e)
Reviewed-on: http://git-master/r/113387
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: usb_phy: utmip remote wakeup issue
Venu Byravarasu [Fri, 29 Jun 2012 06:28:51 +0000]
arm: tegra: usb_phy: utmip remote wakeup issue

Do not clear sleep walk pointer for utmip port after remote
wakeup is detected. This should be cleared after control
is given to USB master from PMC.

Bug 999208

Change-Id: I9f498521989c6421f0043dc1b4364591d4907423
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
(cherry picked from commit e4dbecfe031cbacd4f22bbbcdf971ab11ad81ee8)
Reviewed-on: http://git-master/r/112938
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

7 years agoARM: tegra: iovmm: Fix build error w/o CONFIG_IOVMM
Hiroshi DOYU [Thu, 12 Jul 2012 12:11:20 +0000]
ARM: tegra: iovmm: Fix build error w/o CONFIG_IOVMM

Update function prototype along with:

  commit 6cbf4c7465b7b70936cb422b509da0ad0829c306
  ARM: tegra: iovmm: Allow alloc_client to take struct device

Change-Id: I11d173429413ab268f6ab789d90f321e3d33de2c
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/115391
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: iovmm: Make IOMMU/IOVMM selectable in Kconfig
Hiroshi DOYU [Wed, 11 Jul 2012 13:51:24 +0000]
ARM: tegra: iovmm: Make IOMMU/IOVMM selectable in Kconfig

This patch enables to replace iovmm*.ko family with
tegra-{smmu,gart}.ko if needed in kernel config. To use IOMMU as
backend engine, Enable TEGRA_IOMMU_{GART,SMMU} under IOMMU in config,
and automatically disable IOVMM.

IOVMM is equivalent to IOMMU_API. TEGRA_IOVMM_GART is equivalent to
TEGRA_IOMMU_GART. TEGRA_IOVMM_SMMU is equivalent to TEGRA_IOMMU_SMMU.

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

7 years agoARM: tegra: iovmm: Replace IOVMM backend with IOMMU
Hiroshi DOYU [Tue, 10 Jul 2012 06:32:42 +0000]
ARM: tegra: iovmm: Replace IOVMM backend with IOMMU

Replace IOVMM backend functions with the standard IOMMU API
ones. Instead of modifying the actual C-files in drivers, MACROs in
iovmm.h does the all work.

Change-Id: I27dc893555ca1495588852261e3ba1e3e5619764
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/114460
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: nvmap: Make IOMMU/IOVMM selectable in Kconfig
Hiroshi DOYU [Tue, 21 Feb 2012 14:47:08 +0000]
video: tegra: nvmap: Make IOMMU/IOVMM selectable in Kconfig

This patch allows nvmap to use the standard IOMMU API as its backend
engine instead of the legacy tegra IOVMM by Kconfig.

Enable TEGRA_IOMMU_{GART,SMMU} under IOMMU in config, and it
automatically disables IOVMM, instead.

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

7 years agovideo: tegra: fix compilation warning
Rhyland Klein [Thu, 12 Jul 2012 16:51:54 +0000]
video: tegra: fix compilation warning

Without the CONFIG_SWITCH enabled, there are multiple unused
variable warnings that get treated as error.

bug 949219

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I39512367fa4bbd3b00a435d0d7a31cfede9e712f
Reviewed-on: http://git-master/r/115428
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>

7 years agoARM: tegra: clock: Dynamically re-lock memory pll
Alex Frid [Sun, 24 Jun 2012 01:22:13 +0000]
ARM: tegra: clock: Dynamically re-lock memory pll

So far Tegra3 EMC DFS allowed only scaling rates that can be divided
down from two fixed rate plls: memory PLLM, and peripheral PLLP. PLLM
is always running at maximum SDRAM rate set at boot time, while PLLP
rate 408MHz is fixed across all Tegra3 platforms.

This commit implements dynamic re-locking of PLLM at run time. Now
memory pll can lock either at boot rate or additional auxiliary rate
that is selected as follows: auxiliary PLLM rate must be present in
EMC DFS table, it must exactly match one of the rate steps for Tegra3
graphics bus with PLLC clock source (cbus), and must not be a proper
factor of boot PLLM rate or PLLP fixed rate.

When switching PLLM between boot and auxiliary rate, PLLC is used as
backup memory pll, and during this time cbus is locked at auxiliary
rate. In addition system bus is forced to temporarily use PLLP as
a clock source (this is necessary as sbus main clock source is PLLM
secondary divider PLLM_OUT1).

Limitations:
- only one auxiliary rate is supported, and it should be below PLLM
boot rate, but above half of boot rate
- dynamic re-lock is allowed only on LPDDR2 platforms
- no clock other than EMC and system bus could use PLLM as a source;
so for dynamic re-lock to work CONFIG_TEGRA_PLLM_RESTRICTED must be
selected, and VI clock (not covered by PLLM restricted configuration)
must be moved to PLLP.

Bug 1005576

Change-Id: I6177107c89c3cbe975a1d940927efa1ed0ea61ec
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/111438
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
(cherry picked from commit dc4d468a6acabfb268e7a7f44b45bb7354e9a99a)
Reviewed-on: http://git-master/r/114760
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra: clock: Increase boost_up_threshold for AVP clock
Vandana Salve [Tue, 10 Jul 2012 15:33:24 +0000]
ARM: tegra: clock: Increase boost_up_threshold for AVP clock

Increase the boost_up_threshold to 85 for ULP audio

bug 1009849

Change-Id: I4b1b746f445f5c2804befa52ae95c69b6b467083
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/114620
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

7 years agoARM: tegra: cardhu: add mem 437MHz table for Samsung K4P8G304EB
Jihoon Bang [Wed, 11 Jul 2012 18:06:40 +0000]
ARM: tegra: cardhu: add mem 437MHz table for Samsung K4P8G304EB

Bug 1005576

Signed-off-by: Peter Zu <pzu@nvidia.com>
Reviewed-on: http://git-master/r/112036
(cherry picked from commit 1f1e6d22e771336fb9e0b91bbabf12fa89f0c57c)

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

7 years agoARM: tegra: change include to proper notation
Rhyland Klein [Tue, 10 Jul 2012 14:59:49 +0000]
ARM: tegra: change include to proper notation

In this case we want to include a file in the same directory. We
should be using "" with include instead of <>. This fixes a an
issue using the chromeos toolchain (4.6.3+) where fuse.h is not
found while compiling usb_phy.c.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Change-Id: I0c6bdf6768cd89740ed0444b2b46289057dfad6a
Reviewed-on: http://git-master/r/114608
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agocpufreq: Protected access of policy attribute
Puneet Saxena [Thu, 7 Jun 2012 13:49:59 +0000]
cpufreq: Protected access of policy attribute

It takes read RW semaphore to access policy governor

bug 997731

Change-Id: Ibdc3dd54cf6076c0fef4bc58f144e4bcb4631d76
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/107079
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dc: fix build error in print_mode
Jon Mayo [Thu, 12 Jul 2012 20:29:07 +0000]
video: tegra: dc: fix build error in print_mode

Use the right number of parameters for tegra_dc_calc_fresh() when called from
print_mode(). This code is only used for debug.

Change-Id: I4d0bb8b1700f670644057039fe8d0bc315b27c1d
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/115485
Reviewed-by: Automatic_Commit_Validation_User

7 years agobluesleep: stop/start based on HCI_DEV_REG/HCI_DEV_UNREG events
Nagarjuna Kristam [Wed, 11 Jul 2012 11:19:24 +0000]
bluesleep: stop/start based on HCI_DEV_REG/HCI_DEV_UNREG events

when BT is turned off HCI_DEV_DOWN event is received and bluesleep
protocol is stopped. On bluesleep stop, EXT_WAKE gpio will be set to
default high level. This condition does not allow BT chip to enter
low power mode. So, start and stop bluesleep based on HCI_DEV_REG
and HCI_DEV_UNREG events instead of HCI_DEV_UP and HCI_DEV_DOWN.

Also, enable and disable host wake functionality based on HCI_DEV_UP and
HCI_DEV_DOWN events, as these events indicate BT turn ON and OFF

Bug 1014590

Change-Id: I3929c1328ac024eb080359283107dabf3712e9ea
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/114984
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoARM: tegra: clock: Allow Tegra3 PLLM rate change
Alex Frid [Sun, 24 Jun 2012 06:50:54 +0000]
ARM: tegra: clock: Allow Tegra3 PLLM rate change

Allowed Tegra3 memory PLLM rate change, provided it is disabled.

Since PLLM can deviate from boot configuration now, and on Tegra3 it
is controlled by PMC override registers (not CAR module registers):

- Re-factored PLLM initialization, resume, and set rate operations
accordingly (enable and disable ops already used PMC override).

- Made sure that boot configuration is restored on entry to LP0 to
match memory timing saved in scratch registers.

Bug 1005576

Change-Id: Iac6297455bec709a8e12d71deccab62c18905ea7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/110937
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
(cherry picked from commit b53f88c68543a2b0ddb4545bb3b389b42eeb95d8)
Reviewed-on: http://git-master/r/114759
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra: clock: Record EMC clock source rate
Alex Frid [Fri, 22 Jun 2012 21:13:41 +0000]
ARM: tegra: clock: Record EMC clock source rate

On Tegra3 added source rate to EMC clock source selection structure,
and re-factored EMC DVFS initialization accordingly.

Bug 1005576

Change-Id: I155e982bef2431a76cf5e5085070d4e654a7b49b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/110935
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
(cherry picked from commit bf52c26c532a9ebabc4fc8a1fb5fc9d88be85e66)
Reviewed-on: http://git-master/r/114758
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agoARM: tegra: clock: Record shared bus backup rate
Alex Frid [Fri, 22 Jun 2012 19:31:44 +0000]
ARM: tegra: clock: Record shared bus backup rate

Added shared bus backup rate entry to clock descriptor; initialized
it for cbus (currently the only shared bus with backup source).

Bug 1005576

Change-Id: I8124aa87f1dc307e42417da8f78797cfaf71e5dc
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/110934
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
(cherry picked from commit bc5ed688929c3c0ca920b5e9663cf9c6fb85c00f)
Reviewed-on: http://git-master/r/114757
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agotegra: dc: Make data output along with pixel clock.
Roger Hsieh [Tue, 3 Jul 2012 07:13:31 +0000]
tegra: dc: Make data output along with pixel clock.

After making pclk output ahead of LVDS_SHDN# , data output is later than
panel ready then caused partial black screen. Force triggered data output to
get it fixed.

Bug 972377
Bug 976081
Bug 1001434

Change-Id: Icd455d7439f622e46295158a5435286c521526aa
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/113164
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: clock: Adjust Tegra3 cpu to emc ratio
Alex Frid [Thu, 7 Jun 2012 05:18:38 +0000]
ARM: tegra: clock: Adjust Tegra3 cpu to emc ratio

On Tegra3 changed cpu rate threshold for maximum emc rate request from
750MHz to 925MHz. Adjusted cpu frequency table to provide entries close
to the new threshold for all Tegra3 skus.

Bug 998044
Bug 1003521

Signed-off-by: Alex Frid <afrid@nvidia.com>

Change-Id: I6e6df1958db9d55ad64cf35a5e9fe6ec74b8d4ea
Reviewed-on: http://git-master/r/106946
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agohwmon: tegra: tsensor: improve counter accuracy
Daniel Fu [Wed, 11 Jul 2012 07:11:56 +0000]
hwmon: tegra: tsensor: improve counter accuracy

When set threshold of tsensor,convert the temp to counter.
The counter convert from temp is with ~1.8C average error.
Improved the accuracy, make it to be ~0.1C.

Bug 1015288

Change-Id: Icab03b559eaeb8846dd1191869afe39c9965f934
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/114904
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoarm: tegra: kai: fix time does not increase in lp0
Chandler Zhang [Wed, 11 Jul 2012 05:57:43 +0000]
arm: tegra: kai: fix time does not increase in lp0

time does not increase in LP0 because GPIO4 is configured as POR.
Change to active_low and pull push to fix the issue.

Bug 1014548

Change-Id: I13c65ac6a4f3ae9158c58922e1ad6982f24bb103
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/114866
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>

7 years agovideo: tegra: dc: consider bandwidth efficiency for tegra2
Bharat Nihalani [Tue, 26 Jun 2012 12:36:42 +0000]
video: tegra: dc: consider bandwidth efficiency for tegra2

This is similar to commit a62be5b5595ad86411ced81bceeb3d6a693426d2
pushed for rel-14 branch.

Bug 1004341

Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>

Reviewed-on: http://git-master/r/111227
(cherry-picked from fbfce3106da8dad18948103c812bdd9d45ffdd06)

Change-Id: Ib459094fd6499b3cc63bc534bf36e57dc98ce62b
Reviewed-on: http://git-master/r/114584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoasoc: codecs: max98088: Headset Detection
Nikesh Oswal [Fri, 29 Jun 2012 10:56:33 +0000]
asoc: codecs: max98088: Headset Detection

Add code for headset detection according to that
state transitions mentioned for JKSNS field in the
max98088 codec datasheet

Bug: 110529
Bug: 1008246

Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/112127
(cherry picked from commit 12a2259e0e9cf7da4bf64bad2a97c32cec41477c)

Change-Id: I7d45b210dd02f181e71a08d9b3de7cff109dd88b
Reviewed-on: http://git-master/r/114445
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agoasoc: tegra: Change HW disabling dequence and I2S clock parent
Nikesh Oswal [Fri, 22 Jun 2012 07:24:52 +0000]
asoc: tegra: Change HW disabling dequence and I2S clock parent

Change HW disabling dequence and I2S clock parent in slave mode
for voice call use-case

Bug: 1005176
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/110529
(cherry picked from commit 4b138cdeb3374575bde9f49d0c644faa91ced68f)

Change-Id: Ia037ed5ef45d38972c3e1e1a78b4b7b7f39d8f72
Reviewed-on: http://git-master/r/114444
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

7 years agomedia: video: tegra: ar0832:Update Aptina settings
Amy Deng [Mon, 2 Jul 2012 23:09:20 +0000]
media: video: tegra: ar0832:Update Aptina settings

updated MT9E013 and AR0832 Recommended Settings

Bug 1009371

Change-Id: Ib1e4ce2f42ebc8d2080a47613cf7054a19198dda
Signed-off-by: Amy Deng <amyd@nvidia.com>
Reviewed-on: http://git-master/r/113092
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yining Deng <ydeng@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomac80211 & nl80211: add support to abort a scan request on tx
Wei Ni [Tue, 22 Nov 2011 10:17:43 +0000]
mac80211 & nl80211: add support to abort a scan request on tx

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

So that it can work with the related wpa_supplicant tool.

BUG=895591

Change-Id: Ie81f6d6052bd45dab13c936f9f0c5f4eb277496a
Original-Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-on: http://git-master/r/111333
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: dc: support disp mode override via boot args
Nirav Patel [Tue, 22 May 2012 22:58:55 +0000]
video: tegra: dc: support disp mode override via boot args

Allows overidding the default disp mode without having to recompile
the kernel. Boot args can be specified in the following format:

disp_params=<rgb|hdmi|dsi>:pclk,h_active,v_active,h_ref_to_sync,
v_ref_to_sync,h_sync_width,v_sync_width,h_back_porch,v_back_porch,
h_front_porch,v_front_porch;<rgb|hdmi|dsi>:pclk,h_active,...

Bug 969088

Change-Id: Id0acf608de145493f6749d5b799d4bbb8162ba72
Signed-off-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-on: http://git-master/r/104604
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: Tegra: cardhu: No longer invert backlight on PM313
Graziano Misuraca [Mon, 2 Apr 2012 19:56:35 +0000]
ARM: Tegra: cardhu: No longer invert backlight on PM313

Backlight value was inverted for panels with PM313.
This assumed the panel was the 15", but because the
10.1" (AUO) is more prevalent and doesn't have the
inverted backlight signal we no longer need to
invert it. Note this will fix the backlight issue
for AUO E1198 boards but break it for 15".

Bug 962636
Reviewed-on: http://git-master/r/#change,93965
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Change-Id: Icb65592eb2df21e349e5a759a780e4438a0f5b26
Reviewed-on: http://git-master/r/95728
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: tegra: pm269: 12.75mhz emc rate
Wen Yi [Thu, 28 Jun 2012 20:24:40 +0000]
arm: tegra: pm269: 12.75mhz emc rate

Add 12.75mhz emc frequency for Samsung K4P8G304EB-FGC2
LPDDR2 1GB memory chip.

Bug 1011100

Change-Id: Ibbbb3f002c36c31cd2806051803ddd3ba9daa63b
Signed-off-by: Wen Yi <wyi@nvidia.com>
(cherry picked from commit a37cb14dc441005ddd977b6a83f41df817179d79)
Reviewed-on: http://git-master/r/113383
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agovideo: tegra: treat compilation warning as error
Sanjay Singh Rawat [Tue, 10 Jul 2012 16:07:35 +0000]
video: tegra: treat compilation warning as error

- Adding flag to treat warning as error.
- Handled warning of unused function.

bug 949219

Change-Id: Ic6edfc28bae95b8395cbd51e80f14aa4aa663f61
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/114624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agonet: wireless: WFD specific changes
Jun (Gab-Joo) Lim [Tue, 26 Jun 2012 03:29:57 +0000]
net: wireless: WFD specific changes

WFD specific changes integrated from broadcom patch

Bug 1001418
Bug 997838

Change-Id: I0632307bf5fb959def4ee12687430a14ab9e068e
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/111032
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agomedia: video: tegra: sh532u: Focuser range tuning support
Naren Bhat [Thu, 21 Jun 2012 23:48:51 +0000]
media: video: tegra: sh532u: Focuser range tuning support

Support for get/set capabilities added. Focuser code has a way to
calibrate itself that results in determination of optimal working
range. This along with actual range from device ROM are returned
to the caller. Focuser has the macro at lower end and infinity at
farther end of the range, which are reversed to the user level to
keep the inf/macro positions to be consistent. Focuser range
translation is taken out.

Bug 1004816

Change-Id: I1a086ff10e99940f9ad861397bf7e71e9996c68a
Signed-off-by: Naren Bhat <nbhat@nvidia.com>
Reviewed-on: http://git-master/r/110443
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Patrick Shehane <pshehane@nvidia.com>
Tested-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra: cardhu: move VI to PLL_P
Jihoon Bang [Fri, 29 Jun 2012 20:54:34 +0000]
arm: tegra: cardhu: move VI to PLL_P

As a part of effort to bring in 437MHz clock frequency in EMC,
We need to move VI from PLL_M to PLL_P.

Bug 1005576

Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/112704
(cherry picked from commit c175857e80355857b55e8eb2012c12e94e532835)

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

7 years agovideo: tegra: nvmap: Introduce IOMMU backend instead of IOVMM
Hiroshi DOYU [Wed, 22 Feb 2012 12:34:08 +0000]
video: tegra: nvmap: Introduce IOMMU backend instead of IOVMM

Introduce IOMMU backend functions which use DMA API familiy
internally. Replace tegra_iovmm_*() API with arm_iommu_*iova*() and
dma_(un)map_page_(at)().

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

7 years agoARM: tegra: iovmm: Allow alloc_client to take struct device
Hiroshi DOYU [Mon, 9 Jul 2012 08:24:57 +0000]
ARM: tegra: iovmm: Allow alloc_client to take struct device

Allow tegra_iovmm_alloc_client() to take struct device * instead of
const char *name w/ __tegra_iovmm_alloc_client(). This is necessary to
support IOVMM and IOMMU simultaneously.

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

7 years agoiommu/tegra: smmu: move tegra_smmu_init in core_init
Hiroshi DOYU [Tue, 28 Feb 2012 11:53:11 +0000]
iommu/tegra: smmu: move tegra_smmu_init in core_init

Move tegra_smmu_init in core_init. IOMMU should be available at early
stage of system booting.

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

7 years agoiommu/tegra: smmu: Enable all SWGRP by default
Hiroshi DOYU [Tue, 28 Feb 2012 13:33:17 +0000]
iommu/tegra: smmu: Enable all SWGRP by default

Revisited later with new conf passed from DT.

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

7 years agoARM: tegra: iomap: Introduce TEGRA_IOMMU_{BASE,SIZE} for SMMU/GART
Vandana Salve [Tue, 13 Mar 2012 08:41:41 +0000]
ARM: tegra: iomap: Introduce TEGRA_IOMMU_{BASE,SIZE} for SMMU/GART

Replace TEGRA_{SMMU,GART}_{BASE,SIZE} with TEGRA_IOMMU_{BASE,SIZE} to
deal with SMMU/GART in unified manner.

This is necessary for DMA mapping API to pass the appropriate IOMMU
address for SMMU and GART in the same code in nvmap.

[Hiroshi Doyu: Squash nvmap parts into "nvmap: API conversion" patch.]

Change-Id: I75429dd56554f880f144c375d2c20e8e8948ceee
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/114212
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

7 years agoarm: tegra: p1852: Add IOMMU_SMMU support
Hiroshi DOYU [Fri, 6 Jul 2012 07:24:56 +0000]
arm: tegra: p1852: Add IOMMU_SMMU support

Migrating from IOVMM_SMMU to IOMMU_SMMU.

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

7 years agoARM: tegra: Remove duplicate clock inits
Sai Charan Gurrappadi [Thu, 5 Jul 2012 17:59:01 +0000]
ARM: tegra: Remove duplicate clock inits

Change-Id: I80c384d1aa4b1e45a4542acbde6b904f4a014aff
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/113679
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agocpuquiet: Account for the corner case frequency when setting state
Sai Charan Gurrappadi [Thu, 5 Jul 2012 17:47:23 +0000]
cpuquiet: Account for the corner case frequency when setting state

Now consider frequency greater than or equal to idle_top_freq as UP

Change-Id: I1332d46d1e42a00b3b31897b158eaf4ccfbaf8f5
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/113678
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

7 years agosched: unthrottle rt runqueues in __disable_runtime()
Peter Boonstoppel [Thu, 17 May 2012 22:15:43 +0000]
sched: unthrottle rt runqueues in __disable_runtime()

migrate_tasks() uses _pick_next_task_rt() to get tasks from the
real-time runqueues to be migrated. When rt_rq is throttled
_pick_next_task_rt() won't return anything, in which case
migrate_tasks() can't move all threads over and gets stuck in an
infinite loop.

Instead unthrottle rt runqueues before migrating tasks.

Bug 976709

Change-Id: Ie3696702abc560fe8ffa7d2fb5dc5d54d532cc0d
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
(cherry picked from commit 4d18ba5765c206bf9f37634f532d97dabd507a58)
Reviewed-on: http://git-master/r/103417
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agodrivers: misc: fixed therm estimator bug
Joshua Primero [Wed, 4 Jul 2012 02:39:13 +0000]
drivers: misc: fixed therm estimator bug

Fixed hi and lo limit bug in thermal estimator driver.

bug 1007726

Change-Id: I2be90ca7d875dbed34004b83f070fb5cbd8bc467
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/113564
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoARM: tegra: thermal: fixed some skin thermal bugs
Joshua Primero [Wed, 4 Jul 2012 02:37:55 +0000]
ARM: tegra: thermal: fixed some skin thermal bugs

Fixed bug where skin cooling device is being bound to nct
device instead of skin thermal device.

bug 1007726

Change-Id: Ia6316735da8895fd4f4c20c0a76cd6796dafdf9b
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/113563
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoPM: move initcall_debug message in syscore_resume
Daehyoung Ko [Wed, 13 Jun 2012 00:31:35 +0000]
PM: move initcall_debug message in syscore_resume

debug uart driver needs to be resumed before calling printk
so move debug message after finishing resume

bug 992588

Change-Id: Ia8991a4b7be7a4e2a765c8e6b494fd906b38b98c
Signed-off-by: Daehyoung Ko <dko@nvidia.com>
Reviewed-on: http://git-master/r/108435
(cherry picked from commit 75e7ef273d52b40d5d662541043e7eebc74ee24e)
Reviewed-on: http://git-master/r/110433
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: cardhu: disable VBUS wake
Bitan Biswas [Tue, 29 May 2012 16:50:49 +0000]
ARM: tegra: cardhu: disable VBUS wake

Disabled USB1 VBUS wake up on board revisions prior to E1291-A03 and
E1198-A02. We see repeated LP0 wakeups if the wake source is enabled.

bug 980993

Change-Id: I080696924aaea06f973392fe7682fecc7574bf02
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/103627
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agousb: otg: tegra: wake enabled
Bitan Biswas [Tue, 29 May 2012 16:51:55 +0000]
usb: otg: tegra: wake enabled

Wake sources usb VBUS or ID detect enabled

bug 980993
bug 936982

Change-Id: Iea36d308c1a118abdb7815212d749bd058d0054f
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/103141
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: tegra: support multiple wake sources with same irq
Bitan Biswas [Tue, 29 May 2012 16:49:09 +0000]
ARM: tegra: support multiple wake sources with same irq

Earlier implementation only allowed single wake source
for a particular irq in wake table. Changed implementation
to support multiple wake sources ==> single irq mapping.

bug 980993

Change-Id: Iacb00487531129ef19c53128824aba802e80350e
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/103140
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agocrypto: tegra-se: Enable interrupts after clock enable
Victor(Weiguo) Pan [Mon, 2 Jul 2012 22:53:08 +0000]
crypto: tegra-se: Enable interrupts after clock enable

Because SE interrupts could be enabled in bootloader, if it's not
cleared before jumping into kernel, it continues to assert the
interrupt line to interrupt controller. When SE interrupts is
enabled in kernel, to access SE registers in IST without clock
enabled hung the CPU. To fix this issue, interrupt enabling is
moved after clock is enabled.

bug 1010334

Change-Id: I1b909efce2c9d92c3112039fc217f7c1360f9bbb
Reviewed-on: http://git-master/r/113073
(cherry picked from commit b06e6662f738ad01a3b2b6803db654abaa03385e)

Signed-off-by: Victor(Weiguo) Pan <wpan@nvidia.com>
Change-Id: Ide4b0295c781e0bba7aa071616e3e6160e44ee76
Reviewed-on: http://git-master/r/114064
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: t30: Add syncpt/epp in ISP ch
Songhee Baek [Fri, 6 Jul 2012 18:26:40 +0000]
video: tegra: host: t30: Add syncpt/epp in ISP ch

This change is for programming VI and EPP through ISP channel
to support RGB input and dual video capturing.

1. Added syncpt in the ISP channel to submit the channel.
2. Added epp clock to use VI2EPP for RGB capture.

Note: To use this channel, EPP should be free from 2D.

Bug 988546

Change-Id: I17fe278c9325aac2ea1e29cbaf50c8a4499d8551
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/113965
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agovideo: tegra: host: resolve compilation time warnings
Sanjay Singh Rawat [Fri, 6 Jul 2012 12:38:12 +0000]
video: tegra: host: resolve compilation time warnings

- Handled warning of, possible use of uninitialized variable and unused
function.

bug 949219

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

7 years agovideo: tegra: resolve compilation time warnings
Sanjay Singh Rawat [Fri, 6 Jul 2012 09:53:16 +0000]
video: tegra: resolve compilation time warnings

- Handled warning of unused label.

bug 949219

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

7 years agovideo: tegra: dc: vblank worker
Mark Zhang [Mon, 2 Jul 2012 05:05:25 +0000]
video: tegra: dc: vblank worker

Freeze vblank worker while suspending by adding the work into
system freezewq. This eliminates a kernel panic caused by nvsd
reading brightness valuesfrom display while clock gated.

Bug 1006180
Bug 1003969
Bug 1003730

Change-Id: Ice9bfb18e5c826ae063c2b901421b1047ff9d2f0
Signed-off-by: Mark Zhang <markz@nvidia.com>
Reviewed-on: http://git-master/r/112880
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agovideo: tegra: dtv: Fixed clk disabling issue
Adam Jiang [Thu, 14 Jun 2012 02:29:23 +0000]
video: tegra: dtv: Fixed clk disabling issue

APB clock for dtv logic block should be recorded by dtv_ctx->clk
hanlder. Otherwise, kernel will trigger a NULL point error in suspend.

Fixed Bug 1011149

Change-Id: I5d342ab6fc8ffb71211e370d304b17d5d44eef20
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/108743
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoinput: misc: fix compile time warning
Chandler Zhang [Tue, 3 Jul 2012 03:04:43 +0000]
input: misc: fix compile time warning

Add init value for rc in lightsensor_ioctl() to fix compile time
warning.

Change-Id: Ifcb953873b5bc861303d9d32b1906a69b2c8311f
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/113121
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agousb: otg: remove otg callback
Chandler Zhang [Thu, 21 Jun 2012 03:37:22 +0000]
usb: otg: remove otg callback

Previously the callback was added to control USB VBUS.
The standard way is to use regulator.

Bug 997805

Change-Id: I88b15befaf4e162478da19ead50695978b2c5f4b
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/112901
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoarm: tegra: kai: use regulator to control vbus
Chandler Zhang [Thu, 21 Jun 2012 03:32:15 +0000]
arm: tegra: kai: use regulator to control vbus

Use regulator instead of USB OTG callback to control USB VBUS.

Bug 997805

Change-Id: Icd2869f51e312c52b272a6e32fa8c7ab8763a5ac
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/112900
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agopower: smb349: remove otg callback
Chandler Zhang [Mon, 2 Jul 2012 06:41:01 +0000]
power: smb349: remove otg callback

The callback in otg driver is not a standard way of controlling
USB VBUS. Remove the callback and use regulator to control.

Bug 997805

Change-Id: I6d7fd01f9346e037515901ac6fe6d349a140d13e
Signed-off-by: Chander Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/112896
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoARM: tegra: fiq_dbg: Enable FIQ serial debug
Kamal Kannan Balagopalan [Sat, 23 Jun 2012 17:11:13 +0000]
ARM: tegra: fiq_dbg: Enable FIQ serial debug

Add platform callback to initialize and enable FIQ serial
debugger

Bug 970018

Change-Id: Icdf571f7698e10de661a0ce94694de9fb9c70271
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/110955
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: common: fiq_dbg: Spew regs and stack at entry
Kamal Kannan Balagopalan [Sat, 23 Jun 2012 07:33:30 +0000]
ARM: common: fiq_dbg: Spew regs and stack at entry

Dump all registers and callstack immediately after entering
the FIQ handler.

Bug 970018

Change-Id: Iab48f5a942b45015a9def0839cf3ef721dda8a5c
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/110954
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Steve Kuo <stevek@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agowatchdog: tegra: Add support for FIQ debugger
Kamal Kannan Balagopalan [Sat, 23 Jun 2012 07:24:33 +0000]
watchdog: tegra: Add support for FIQ debugger

Enable FIQ on 2nd watchdog expiry to make use of FIQ debugger. FIQ
debugger can be used to dump call-stack and registers when WDT logic
triggers FIQ on 2nd timeout.

Bug 970018

Change-Id: Ia2e7f8b136499974ff51f2f0c2ef55704dfe37e1
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/110953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Steve Kuo <stevek@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agoarm: tegra3: usb_phy: Fix warning message for lp1 resume
Preetham Chandru [Wed, 20 Jun 2012 10:25:21 +0000]
arm: tegra3: usb_phy: Fix warning message for lp1 resume

When the system resumes from lp1 for usb wake event we are seeing
the below warning message:
usb_phy_bringup_host_controller: timeout waiting for PORT_SUSPEND
The above warning message are seen only for lp1 resume and not for
lp0 resume.
This is happening only for lp1 resume because in
usb_phy_bringup_host_controller(), the port is suspended only
if we are not resuming from remote wakeup, in
case of lp0 remote_wake flag is set to true but not in case of lp1.
This is because in lp1, pmc is not responsible for waking the
system but it's the flow controller and hence UTMIP_WALK_PTR_VAL(inst)
will return 0 due to this remote wakeup flag was getting reset to
false.

Bug 985396
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I67fcf21d77cbc627315164b6e1c4f27b0b9ae2c3
Reviewed-on: http://git-master/r/110064
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra: wdt: Remove legacy WDT device support
Kamal Kannan Balagopalan [Sat, 23 Jun 2012 06:19:28 +0000]
ARM: tegra: wdt: Remove legacy WDT device support

Tegra3 adds new CPU watchdog timers. Remove the obsolete legacy
WDT support for Tegra3

Bug 857748

Change-Id: I82478e1b43f22f39c1b8e6e66ae5299ffd079d1b
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/109908
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra: wdt: Replace legacy WDT with CPU WDTs
Kamal Kannan Balagopalan [Wed, 20 Jun 2012 00:35:19 +0000]
ARM: tegra: wdt: Replace legacy WDT with CPU WDTs

Tegra3 adds new CPU watchdog timers. Replace legacy WDT with
CPU WDTs in all Tegra3 platforms.

Bug 857748

Change-Id: I5bd30687003e6b2ebf09916fbd626d82f0bc0b76
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/109907
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoarm: tegra: fix power down sequence fps/ame
Chandler Zhang [Fri, 15 Jun 2012 07:57:18 +0000]
arm: tegra: fix power down sequence fps/ame

Fix power down sequence to align with POR. FPS, GPIO and
AME part.

LDO4 tracking is not disabled.

Affcted regs:

FPS_SD3
FPS_SD2
FPS_SD1
FPS_L4
FPS_L3
AME_GPIO
GPIO3
GPIO4
CNFG1_L4
CNFG1SD0
CNFG1SD1

Bug 1001267

Change-Id: I8db160bf00cbe8f215c6e1b762d994d26d82809f
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/109134
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoARM: tegra: wdt: Add support for Tegra3 CPU WDTs
Kamal Kannan Balagopalan [Tue, 12 Jun 2012 21:38:43 +0000]
ARM: tegra: wdt: Add support for Tegra3 CPU WDTs

Tegra3 adds new CPU watchdog timers. Add device support for the
CPU WDTs.

Bug 857748

Change-Id: I0f99c37fed89879d39667b734654c659fe631aaf
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/108379
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agowatchdog: tegra: Revamp Tegra watchdog support
Kamal Kannan Balagopalan [Tue, 1 May 2012 00:52:51 +0000]
watchdog: tegra: Revamp Tegra watchdog support

 - Make all CPU watchdogs accessible except WDT0
 - CPU WDT0 is reserved for suspend/resume WDT recovery
 - Fix WDT enable sequence on watchdog driver probe

Bug 857748

Change-Id: Ia2d07856c32230ab8c9195fee151af09bce3ddde
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/99780
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Steve Kuo <stevek@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agohwmon: tsensor: fix system hang in 0C.
Linqiang Pu [Wed, 13 Jun 2012 02:09:10 +0000]
hwmon: tsensor: fix system hang in 0C.

Changed the low temp to 0C since 20C is very easy to trigger thermal
alert under -15C to 15C environment temperature. And the thermal alert
will run into endless alert from tsensor_work_func.

Also revised suspend and resume routine to cancel the work when suspending
and disable/enable irq.

Bug 999175

Signed-off-by: Linqiang Pu <dpu@nvidia.com>
(cherry picked from commit 6a909bfa690991438be298d4933946a92e4929c4)

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

7 years agoARM: tegra: thermal framework notifier
Bitan Biswas [Thu, 14 Jun 2012 17:32:18 +0000]
ARM: tegra: thermal framework notifier

Tegra thermal framework notifier is used to bypass
driver callbacks after suspend is initiated.

bug 999175

Signed-off-by: Linqiang Pu <dpu@nvidia.com>
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit de6b3b3e4b05edf05ceeda820a8aac548a83d410)

Change-Id: I93bee5d6a4e2738db0d4db821035900b64a850be
Reviewed-on: http://git-master/r/108924
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agohwmon: tegra: improve tsensor accuracy
Bitan Biswas [Fri, 4 May 2012 13:50:57 +0000]
hwmon: tegra: improve tsensor accuracy

tsensor driver uses fixed point approximations.
Improved accuracy of tsensor temperature reading
- adding support to handle negative temperature to counter
  conversions and vice-versa

bug 1001632
bug 999175

Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit 86ae0bdc3fbd34a5a1d0e08f7721ed527ddf5408)

Change-Id: I5f6df85611d502a6dda1186234078fe973d7ca75
Reviewed-on: http://git-master/r/100576
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoarm: tegra: kai: cleanup the code
Kerwin Wan [Wed, 4 Jul 2012 08:34:02 +0000]
arm: tegra: kai: cleanup the code

kai doesn't use spi4 at all so clear the relevant code.

Change-Id: I6d04a880d3f4a793bd32181453897c0f6dd372cf
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/113470
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-by: Hao Tang <htang@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

7 years agoARM: tegra: enterprise: OFF rails in sleep state
Laxman Dewangan [Tue, 26 Jun 2012 08:37:41 +0000]
ARM: tegra: enterprise: OFF rails in sleep state

OFF the rails when the system is in sleep state. The rails are
linked withe xternal req PREQ1 which is the core_pwr_req line.
Followng rails are attached to PREQ1:

SMPS2, SMPS4, LDOUSB will be attached to PREQ1
LDOLN, LDO7, LDO6, LDO4, LDO1
CLK32KG, SYSEN, REGEN2, REGEN1 will be attached to PREQ1

bug 979143

Change-Id: I20973faa78ef61fcd03cbe34445f94c36e280544

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I2ba5ca2aa1732222628d68f61d77acff88092d81
Reviewed-on: http://git-master/r/111185
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

7 years agoARM: tegra: whistler: get rid of gpio enable/disable calls
Sanjay Singh Rawat [Tue, 3 Jul 2012 04:03:06 +0000]
ARM: tegra: whistler: get rid of gpio enable/disable calls

Gpio direction setting and freeing functions will do the needful now.

Bug 984440

Change-Id: I32b1b0d67d2ebe1aa8b766b633fe675543714812
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/104938
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

7 years agoARM: tegra: pm269: enable vibrator rail
Laxman Dewangan [Thu, 5 Jul 2012 10:31:39 +0000]
ARM: tegra: pm269: enable vibrator rail

Enable vibrator rail in order to support the
vibrator.

bug 1005183

Change-Id: I7133b259df590ad9dd376693b2f3224eb4431ec4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/113635
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agocpufreq: mid-range frequency bias
satya popuri [Fri, 22 Jun 2012 16:38:26 +0000]
cpufreq: mid-range frequency bias

Restrict go_maxspeed_load and max_boost at mid-range frequencies.

Change-Id: I9e3c59bbe708b428e12ce4dbef2144be09751d5a
Signed-off-by: satya popuri <spopuri@nvidia.com>
Reviewed-on: http://git-master/r/111754
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Karthikeyan Samynathan <ksamynathan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

7 years agocrypto: tegra-aes: synchronize dma buffer access
Sanjay Singh Rawat [Wed, 27 Jun 2012 12:48:47 +0000]
crypto: tegra-aes: synchronize dma buffer access

- Using the dma sync apis to keep coherency.

bug 984039

Change-Id: I9e389d2679f05c519ae4a51462247b7efeae01ca
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/111612
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra3: clock: Add EPP clock for ISP channel
Songhee Baek [Tue, 12 Jun 2012 22:50:27 +0000]
ARM: tegra3: clock: Add EPP clock for ISP channel

Adding EPP clock is for using EPP to support rgb capture
in ISP channel.

Bug 988546

Change-Id: I7d02cccfd228a235a7eadd67ae3304757ce90360
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/108413
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agovideo: tegra: dc: Enable platform data flag
Shashank Sharma [Wed, 27 Jun 2012 14:36:12 +0000]
video: tegra: dc: Enable platform data flag

Enable flag in HDMI pdata, to enable HDMI during bootup.

Change-Id: Id49f9ffe5641c1276a311ab2eee36c478ba2973e
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/111628
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agomisc: tegra-cec: Initial CEC Driver for T3x platform
Ankit Pashiney [Wed, 20 Jun 2012 03:10:11 +0000]
misc: tegra-cec: Initial CEC Driver for T3x platform

READ API:
read API ignores count and will always return 16 bit data.
read API expects user to supply it with min of 16 bits data
it returns CEC packet in following format
bit 0-7: data
bit 8: EOM
bit 9: ACK

WRITE API:
write API ignores count and will always accept 32 bit data.
write API expects user to supply it with min of 32 bits data
it accepts CEC packet supllied in following format
bit 0-7: data
bit 8: EOM
bit 12: Address mode, 0 = Direct, 1 = Broadcast
bit 16: Generate Start bit, 0 = Disable, 1 = Enable
bit 17: Retry frame, 0 = Disable, 1 = Enable

Logical address is set to 4, as of now there is no mechanism to change this
address from userspace.

Driver is disabled by default in Kconfig

Change-Id: Ia3835cec0bb717e63dabca5c5fcb1236847bf492
Signed-off-by: Ankit Pashiney <apashiney@nvidia.com>
Reviewed-on: http://git-master/r/105520
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoarm: tegra: Cardhu: add support for CEC
Ankit Pashiney [Wed, 20 Jun 2012 03:08:50 +0000]
arm: tegra: Cardhu: add support for CEC

Added board and pinmux support for CEC

bug 894195

Change-Id: I858908bf090dae3e2043637ed22c53db4892c336
Signed-off-by: Ankit Pashiney <apashiney@nvidia.com>
Reviewed-on: http://git-master/r/105519
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoARM: tegra: clock: Add CEC clock
Ankit Pashiney [Wed, 20 Jun 2012 03:06:43 +0000]
ARM: tegra: clock: Add CEC clock

Added CEC clock for tegra3

bug 894195

Change-Id: I7882371f3ab0f03454d372a7240acd9bd78c2c9c
Signed-off-by: Ankit Pashiney <apashiney@nvidia.com>
Reviewed-on: http://git-master/r/105518
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoarm: tegra: cec: Add IO support for tegra3 cec
Ankit Pashiney [Wed, 20 Jun 2012 03:00:40 +0000]
arm: tegra: cec: Add IO support for tegra3 cec

Add IO and device support for tegra 3 cec block

bug 894195

Change-Id: Icc68b2f900002cf14f48609d4676e7b3e091e948
Signed-off-by: Ankit Pashiney <apashiney@nvidia.com>
Reviewed-on: http://git-master/r/105517
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

7 years agoARM: Tegra: p1852: changed pinmux settings
Mohit Kataria [Fri, 18 May 2012 11:58:04 +0000]
ARM: Tegra: p1852: changed pinmux settings

Pinmux updated as per the latest pinmux sheet.

Bug 978870

Change-Id: I122439df3d043216f1c8c2c1a0a3c88e74d760ee
Signed-off-by: Mohit Kataria <mkataria@nvidia.com>
Reviewed-on: http://git-master/r/111573
(cherry picked from commit 4e65d7d21b5ac5b25e3563ce6a7eb50cf1d8128d)
Reviewed-on: http://git-master/r/103340
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

7 years agoARM: Tegra: cardhu: Change pin for LVDS_SHTDN_N on PM313
Graziano Misuraca [Wed, 6 Jun 2012 23:22:51 +0000]
ARM: Tegra: cardhu: Change pin for LVDS_SHTDN_N on PM313

Change pin used for LVDS_SHTDN_N from GMI_AD9 to VI_D4

Bug 958167

Change-Id: Ie36bbed84746aeea1e84acdbd53d905a8b2bbf20
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/#change,108612
Reviewed-on: http://git-master/r/113061
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

7 years agoarm: config: tegra2: Enable CONFIG_THERMAL
Preetham Chandru [Wed, 27 Jun 2012 08:58:08 +0000]
arm: config: tegra2: Enable CONFIG_THERMAL

Enable CONFIG_THERMAL option so that Linux Thermal Sysfs
framework and Tegra Thermal Throttling are enabled.

Bug 1002374
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>

Change-Id: Ied33df234c9484abbb232036e6fca44fc6d308a1
Reviewed-on: http://git-master/r/111516
Tested-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Wei Ni <wni@nvidia.com>
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

7 years agoarm: tegra: thermal: nct1008 support for ventana
Joshua Primero [Mon, 23 Jan 2012 23:08:41 +0000]
arm: tegra: thermal: nct1008 support for ventana

Add nct1008 thermal device support for ventana boards.

Bug 1002374

Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I6d6632c884f36c03fba5b65da24dd0328dd68e96
Reviewed-on: http://git-master/r/111467
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Wei Ni <wni@nvidia.com>

7 years agousb: host: tegra: code clean up
Venu Byravarasu [Fri, 1 Jun 2012 05:45:42 +0000]
usb: host: tegra: code clean up

Addressed below items with this patch:
1. Using devm_kzalloc in place of kzalloc.
2. Correcting platform_get_irq return value check

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

7 years agoARM: tegra: usb: turn off power during suspend
Rohan Somvanshi [Wed, 4 Jul 2012 10:43:10 +0000]
ARM: tegra: usb: turn off power during suspend

Turn off regulators along with clocks during suspend

Bug 991262

Reviewed-on: http://git-master/r/108820
(cherry picked from commit 41ae7ac21a2c08da0e4312b8395b380a704fa16c)

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

7 years agoARM: tegra: p1852_defconfig: enable NON_ALIASED_COHERENT_MEM
Manoj Chourasia [Tue, 26 Jun 2012 07:45:47 +0000]
ARM: tegra: p1852_defconfig: enable NON_ALIASED_COHERENT_MEM

Enabling CONFIG_NON_ALIASED_COHERENT_MEM in p1852 defconfig
to avoid coherent memmory aliasing.

also enabling ARM_ERRATA_742230

bug 965047

Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/111174
(cherry picked from commit 086cfc1330df0a158e865d39af48d71d15fd5730)

Change-Id: I410bc14e0c062d14bbfc4b7cfa722a20465010de
Reviewed-on: http://git-master/r/113268
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Manoj Chourasia <mchourasia@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agoARM: tegra: p1852: defconfig: disable erratum 727915.
Manoj Chourasia [Tue, 26 Jun 2012 07:27:28 +0000]
ARM: tegra: p1852: defconfig: disable erratum 727915.

PL310_ERRATA_727915 holds for PL310 revision r2p0 which
is there in T20. T30 has PL310 r3p1.

bug 820324

Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/111169
(cherry picked from commit 1e29090d6d700f6afb39828e93605d5742847271)

Change-Id: I01516eedbb6bfaec3e3b619d47e30ff54dfb2824
Reviewed-on: http://git-master/r/113267
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Manoj Chourasia <mchourasia@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

7 years agomisc: tegra-baseband: treat compilation warning as error
Sanjay Singh Rawat [Mon, 2 Jul 2012 07:20:59 +0000]
misc: tegra-baseband: treat compilation warning as error

- Handling warning of wrong return type from function.

bug 949219

Change-Id: I49e74de9314ee4934a5a58a8e406f9bade278aaf
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/112906
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

7 years agousb: gadget: tegra_udc: include pm_qos header file
Rakesh Bodla [Tue, 19 Jun 2012 04:58:43 +0000]
usb: gadget: tegra_udc: include pm_qos header file

Include pm_qos_params header file to avail pm_qos
apis.

Bug 923594

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

7 years agoARM: tegra: usb: Add config option to increase cpu freq
Rakesh Bodla [Wed, 4 Jul 2012 05:22:56 +0000]
ARM: tegra: usb: Add config option to increase cpu freq

Adding an option to increase the cpu frequency to
improve usb gadget transfer rate performance.

Bug 923594

Reviewed-on: http://git-master/r/80050
(cherry picked from commit d67b47bbb8322d65f745dcb2226af3f3d582d69a)

Conflicts:

arch/arm/mach-tegra/Kconfig

Change-Id: I4b23fc9948aec37ec58891205ec7dd02f0597af2
Reviewed-on: http://git-master/r/113437
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

7 years agoarm: tegra: usb: remove unnecessary code
Venu Byravarasu [Mon, 2 Jul 2012 12:02:53 +0000]
arm: tegra: usb: remove unnecessary code

As Wake alarm and Walk PTR are being set in
two places for UTMI, removing it from one place.

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

7 years agoARM: tegra: cardhu: enable clock gating features for E1506 panel
Rakesh Iyer [Mon, 2 Jul 2012 19:09:04 +0000]
ARM: tegra: cardhu: enable clock gating features for E1506 panel

Enable clock gating features for 720p DSI panel on the E1506.

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