5 years agoARM: DT: Add DT entry for PWMs and Backlight
Ajay Nandakumar [Tue, 29 Oct 2013 14:21:21 +0000]
ARM: DT: Add DT entry for PWMs and Backlight

Add DT entry for PWM controller and Backlight for NVIDIA's
Tegra 114,124 SoCs.It has 4 PWM controllers.

Bug 1256106

Change-Id: Ia927d3231db1a07490b5027c1f23d8e736173f30
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/299035
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: loki: Add ina3221 support for E2549
Jun Yan [Tue, 8 Oct 2013 22:35:46 +0000]
arm: tegra: loki: Add ina3221 support for E2549

Add platform data for ina3221 on E2549 board

Bug 1317330

Change-Id: Ie5a1a354024a496c385de4690a6daff538055245
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/301340
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoArm: tegra: clk_get_rate from non atomic context
Puneet Saxena [Fri, 25 Oct 2013 11:31:14 +0000]
Arm: tegra: clk_get_rate from non atomic context

Clk_get_rate() for emc client should be called from non
atomic context.

Bug 1371564

Change-Id: I2b6c1b804dcc0847639757d53a2fdf29124a7bca
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/303862
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoPM / Domains: fix device runtime status print
Prashant Gaikwad [Tue, 29 Oct 2013 08:40:47 +0000]
PM / Domains: fix device runtime status print

Device runtime status is valid only if runtime PM
is enabled or there is no error.

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

5 years agomedia: platform: tegra: ar0261: update fuseid read
Phil Breczinski [Sat, 26 Oct 2013 19:07:15 +0000]
media: platform: tegra: ar0261: update fuseid read

Updates the fuse ID read function.  Eliminates fixed sleep time.
Restores previous control register state.

Bug 1379777
Bug 1367436

Change-Id: Idbd7e97d3c52973ec165b6887640e71a8737cc15
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/304144
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: nvmap: Handle error condition correctly
Alex Waterman [Tue, 29 Oct 2013 18:44:52 +0000]
video: tegra: nvmap: Handle error condition correctly

Make sure to check for both error and NULL when checking the
return from __nvmap_alloc().

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

5 years agonet: wireless: bcmdhd: clear hang state on dev open with stop call
Mohan T [Tue, 29 Oct 2013 12:09:34 +0000]
net: wireless: bcmdhd: clear hang state on dev open with stop call

It seems DUT the hang event is not getting cleared by calling
stop in some scenarios. So call stop when the hang flag is set
in the open call before return.

Bug 1391368

Change-Id: Ie7fbb658cc8094c1dd763a082ffc30af5363ba55
Reviewed-on: http://git-master/r/302321
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Tested-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: loki: Re-allocate CPU Vmax thermal trip-points
Alex Frid [Sun, 27 Oct 2013 04:03:10 +0000]
ARM: tegra: loki: Re-allocate CPU Vmax thermal trip-points

Moved CPU Vmax thermal trip-points to SOC_THERM if available,
otherwise kept them on external thermal monitor.

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

5 years agoARM: tegra: ardbeg: Add CPU Vmax thermal trip-points
Alex Frid [Sun, 27 Oct 2013 04:00:32 +0000]
ARM: tegra: ardbeg: Add CPU Vmax thermal trip-points

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

5 years agoARM: tegra12: dvfs: Add CPU Vmax thermal profile
Alex Frid [Sun, 27 Oct 2013 03:45:08 +0000]
ARM: tegra12: dvfs: Add CPU Vmax thermal profile

Bug 1342499

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

5 years agoARM: tegra: dvfs: Don't apply upper bound to Vmax profile
Alex Frid [Mon, 28 Oct 2013 23:17:38 +0000]
ARM: tegra: dvfs: Don't apply upper bound to Vmax profile

Removed warning when Vmax thermal profile entries exceed rail nominal
voltage - the profile limitations are satisfied in this case, anyway.
Still fail profile initialization, and generate warning if Vmin
profile entries are too high.

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

5 years agovideo: tegra: dc: fix isomgr bandwidth compuations
Rakesh Iyer [Fri, 19 Jul 2013 00:03:40 +0000]
video: tegra: dc: fix isomgr bandwidth compuations

Allow for minimum bandwidth to be reserved while display is in operation.

Bug 1326337.
Bug 1319943.

Change-Id: I923880928dacccbf73918164d10b6ef3911b1210
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/299603
Tested-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: dc: fail propose for removed display
Rakesh Iyer [Mon, 8 Jul 2013 22:41:50 +0000]
video: tegra: dc: fail propose for removed display

If a display has been removed e.g. HDMI we need to fail propose immediately.

Bug 1321777.

Change-Id: If31bfee89914b2f23de12b4e926899dfea9d2adf
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/246343
(cherry picked from commit 86a47ca92dbf3a82fa4d55b5c46c9de98ecde360)
Reviewed-on: http://git-master/r/299602
Tested-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: dc: fix isomgr feature issues
Rakesh Iyer [Thu, 27 Jun 2013 01:25:42 +0000]
video: tegra: dc: fix isomgr feature issues

Fix isomgr related code including bandwidth computation.

Bug 1311433.

Change-Id: Ieb0487df1c23c868e1a8608d9e249a0d70325086
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/299601
Tested-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: dc: use available bandwidth info
Rakesh Iyer [Tue, 25 Jun 2013 21:22:29 +0000]
video: tegra: dc: use available bandwidth info

Use available bandwidth information to force renegotiation of window configs.

Bug 1311433.

Change-Id: I735c42e77ea7e25912043a13e14e31bae4a07fb4
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/242125
(cherry picked from commit 3a20f9b1d1ccb8d86141e79e32019b6e3a1e5c81)
Reviewed-on: http://git-master/r/299600
Tested-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: dc: add asynchronous bw negotiation.
Kevin Huang [Thu, 9 May 2013 16:37:48 +0000]
video: tegra: dc: add asynchronous bw negotiation.

Add asynchronous bandwidth negotiation support for display.

Bug 1197598.

Change-Id: I16c1ba1dcbe790cec0f6b907c5d4071dc3840629
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/299599
Tested-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: dvfs: Update CPU DVFS table
Alex Frid [Tue, 29 Oct 2013 05:02:09 +0000]
ARM: tegra12: dvfs: Update CPU DVFS table

Added two new frequencies to CPU DVFS table, and updated CVB
coefficients, accordingly.

Bug 1342499

Change-Id: Ieacbe00193f902f3940a5fe2a2e439aa200a80f8
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/304673
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agomedia: platform: tegra: Add features for OV7695
Frank Chen [Fri, 4 Oct 2013 21:18:20 +0000]
media: platform: tegra: Add features for OV7695

Adding the following features to ov7695 YUV sensor
- EV Compensation(-2, -1, 0, +1, +2)
- White Balance Modes (Auto, Cloudy, Daylight,
  Fluoresent, Incandescent)

Bug 1327952

Change-Id: Ib0d326daa31aad8bd77e884501a302666c1af0d5
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/302538
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: ardbeg: Set regulator idle mode limit
Alex Frid [Thu, 24 Oct 2013 03:44:52 +0000]
ARM: tegra: ardbeg: Set regulator idle mode limit

Set 5A load limit for E1735 power module regulator.

Bug 1302884

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

5 years agovideo: tegra: dp: Avoid enabling pll_d directly
Daniel Solomon [Mon, 28 Oct 2013 23:27:29 +0000]
video: tegra: dp: Avoid enabling pll_d directly

During setup_clk, SOR enables pll_d and never disables
it afterwards. This consumes power during display off
usecases. There's no need for this call as the DC driver
takes care of (indirectly) enabling pll_d before enabling
SOR and disabling pll_d after disabling SOR.

Change-Id: I574096b5a84640ba378214e203d737c1e673721d
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/304553
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: power: Fix EDP calculator
Alex Frid [Sat, 26 Oct 2013 04:26:46 +0000]
ARM: tegra: power: Fix EDP calculator

Removed hard-coded iddq settings in order to use per-chip iddq value
for EDP calculations.

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

5 years agodrivers: misc: therm: Clean up work func
Graziano Misuraca [Wed, 16 Oct 2013 17:18:03 +0000]
drivers: misc: therm: Clean up work func

Change-Id: I243ae542480b742461297d3540e756c231dd42ec
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/300054
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dc: clean up only valid windows
Jon Mayo [Mon, 28 Oct 2013 19:14:46 +0000]
video: tegra: dc: clean up only valid windows

Do not increment syncpoints of invalid windows during controller disable.
Print a warning if a window has an invalid syncpt during disable.

Bug 1396107
Bug 1393193

Change-Id: I38afdcd07fdf3b8ddb6b0c88fff0cdacb3f2951d
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/304463
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Sharath Sarangpur <ssarangpur@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: usb: add remote wakeup callback
Neil Patel [Fri, 11 Oct 2013 18:31:43 +0000]
ARM: tegra: usb: add remote wakeup callback

Drivers can take actions based on remote wakeup events to prevent a
device or the bus from suspending before the incoming data is handled.

Bug 1362837

Change-Id: I55cf26663cbf00bd2eccc60f18aa95ab5777e604
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/289968
(cherry picked from commit 980b0ef762747561fa40b14d3cde33275927b9bb)
Reviewed-on: http://git-master/r/303390
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoarm: tegra: tn8: add PMU E1769 support for TN8.
Hayden Du [Fri, 25 Oct 2013 06:43:47 +0000]
arm: tegra: tn8: add PMU E1769 support for TN8.

Change-Id: I5d9bf80c2ab6c330fc6b4be94a4f0d92820b2780
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/303752
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: tn8: add PMU E1769 support for TN8.
Hayden Du [Fri, 18 Oct 2013 06:04:55 +0000]
arm: tegra: tn8: add PMU E1769 support for TN8.

Change-Id: I9a33464b1c1095d80d62094dde3a7be065bc7c13
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/301014
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: remove all t148 simulation references
Bo Yan [Tue, 29 Oct 2013 01:11:05 +0000]
arm: tegra: remove all t148 simulation references

Change-Id: Ic01105b6154bf4e6bcacc1f05e1c19e64d6c7805
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/304590
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>

5 years agommc: sdhci: tegra: delayed clock gate enable
Bitan Biswas [Tue, 29 Oct 2013 07:24:18 +0000]
mmc: sdhci: tegra: delayed clock gate enable

bug 1299485

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

5 years agoARM: tegra: Tegra12x sdio clock gate enable
Bitan Biswas [Tue, 29 Oct 2013 07:20:46 +0000]
ARM: tegra: Tegra12x sdio clock gate enable

SDIO clock gate is enabled for following T12x
boards:
ardbeg
loki
vcm30_t124

bug 1299485

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

5 years agoARM: tegra: ardbeg: Enable SDIO SDR104 mode
Bitan Biswas [Thu, 19 Sep 2013 09:32:43 +0000]
ARM: tegra: ardbeg: Enable SDIO SDR104 mode

Enable SDR104 mode for SDIO with clock 204MHz
per characterization data.

Bug 1299485

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

5 years agommc: host: sdhci: sdio delayed clock gate
Pavan Kunapuli [Thu, 24 Oct 2013 13:33:45 +0000]
mmc: host: sdhci: sdio delayed clock gate

Aggressive clock gate degrades sdio performance.
Hence, sdio clock gate is delayed.
 - sdio clock gate is done if no further
   transaction starts within 20msec interval

bug 1299485

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

5 years agoARM: tegra: disable SDIO clock gating
R Raj Kumar [Mon, 23 Sep 2013 08:52:09 +0000]
ARM: tegra: disable SDIO clock gating

SD/SDIO/EMMC Clock gate control done through
board platform data. SDIO clock gate disabled
for all boards.

Bug 1360926
Bug 1299485

Change-Id: I64bd530a1fcb862bc67b363b7ab5537f995a3fd3
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/304724
Reviewed-by: Automatic_Commit_Validation_User

5 years agopower: power_supply: fix build break
Sivaram Nair [Fri, 25 Oct 2013 08:25:45 +0000]
power: power_supply: fix build break

Provide empty implementation for power_supply_get_by_name when
CONFIG_POWER_SUPPLY is not enabled.

Change-Id: Ibb901a470c9affda7ddf279c5098a0b071434b20
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/303792
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoRevert "ARM: tegra12: enable DT support for host1x"
Terje Bergstrom [Tue, 29 Oct 2013 12:00:05 +0000]
Revert "ARM: tegra12: enable DT support for host1x"

This reverts commit 1a48e3a1826b6347b95aa3c1c96ab1c957a240ac.

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

5 years agoARM: tegra12: enable DT support for host1x
Deepak Nibade [Thu, 3 Oct 2013 09:20:05 +0000]
ARM: tegra12: enable DT support for host1x

- make board file changes to enable DT support for host1x
- rename duplicate ISP clock name to tegra_isp.0
  since with DT, device name becomes isp.0 now

bug 1366383

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

5 years agoregulator: palmas: get external control gpio from dt node also
Laxman Dewangan [Fri, 25 Oct 2013 12:14:45 +0000]
regulator: palmas: get external control gpio from dt node also

In Palmas devices, the rails can be controlled by external input pin
and these pins can be driven by GPIO of SoCs.

Add the support to get the gpio number from dt node in this case if it
is gpio controlled.

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

5 years agoARM: tegra: loki: Pass vcore limits in plat data
Naveen Kumar Arepalli [Thu, 3 Oct 2013 10:07:04 +0000]
ARM: tegra: loki: Pass vcore limits in plat data

Pass boot core voltage, nominal core voltage, min vcore override
voltage limits through platform data for sdmmc1/3/4.

Bug 1344640

Change-Id: I2e0ea481ef5cb2f5bacfd8f559729c1ab0544016
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/300482
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARCH: arm: vcm30t124: Increase LDO5 limit to 3.95V
Ashwin Joshi [Mon, 28 Oct 2013 09:46:32 +0000]
ARCH: arm: vcm30t124: Increase LDO5 limit to 3.95V

Incrase max LDO5 limit to 3.95 V for vcm30t124 board.

Bug 1369885

Change-Id: Id8e816d5bb0a7e0240c4a8d49f1e379b021f197b
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/304310
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: pcie: Fix issues caused by 3.10 merge
Jay Agarwal [Fri, 25 Oct 2013 12:55:56 +0000]
arm: tegra: pcie: Fix issues caused by 3.10 merge

1. Fix broken pcie_test.ko by exporting required
functions and structures.
2. Move mach/pci.h -> linux/pci-tegra.h as mach is
to be deprecated.
3. Organized add_port function

Bug 1375550

Change-Id: I148444585f35ed912d86aa7eb70533cb7405d078
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/303877
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: host: vi: split out built-in code
Bryan Wu [Wed, 23 Oct 2013 18:31:15 +0000]
video: host: vi: split out built-in code

VI driver could be a module. Those T124 sepcific functions are
used by other drivers, which make VI driver can't be built as a
module. So split them out to a separated file and always build
it into kernel, then the rest of vi.c driver can be a module.

Bug 1377330

Change-Id: I4a35ddd62f1c3caca09e596603f5f99b16159754
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/289327
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: laguna: add usb vbus_en support
Bibek Basu [Thu, 3 Oct 2013 07:28:02 +0000]
ARM: tegra: laguna: add usb vbus_en support

Add correct fixed regulator support for all
three falvors of Laguna

Bug 1381552
Bug 1372221

Change-Id: I76734f030e10620b3aac6a6d0b33756c25300f66
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/299549
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: laguna: correct sdmmc regulator
Bibek Basu [Mon, 21 Oct 2013 11:13:12 +0000]
ARM: tegra: laguna: correct sdmmc regulator

move the sdmmc0 regulator to SD5.
correct dev_name for pwrdet_sdmmc regulator

Bug 1382004
Bug 1382018

Change-Id: I5c8b5f46fdf34b2010e7aa1ff587acfc2da9d86f
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/301761
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: laguna: remove nct72 skin temp sensor
Bibek Basu [Mon, 21 Oct 2013 09:56:54 +0000]
ARM: tegra: laguna: remove nct72 skin temp sensor

Remove the registration of nct72 skin temp sensor
for Laguna

Bug 1385303

Change-Id: I1672731d107cd8cca384e485ad1bd48977c75e57
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/301736
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: loki: disable nct72 on Thor 195
Sang-Hun Lee [Sat, 26 Oct 2013 02:15:35 +0000]
ARM: tegra: loki: disable nct72 on Thor 195

 - nct72 is not connected to any tdiode Thor 195, so disable

Bug 1394697

Change-Id: Ic5a140d3aa83ec3619da20dfbc02ddaad0f27cb2
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/304116
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agousb: tegra: do not increase rtpm reference on device connect
Prashant Gaikwad [Mon, 28 Oct 2013 04:46:57 +0000]
usb: tegra: do not increase rtpm reference on device connect

RTPM is handled by USB core driver and device is runtime
suspended after some idle time. If reference count is
incremented on device connect then the RTPM status remains
active unless device is disconnected.

Change-Id: I68c96ad8fffaf7f3a4795a6949779b0e5cdef64e
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/304195
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: loki: add loki nff b00 emc table
siddardha naraharisetti [Fri, 25 Oct 2013 23:08:30 +0000]
ARM: tegra: loki: add loki nff b00 emc table

Based on sku, load loki nff b00 emc table.

Bug 1326949

Change-Id: I7710c39387a131d43e932d9b38b0ac351c8fe114
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/304575
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: move irq drivers to drivers/irqchip
Ajay Nandakumar [Mon, 28 Oct 2013 10:16:56 +0000]
ARM: tegra: move irq drivers to drivers/irqchip

Bug 1379891

Change-Id: I18a95deafbc112aa22da66d599e8ffb1c85fedab
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/302909
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Move mach-tegra/{gic.h, pm-irq.h}
Ajay Nandakumar [Wed, 23 Oct 2013 15:30:12 +0000]
ARM: tegra: Move mach-tegra/{gic.h, pm-irq.h}

Moving mach-tegra/gic.h and mach-tegra/pm-irq.h to
include/linux/irqchip/tegra-irq.h so that it helps faclitate the
movement of irq drivers from mach-tegra/ to drivers/.

Bug 1379891

Change-Id: Id062ebc16441ac295df78731c1e44b32e75d3286
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/302884
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: config: vcm30t124: Enable tegra_alt driver
Songhee Baek [Mon, 28 Oct 2013 16:28:35 +0000]
ARM: config: vcm30t124: Enable tegra_alt driver

This change is for enabling tegra-alt ASoC driver and vcm30t124
machine driver.

Bug 1373091

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

5 years agoARM: tegra: MC: Fix L4T build
Alex Waterman [Fri, 25 Oct 2013 17:30:28 +0000]
ARM: tegra: MC: Fix L4T build

Correct relative paths are necessary for L4T build.

Bug 1395858

Change-Id: Ia112989c8c8d971bb84c58da0c955bd4f7c204b2
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/304419
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Tested-by: Matt Craighead <mcraighead@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: ardbeg: update edp settings
Charlie Huang [Fri, 18 Oct 2013 21:51:43 +0000]
ARM: tegra: ardbeg: update edp settings

for ar0261 and imx135

bug 1358215

Change-Id: Ia6871792cdd02f4b37d7d4b2110886fe40832810
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/301405
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agodrivers: media: tegra: edp support
Charlie Huang [Fri, 18 Oct 2013 21:50:08 +0000]
drivers: media: tegra: edp support

Added edp support on ar0261 and imx135

bug 1358215

Change-Id: I9930865d438be7e672435fc792d5c0f1daf70ea0
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/301404
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoALSA: hda:Update logs with platform driver support
siddardha naraharisetti [Tue, 22 Oct 2013 20:39:53 +0000]
ALSA: hda:Update logs with platform driver support

Updated debug logs for the case where the driver is used as
platform driver. On devices where HD-audio controller is on a
proprietery non-pci interface, debug logs referring to pci
device resuled in OOPS. fixed this by updating debug messages
print the device name either pci_name or platform device name.

Bug 1390896

Change-Id: I00f61d9c05473de7c4686d4e5bb1215ee87b72c5
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/302463
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra12: clock: Don't clip EMC max rate to boot rate
Alex Frid [Sat, 26 Oct 2013 02:47:06 +0000]
ARM: tegra12: clock: Don't clip EMC max rate to boot rate

Don't set EMC maximum rate based on boot rate - let EMC DVFS to
determine maximum limit when EMC scaling table is loaded.

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

5 years agoARM: tegra12: dvfs: Combine CPU CVB tables
Alex Frid [Tue, 22 Oct 2013 23:26:27 +0000]
ARM: tegra12: dvfs: Combine CPU CVB tables

Combined CPU CVB frequency scaling tables for different chip skus into
one table, and applied per-sku maximum frequency limits to this table.
Since max frequency is specified now explicitly, do not trim list of
CPU frequencies in DFLL mode to fit voltage range (maximum voltage
limit is applied to DFLL voltage control directly, anyway).

Bug 1342499

Change-Id: I425e19ad2437b14cc4b54328a4b94802f8c58c25
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/304151
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra12: clock: Set non-zero CPU minimum rate
Alex Frid [Sat, 26 Oct 2013 01:08:58 +0000]
ARM: tegra12: clock: Set non-zero CPU minimum rate

Set minimum 3.1875 MHz rate for both LP and G CPUs on Tegra12.
CPU frequency scaling table never go such low, anyway. However, debug
interface allows to request any rate, and this request would fail for
rates below minimum reachable from backup PLLP at max divider setting
(408/128 = 3.1875MHz).

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

5 years agoARM: tegra: power: Calculate regulator idle limits table
Alex Frid [Wed, 23 Oct 2013 00:49:00 +0000]
ARM: tegra: power: Calculate regulator idle limits table

Added EDP calculation of maximum frequency limits in CPU regulator idle
mode based on platform specific idle current, number of on-line CPUs,
and temperature. Updated interface with cpu-tegra driver, respectively.
Expanded EDP debugfs nodes with the new table.

Bug 1302884

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

5 years agoARM: tegra: power: Add dynamic CPU regulator mode control
Alex Frid [Thu, 17 Oct 2013 01:50:08 +0000]
ARM: tegra: power: Add dynamic CPU regulator mode control

Operational mode of CPU voltage regulator depends on load current.
Commonly on Tegra platforms this dependency was handled by regulator
h/w itself. There are exceptions, however, introduced on some Tegra12
designs that requires s/w control of the mode.

In order to dynamically control regulator mode based on load,
s/w has to

(a) estimate load based on CPU frequency, number of on-line CPU cores,
and temperature
(b) compare load estimation with regulator specific threshold whenever
any of the above factors changes
(c) change regulator mode when the respective threshold is crossed

This commit adds layer (b) in cpu-tegra driver. It expects existing
Tegra CPU load calculator in EDP driver to implement (a), and provide
look-up table of frequency thresholds for each combination of on-line
CPU cores and temperature ranges. When the respective threshold is
crossed standard regulator mode change interface is called to carry
on (c).

Only switching between IDLE and NORMAL regulator modes is supported.
The respective EDP calculator functions are just stubbed, for now.

Bug 1302884

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

5 years agoARM: tegra11: remove non-upstreamed wifi drivers
Matt Craighead [Fri, 18 Oct 2013 20:50:42 +0000]
ARM: tegra11: remove non-upstreamed wifi drivers

The intent is to migrate to the upstream brcm80211 driver.

Bug 1354953
Bug 1368586

Change-Id: Ib791dd6acbbced7aa6e35854cbc7934009bd1b45
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/301370
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoarm: tegra: tn8: remove old system edp
Timo Alho [Fri, 25 Oct 2013 21:07:37 +0000]
arm: tegra: tn8: remove old system edp

This patch removes tn8 system edp initialization calls as tn8 is
migrated to revised framework.

Change-Id: Iac65ecab3f2e14b0ddf333bd531e89afc760a780
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304008
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: Enable new sysedp framework
Timo Alho [Tue, 22 Oct 2013 15:45:14 +0000]
EDP: Enable new sysedp framework

Change-Id: Ie9e9461687e79f2929b76844033bf2e48394d6a8
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/302394
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agosoc: tegra: rt5639: add EDP support (revised framework)
Timo Alho [Fri, 18 Oct 2013 10:37:13 +0000]
soc: tegra: rt5639: add EDP support (revised framework)

Add speaker AMP support for revised system-EDP framework

Change-Id: I6367c4eade93597b6cbc305f4ec58e5eb2e9bb2b
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/301698
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agobacklight: add support for system-EDP (revised framework)
Timo Alho [Fri, 18 Oct 2013 10:20:36 +0000]
backlight: add support for system-EDP (revised framework)

Change-Id: I8175ce4f705de7185e2dfb299ecb74e1f91d515d
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/301697
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agommc: add revised system-EDP support
Timo Alho [Fri, 18 Oct 2013 10:10:20 +0000]
mmc: add revised system-EDP support

This patch adds support to revised system-EDP framework

Change-Id: Idcd9498046f31e2ecdead9638505b79b4a92eefe
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/301696
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agonet: wireless: bcmdhd: add EDP support (revised framework)
Timo Alho [Fri, 18 Oct 2013 10:03:09 +0000]
net: wireless: bcmdhd: add EDP support (revised framework)

Change-Id: I8de3d878dcb3c1a2e694715cba46d5e937c24223
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/301695
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra12: introduce revised system-EDP for TN8
Timo Alho [Fri, 18 Oct 2013 09:52:24 +0000]
ARM: tegra12: introduce revised system-EDP for TN8

This patch introduces a revised system-EDP framework implementation
for TN8 platform.

Change-Id: Id717a46f6112241cfbfb5e29738729c31b055062
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/301694
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoarm: tegra: EDP: add compatibility to new EDP
Timo Alho [Fri, 25 Oct 2013 20:50:58 +0000]
arm: tegra: EDP: add compatibility to new EDP

This patch adds compatibility to new system EDP framework

Change-Id: Ifd9b4f99d341e838f287bf9b0c409380c03a5050
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304007
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: introduce revised system-EDP framework
Timo Alho [Fri, 25 Oct 2013 20:49:49 +0000]
EDP: introduce revised system-EDP framework

This patch introduces a revised system-EDP software
framework. Framework consist of following components:
 * sysedp - central component handling of the book keeping of consumer
   power consumptions
 * sysedp_batmon - periodically monitors the state of battery and
   updates the available budget (in mW) to sysedp framework
 * sysedp_dynamic_capping - limits the CPU, GPU, and EMC frequencies
   to ensure that system will operate in the given budget.
 * sysedp_consumer - A device in the platform that has noticeable peak
   power consumption is called sysedp consumer. Consumers register
   themselves to the sysedp framework and inform sysedp when there is
   a change in their power state

Change-Id: I343d8f09082216744da41abe5e749b15cb20417a
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304006
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agohwmon: ina3221: Enable support for negative values
Jun Yan [Wed, 9 Oct 2013 04:48:37 +0000]
hwmon: ina3221: Enable support for negative values

-INA chip is able to handle negative values.Improve
 the driver to show negative value.

-Created another sysfs node for current, when INA is
 off it will show 0 mA.This prevents frequent ON/OFF
 of INA chip.

Bug 1317330

Change-Id: Ie97edaed7eee3a57f005ac6ec8d07cba473504fb
Signed-off-by: Jun Yan <juyan@nvidia.com>
Reviewed-on: http://git-master/r/301341
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoPM / Domains: add accounting for power domain
Prashant Gaikwad [Sat, 26 Oct 2013 17:58:36 +0000]
PM / Domains: add accounting for power domain

Add accounting for generic power domain power on and
power off time. It can get used by test applications
to measure the power. Also, add debug fs to read these
timestamps and domain status.

/sys/kernel/debug/<domain_name>/status
/sys/kernel/debug/<domain_name>/power_on_time
/sys/kernel/debug/<domain_name>/power_off_time

Bug 1254633

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

5 years agovideo: tegra: host: gk20a: Early FIFO reset
Arto Merilainen [Mon, 28 Oct 2013 07:25:39 +0000]
video: tegra: host: gk20a: Early FIFO reset

We used to reset PFIFO hardware block late (after MMU and PMU) in
power up sequence. As interrupts and initialisation of other
peripherals (i.e. PMU) are dependent on PFIFO, this is not correct.

This patch modifies PFIFO initialisation to happen in two steps:
First step just resets PFIFO after which we can initialise PMU and
other peripherals safely. The second step performs software
initialisation, hardware testing and finalises setting up the hw.
In addition, this patch reworks gk20a suspend to deinit fifo last.

Bug 1391695
Bug 1388078

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

5 years agomedia: tegra: fix miscdevice regist. name
Shreshtha Sahu [Wed, 23 Oct 2013 07:30:42 +0000]
media: tegra: fix miscdevice regist. name

Allocate driver name string in info struct, rather than passing
a pointer to a stack allocated array when registering a miscdevice.
This prevents 'cat /proc/misc' from dereferencing a dangling
pointer.

Drivers of following devices were updated - ad5816, as364x, dw9718,
imx091, max77387, max77665-flash, ov5693, ov9772, sh532u, ssl3250a
and tps61050.

In addition to above copyright statement were also updated.

Bug 1331357

Change-Id: I1599f790f3892a5874264b90f312176aabf097be
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/302698
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agommc: sdhci: enable dynamic clock gating for sdio
Naveen Kumar Arepalli [Wed, 28 Aug 2013 09:35:20 +0000]
mmc: sdhci: enable dynamic clock gating for sdio

Enable dynamic clock gating for sdio

Bug 1354575
Bug 1360926
Bug 1299485

Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/267214
(cherry picked from commit b5ee071e6d7195909fe83c0ef4fd227f4af95292)

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

5 years agommc: clock gating support
R Raj Kumar [Mon, 23 Sep 2013 08:56:13 +0000]
mmc: clock gating support

- Added clock gating member in host capabilities
  register
- sdhci-tegra platform data to support clock
  gate disable

Bug 1360926
Bug 1299485

Change-Id: I8412ffa3d28635651ccd716dd42bb2a553b39c1c
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/299464
Reviewed-by: Automatic_Commit_Validation_User

5 years agoRevert "video: tegra: dsi: Fix explicit host trigger calls"
Animesh Kishore [Mon, 28 Oct 2013 06:55:18 +0000]
Revert "video: tegra: dsi: Fix explicit host trigger calls"

This reverts commit 9cc57b57980f7653b16d425c37ed2440d098a004.

Change-Id: If8083b86adb3f62871a82de45f2abdde45f15b6f
Reviewed-on: http://git-master/r/304245
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoASoC: tegra-alt: vcm30-t124 machine driver
Songhee Baek [Fri, 20 Sep 2013 01:11:04 +0000]
ASoC: tegra-alt: vcm30-t124 machine driver

This machine driver is for the vcm30_t124 platform supporting
dual codecs(wm8731 and ad1937).

Bug 1373091

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

5 years agoASoC: tegra-alt: Alternative DAPM-based driver
Songhee Baek [Thu, 1 Aug 2013 20:50:35 +0000]
ASoC: tegra-alt: Alternative DAPM-based driver

This driver is for the ahub with using DAPM.
It supports kcontrols to route within the ahub
clients by user space so we can route the memory
to amx, adx and other ahub clients to I2S for
playback/capture.

Bug 1354235
Bug 1373091

Change-Id: Ia43b007de7c1161ce551087428a090ff2bf1e09e
Based-on-work-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/289919
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoRevert "usb: xhci: tegra: do not enable MSI interrupts"
joyw [Wed, 23 Oct 2013 03:20:34 +0000]
Revert "usb: xhci: tegra: do not enable MSI interrupts"

This reverts commit cb7faaa3f37cf5d90aaefde7fef8da35ab99fc2b.

This change (cb7faa) will undefine all msi related functions
in xhci.c when we have CONFIG_TEGRA_XUSB_PLATFORM support.
This will break PCIE USB3 functionality.
Revert this fix and push a new solution for original issue.

Bug 1393117

Change-Id: I1804487b6b5cde2f0190580f07f986eda675c03f
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/303300
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: host: tegra: defer ehci cpu freq. boost work
Shreshtha Sahu [Wed, 28 Aug 2013 11:55:38 +0000]
usb: host: tegra: defer ehci cpu freq. boost work

Delayed work is getting executed even before DVFS initialization
(which happens in late_initcall after all devices initialization
has completed). So device fails in changing the CPU rate, as
regulator is still not present, with following warning -

"Increasing CPU rate while regulator is not ready is not allowed"

Currently DVFS initialization, initializes both CPU and Core, and
only Core is dependent on completion of device initialization.
So ideally CPU init. can be done much earlier which will resolve
this issue. This is still under discussion.

This patch defers the cpu rate change by ehci even further so that
DVFS initialization gets completed before pm_qos_update_request.

Bug 1352877

Change-Id: Ia21af01c4bc915e1120fc72917428d9fdc26b38d
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/304198
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: hub: fix kernel panic in hub driver
Henry Lin [Mon, 5 Aug 2013 06:45:40 +0000]
usb: hub: fix kernel panic in hub driver

Hub's port devices (hub->ports) is initialized in the end of
hub_configure() by usb_hub_create_port_device(). If any error
condition in hub_configure() happens before port devices'
initialization, they will remain NULL and cause kernel panic in
hub_disconnect().

Bug 1327668

Change-Id: I95ec2f7f7b85cffe6fcc8e8392768794da280924
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/300017
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Tested-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoxhci: tegra: Enable XHCI_PLAT quirk
joyw [Wed, 23 Oct 2013 03:13:34 +0000]
xhci: tegra: Enable XHCI_PLAT quirk

As platform driver, enable XHCI_PLAT quirk to avoid
enable lagecy PCI interrupt in xhci_try_enable_msi.

Bug 1393117

Change-Id: Iccf34268835f161145dcde3fa1292b4e95369a95
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/302608
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: host: use dma apis for gr3d_t114.c
Deepak Nibade [Wed, 23 Oct 2013 15:51:10 +0000]
video: tegra: host: use dma apis for gr3d_t114.c

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

Bug 1380147

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

5 years agobase: power: reduce the default logs with wakeup_sources
Bharat Nihalani [Fri, 25 Oct 2013 12:54:15 +0000]
base: power: reduce the default logs with wakeup_sources

/sys/kernel/debug/wakeup_sources by default gives information about
various fields. This causes the logs to be cluttered and un-readable.

Hence reduce the number of fields that get printed by default.

Change-Id: Id0ffa19a4060b9aa7afce33250ad687e0774f24d
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/303876
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agousb: xhci: xhci-plat: Don't enable legacy PCI interrupts.
joyw [Wed, 23 Oct 2013 02:59:51 +0000]
usb: xhci: xhci-plat: Don't enable legacy PCI interrupts.

Apply upstream kernel fix
(Upstream kernel commit 52fb61250a7a132b0cfb9f4a1060a1f3c49e5a25)

Bug 1393117

Change-Id: Icdf48dbad7defaa38acb756a88c540b4b83a8219
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/302607
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoarm: tegra: pcie: Fix IO space needs per upstream
Jay Agarwal [Fri, 25 Oct 2013 08:40:18 +0000]
arm: tegra: pcie: Fix IO space needs per upstream

1. Modify min IO offset to 0x1000 needed for ctlr 0
to avoid conflicts in IO space initialization, now
moved to common place in upstream kernel from resp-
ective downstream drivers.
2. Reduce PCIE IO size to 64K(from 1M) as required
by upstream kernel. This fixes enumeration of more
than one root port.

Bug 1394730

Change-Id: I2a94da9924355f7bde813d9962943b6f6b899460
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/303796
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: pmc: add api to access PMC DPD reg
Ashwini Ghuge [Fri, 25 Oct 2013 12:14:20 +0000]
ARM: pmc: add api to access PMC DPD reg

Add api's to access set and clear
PMC DPD_SAMPLE and to remove rails
from IO_DPD_REQ

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

5 years agoxhci: tegra: Reset EMC bandwidth before elpg
Henry Lin [Tue, 24 Sep 2013 03:25:05 +0000]
xhci: tegra: Reset EMC bandwidth before elpg

xhci fw informs driver the changes to maximum bandwidth requirement
by MBOX_CMD_SET_BW mailbox command. Driver should reset the required
bandwidth to 0 before going to elpg.

Bug 1371282

Change-Id: Ie7cfce2a82e14ec57aea743deb525333de23cd2f
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/299418
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: WK Tsai <wtsai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

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>