6 years agoarm: dt: tegra: fix length of pad control and mux registers
Pritesh Raithatha [Fri, 26 Oct 2012 08:18:54 +0000]
arm: dt: tegra: fix length of pad control and mux registers

Bug 1003210

Change-Id: I6c480f48e555ebf87352b41545ff905f60ebc79b
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/147878
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

6 years agoRevert "mac80211&nl80211: support to abort a scan request on tx"
Nitin Bindal [Thu, 25 Oct 2012 12:35:01 +0000]
Revert "mac80211&nl80211: support to abort a scan request on tx"

This reverts commit 4ffe2cabbc00d9d12a3884178e3f85aa9f66804c.

This revert fixes p2p connect issue on android.

Bug 1161910
Bug 1059518

Change-Id: I2d10b2cf57fab88ccdfd3d2eca6cdeb36ef9f544
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/147584
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Tested-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: dc: fix shift clk divider
Animesh Kishore [Fri, 19 Oct 2012 14:47:05 +0000]
video: tegra: dc: fix shift clk divider

Real shift clk divider may be fraction.
Add support for the same.

Bug 1012298

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

6 years agommc: core: Fix print option of UHS mode of SDIO
rrajk [Thu, 25 Oct 2012 08:33:34 +0000]
mmc: core: Fix print option of UHS mode of SDIO

Print correct UHS mode of SDIO card being used.
Bug 1162770

Change-Id: Ice721ea54fbbd57b4dc97961692bae7656b3aa59
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/147485
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agopluto: calibrated backlight and PRISM for LG 5"
Mitch Luban [Fri, 21 Sep 2012 08:15:04 +0000]
pluto: calibrated backlight and PRISM for LG 5"

PRISM is enabled and includes backlight adjustments
for LG 5" panel to ensure a linear backlight ramp up.

Bug 1047558
Bug 1027942

Reviewed-on: http://git-master/r/142749
(cherry picked from commit 4064265fc7569fdc4b71e0847070e982bc78d5c4)

Change-Id: I5552635b93dc60810a6c4e9d07d55dfa8384984f
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/147349
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agousb: ehci: tegra: Add phy pre_suspend callback.
Raj Jayaraman [Thu, 4 Oct 2012 22:33:45 +0000]
usb: ehci: tegra: Add phy pre_suspend callback.

Bug 1054808

Change-Id: I1de98ced6e8e30794907797bba05ad13190597a9
Signed-off-by: Raj Jayaraman <rjayaraman@nvidia.com>
Reviewed-on: http://git-master/r/147305
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agommc: core: Disable powered resume in power restore
RAJKUMAR [Mon, 15 Oct 2012 09:32:51 +0000]
mmc: core: Disable powered resume in power restore

To detect SDIO v3.0 cards, using default enumeration
in power restore instead of powered resume.

Bug 1162770

Reviewed-on: http://git-master/r/144513
(cherry picked from commit 2702c4ded3ec95c74f122a451b0815c676c24de3)

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

6 years agocrypto: tegra-se: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:29:54 +0000]
crypto: tegra-se: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
clk_prepare_enable and clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I697d80e857a040e97ea56adee104ae990419c5b6
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146796
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra3: dvfs: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 06:39:22 +0000]
ARM: tegra3: dvfs: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I119d635ed8ce041359fdc9ab6f7c86743256b2cb
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146780
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoARM: tegra3: actmon: moving to clk prepre APIs
Sivaram Nair [Tue, 23 Oct 2012 06:35:52 +0000]
ARM: tegra3: actmon: moving to clk prepre APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: Ia0c8072f673a924ca39b878e8f63475cbef5dcbf
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146779
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoARM: tegra: timer: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 06:31:45 +0000]
ARM: tegra: timer: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I410e8cf8cfbf6622dc1076b22598b7fb55e4f63e
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146778
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoARM: tegra: usb: disable id and vbus wake source
Krishna Yarlagadda [Fri, 28 Sep 2012 11:15:39 +0000]
ARM: tegra: usb: disable id and vbus wake source

Disabling usb id and vbus wake sources

Bug 1056435

Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/139658
(cherry picked from commit e6a6bee5f2515f32045adf5f10cb62343f72babd)

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

6 years agovideo: tegra: host: remove dummy devices for display & dsi
Mayuresh Kulkarni [Wed, 17 Oct 2012 08:39:55 +0000]
video: tegra: host: remove dummy devices for display & dsi

- the real display and dsi devices are owned by tegra-dc
- tegra-dc always access host1x via its parent
- hence there is no need to have dummy devices for display
& dsi in host1x code
- this commit removes these redundant dummy devices

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

6 years agortc: tps65910: Added rtc time init support
Sumit Sharma [Tue, 16 Oct 2012 04:45:38 +0000]
rtc: tps65910: Added rtc time init support

Added support for initializing rtc time
Fixed IRQ numbers in header file
Changed module name fro rtc-tps65910 to tps65910-rtc

Bug 1055083

Change-Id: I067a52ef21e58eb03331d25417062f53e45b082d
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/144765
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopinctrl: tegra: add suspend-resume support
Pritesh Raithatha [Tue, 16 Oct 2012 10:03:05 +0000]
pinctrl: tegra: add suspend-resume support

Bug 1003210

Change-Id: If6dff8985dfd3c351e6ed24f194efb247e0c63d6
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/144034
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra11: remove wrong mask from cpu_iddq
Gaurav Batra [Tue, 30 Oct 2012 01:10:36 +0000]
arm: tegra11: remove wrong mask from cpu_iddq

Bug 1046108

Change-Id: Ic8ea48dbc60448b76e11b9b0426a717296da825f
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/159926
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: Tegra: XUSB: Remove stubs for xusb_init calls
Krishna Monian [Tue, 30 Oct 2012 02:32:16 +0000]
ARM: Tegra: XUSB: Remove stubs for xusb_init calls

- Remove xusb stub calls
- Revert 442d96a0db540dbc72ed0051e472fb821c23b758.

Change-Id: Ief19f69f8cfaf80e342aeddc222d98c66fe11ed8
Signed-off-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-on: http://git-master/r/159723
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: clock: Clip CPU boot rate to cpufreq table
Alex Frid [Fri, 26 Oct 2012 02:19:25 +0000]
ARM: tegra: clock: Clip CPU boot rate to cpufreq table

Clipped CPU boot rate to cpufreq table during cpufreq driver
initialization. This would help avoid futile attempts by cpufreq
governor to adjust the rate while dvfs regulators are not ready.

Bug 1060647

Change-Id: I8984c0c53798413887f866f03704b9097f40a361
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/147792
(cherry picked from commit d9325e0bd3cdd1b8d8e4989a0018718dfddb84d0)
Reviewed-on: http://git-master/r/159644
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: dvfs: Bound CL-DVFS safe voltage setting
Alex Frid [Wed, 24 Oct 2012 04:37:02 +0000]
ARM: tegra11: dvfs: Bound CL-DVFS safe voltage setting

Removed global CL-DVFS non-zero safe output floor imposed on voltage
calculations by commit af5ba3026ce0d4a6908e7006cab99f2edcabf920.

Instead made sure that safe voltage value when switching from open
to closed loop is at least one step above minimum and one step below
maximum (required to provide initial room for closed loop regulation).

Bug 1157439

Change-Id: I5739d0f62ada92d24b0f5230f4cd4368062f0c87
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/147352
(cherry picked from commit 550be6c793f522bb996e311c7da3ff92cf0f88ac)
Reviewed-on: http://git-master/r/159643
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: dvfs: Update rail statistic
Alex Frid [Sat, 20 Oct 2012 06:04:29 +0000]
ARM: tegra: dvfs: Update rail statistic

- Replaced fixed rail bins with per-rail-per-platform bins (by
default use backward compatible 12.5mV bin)
- On Tegra11 set bins for all rails on cvb alignment boundary (10mV)
- Increased maximum number of bins to 50
- Fixed rail voltage report in dfll mode: compensate 1mV adjustment
used in this mode to force voltage update

Change-Id: I0b7fb49900656de33bc77bb8267dbde713a2441f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/146113
Reviewed-on: http://git-master/r/159642
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: Tegra: Dalmore: Support LG 5" Panel
Matt Wagner [Fri, 12 Oct 2012 21:40:58 +0000]
ARM: Tegra: Dalmore: Support LG 5" Panel

Split LG panel out to support it based on Board ID

Bug 1066897

Change-Id: I8c1ef6569ea2e9b9ac0e229594dce1309800a918
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/147755
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: usb: bind vbus regulator with device
Krishna Yarlagadda [Wed, 24 Oct 2012 08:14:02 +0000]
ARM: tegra: usb: bind vbus regulator with device

passing tegra-ehci.0 as the device for vbus supply
Bug 1055918

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

6 years agoarm: tegra: pluto: pass device to regulator_enable
Gaurav Batra [Tue, 30 Oct 2012 00:38:29 +0000]
arm: tegra: pluto: pass device to regulator_enable

During conflict resolutions at the time of integration,
a part of the change that took care of this problem was
over-written by another change with a different base.
Which resulted in device argument to be missing from
a few regulator calls. This patch, fixes that issue.

Bug 1166698

Change-Id: I6584968938dd343452c4660ea4e851b3523ef3ff
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/159924
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: clock: Rename shared bus operations.
Alex Frid [Tue, 30 Oct 2012 04:12:49 +0000]
ARM: tegra: clock: Rename shared bus operations.

Renamed shared_bus operations that are actually applied to bus
user clock (rather than bus clock itself) to shared_bus_user
operations.

Change-Id: Ic73db770264f4890a2c93e54dff16fe6c97d2c3e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/159748
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jin Qian <jqian@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: Tegra: Dalmore: Activate Hall Effect Sensor
Matt Wagner [Wed, 10 Oct 2012 00:17:26 +0000]
ARM: Tegra: Dalmore: Activate Hall Effect Sensor

Set up gpio-key wakeup with the Hall Effect sensor to be SW_LID
to enable lid open and close logic

Bug 1156171

Reviewed-on: http://git-master/r/142805
(cherry picked from commit d6875d355ada98bcaf1785bd6e6f9afcc6890346)

Change-Id: I546302f0768d5ca20b96eae82d90b4cf27a8fa31
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/159670
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: clock: Mark BW users in the clock tree
Alex Frid [Sat, 27 Oct 2012 07:46:38 +0000]
ARM: tegra: clock: Mark BW users in the clock tree

Marked bandwidth shared users with "+" sign in the clock tree.

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

6 years agodrivers: video: tegra: dc: Expose HBR capability
Rahul Mittal [Mon, 29 Oct 2012 12:50:47 +0000]
drivers: video: tegra: dc: Expose HBR capability

Enable HBR bit in HDMI_NV_PDISP_SOR_AUDIO_SPARE0_0 register
This exposes HBR pin capability in HD-Audio codec

Bug 966764

Change-Id: I5253daf9e2864b728bf8aab1a71a2f0e4230debd
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/159550
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoasoc: tegra: Fix error in checking SMMU flag
Rahul Mittal [Mon, 29 Oct 2012 06:26:23 +0000]
asoc: tegra: Fix error in checking SMMU flag

SMMU flag check was wrong due to which DMA allocs were done using SMMU
Corrected check to disable SMMU allocations

Bug 1160332
Bug 1155696

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

6 years agoasoc: tegra: cs42l73: VSPIN dapm route with DMIC event
Rahul Mittal [Mon, 29 Oct 2012 05:54:56 +0000]
asoc: tegra: cs42l73: VSPIN dapm route with DMIC event

Enable/disable VSPIN in dapm route only with DAPM event
Default enable caused 1.3W power in LP0 as codec suspend was failing

Bug 1053365
Bug 1161544

Change-Id: I8a4ed0801249ec11da089f0cc597d8abdc6c2dbb
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/159463
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add P2454 Board Support
Matt Wagner [Fri, 5 Oct 2012 18:37:17 +0000]
ARM: Tegra: Dalmore: Add P2454 Board Support

Add support for P2454 Board

Bug 1066897
Change-Id: I67d99c474b52439eeaecb08c17b65b90a5c419fb
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/147754
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agospi: tegra11: set value of SPI FIFO depth
Kunal Agrawal [Tue, 23 Oct 2012 08:42:38 +0000]
spi: tegra11: set value of SPI FIFO depth

The value of SPI FIFO depth has been now set to
64.

Change-Id: I9c1ab1bddc4635d4ec1696f5763a5822d688ad71
Signed-off-by: Kunal Agrawal <kunala@nvidia.com>
Reviewed-on: http://git-master/r/146822
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: powergate: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:20:18 +0000]
ARM: tegra: powergate: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I9980287785eae070d5f75d4f025a202d2867deba
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146792
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: pm: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:09:37 +0000]
ARM: tegra: pm: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I24af62c507f40a8393024eda3d853fe7ed29f203
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146791
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: dma: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:06:21 +0000]
ARM: tegra: dma: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: Ia5c3de38697cfe9e55e336175eff7b5ac58b744c
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146788
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: csi: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 07:05:35 +0000]
ARM: tegra: csi: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I559cadd1c6ec4a57a1c95c3b48bd6d5687679ab0
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146787
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: power: cleanup dynamic VDD_CPU EDP capping code
Diwakar Tundlam [Fri, 26 Oct 2012 23:55:51 +0000]
arm: tegra: power: cleanup dynamic VDD_CPU EDP capping code

Refactor data structures and names in preparation for dynamic/leakage
parameters update.

Bug 1046108

Change-Id: Id7ed9b4a5aedbd8556fa1520eab93e91fd728556
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/159377
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: kernel: update __cpu_disable to use cache LoUIS maintenance API
Lorenzo Pieralisi [Fri, 7 Sep 2012 05:39:15 +0000]
ARM: kernel: update __cpu_disable to use cache LoUIS maintenance API

When a CPU is hotplugged out caches that reside in its power domain
lose their contents and so must be cleaned to the next memory level.

Currently, __cpu_disable calls flush_cache_all() that for new generation
processor like A15/A7 ends up cleaning and invalidating all cache levels
up to Level of Coherency, which includes the unified L2.

This ends up being a waste of cycles since the L2 cache contents are not
lost on power down.

This patch updates __cpu_disable to use the new LoUIS API cache operations.

Acked-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Change-Id: Ib95a626f00ff0ab8c1b974e57f62ebef92175510
Reviewed-on: http://git-master/r/147784
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: kernel: update cpu_suspend code to use cache LoUIS operations
Lorenzo Pieralisi [Fri, 7 Sep 2012 05:36:57 +0000]
ARM: kernel: update cpu_suspend code to use cache LoUIS operations

In processors like A15/A7 L2 cache is unified and integrated within the
processor cache hierarchy, so that it is not considered an outer cache
anymore. For processors like A15/A7 flush_cache_all() ends up cleaning
all cache levels up to Level of Coherency (LoC) that includes
the L2 unified cache.

When a single CPU is suspended (CPU idle) a complete L2 clean is not
required, so generic cpu_suspend code must clean the data cache using the
newly introduced cache LoUIS function.

The context and stack pointer (context pointer) are cleaned to main memory
using cache area functions that operate on MVA and guarantee that the data
is written back to main memory (perform cache cleaning up to the Point of
Coherency - PoC) so that the processor can fetch the context when the MMU
is off in the cpu_resume code path.

outer_cache management remains unchanged.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Change-Id: I305b9d3bbb2def6f32d3d08769babd6a99798194
Reviewed-on: http://git-master/r/147783
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11x: cpuidle: Stats for C1NC/C0NC/CRAIL
Bo Yan [Thu, 25 Oct 2012 23:11:04 +0000]
ARM: tegra11x: cpuidle: Stats for C1NC/C0NC/CRAIL

This patch adds stats for power gating C0NC and C1NC partitions,
it also adds stats for fast cluster rail gating.

The numbers under column CPU0 are the sum of CE0 power gating,
C0NC power gating, and rail gating. The numbers under column cpulp
are the sum of CELP power gating and C1NC power gating.

Change-Id: Ia02f78ed124652b1deac3a6e29a47aaec8fcd910
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/147745
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agotf_driver: integrate latest TL release
Hyung Taek Ryoo [Wed, 24 Oct 2012 07:22:49 +0000]
tf_driver: integrate latest TL release

V9 version for Tegra3: TF_TEGRA3_AB02.02.38127
V9 version for Tegra4: TF_TEGRA4_AC02.01e1.38186

This package is the first release of Trusted Foundations v9
It supports all the features supported by TFv8 (i.e. TF_TEGRA3_AB01.13)
1) Dynamic loading of secure services is supported
2) ARM generic and Tegra specific code are regrouped in HAL driversthat can be repostlinked
3) The fix for imprecise abort observed during Widvine session

bug 969937
bug 969981

Change-Id: I1fd0d0df21ead84fb226ba2e0a6b3cf463472a26
Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-on: http://git-master/r/147176
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agovideo: tegra: dc: power optimize DC and host1x clk
Jon Mayo [Tue, 17 Jul 2012 22:56:44 +0000]
video: tegra: dc: power optimize DC and host1x clk

Use threaded IRQ to support enabling clocks in interrupt handling.
Use io_start and io_end to hold and release host1x clock.
Disable IRQ after it is first requested to balance enable/disable.
Use disable_irq_nosync() anywhere dc->lock is held to avoid deadlock.

Change tegra_dc_update_windows() to always be balanced with
tegra_dc_sync_windows(). Sync points (from host1x) are potentially lost if
clock gated after update, generally this only affects applications that
update at a slow frame rate.

To balance update and sync calls, Colormap/LUT code now performs a
sync_windows on a LUT change, this makes LUT changes slower and take effect
immediately.

Add a nosync version of tegra_dc_dsi_write_data to be used within dsi
module.

Bug 1036025
Bug 1031933
Bug 1030415
Bug 1029041
Bug 1028716
Bug 1025621
Bug 1020592
Bug 1013506
Bug 1002768
Bug 955184
Bug 929609
Bug 899059
Bug 887342

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

6 years agomedia: video: tegra: ov9772: fix Coverity error
Frank Chen [Fri, 26 Oct 2012 21:32:46 +0000]
media: video: tegra: ov9772: fix Coverity error

Fix incorrect sizeof expression.

Bug 1055065

Change-Id: I735c3df49024d240f8d029a753e3ffa90b953665
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/159286
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: usb_phy: add fence read for T114
Suresh Mangipudi [Fri, 5 Oct 2012 14:42:05 +0000]
arm: tegra: usb_phy: add fence read for T114

Fence read will be needed by T114 as the h/w issue is not resolved.

Bug 1056145

Reviewed-on: http://git-master/r/142177
(cherry picked from commit 1fcb62e55e4e558887fa98aa3c3c72b06087f9f4)

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

6 years agoARM: tegra11x: CPUID virtualization support
Bo Yan [Sat, 13 Oct 2012 21:09:52 +0000]
ARM: tegra11x: CPUID virtualization support

This is the first patch to support CPUID virtualization. The goal is
to treat all CPUs as equal in software. In current implementation,
CPU0 is the anchor CPU, which must be the first one brought up, and
the last one taken down. This patch removes that restriction.

the cluster switch still has to start from CPU0 with this patch.

This can not coexist with secure OS

Reviewed-on: http://git-master/r/144610
(cherry picked from commit d32fba4be39e3f9a95ef5ab44d0c64dc6d2808a3)

Change-Id: Ib7fcaae751d17fee839a4f228f5ef5c3ee2390c2
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/159486
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: nvavp: Fix build break for format
Hiro Sugawara [Wed, 26 Sep 2012 23:25:41 +0000]
ARM: tegra: nvavp: Fix build break for format

Fix build break for wrong printf format specifier on carveout build.

Change-Id: I25ac1d78b85d29584d8363b5431b6124f6f0db93
Signed-off-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-on: http://git-master/r/139119
(cherry picked from commit 627defb796c7dda7c7155446739c5f1235a965ff)
Reviewed-on: http://git-master/r/159484
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: dalmore: add kbc interrupt for e1611
Ray Poudrier [Tue, 18 Sep 2012 23:33:47 +0000]
ARM: tegra: dalmore: add kbc interrupt for e1611

Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Change-Id: I6bfc634b792170a81351f849d1eb9dd55572285b
Reviewed-on: http://git-master/r/133687
(cherry picked from commit 9f2f20d2fd40556c48644490d934d6841794fcef)
Reviewed-on: http://git-master/r/159483
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: usb: disable the mem-alignment WAR
Suresh Mangipudi [Thu, 27 Sep 2012 19:02:01 +0000]
arm: tegra: usb: disable the mem-alignment WAR

The mem-alignment issue is causing the modems not to
send/recieve packets properly.

Reviewed-on: http://git-master/r/139433
(cherry picked from commit a21561953fb81c238150fc88918458d4e4041443)

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

6 years agoasoc: tegra: cs42173: Fix to update clock variable
Dara Ramesh [Fri, 19 Oct 2012 06:56:41 +0000]
asoc: tegra: cs42173: Fix to update clock variable

Change-Id: I533e7c360e039fdfec277029d67b3da99d5f70b2
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on:  http://git-master/r/145866
(cherry picked from commit 06ba007018b63b6ffa97ee96536946791b9fef54)
Reviewed-on: http://git-master/r/159444
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: replace tegra_cpu_wfi with cpu_do_idle
Bo Yan [Fri, 26 Oct 2012 16:33:53 +0000]
ARM: tegra: replace tegra_cpu_wfi with cpu_do_idle

Function "cpu_do_idle" is defined in ARM common code, there is no need
for "tegra_cpu_wfi" which has the identical implementation.

Change-Id: I8ca3ada171990148162276a76434aebd2bd188e2
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/159157
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: mm: rename jump labels in v7_flush_dcache_all function
Lorenzo Pieralisi [Tue, 18 Sep 2012 15:29:44 +0000]
ARM: mm: rename jump labels in v7_flush_dcache_all function

This patch renames jump labels in v7_flush_dcache_all in order to define
a specific flush cache levels entry point.

Change-Id: If84ff442617cec67419dbc75fe1c6daa153ce537
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-on: http://git-master/r/147782
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: mm: implement LoUIS API for cache maintenance ops
Lorenzo Pieralisi [Thu, 6 Sep 2012 13:05:13 +0000]
ARM: mm: implement LoUIS API for cache maintenance ops

ARM v7 architecture introduced the concept of cache levels and related
control registers. New processors like A7 and A15 embed an L2 unified cache
controller that becomes part of the cache level hierarchy. Some operations in
the kernel like cpu_suspend and __cpu_disable do not require a flush of the
entire cache hierarchy to DRAM but just the cache levels belonging to the
Level of Unification Inner Shareable (LoUIS), which in most of ARM v7 systems
correspond to L1.

The current cache flushing API used in cpu_suspend and __cpu_disable,
flush_cache_all(), ends up flushing the whole cache hierarchy since for
v7 it cleans and invalidates all cache levels up to Level of Coherency
(LoC) which cripples system performance when used in hot paths like hotplug
and cpuidle.

Therefore a new kernel cache maintenance API must be added to cope with
latest ARM system requirements.

This patch adds flush_cache_louis() to the ARM kernel cache maintenance API.

This function cleans and invalidates all data cache levels up to the
Level of Unification Inner Shareable (LoUIS) and invalidates the instruction
cache for processors that support it (> v7).

This patch also creates an alias of the cache LoUIS function to flush_kern_all
for all processor versions prior to v7, so that the current cache flushing
behaviour is unchanged for those processors.

v7 cache maintenance code implements a cache LoUIS function that cleans and
invalidates the D-cache up to LoUIS and invalidates the I-cache, according
to the new API.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Change-Id: Id758abd2f67ee46da91e8372cd3a09d6ae3a2608
Reviewed-on: http://git-master/r/147781
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: pluto/dalmore: power sequence updates
Charlie Huang [Tue, 9 Oct 2012 01:12:30 +0000]
ARM: tegra: pluto/dalmore: power sequence updates

use pinmux enable/disable ALT funtion to enable/disable MCLK/PBB0 sensor
mclk output.

modify imx091/imx132/ov9772 power on/off sequences according to their specs.

enable the AF regulator whenever a sensor is on (rear/front) as a workaround,
as this is required by the focuser ad5816 in the rear sensor module.

put gpio initialization into lateinit stage.

update the both dalmore/pluto board power files to adapt with the
sensor/focuser/flash kernel drivers.

bug 1060778
bug 1059684
bug 1054873

Change-Id: If67c1ad1d4ff15e04446f6d93dc75d07cda97052
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/147648
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvavp: Powergate VDE
Jaiprakash Khemkar [Tue, 16 Oct 2012 09:03:03 +0000]
video: tegra: nvavp: Powergate VDE

Bug 1059487

Change-Id: I55f51064070888007be6978b7317288bf5dc6c31
Signed-off-by: Jaiprakash Khemkar <jkhemkar@nvidia.com>
Reviewed-on: http://git-master/r/147483
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mohan Nimaje <mnimaje@nvidia.com>
Reviewed-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-by: Vinayak Pore <vpore@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

6 years agoARM: tegra: restructure cpuidle utility functions
Bo Yan [Thu, 25 Oct 2012 00:46:05 +0000]
ARM: tegra: restructure cpuidle utility functions

As more and more chips are supported, the conditional compilation
flags in cpuidle.h also grows, this is becoming unwieldy and
cumbersome. Let each chip register its own set of functions can
alleviate this problem.

Change-Id: I033d7aeb7a46869783a5c78058869920d81d070b
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/147420
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agomedia: video: tegra: add power rail definitions
Charlie Huang [Mon, 8 Oct 2012 23:02:29 +0000]
media: video: tegra: add power rail definitions

In imx091/imx132/nvc_ov9772 drivers, so board files can turn the
module on/off specifically and following the power sequence.

minor fix in as364x, initialize the power state as OFF.

bug 1060778
bug 1059684
bug 1054873

Change-Id: Iedaa867e3d9bd90f2698db943b5da74cb3eac1ec
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit efd72b1c8503041022bd166c78f867b43bd8fd90)
Reviewed on http://git-master/r/#change,142534
Reviewed-on: http://git-master/r/146548
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: Removing an unused-var warning
Nitin Agrawal [Mon, 29 Oct 2012 09:14:58 +0000]
arm: tegra: Removing an unused-var warning

Variable "once" not defined within CONFIG_TEGRA_THERMAL_THROTTLE

Bug 1051967

Change-Id: I1bbe0ff661aea283f84c77ea511df1448f243d55
Signed-off-by: Nitin Agrawal <nitina@nvidia.com>
Reviewed-on: http://git-master/r/159496
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra11: clock: Combine DFLL usage controls
Alex Frid [Wed, 24 Oct 2012 02:50:05 +0000]
ARM: tegra11: clock: Combine DFLL usage controls

Replaced 2 boolean DFLL usage controls: use_dfll and use_pll_cpu_low
with one integer use_dfll parameter. Integrated this common control
into dfll.data structure as the following enumeration:

0 = DFLL_RANGE_NONE - DFLL is not used as CPU clock source

1 = DFLL_RANGE_ALL_RATES - DFLL is used as CPU clock source at all
rates

2 = DFLL_RANGE_HIGH_RATES - DFLL is used as CPU clock source at high
rates above use_dfll_rate_min, CPU source is automatically switched
from DFLL to PLL when use_dfll_rate_min threshold is crossed down,
and from PLL to DFLL when it is crossed upwards. In the latter case
do not clip target rate to pll mode maximum even though the switch
starts while CPU is on PLL.

Change-Id: Ide963e614d9b67f30872ec040f78d7dfab6d485a
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/147351
(cherry picked from commit 78733e5984ac08ed3667414dd3a770eb4f306a67)
Reviewed-on: http://git-master/r/159412
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: clock: Keep CPU voltage above DFLL Vmin
Alex Frid [Tue, 23 Oct 2012 02:48:38 +0000]
ARM: tegra: clock: Keep CPU voltage above DFLL Vmin

Updated DFLL On/Off procedures to keep CPU voltage above DFLL Vmin
during transition. This change is necessary now, as it is no longer
true that dvfs voltage in pll mode is above dfll mode voltage at all
rates.

Change-Id: I2bdc42998c745e06b8fa5b32395cf7b26c0bc1b4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/147350
(cherry picked from commit 024210cfa6dd6173fe4edc4f0ed722a89ea370ce)
Reviewed-on: http://git-master/r/159411
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: Tegra: Dalmore: Release PWM GPIO
Matt Wagner [Tue, 16 Oct 2012 01:53:22 +0000]
ARM: Tegra: Dalmore: Release PWM GPIO

Release PWM GPIO to allow the backlight pwm to function.

Bug 1159286

Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/144726
(cherry picked from commit eb2b2ec319aa18ec877b776f50b6429e9ddec97a)

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

6 years agoarm: tegra: pluto: Fix the configuration for GMI_AD9
Kerwin Wan [Thu, 11 Oct 2012 21:48:37 +0000]
arm: tegra: pluto: Fix the configuration for GMI_AD9

GMI_AD9 is used as PWM1 not as a gpio for pluto with 4.7'' panel.

Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/143844
(cherry picked from commit f6bdfbc56d63bc79ed964e0146387bfa563dc94b)

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

6 years agoarm: tegra: pluto: Add support for Varuna
Gaurav Batra [Tue, 16 Oct 2012 01:06:27 +0000]
arm: tegra: pluto: Add support for Varuna

Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/144712
(cherry picked from commit 7f8d4fe2fb1d57c52de427bcdb684292014a8de8)

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

6 years agoARM: tegra: usb: Remove WAR during resume
Vinod Atyam [Thu, 25 Oct 2012 07:01:19 +0000]
ARM: tegra: usb: Remove WAR during resume

Removing the WAR kept in T30
during resume code as it is not
needed for T114.

Change-Id: I73c8c7de3cca4af0ee7e0a36adb4d44c8693314a
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/147466
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: e1853: Enable booting on K3.4
Sumeet Gupta [Mon, 22 Oct 2012 09:48:23 +0000]
arm: tegra: e1853: Enable booting on K3.4

This change pulls in the current ToT of E1853 from Rel-15 branch,
except for power related changes.

Bug 1044978

Change-Id: I7f46e13457f9ae6b9ddbcce31f81d20737a88653
Signed-off-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-on: http://git-master/r/146898
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: optimize nvhost pin operations
Kirill Artamonov [Mon, 22 Oct 2012 16:05:46 +0000]
video: tegra: host: optimize nvhost pin operations

Pin both relocs and gathers in single pin_job_mem() call.
Use nvmap_pin_array() to avoid extra pin operation and
per-handle locking overhead.

Remove used relocs from the nvhost_job to avoid extra loop
iterations inside do_relocs.

Use fast nvmap functions _nvmap_duplicate_handle_id()
_nvmap_free().

bug 1158533

Change-Id: I856006decee4a309369e90f3c3d6721886e6ee64
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/142556
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: config: Enabling CPU_FREQ in p1852/E1853 configs
Nitin Agrawal [Tue, 23 Oct 2012 05:02:43 +0000]
arm: config: Enabling CPU_FREQ in p1852/E1853 configs

Enabling CPU_FREQ in P1852 and E1853 configs.
Also disabling EDP_LIMIT.

Bug 1051967
Bug 1010500

Reviewed-on: http://git-master/r/140583
Change-Id: I39d3e84930fd9d75afdc4f2a7d2b956da9985db5
Signed-off-by: Nitin Agrawal <nitina@nvidia.com>
Reviewed-on: http://git-master/r/146750
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: pluto: remove clk_32k of blink
Johnny Qiu [Sat, 29 Sep 2012 03:02:30 +0000]
arm: tegra: pluto: remove clk_32k of blink

CLK_32K_OUT is input for VDD_CPU OC detect. It connects to
function mux SOC not BLINK. So it's not necessary to enable
clk_32k for it.

bug 1053368

Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/139911
(cherry picked from commit 5872d8a4df42389e3c8bdc28bf9813a9e798c837)

Change-Id: I444fb32e180796d980f319ec9ee8d0b61caac6d5
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/147896
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agomfd: palmas: configure interrupt line output polarity
Johnny Qiu [Fri, 28 Sep 2012 23:51:38 +0000]
mfd: palmas: configure interrupt line output polarity

set interrupt line output polarity according to irq trigger level
in platform data.

Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/139856
(cherry picked from commit 540d13a543bc04a506a5031be360c6cf958a316e)

Change-Id: Ief9b72eb6fd6a0e4da00c6d7055a3dd2c621b1da
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/147895
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: pluto: set corereq polarity to active-high
Johnny Qiu [Fri, 21 Sep 2012 23:23:24 +0000]
arm: tegra: pluto: set corereq polarity to active-high

Signed-off-by: Johnny Qiu <joqiu@nvidia.com>
Reviewed-on: http://git-master/r/134517
(cherry picked from commit 759633475b4eb02c56df4640c5df42898359f5e3)

Change-Id: I4b399a698f3b60ac9c3dc42ea26559bbb15ec4a1
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/147894
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: clocks: Lower EMC min frequency to 12.75MHz
Daniel Solomon [Sun, 30 Sep 2012 21:34:34 +0000]
ARM: tegra: clocks: Lower EMC min frequency to 12.75MHz

Lower EMC minimum frequency to 12.75MHz.

Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/143393
(cherry picked from commit 01a4ca3c4d8ed2ac83bb51b86e2f4c8d970336ff)

Change-Id: Iad94ec701e179eff4277e31f4fbed931860757c9
Signed-off-by: naveen kumar arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/147881
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agomedia: video: tegra: add bits/pixel to nvc header
Wei Chen [Fri, 19 Oct 2012 00:27:10 +0000]
media: video: tegra: add bits/pixel to nvc header

Add bits_per_pixel to nvc header to make the
calculation of pixel clock uniform across
different sensors.

Bug 1041786

Change-Id: I3ec9acc9b6f16dbdb57d6d69511a318e8ad81fd6
Signed-off-by: Wei Chen <wechen@nvidia.com>
Reviewed-on: http://git-master/r/147736
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agonet: usb: smsc: Enable VOH mode for SMSC ethernet compliance
Vishal Singh [Fri, 5 Oct 2012 11:05:22 +0000]
net: usb: smsc: Enable VOH mode for SMSC ethernet compliance

Adding config option that enables the VOH mode which is required
for SMSC compliance.

Bug 923110.
Bug 1045637.

Reviewed-on: http://git-master/r/73477

Reviewed-on: http://git-master/r/141562
(cherry picked from commit 4ab7f0342d1e17c4b19a69dc34e7cb6fd6332433)

Change-Id: Ifb1660272b36719abf6edd449193ceffea227511
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/144089
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra30: defconfig: Change default log level
Darbha Sriharsha [Tue, 9 Oct 2012 11:55:46 +0000]
ARM: tegra30: defconfig: Change default log level

This change is intended to change the default
log level of printk statements to 5 so that
when some of the test scripts attempt to catch
warning level messages, unnecessary messagaes
are not caught.

Bug 1052515

Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Change-Id: I198ec64448b7dedc6f9e4d0488496a6cbaaa5eb8
Reviewed-on: http://git-master/r/142670
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoserial: 8250: Fix for Initial high frequency pulse
Vishal Singh [Wed, 26 Sep 2012 11:20:48 +0000]
serial: 8250: Fix for Initial high frequency pulse

An intial high frequency pluse is seen while checking
for a National Semiconductor SuperIO chip. Disabling the
check by default.

Reviewed-on: http://git-master/r/131698

Change-Id: I6950958d8949fb7e02fe2fe1b5716223d4b0e23e
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/138941
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoarm: tegra: Enable CPA for tegra11
Krishna Reddy [Tue, 9 Oct 2012 17:07:08 +0000]
arm: tegra: Enable CPA for tegra11

Change-Id: I4767ccd079810cdfbc2602317f884d1c89f36e7f
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/142584
(cherry picked from commit a1ccaa5d11d9b71a722841faf1e62e18e5566b00)
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/145378
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoarm: tegra: power: ignore duplicate reg_override values
Diwakar Tundlam [Wed, 17 Oct 2012 21:11:27 +0000]
arm: tegra: power: ignore duplicate reg_override values

and some clean ups

Change-Id: Ic5c239cea8921ae4b5639dd8439c569fa89cb1ec
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/159375
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: t11x: Changes for LP1
Seshendra Gadagottu [Thu, 18 Oct 2012 23:03:23 +0000]
arm: tegra: t11x: Changes for LP1

Bug 1053092

Change-Id: I6823c96677cf8d20878ea886bea51658132de2b3
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/141367
(cherry picked from commit 3355e38667dab60b801f5704ce77a28506798786)
Reviewed-on: http://git-master/r/159363
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add Hall Effect Sensor
Matt Wagner [Wed, 10 Oct 2012 00:17:26 +0000]
ARM: Tegra: Dalmore: Add Hall Effect Sensor

Set up gpio-key wakeup with the Hall Effect sensor to be SW_LID
to enable lid open and close logic

Bug 1156171

Change-Id: I6334351b8caed1bf1cddc8525a3f2fa4a5641a7a
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/142805
(cherry picked from commit d6875d355ada98bcaf1785bd6e6f9afcc6890346)
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/159360
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: Tegra: XUSB: Add stubs for xusb_init calls
Krishna Monian [Thu, 11 Oct 2012 14:27:31 +0000]
ARM: Tegra: XUSB: Add stubs for xusb_init calls

- Fixes builds without USB support

Change-Id: I8b4e8b203a9a921df5faed489d05139e09ac9f8d
Signed-off-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-on: http://git-master/r/143735
(cherry picked from commit 6fdd6c2c056062183529215da5de48c107c8f139)
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/159359
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: defconfig: disable io_dpd on p1852 and e1853
Nitin Agrawal [Tue, 23 Oct 2012 05:46:33 +0000]
ARM: defconfig: disable io_dpd on p1852 and e1853

Disabling CONFIG_TEGRA_IO_DPD (enabled by default) on p1852

Bug 1036567.
Bug 1040511.

Updating defconfig files using savedefconfig.
Reviewed-on: http://git-master/r/141247
Change-Id: Iab305c0aab5e881710d708ef9305ecc68c5550fd
Signed-off-by: Nitin Agrawal <nitina@nvidia.com>
Reviewed-on: http://git-master/r/146751
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: Adding CPU freq entry for 900MHz
Bhavesh Parekh [Thu, 4 Oct 2012 10:26:49 +0000]
arm: tegra: Adding CPU freq entry for 900MHz

Adding CPU frequency entries for 900MHz. Automotive uses 900MHz
frequency.
This table is needed so that when comming out of cluster-switching G
frequency is restored to 900MHz

Bug 1051967
Bug 1010500

Reviewed-on: http://git-master/r/140582
(cherry picked from commit 7680d3a9a4b81952850902f68125eb37610b6427)
Change-Id: Ia84e58589d9f4bbe0c1717f0ed95f083fc28e03c
Signed-off-by: Nitin Agrawal <nitina@nvidia.com>
Reviewed-on: http://git-master/r/146494
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: dalmore: enable headphone detect gpio
Jubeom Kim [Sun, 23 Sep 2012 04:01:47 +0000]
arm: tegra: dalmore: enable headphone detect gpio

Change-Id: Ic09ef69bdb53e219c1e73ab9aead7a80a7afd394
Signed-off-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-on: http://git-master/r/134646
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Tested-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
(cherry picked from commit 282ceed80d3b9f8b20bc94094453d55efd6c35eb)

Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Change-Id: I0088bc46ff07b64ac46294657ee2af90d61a03ce
Reviewed-on: http://git-master/r/159130
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: dvfs: Update CPU DVFS tables
Alex Frid [Sat, 20 Oct 2012 02:38:01 +0000]
ARM: tegra11: dvfs: Update CPU DVFS tables

Updated new cvb coefficients, dfll tuning parameters, maximum
voltage to 1.25V.

Bug 1161126

Change-Id: Id720736dbb91261ad0fe3823ab22d6702aaae37d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/146109
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit 351020d6e0a8b90faf60cd96a9f2d66bb48025fb)
Reviewed-on: http://git-master/r/147751
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: clock: Fix cpufreq table construction
Alex Frid [Sat, 20 Oct 2012 07:53:23 +0000]
ARM: tegra11: clock: Fix cpufreq table construction

Fixed cpufreq table construction in case of overlapping LP and G CPU
frequency ranges: made sure minimum G CPU rate is inserted into the
table once (was inserted before each LP CPU frequency that exceeds
G CPU minimum).

Change-Id: I44a8d53ce40e51f99865fb0cee3d073b1eff0bee
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/146134
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
(cherry picked from commit 5caf5eaff268b6f55ef5361b508d84c5ef6b862f)
Reviewed-on: http://git-master/r/147750
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra11: dvfs: Use dfll below Fmax@Vmin
Alex Frid [Thu, 18 Oct 2012 04:39:54 +0000]
ARM: tegra11: dvfs: Use dfll below Fmax@Vmin

When CPU clock source switch from DFLL to PLL at low rate is enabled,
don't exit DFLL mode unconditionally for rates below Fmax@Vmin. If
required PLL voltage is above Vmin, stay on DFLL (and engage output
skipper to reach target rate).

Change-Id: I96d17adafcc9c282c659b25ac446efac0ac0fdb0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/145843
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit 1505458c08feabc60c2806c2f45ebdde62885b39)
Reviewed-on: http://git-master/r/147749
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: dalmore/pluto: sensor: enable flash
Charlie Huang [Sun, 16 Sep 2012 22:02:06 +0000]
ARM: tegra: dalmore/pluto: sensor: enable flash

Added AS3648 support in board-dalmore-sensors.c along with its
platform data.

Also added the power rail names for as3648 in the power rail table.
Modified the pinmux table by setting PBB4 to VGP4.

Enabled max77665 device in board-pluto-sensors.c, updated max77665-flash
platform data.

On pluto, modified GPIO_PBB3 mux setting to enable VGP3 output. Set
max77665 flash trigger-by-torch setting, so flash can be triggered
without board rework. At the mean time, the flash-over-camera is still
reserved.

bug 1048411
bug 1035551

Change-Id: Ie378c5b528ee9efc1c81dd2617baaa80a48756e0
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
(cherry picked from commit 8e7c01d3e297eada59fe32c9c7ad3810a17d3a39)
Reviewed on: http://git-master/r/#change,133126
(cherry picked from commit d3b940690c230c1c515533bd98bed67b76b0e580)
Reviewed on: http://git-master/r/#change,139122
(cherry picked from commit 27ff846a68dee8936820d48d50f71e4833a8b6ef)
Reviewed on: http://git-master/r/#change,139962
Reviewed-on: http://git-master/r/147073
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: dc: Fix computation of h offset
Michael Frydrych [Tue, 23 Oct 2012 07:33:18 +0000]
video: tegra: dc: Fix computation of h offset

Change-Id: I5eeae496dc167202fc9e6133e88c39ecd5734bd0
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/146920
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: pluto: configure SPDIF_OUT signal to high
Syed Rafiuddin [Tue, 23 Oct 2012 09:25:49 +0000]
arm: tegra: pluto: configure SPDIF_OUT signal to high

Configure SPDIF_OUT signal to high to detect the
bq20z45 chipset on dalmore platform

Change-Id: I7a9c1640f3caebc3989dc95a9a3a0d8854b36e18
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/146826
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: USB: moving to clk prepare APIs
Sivaram Nair [Tue, 23 Oct 2012 06:48:21 +0000]
ARM: tegra: USB: moving to clk prepare APIs

The clk_enable/clk_disable pair of APIs are replaced with
tegra_clk_prepare_enable and tegra_clk_disable_unprepare.

This is needed for the migration to common clk framework.

Bug 920915

Change-Id: I8ac12f89fd5aaf9f49b0a873bb921ed17f3c33ac
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/146782
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: config: p1852: Add cluster switching option
Nitin Agrawal [Mon, 22 Oct 2012 13:42:25 +0000]
arm: config: p1852: Add cluster switching option

Add cluster switching option in the p1852 defconfig

Bug 1024509

Reviewed-on: http://git-master/r/116770
Change-Id: If7c82bd7d7dce812037c31b54927cc54b5b0a9a4
Signed-off-by: Nitin Agrawal <nitina@nvidia.com>
Reviewed-on: http://git-master/r/146493
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: Tegra: Add cluster switching support for p1852
Nitin Agrawal [Thu, 25 Oct 2012 11:54:47 +0000]
arm: Tegra: Add cluster switching support for p1852

Add cluster swtiching call back for P1852 board

Bug 1024509

Reviewed-on: http://git-master/r/116431
(cherry picked from commit 8846456d525775abf3eddc523b0cc751bd03463e)
Signed-off-by: Nitin Agrawal <nitina@nvidia.com>
Change-Id: Iceb1b3c93d3f2571888e97057706b5e9494fed8e
Reviewed-on: http://git-master/r/146492
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoTegra:cpufreq: restart timer if limits have changed.
satya popuri [Tue, 10 Apr 2012 19:10:56 +0000]
Tegra:cpufreq: restart timer if limits have changed.

The interactive governor stops polling for load at 2 boundary conditions:

1. Frequency is at minimum and CPU is going into idle
2. Target frequency is maximum

These cases interact badly when the min and max limits change during the
time the timer has stopped polling.

Particularly when going from a restrictive to a more liberal limit,
frequency cannot be adjusted in reaction to the change until the CPU
becomes idle/comes out of idle again.

Change-Id: Iecb2703c824cefbf88004cce96a0877625e143d1
Signed-off-by: satya popuri <spopuri@nvidia.com>
Reviewed-on: http://git-master/r/146056
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Tested-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoarm: tegra: config: enable SATA for L4T
Bibek Basu [Fri, 12 Oct 2012 05:01:45 +0000]
arm: tegra: config: enable SATA for L4T

Enable CONFIG_SATA_AHCI_TEGRA

Bug 1157036

Change-Id: Id0cf3679a0fb0b85e20cd83c94135bf2aab2dd71
Original-author: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/143985
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: ahci/sata: check sata against board id
Bibek Basu [Thu, 11 Oct 2012 10:04:04 +0000]
arm: tegra: ahci/sata: check sata against board id

If the board has sata support, then only add platform device
Also move slumber code to Idle powergate section to
avoid build failure.

Bug 1157036

Change-Id: I6128f451f348a7fad41fc52579b18939c8a2efcd
Original-author: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/143984
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: cardhu: add support for PM315
Bibek Basu [Thu, 11 Oct 2012 06:33:18 +0000]
arm: tegra: cardhu: add support for PM315

Add support for PM315

Bug 1157036

Change-Id: I2e5461c656c41d4172aca60525655cb780eaa17e
Original-author: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Mike Thompson <mikthompson@nvidia.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/143506
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: enterprise: Set PMC_WAKE_DELAY value
Vinod Atyam [Thu, 4 Oct 2012 10:04:28 +0000]
arm: tegra: enterprise: Set PMC_WAKE_DELAY value

Setting the proper core_off_timer value
for enterprise platform.
This value is based on TI TPS80032.

Bug 1017531

Change-Id: Ie57e3b05ab1613c648d8275da47c164187cddae5
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: http://git-master/r/141613
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agospi: tegra: Addressing ISR and Timer proc race
Vishal Singh [Fri, 21 Sep 2012 12:47:42 +0000]
spi: tegra: Addressing ISR and Timer proc race

This patch addresses the issue where isr_thread comes after timer proc
and can access the spi_transfer already freed because of message
completion in timer proc.

Atomic variables are added to make sure only one of them gets executed.

Bug 991587.

Reviewed-on: http://git-master/r/116380

Irq thread is requested using IRQF_ONESHOT flag to make sure
that SPI interrupts are disabled during irq handler thread execution.

Bug 997089.

Reviewed-on: http://git-master/r/109722

Reviewed-on: http://git-master/r/133260
(cherry picked from commit b30926b6904becbd1becc49e3037ca2e7c261507)

Change-Id: I57b5936070a5b467c9ca740815e2954a7e04d8c1
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/138945
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoSPI: tegra: SPI slave driver fixes
Vishal Singh [Thu, 20 Sep 2012 10:06:28 +0000]
SPI: tegra: SPI slave driver fixes

Merging the following 3 changes into 1.

tegra spi slave timeout issue

spi slave driver waits 1sec for dma timeout to happen.
Changed this timed wait to a constant wait of 500us
and then checking for status. Also added a check
for list empty, before transfer complete de-queues a message.

Reviewed-on: http://git-master/r/38255

tegra spi slave ioctl timeout

This change adds a max time the ioctl
needs to wait for a tranfer. The delay
is specified in delay_usecs of spi
message structure. A delay of 0 would
do an infinite wait.

Reviewed-on: http://git-master/r/39984

tegra spi slave driver with cpu based transfer

For packet size less than FIFO size the driver
selects cpu based transfer and for sizes greater
than this it goes for a DMA transfer.

Reviewed-on: http://git-master/r/39987

Also adding delay in isr thread function to avoid tx dma timeout
due to race between dma_isr() and spi_tegra_isr_thread().

Bug 1045637.

Reviewed-on: http://git-master/r/133202
(cherry picked from commit 436f3796bd67fc267b3e127d30d7ea392aeab172)

Change-Id: Ia24f4f306ce214e68a64e3a41d825d8a44c368e4
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/138944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agotegra: spi: Add LSBFE support in spi master and slave
Vishal Singh [Fri, 12 Oct 2012 11:02:21 +0000]
tegra: spi: Add LSBFE support in spi master and slave

Adding LSBFE.
Resetting controller during probe of SPI slave.

Bug 765716.

Reviewed-on: http://git-master/r/132625

Change-Id: I8333da768608a4f627e8172de709daad72285948
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/138943
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: Add client error counters
Alex Waterman [Wed, 17 Oct 2012 20:50:54 +0000]
arm: tegra: Add client error counters

Add counters for each client that track the number of each type
of MC error the client generates. See the debugfs node:

    /d/mc/mcerr

BUG 1066896

Change-Id: Ibb1c28215346e0b4ee691a4c2e06778f13da0fb5
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/145775
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agopluto: set smps6 to 1.1V by default
Neil Patel [Tue, 16 Oct 2012 00:16:32 +0000]
pluto: set smps6 to 1.1V by default

To be used until Modem DVFS support is ready.

Bug 1040101

Signed-off-by: Neil Patel <neilp@nvidia.com>
Change-Id: Ia93c3c596eedb83a3fc7990ae028bb104f118bce
Reviewed-on: http://git-master/r/143326
(cherry picked from commit ab390b196ca095831f1c2e6bdac0beb2d2ed081e)
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/159144
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>