5 years agoARM: tegra: vcm3.0: t124: support audio driver
Songhee Baek [Wed, 18 Sep 2013 03:35:23 +0000]
ARM: tegra: vcm3.0: t124: support audio driver

 + wm8731 supply entry
 + fixing I2S pin direction
 + adding I2S0/I2S4 instantiation in dts
 + adding tegra_snd_vcm30_t124 platform device

Bug 1373091

Change-Id: Ia42e94b41fc94ad5702e5f65db471d8ab678c3d6
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/299362
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

5 years agoarm: tegra: tn8-ers: dt: enable support for emc tables
Ryane Luo [Fri, 6 Sep 2013 07:51:23 +0000]
arm: tegra: tn8-ers: dt: enable support for emc tables

Rearrange parsing of dt nodes of emc tables
Add emc dvfs tables for tn8 ers

Bug 1360455

Change-Id: I21a81a67d315bba9dd7af792ddaebe251dc505cd
Signed-off-by: Ryane Luo <ryanel@nvidia.com>
Reviewed-on: http://git-master/r/299848
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoRevert "video: tegra: dc: Clock gate dc at frame end"
Eric Eells [Fri, 25 Oct 2013 18:07:58 +0000]
Revert "video: tegra: dc: Clock gate dc at frame end"

This reverts commit cd589d9b55b1e1cbcd7a8096918433970927dade.

Causes hard hang on boot 100% repro on certain
systems.

Bug 1395908

Change-Id: Iaeedff7233b2bfed2bdc777c1445ab654be63bcc
Signed-off-by: Eric Eells <eeells@nvidia.com>
Reviewed-on: http://git-master/r/303960
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: ardbeg: enable PCL auto-detection
Charlie Huang [Tue, 24 Sep 2013 01:02:36 +0000]
ARM: tegra: ardbeg: enable PCL auto-detection

devices supported: ov5693, ar0261, imx135, ov7695, mt9m114,
dw9718, ad5823, as3648, max77387

bug 1373850

Change-Id: I46cfbf6536b6c11d1367925afc6c10fd3550ebbb
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/290036
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra: TN8: more regulators for auto-detect
Charlie Huang [Fri, 18 Oct 2013 18:23:16 +0000]
ARM: tegra: TN8: more regulators for auto-detect

devices supported: ov5693, ar0261, imx135, ov7695, mt9m114,
dw9718, ad5823, as3648, max77387

bug 1373850

Change-Id: Ic467c456ca6a636de91e789829a6bc2fa1dc15e7
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/301319
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: configs: t124: enable PCL virtual device drv
Charlie Huang [Tue, 24 Sep 2013 01:05:34 +0000]
ARM: configs: t124: enable PCL virtual device drv

bug 1373850

Change-Id: I917f2f8d685863d68379613f3b43dd794e00f23f
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/290035
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra: ardbeg: update edp settings
David Wang [Wed, 23 Oct 2013 18:11:28 +0000]
ARM: tegra: ardbeg: update edp settings

for ov5693 and mt9m114 (SOC1040)

bug 1391722
bug 1391719

Change-Id: I6554d0b36c8ad14a964a7c1723303474e30559aa
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/302934
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agodrivers: media: tegra: edp support
David Wang [Wed, 23 Oct 2013 22:34:09 +0000]
drivers: media: tegra: edp support

on ov5693 and mt9m114 (SOC1040)

bug 1391722
bug 1391719

Change-Id: Ic0830ea803cf8a50e8ef94d3c0c1393d0a29da10
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/302932
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoRevert: video: tegra: host: Reg gk20a touch boost
Eric Eells [Fri, 25 Oct 2013 06:57:49 +0000]
Revert: video: tegra: host: Reg gk20a touch boost

This reverts commit 175e79b since it causes a
significant LP0 stress regression.

Change-Id: Icca757e276b78e2c70eb2639984d7681493ae1e5
Signed-off-by: Eric Eells <eeells@nvidia.com>
Reviewed-on: http://git-master/r/303762
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: config: tegra: cleanup bq2419x node on TN8
Laxman Dewangan [Fri, 25 Oct 2013 11:18:40 +0000]
ARM: config: tegra: cleanup bq2419x node on TN8

bug 1393968
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: I13dc0e09a8da55bed28844588d9dcf5967d91d10
Reviewed-on: http://git-master/r/303843
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: bq2419x: fix DT parsing of bq2419x node
Laxman Dewangan [Fri, 25 Oct 2013 11:17:36 +0000]
power: bq2419x: fix DT parsing of bq2419x node

bug 1393968

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

5 years agoarm: tegra: pd: fix resume devices call for domain
Shridhar Rasal [Fri, 25 Oct 2013 10:08:26 +0000]
arm: tegra: pd: fix resume devices call for domain

bug 1384396

Change-Id: I59370334c708446cbc68e48360f68eb0b442a69a
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/303822
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: dsi: Fix explicit host trigger calls
Animesh Kishore [Tue, 22 Oct 2013 12:27:04 +0000]
video: tegra: dsi: Fix explicit host trigger calls

Bug 1381539

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

5 years agovideo: tegra: dc: Clock gate dc at frame end
Animesh Kishore [Tue, 22 Oct 2013 12:20:35 +0000]
video: tegra: dc: Clock gate dc at frame end

Feature applicable only for one-shot.

Bug 1381539

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

5 years agovideo: tegra: dsi: Added dsi debug interface file
Tejas Sonchhatra [Fri, 4 Oct 2013 11:30:04 +0000]
video: tegra: dsi: Added dsi debug interface file

Refactoring register dumping code from driver to debug file.
The debug file will allow dumping of dsi registers when panel is up.

Change-Id: I2b766add5cc77ae2c812e76f790f45027c920773
Signed-off-by: Tejas Sonchhatra <tmanoj@nvidia.com>
Reviewed-on: http://git-master/r/300417
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: Free PWM GPIO
pdabade [Thu, 24 Oct 2013 09:24:29 +0000]
arm: tegra: Free PWM GPIO

Brightness request were not getting transferred to the device.
Hence, it failed at enable, disable and change of brightness.

bug 1385146
bug 1393896

Change-Id: Ibb7cb903c588f88a9d3898d9672f70df348c1010
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/303325
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: pinctrl:T124 add pinmux node
Ashwini Ghuge [Thu, 24 Oct 2013 17:10:34 +0000]
ARM: pinctrl:T124 add pinmux node

Bug 1373364

Change-Id: Ie1f30916c636094ced2558bda5d116a85fbaa394
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/302693
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: ardbeg/loki: Add dfll mode sel pdata
Pradeep Goudagunta [Fri, 18 Oct 2013 09:35:35 +0000]
ARM: tegra: ardbeg/loki: Add dfll mode sel pdata

-Add dfll regulator mode selection pdata.
-Move common macro to board-pmu-defines.

Bug 1302884

Change-Id: I5e26e7e4441f46ec0d6f47467aa0a830e3eb2cb3
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/301156
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoregulator: tegra-dfll: Add mode selection support
Pradeep Goudagunta [Fri, 18 Oct 2013 09:33:40 +0000]
regulator: tegra-dfll: Add mode selection support

Bug 1302884

Change-Id: Ib89e4fd2656f65c0720cca9b6f2aa6ee7e574f71
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/301155
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomisc: tegra-profiler: add poll support
Igor Nabirushkin [Tue, 24 Sep 2013 13:11:06 +0000]
misc: tegra-profiler: add poll support

Tegra Profiler misc driver: add poll support

Bug 1374312

Change-Id: Id0844b3b329f348763f22b831fc73ac64f04fd9b
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/298729
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: ardbeg: Reduce sharp 25x16 vblank
Animesh Kishore [Thu, 24 Oct 2013 12:03:11 +0000]
arm: tegra: ardbeg: Reduce sharp 25x16 vblank

Reduces pll frequency and dvfs request.

Bug 1370966

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

5 years agomisc: tegra-profiler: send buffer fill count
Igor Nabirushkin [Tue, 24 Sep 2013 11:46:16 +0000]
misc: tegra-profiler: send buffer fill count

Tegra Profiler misc driver: transmit the maximum buffer
occupancy to the user space.

Bug 1374266

Change-Id: Id078083a5493552c1f3bb697a1d3e4a5504e3f82
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/298725
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra-profiler: kprobes is no longer used
Igor Nabirushkin [Fri, 4 Oct 2013 21:35:23 +0000]
misc: tegra-profiler: kprobes is no longer used

Tegra Profiler: kprobes is no longer used
Use callbacks from the scheduler instead of kprobes

Bug 1343930

Change-Id: I67589dbe972cc5c853addfb6ed82c488529eed55
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/281941
(cherry picked from commit 9cdf6b4fdb5cf30267a62f8b795eb83ea06d5637)
Reviewed-on: http://git-master/r/298707
GVS: Gerrit_Virtual_Submit
Tested-by: Maxim Morin <mmorin@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: TN8: change CPU/SOC voltage range
Leo He [Wed, 23 Oct 2013 09:01:05 +0000]
ARM: tegra: TN8: change CPU/SOC voltage range

change CPU/SOC voltage range for TN8 ERS

Change-Id: Ic431be856a92fde59f2ad81a5f135a153c7040cf
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/302750
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoUSB: PHY: Tegra: Removed unused code.
Suresh Mangipudi [Tue, 22 Oct 2013 09:42:09 +0000]
USB: PHY: Tegra: Removed unused code.

Remove LINK ULPI, NULL ULPI and ICUSB Code.
These USB phy types are no longer supported.

Change-Id: I2c5a3a4886d30bb3302320586e6c5d1e83b46900
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/302263
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: gk20a: add PBUS interrupt
Kevin Huang [Wed, 25 Sep 2013 23:49:52 +0000]
video: tegra: gk20a: add PBUS interrupt

Bug 1388078

Change-Id: I702e94dae3c424ccd057f4fdce40526405e60ae5
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/302964
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agomedia: platform: tegra: regmap support on sensors
Charlie Huang [Thu, 17 Oct 2013 01:40:12 +0000]
media: platform: tegra: regmap support on sensors

using regmap to replace the original i2c_transfer in some latest
sensor drivers.

bug 1238843

Change-Id: Id64b69c91daef4e0a664e45fad90ea3fb1f0d443
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/300278
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoUSB: Phy: tegra: Enable POSTAMBLE_OUTPUT for HSIC
Suresh Mangipudi [Thu, 24 Oct 2013 06:43:37 +0000]
USB: Phy: tegra: Enable POSTAMBLE_OUTPUT for HSIC

As part of Phy power_on the POSTAMBLE_OUTPUT_ENABLE should be set
for HSIC.

Bug 1352148

Change-Id: I96b92ba3a190af3b79708bbb75ac80881473be8d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/303190
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: mc: Move interrupt definitions
Alex Waterman [Tue, 22 Oct 2013 23:44:00 +0000]
ARM: tegra: mc: Move interrupt definitions

Migrate the interrupt definitions for each chip to the
central MC header.

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

5 years agoARM: tegra: mc: move mcerr.h to include/mach
Alex Waterman [Wed, 16 Oct 2013 22:16:30 +0000]
ARM: tegra: mc: move mcerr.h to include/mach

Move mcerr.h to be next to mc.h. Other headers will be defined
as well and it makes sense to have them all in one place.

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

5 years agoARM: tegra: mc: introduce io wrappers
Alex Waterman [Wed, 16 Oct 2013 20:52:35 +0000]
ARM: tegra: mc: introduce io wrappers

Instead of using readl() and writel() directly introduce an
API for reading and writing to the MC register spaces. The API
is as follows:

  u32  mc_readl(u32 reg_offset);
  void mc_writel(u32 val, u32 reg_offset);
  u32  __mc_readl(int mc_idx, u32 reg_offset);
  void __mc_writel(int mc_idx, u32 val, u32 reg_offset);

The default functions read and write from MC0 - that is the
interface all chips have. However, some chips have dual
channel MCs. The '__' versions allow you to specify which MC
to read/write to/from.

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

5 years agoARM: tegra: mc: refactor mc and mcerr
Alex Waterman [Wed, 16 Oct 2013 20:37:20 +0000]
ARM: tegra: mc: refactor mc and mcerr

Refactor the MC and mcerr code so that more common code
is shared. Also pave the way for adding more subdrivers to
the MC infrastructure. In particular the goal is to reuse
as much code as possible for an MC stats interface to
userspace.

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

5 years agopower: bq2419x: Hold wakelock when cable connected
Darbha Sriharsha [Tue, 22 Oct 2013 06:06:51 +0000]
power: bq2419x: Hold wakelock when cable connected

Add wakelocks to keep the board from entering
sleep mode when USB charging cable is connected

Bug 1354923

Change-Id: Ie774b54f0bd6d9ac0ea92c205bae75f666d275b4
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/302133
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 6e718218fcf23191be90ca2d1d69bd787becd4c8)
Reviewed-on: http://git-master/r/302648
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: add ahub entry in DT
Songhee Baek [Thu, 22 Aug 2013 22:11:07 +0000]
ARM: tegra: add ahub entry in DT

Added ahub and its client entries like i2s, amx, adx and apbif.

Bug 1354235
Bug 1373091
Bug 1371547

Change-Id: I0353af3085b0c136f78563ab25eead0cdb9e67e1
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/289462
GVS: Gerrit_Virtual_Submit
Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoarm: tegra: add iso efficiency
Xue Dong [Wed, 23 Oct 2013 22:43:47 +0000]
arm: tegra: add iso efficiency

bug 1162232

Change-Id: I98a003b52d3ea2ac455ff29849afae240571999b
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/303014
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra: loki: add thor 1.95 emc table
Ray Poudrier [Wed, 23 Oct 2013 22:08:43 +0000]
ARM: tegra: loki: add thor 1.95 emc table

Based on sku, load thor 1.95 emc table.

Bug 1361282

Change-Id: Ib64b750db67c5b52fb971508300840d0e3b7f6e7
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/302999
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoALSA: usb: Handle unplug during multiple devices
Rahul Mittal [Wed, 16 Oct 2013 06:04:26 +0000]
ALSA: usb: Handle unplug during multiple devices

Set usb_audio switch state to DISCONNECTED only if
the device with active audio (i.e. the one which was
plugged-in earliest) is unplugged. Hence, unplugging
other devices won't disturb active audio.

Bug 1368093

Change-Id: I461c58cf15b20220fa627634423b6e23112ad64b
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/299797
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: fix register address
Prashant Gaikwad [Thu, 24 Oct 2013 10:29:48 +0000]
arm: tegra: fix register address

r4 = PMC base address
r5 = CAR base address

Change-Id: Iadc08bd9c305b4f7ce3e440528582977b97af1b8
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/303307
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: pm: remove T14x code
Shridhar Rasal [Thu, 24 Oct 2013 09:02:52 +0000]
arm: tegra: pm: remove T14x code

T14x is absolete for k3.10 so remove related pm_domain code

Change-Id: I3c94d6376b61e834d14893a573ae6cc0655023a3
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/299974
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agosecurity: tf_driver: remove tegra_read_cycle()
Varun Wadekar [Thu, 24 Oct 2013 10:36:32 +0000]
security: tf_driver: remove tegra_read_cycle()

Tegra kernel now implements this function in a common place.

Bug 1389113

Change-Id: I22f6448760fb10b4588f02d4d4b2b4fa76de8f90
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/303291

5 years agosecurity: tlk_driver: remove tegra_read_cycle()
Varun Wadekar [Thu, 24 Oct 2013 10:34:48 +0000]
security: tlk_driver: remove tegra_read_cycle()

Tegra kernel now implements this function in a common place.

Bug 1389113

Change-Id: Ie9bcd4267d0098136c18877ef67dd0da2fedbb4c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/303290

5 years agoARM: tegra: add tegra_read_cycle() for tracing to work
Varun Wadekar [Thu, 24 Oct 2013 10:31:09 +0000]
ARM: tegra: add tegra_read_cycle() for tracing to work

tegra_read_cycle() is required for tracing to work on Tegra. It is
wrong to expect that the secure kernel vendor's linux driver would
always help us by implementing this function in their driver. This
is not true for hypervisor-enabled builds.

Bug 1389113

Change-Id: I232fea4fd00f9093dc9e3c815654192a8143937a
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/303289

5 years agovideo: tegra: dc: Enable DSI_USE_SYNC_POINTS for T124 only
Bharat Nihalani [Thu, 24 Oct 2013 16:01:47 +0000]
video: tegra: dc: Enable DSI_USE_SYNC_POINTS for T124 only

Enabling DSI_USE_SYNC_POINTS causes issues for T114 platforms. So
enabling this only for T124 until we can enable this for T114 too.

Bug 1393553

Change-Id: I227d279eaa55e1575470ac3cf52ae21e620c3c80
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/303380
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra12: clock: Increase PLLD feedback divider mask
Alex Frid [Tue, 22 Oct 2013 05:55:02 +0000]
ARM: tegra12: clock: Increase PLLD feedback divider mask

Increased Tegra12 PLLD feedback divider mask to 11 bits (from 10).

Bug 1392365

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

5 years agoARM: tegra: remove simulation support from tegra14
Bo Yan [Thu, 24 Oct 2013 17:57:29 +0000]
ARM: tegra: remove simulation support from tegra14

Change-Id: Ifd3819aec3c768da92e0e2e8d8b4eff89d9ae5be
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/303418
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: config: tegra12: enable power supply
Pradeep Goudagunta [Thu, 17 Oct 2013 09:36:24 +0000]
ARM: config: tegra12: enable power supply

Bug 1345931

Change-Id: Icff3ec5dd36b95af38f3700a8d14f64b87be66dd
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/300478
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: ardbeg: add productized power monitor devices
Timo Alho [Wed, 2 Oct 2013 11:33:08 +0000]
ARM: tegra: ardbeg: add productized power monitor devices

Add power monitors in I2C branch 0 (productized power monitors).
 * For E1780-A02 w/ E1735 PMU (Shield ERS)
 * For E1780-A02 w/ E1736 PMU (TN8)

Change-Id: I7d1c6e3045bd18ee506631f2f8380cbeb23baf47
Signed-off-by: Timo Alho <talho@nvidia.com>
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/299438
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: ardbeg: add power monitor devices for TN8
Timo Alho [Wed, 2 Oct 2013 10:41:54 +0000]
ARM: tegra: ardbeg: add power monitor devices for TN8

- power monitor devices are different on tn8 and Shield ERS
- use board_info to get soc sku version and based on that register
devices specific to tn8

Change-Id: I348f665e3a7c61be06df70d1bfeec4432a049d8c
Signed-off-by: Timo Alho <talho@nvidia.com>
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/299437
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: backlight: EDP client for backlight
Vineel Kumar Reddy Kovvuri [Tue, 15 Oct 2013 05:01:18 +0000]
video: backlight: EDP client for backlight

Implements EDP client for TN8 & Shield ERS backlight system

Bug 1359894
Bug 1358209

Change-Id: I4ca1e49d18f9b91d2a6be55235f82bd3f4681ac5
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/299293
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: ardbeg: Add wifi edp client
Harshavardhan Nalajala [Wed, 18 Sep 2013 20:51:32 +0000]
arm: tegra: ardbeg: Add wifi edp client

Add wifi edp client data to platform data.

Bug 1359897

Change-Id: I1fc94cd0a84d0330a2b193b82b7c7feaa37191c8
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/299031
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agonet: wireless: bcmdhd: Add edp client structure
Harshavardhan Nalajala [Tue, 4 Jun 2013 08:24:03 +0000]
net: wireless: bcmdhd: Add edp client structure

Add new edp client structure to wifi platform data.
It holds the information required by driver
to register as edp client.

Bug 1297300
Bug 1359897

Change-Id: I724a41416150d8b99357d96bb1e2f6f2b7a333e1
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/238406
(cherry picked from commit 1f4b0336baea447df042dfe8fe8d6800b0a6cddf)
Reviewed-on: http://git-master/r/299027
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Tested-by: Seema Khowala <seemaj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarch: arm: configs: Enable edp support on tegra12x
Harshavardhan Nalajala [Thu, 19 Sep 2013 21:27:36 +0000]
arch: arm: configs: Enable edp support on tegra12x

Enable wifi edp client support on tegra 12x.

Bug 1359897

Change-Id: If2abe0c1e38de3dcccbdb68e6ee5860027ee768d
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/299026
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: tn8: support system edp
Seema Khowala [Wed, 18 Sep 2013 19:10:49 +0000]
arm: tegra: tn8: support system edp

Bug 1345931
Bug 1339832

Change-Id: Ia0a70e2f13c1ef24d9e89b8ec0604ef99c8cd3b4
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/289981
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: config: tegra12: enable edp
Seema Khowala [Fri, 23 Aug 2013 17:49:14 +0000]
arm: config: tegra12: enable edp

Bug 1345931

Change-Id: I94a7cfb9f279173588bed1fef1f04a4565cea50a
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/289980
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: dc: don't blank DC before disabling
Victor Ryabukhin [Wed, 12 Jun 2013 09:12:21 +0000]
video: tegra: dc: don't blank DC before disabling

Blanking the screen before DC disable is redundant and might cause
momentary screen flash (screen off -> on -> off) in case if DC receives
flip ioctl after screen was blanked.

This also makes DC shutdown process similar to FB_BLANK_POWERDOWN.

Bug 1299434

Change-Id: I9d3713bae4cc4511c7beb0cef22499cb9b3b5d64
Signed-off-by: Victor Ryabukhin <vryabukhin@nvidia.com>
Reviewed-on: http://git-master/r/237914
(cherry picked from commit 161501da4ae10339e6f8c6ce208cca305d1f6569)
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/243753
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
(cherry picked from commit b9d9b7b02fa40cb8ea322c477c06efdddc33f2ac)
Reviewed-on: http://git-master/r/303030
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: t12x: Update SATA regulators list
Mallikarjun Kasoju [Thu, 24 Oct 2013 11:07:33 +0000]
ARM: tegra: t12x: Update SATA regulators list

SATA_RX and SATA_TX are connected from tegra. Updated the
list of regulators with the regulator name to enable/disable
the required power domain in tegra.

Bug 1376043

Change-Id: I590500d78adcd17eb3e0262a7b3632e1baa35d9d
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/303296
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
Tested-by: Venkata Jagadish <vjagadish@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: Add sata IO_Rail entry
Mallikarjun Kasoju [Thu, 24 Oct 2013 10:08:12 +0000]
arm: tegra: Add sata IO_Rail entry

SATA_RX and SATA_TX are connected from PEX power domain of
tegra. So added required power tree entry for enabling
PEX power domain.

Bug 1376043

Change-Id: I20bfc76b7552d0391fd78513e3339f3d8f542960
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/303295
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkata Jagadish <vjagadish@nvidia.com>
Tested-by: Venkata Jagadish <vjagadish@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: fb: Add compat ioctl
Tuomas Kulve [Tue, 20 Aug 2013 09:25:36 +0000]
video: tegra: fb: Add compat ioctl

Bug 1352981

Change-Id: Ie103fd01a751744f9d879dbf91972021eb73e483
Signed-off-by: Tuomas Kulve <tkulve@nvidia.com>
Reviewed-on: http://git-master/r/298883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peng Du <pdu@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: configs: tegra12: Enable CM3217 ALS
Sri Krishna chowdary [Fri, 18 Oct 2013 11:40:25 +0000]
ARM: configs: tegra12: Enable CM3217 ALS

TN8 uses Cm3217 ALS. Hence set CONFIG_SENSORS_CM3217 = y.

Bug 1373590

Change-Id: I6b6920e5e0c4190e43e11e1e89c3acd9b2af66e4
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/301211
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agostaging: iio: adc: palmas: Change precision multiplier for calibration
Jinyoung Park [Mon, 14 Oct 2013 14:38:45 +0000]
staging: iio: adc: palmas: Change precision multiplier for calibration

Changed precision multiplier from 1000 to 1000000 for improving
the accuracy of calibration.

Bug 1287901
Bug 1356128

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/241372
(cherry picked from commit 430337add6aaf1687d70c8753a09d37ec28819d5)

Change-Id: Ife182b8e4f5e46a2365d1c89bc275495c45ee92e
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/298984
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoRevert "iio: palmas_gpadc: Add data and formula for gain_error"
Jinyoung Park [Mon, 14 Oct 2013 14:23:58 +0000]
Revert "iio: palmas_gpadc: Add data and formula for gain_error"

This reverts commit b15e435cba59220b7bb40c8f5f3a7cc094b7d8a3.

Bug 1356128

Change-Id: Ib7ef36c1d067c2a24d6ed4bdeed7e9e388ab78c9
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/298983
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra12: Enable CIFS as module
pdabade [Thu, 24 Oct 2013 09:24:29 +0000]
arm: tegra12: Enable CIFS as module

Update the kernel config to add CIFS support as module.

bug 1392138

Change-Id: I16d889d7f0424da4372aca6e7bfa00983e40209c
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/303270
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agostaging: iio: light: cm3218: share sensor's info
Sri Krishna chowdary [Wed, 23 Oct 2013 06:23:17 +0000]
staging: iio: light: cm3218: share sensor's info

sysfs to share the information on resoultion, integration time,
power consumed, maximum luminance that can be detected in lux.
Need this, since we are supporting multiple ALS with same usespace
driver.

Bug 1373590

Change-Id: Ia333f4a3118268f0c87bf0d3f8b00be17581f05a
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/302734
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: tn8: i2c registration for CM3217 ALS
Sri Krishna chowdary [Wed, 23 Oct 2013 05:35:20 +0000]
ARM: tegra: tn8: i2c registration for CM3217 ALS

CM3217 ALS uses GEN1 i2c which is i2c0.
Hence, register it under the same.

Bug 1373590

Change-Id: I4b8daadafc7e1eb129327a4ed79f69df5b43f458
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/302733
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Tested-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: tn8: Add regulator for CM3217 ALS
Sri Krishna chowdary [Fri, 18 Oct 2013 11:34:56 +0000]
ARM: tegra: tn8: Add regulator for CM3217 ALS

CM3217 ALS uses VDD_SNSR_PREG. Hence, add entry under it.

Bug 1373590

Change-Id: I0753cd04296a174e956119609976514fa9891466
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/301209
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Tested-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: host: gk20a: Recover mult engines
Arto Merilainen [Wed, 23 Oct 2013 11:07:15 +0000]
video: tegra: host: gk20a: Recover mult engines

The driver used to recover only the faulted engine. However, the
channel may still be using the other engine and therefore it is
safer to find faulty engine and fault all engines that have the
same hwctx as the faulted engine.

Bug 1343634

Change-Id: Idfd51d7aad2e05568e17892b0e5b0f26433c7137
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/302823
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: increase DPD status read delay
Bibek Basu [Wed, 23 Oct 2013 09:12:30 +0000]
ARM: tegra: increase DPD status read delay

Delay before read of a DPD_STATUS register after writing
a DPD_REQ register should be pclk * (Max DPD_TIM + 5)

Bug 1389663

Change-Id: I7e13f7587bb30005c5992b2a6ea6800a115b0840
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/302756
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomfd: palmas: support to read v2.3 sw_rev/des_rev
Pradeep Goudagunta [Thu, 24 Oct 2013 06:28:35 +0000]
mfd: palmas: support to read v2.3 sw_rev/des_rev

Support to read v2.3 INTERNAL_DESIGNREV and SW_REVISION.

Bug 1353237

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

5 years agoARM: tegra: t12x: implent pad pll iddq for sata
venkatajagadish [Tue, 22 Oct 2013 06:52:23 +0000]
ARM: tegra: t12x: implent pad pll iddq for sata

Bug 1389315

Change-Id: Iaf6ecc3c06cd70efb7da1d7d1fb51ee6485a6b4c
Signed-off-by: venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/300407
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: tegra: host: use dma apis for vic
Deepak Nibade [Mon, 21 Oct 2013 09:30:23 +0000]
video: tegra: host: use dma apis for vic

Use dma_alloc_writecombine()/dma_free_writecombine() apis to
allocate/free memory instead of nvhost_memmgr apis

Bug 1380122

Change-Id: I0db91784b72a12954655b4e7c17ea4857b500e55
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/301732
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: use virtual address instead of mem_handle
Deepak Nibade [Mon, 21 Oct 2013 09:07:55 +0000]
video: tegra: host: use virtual address instead of mem_handle

add below functions which support using virtual addresses
instead of mem_handle
_nvhost_cdma_push_gather()
_push_buffer_push_to()

Bug 1380122
Bug 1380147

Change-Id: I6d33eed4d4d254be7f15f839095ad685351db74e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/301731
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: Update address map of mselect
Ashwin Joshi [Wed, 23 Oct 2013 12:16:13 +0000]
ARM: tegra: Update address map of mselect

Address for mselect has changed for t11x, t14x, t12x. So update this address
in the address map.

Bug 1352285

Change-Id: Ib45c91fd09c4bc8fad71911c943dd11ff750d7bc
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/302836
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: t12x: implent pad on/off for sata
venkatajagadish [Mon, 30 Sep 2013 06:52:30 +0000]
ARM: tegra: t12x: implent pad on/off for sata

With powergating and context save (idle powergating feature),
Controller is unable to enter into DEVSLP mode, to overcome
this issue a SW WAR provided with this DEVSLP is working.

Bug 1327313
Bug 1357649
Bug 1391015

Change-Id: I2a93232a2e770bfe60ef83c535c3359bd848a3a2
Signed-off-by: venkatajagadish <vjagadish@nvidia.com>
Reviewed-on: http://git-master/r/299821
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agocgroup: fix to break the while loop in cgroup_attach_task() correctly
Shridhar Rasal [Thu, 24 Oct 2013 03:07:51 +0000]
cgroup: fix to break the while loop in cgroup_attach_task() correctly

Both Anjana and Eunki reported a stall in the while_each_thread loop
in cgroup_attach_task().

It's because, when we attach a single thread to a cgroup, if the cgroup
is exiting or is already in that cgroup, we won't break the loop.

If the task is already in the cgroup, the bug can lead to another thread
being attached to the cgroup unexpectedly:

  # echo 5207 > tasks
  # cat tasks
  5207
  # echo 5207 > tasks
  # cat tasks
  5207
  5215
What's worse, if the task to be attached isn't the leader of the thread
group, we might never exit the loop, hence cpu stall. Thanks for Oleg's
analysis.

This bug was introduced by commit 081aa458c38ba576bdd4265fc807fa95b48b9e79
("cgroup: consolidate cgroup_attach_task() and cgroup_attach_proc()")

Cc: <stable@vger.kernel.org> # 3.9+
Reported-by: Eunki Kim <eunki_kim@samsung.com>
Reported-by: Anjana V Kumar <anjanavk12@gmail.com>
Signed-off-by: Anjana V Kumar <anjanavk12@gmail.com>
[ lizf: - fixed the first continue, pointed out by Oleg,
        - rewrote changelog. ]

Bug 1355677

Change-Id: Ifa356d9869e888a759c2be943cffd394a4102a9a
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/303135
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: update defconfig for vcm30t124
Ashwin Joshi [Wed, 23 Oct 2013 12:53:09 +0000]
ARM: tegra: update defconfig for vcm30t124

Automotive board vcm30t124 has been renamed frm vcm30_t124. So, update
the new defconfig with changes made in the old one. Old defconfig will
then be removed.

Bug 1371825
Bug 1394511

Change-Id: I5b30c204dbba89e6777f918ea9d9abd1fb01df84
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/302846
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raghavendra V K <rvk@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Kconfig: remove wrong sound config
Songhee Baek [Wed, 23 Oct 2013 16:56:43 +0000]
ARM: tegra: Kconfig: remove wrong sound config

The vcm30-t124 doesn't have rt5639 and rt5645.
It doesn't need to enable neither MACH_HAS_SND_SOC_TEGRA_RT5639
nor MACH_HAS_SND_SOC_TEGRA_RT5645.

Bug 1373091

Change-Id: I6d3767e3528671508effbb3f81d9b89cf4fa4991
Reviewed-on: http://git-master/r/302902
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Songhee Baek <sbaek@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

5 years agoinit: calibrate: don't print out bogomips value on boot
Shreshtha Sahu [Fri, 19 Jul 2013 05:27:26 +0000]
init: calibrate: don't print out bogomips value on boot

BogoMIPs is a confusing concept to the ill-informed, so allow
architectures to print it only if they find it worthwhile. The delay
calibration code should stick to lpj and avoid trying to draw any
correlation with BogoMIPs, which may be a fixed value derived from a
timer frequency independent of the CPU clock speed.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>

Patch picked from - https://lkml.org/lkml/2013/5/3/399

Bug 1320222

Change-Id: I6f08d6eea075a7ee0ab98e7c04ceb29ba350ee60
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/302229
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: Remove any correlation between IPC and BogoMips value
Shreshtha Sahu [Fri, 19 Jul 2013 05:29:41 +0000]
ARM: Remove any correlation between IPC and BogoMips value

Now that we support a timer-backed delay loop, I'm quickly getting sick
and tired of people complaining that their beloved bogomips value has
decreased. You know who you are!

This patch removes the bogomips line from /proc/cpuinfo, based on the
reasoning that any program parsing this is already broken and, as such,
won't be further broken if the field is removed.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>

Patch taken from - https://lkml.org/lkml/2013/5/3/399

Bug 1320222

Change-Id: I484c0b8da47fc9407238d8ba82406cfbf7bb59af
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/302228
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: tegra: Disable short delay if wake gpio not defined.
glei [Wed, 9 Oct 2013 06:03:07 +0000]
misc: tegra: Disable short delay if wake gpio not defined.

Disable short_autosuspend_delay for Modem device, when wake gpio
is not used.

Bug 1362837

Change-Id: Iadcd28ba432846aeed636d453208d3f954aaf065
Signed-off-by: glei <glei@nvidia.com>
Reviewed-on: http://git-master/r/283833
(cherry picked from commit dc8d4213de17f27a8440dc87ce8bec0623048147)
Reviewed-on: http://git-master/r/302954
Reviewed-by: Neil Patel <neilp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Neil Patel <neilp@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoarm: tegra: la: add t12x camera la support
Adeel Raza [Fri, 4 Oct 2013 23:22:37 +0000]
arm: tegra: la: add t12x camera la support

Bug 1381431

Change-Id: I12129c6d8b3e786c637351e4890af659e2654297
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/289995
Reviewed-by: Bruce Holmer <bholmer@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra: ardbeg: enable emc dvfs for E1782
Seema Khowala [Wed, 23 Oct 2013 23:24:20 +0000]
arm: tegra: ardbeg: enable emc dvfs for E1782

Bug 1361265

Change-Id: I12b0ee2af4b4a86885cc67b5e6f805c097121659
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/289967
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agonet: wireless: bcmdhd: add dummy wowlan packet filter
Om Prakash Singh [Mon, 21 Oct 2013 15:56:04 +0000]
net: wireless: bcmdhd: add dummy wowlan packet filter

wowlan packet filter is mandated to avoid the disconnection of
connected network before suspend. So a dummy wowlan filter is
configured for kernels linux-3.8 and above

Bug 1389293

Change-Id: I8de153a28d4c7d3c0884ae09ccbdf106729b9b99
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/301838
GVS: Gerrit_Virtual_Submit
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra12: clock: Fix system bus clock rounding
Kaz Fukuoka [Wed, 25 Sep 2013 23:42:51 +0000]
ARM: tegra12: clock: Fix system bus clock rounding

Made sure system bus clock (SCLK) round rate operation follows the
same policy on fractional divisors as set rate operation - either both
operations allow fractions, or both does not support them (otherwise,
clock rate stats are confused).

Ported from Tegra11 Change-Id: I3814d66905c01f2ff84b0402be9b9a3d0b113fd6

Change-Id: If4b0eed9be2ce8967c5597ac7471325d0043a38f
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/298504
Reviewed-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Tested-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: gpu: Add powergate ioctl.
vinodg [Fri, 18 Oct 2013 00:39:00 +0000]
video: tegra: gpu: Add powergate ioctl.

Moved the powergate/unpowergate code to a separate function.

bug 1390624

Change-Id: I6f097afd9deaed61b02eb9226c428829e659c21d
Signed-off-by: vinodg <vinodg@nvidia.com>
Reviewed-on: http://git-master/r/300939
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: gk20a: fix non PMU gr init
Prashant Malani [Tue, 22 Oct 2013 21:09:43 +0000]
video: tegra: host: gk20a: fix non PMU gr init

Fix the gr ucode load sequence to revert to the legacy
method of loading ucode, if gPMU support is not available.

This is because the quicker bootstrap routine requires a gPMU
VM instance to load the gr ucode into memory.

Bug 1392583

Change-Id: I9c2b2d0611e11d133f01f7466507f68cae2d4ca1
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/302471
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Tested-by: Matt Craighead <mcraighead@nvidia.com>

5 years agoARM: Tegra12: Ardbeg: NCT: Load EMC tables
Jay Bhukhanwala [Wed, 21 Aug 2013 19:52:28 +0000]
ARM: Tegra12: Ardbeg: NCT: Load EMC tables

Adds functionality to load the EMC table from the NCT
partition. If no memory table is in NCT or the NCT
partition doesn't exist, fall back to the built-in table.

Bug 1300925

Change-Id: I09c13443600c987884f67520ca72a7702e052837
Signed-off-by: Jay Bhukhanwala <jbhukhanwala@nvidia.com>
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/289290
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra: vcm3.0: t124: Add PCA953X init
Songhee Baek [Sun, 22 Sep 2013 17:38:21 +0000]
ARM: tegra: vcm3.0: t124: Add PCA953X init

PCA953X is for misc io gpio, it needs to be
initialized to release abb_reset, bluetooth wake-up,
user_led1/2 pins.

Bug 1373091

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

5 years agoASoC: ad193x: Add support various sampling rate
Songhee Baek [Sun, 25 Aug 2013 14:41:45 +0000]
ASoC: ad193x: Add support various sampling rate

Current ad193x codec driver supports only 48kHz even though
ad193x can support various sampling rate.
This patch is to various MCLK frequency like 44.1kHz and 32kHz.

Change-Id: I81e80ebd83e7cd9b255e01460eb3047f4296ad36
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/289568
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Nitin Nagaraja <nitinn@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoASoC: dapm: Workaround for double addition prefix
Songhee Baek [Fri, 23 Aug 2013 17:59:30 +0000]
ASoC: dapm: Workaround for double addition prefix

When we use identical codec for dual codec use case,
we need to use prefix for codec driver, but dapm making double
addition prefix for codec DAI widget in snd_soc_dapm_add_route.
So, this change is for avoiding double addition prefix for codec
DAI widget.

This change is needed by dual codec use case.

Bug 1354235
Bug 1373091

Change-Id: I3e9214ca87ccd14c9729b4accb40ec3cf4f65ed0
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/289442
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bob Johnston <bjohnston@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoARM: tegra12:clock: Add tegra-alt driver clocks
Songhee Baek [Sun, 25 Aug 2013 16:18:03 +0000]
ARM: tegra12:clock: Add tegra-alt driver clocks

These clocks are for tegra-alt ASoC driver.

Bug 1354235
Bug 1373091

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

5 years agoRevert "video: tegra: gk20a: add PBUS interrupt"
Terje Bergstrom [Wed, 23 Oct 2013 11:36:59 +0000]
Revert "video: tegra: gk20a: add PBUS interrupt"

This reverts commit 845ccb7dc90c3e0f1194bec1ee2bfd62d13e06ce.

Change-Id: Ifcdf147901aa11c88d87cfdacf80cc41bf2ccc40
Reviewed-on: http://git-master/r/302819
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Handle dropped MMU faults
Arto Merilainen [Wed, 23 Oct 2013 08:07:19 +0000]
video: tegra: host: Handle dropped MMU faults

The code currently does not handle dropped MMU faults that occur if
we get an MMU fault while we are handling the previous MMU fault.
This patch adds a stub handler for handling these faults.

Bug 1343634

Change-Id: Ia081c53c70cdc8d5c0e8fd6b4b2c94b7b35d2ed6
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/302710
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Long dependent submit timeout
Arto Merilainen [Tue, 22 Oct 2013 10:28:35 +0000]
video: tegra: host: Long dependent submit timeout

Submits may have dependencies to submits on other channels. If
these submits are blocked by i.e. faulty submits, we may trigger
a false timeout for the waiting submit.

This patch modifies timeout handler to check if the channel is
currently waiting for a syncpoint that is not owned by the present
submit. If yes, we postpone the timeout.

Bug 1343634

Change-Id: I7cb2f9ccf9a5414d808e4376adbd8605cc1b76bd
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/302709
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: gk20a: add PBUS interrupt
Kevin Huang [Wed, 25 Sep 2013 23:49:52 +0000]
video: tegra: gk20a: add PBUS interrupt

Change-Id: I14e4012dfd407ba106a6f6d582c9e570ed920cf2
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/300262
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: gk20a: fix host crash during init
Kevin Huang [Thu, 26 Sep 2013 23:56:31 +0000]
video: tegra: gk20a: fix host crash during init

Don't access to gr register when gr is not on.

Change-Id: I5d240cf437c252466e3cea5e6741cbd802c79665
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/300162
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agopower: bq2419x-charger: short vbus enable time
Martin Chi [Wed, 14 Aug 2013 07:15:53 +0000]
power: bq2419x-charger: short vbus enable time

Per the scope of vbus regulator when plug-in otg
device cable, the vbus ring time is only about 2ms,
so short enable time from 500ms to 8ms

Bug 1344478

Change-Id: Ief7573281d427940af2af3b0365bac1389ae7862
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/261358
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-on: http://git-master/r/302589
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agostaging: iio: adc: palmas: add DT support
Laxman Dewangan [Tue, 22 Oct 2013 12:40:27 +0000]
staging: iio: adc: palmas: add DT support

Add DT support for the Palmas ADC driver.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(Cherrypicked commit b11a33b8a6d95d0e5e5f27d0854fc053c2fbeb6f)

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

5 years agoiommu/tegra: smmu: Print phys_addr_t/dma_addr_t using %pa
Hiroshi Doyu [Mon, 21 Oct 2013 09:08:12 +0000]
iommu/tegra: smmu: Print phys_addr_t/dma_addr_t using %pa

phys_addr_t/dma_addr_t becomes 64 bits wide and printing a variable of
that type using a simple %x format specifier causes the compiler to
complain. Change the format specifier to %pa, which is used
specifically for variables of type phys_addr_t/dma_addr_t.

Change-Id: I73c0e00f03e0f27e55210a9a37c3b3c54878b3d6
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/301717

5 years agoiommu/tegra: Print phys_addr_t using %pa
Thierry Reding [Tue, 17 Sep 2013 08:19:31 +0000]
iommu/tegra: Print phys_addr_t using %pa

When enabling LPAE on ARM, phys_addr_t becomes 64 bits wide and printing
a variable of that type using a simple %x format specifier causes the
compiler to complain. Change the format specifier to %pa, which is used
specifically for variables of type phys_addr_t.

Change-Id: I3c11b6c6e062dd7a7724143aef9df3dd29849429
Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoarm: tegra: save and restore actmon context
Prashant Gaikwad [Mon, 21 Oct 2013 04:59:13 +0000]
arm: tegra: save and restore actmon context

Save actmon context before entering LP0 from cpuidle
and restore after exit.

Bug 1254633

Change-Id: I4e96cd1465aa57a032d4f782f00deb0af620f660
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/299472
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>