3 years agovideo: tegra: dc: enable YUV 1000/1001 modes
Pekka Väänänen [Thu, 27 Aug 2015 15:03:41 +0000]
video: tegra: dc: enable YUV 1000/1001 modes

YUV modes' refresh rates are not nice multiples of 1000.
That means we need an epsilon check to generate 1000/1001 modes
correctly. Since we now match more modes than before, the mode list
needs to be larger too.

Change-Id: I49c4c65651bde2f272af98a10cd8a47e2b03022c
Signed-off-by: Pekka Väänänen <pvaananen@nvidia.com>
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/790400
(cherry picked from commit f97d6e06214b6216aea71d2f5c078183973ef0e3)
Reviewed-on: http://git-master/r/829379
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

3 years agogpu: nvgpu: gk20a: FECS BL checksum
Supriya [Tue, 3 Nov 2015 08:22:17 +0000]
gpu: nvgpu: gk20a: FECS BL checksum

Update FECS BL checksum

Bug 200149721

Change-Id: Icebcf9c0440e88f9018f514804b1e0eeaa7c89cb
Signed-off-by: Supriya <ssharatkumar@nvidia.com>
(cherry picked from commit 634363dc33bc23bf81cee319e68d6dbc8e29a53c)
Reviewed-on: http://git-master/r/826898
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

3 years agoarm: config: enable uid_cputime for T124
Pankaj Kumar [Thu, 5 Nov 2015 13:23:23 +0000]
arm: config: enable uid_cputime for T124

Enable uid_cputime for Android-M to access related sysfs nodes
for BatteryStats purpose.

Bug 200148527
Bug 200151770

Change-Id: I5aab27f823d83b93453b4cdd510722164f8dc048
Signed-off-by: Pankaj Kumar <pankumar@nvidia.com>
Reviewed-on: http://git-master/r/828455
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoinput: nvtouch: add initialization check to sysfs mode set
Kirill Artamonov [Tue, 27 Oct 2015 12:35:46 +0000]
input: nvtouch: add initialization check to sysfs mode set

Application can access sysfs before nvtouch driver is initialized.
Add driver initialization check to avoid access to uninitialized
data.

bug 200149181

Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Change-Id: Ib2c0138a0acfc46ecebc176a68cb9f831d0298fd
Reviewed-on: http://git-master/r/823462
Tested-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoiio: light: Add WAKE_ON capability
Erik Lilliebjerg [Fri, 23 Oct 2015 08:44:23 +0000]
iio: light: Add WAKE_ON capability

- Add ability to wake AP from proximity (WAKE_ON) sensors.
- Add proximity debug dump.
- Add NVS light and proximity module versioning.
- Fix light enable initial poll delay.
- Add CM32180 ARA WAR device tree configuration option.  If enabled, the WAR
  does an ARA before every I2C transaction regardless of the interrupt GPIO
  status.  The DT option: ARA_WAR = <1>;
  This is an extension to the current WAR that tests the interrupt GPIO to
  determine if an ARA is needed.

Bug 200122255
Bug 200121777

Change-Id: Id334d165cd7f6962c47592392089c55e70b50d22
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/821953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoarm64: t210: disable cluster switch for t210
Aaron Huang [Fri, 6 Nov 2015 05:03:07 +0000]
arm64: t210: disable cluster switch for t210

Disable cluster switch on T210 platform to avoid stress issue
by unset CONFIG_TEGRA_HMP_CLUSTER_CONTROL.

Change-Id: Ia80655255e2c5dbed84d9809cbd201f8507faa1d
Signed-off-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-on: http://git-master/r/828809
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoRevert "arm64: p2530: dts: use psci 0.1"
David Dastous St Hilaire [Tue, 13 Oct 2015 21:44:56 +0000]
Revert "arm64: p2530: dts: use psci 0.1"

This reverts commit b9a14a831e7867475dce6b20ebe702e1c578d55c.

Bug 1693556

Change-Id: I4d5c215adb892f0000d8bcf683d23346cd2cede8
Signed-off-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-on: http://git-master/r/817121
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mahesh Lagadapati <mlagadapati@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hyung Taek Ryoo <hryoo@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoARM: dts: change FG and charger node names
Venkat Reddy Talla [Fri, 6 Nov 2015 13:54:28 +0000]
ARM: dts: change FG and charger node names

change FG and charger node names to use proper battery
charger and battery gauge configuration.

Bug 200152203

Change-Id: I7cad2cc16653dd17e37b114aaecef1bf208898fd
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/829071
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm: tegra: config: add null encryption support
Kyle Wang [Tue, 3 Nov 2015 15:10:18 +0000]
arm: tegra: config: add null encryption support

enable CONFIG_CRYPTO_NULL for T124

Bug 1693165

Change-Id: I1574a09f336ddd401230d5baf31f8fc691a6b441
Signed-off-by: Kyle Wang <kylew@nvidia.com>
Reviewed-on: http://git-master/r/827342
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoDon't power up CPU0/CRAIL during LP0 resume
Robert Shih [Wed, 4 Nov 2015 03:26:17 +0000]
Don't power up CPU0/CRAIL during LP0 resume

If SW turn on CRAIL via PMC directly during LP0 resume,
need to trigger ram-repair request.

Warmboot bringup LP cluster and later let HW switch to
G cluster along with turn on CRAIL.

bug 1693385

Change-Id: Icf367f4cd5735fdd562432cd0cc2e64abc3918a1
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/827368
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

3 years agoRevert "video: tegra: set dc blank on display timeout"
Robert Shih [Fri, 6 Nov 2015 02:46:53 +0000]
Revert "video: tegra: set dc blank on display timeout"

bug 200136625
bug 200144212

This reverts commit 515af95849097ee75c2cf87fc9c6bc9478e8dd2c.

Change-Id: Ie625a6259831f4233ed085033f39605cb9670b6d
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/828764
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: modedb: Fix sxga pclk
Animesh Kishore [Wed, 4 Nov 2015 06:16:24 +0000]
video: modedb: Fix sxga pclk

Bug 200111511

Change-Id: I799a71eae4f6b3236e7cc6e0606f2ce02ec0bc9f
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/827463
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoarm64: tegra: remove unused platform
David Yu [Mon, 2 Nov 2015 05:07:10 +0000]
arm64: tegra: remove unused platform

Bug 200133974

Change-Id: I91f453c95b23c8bd26f2c5347edc8e2db5020f6b
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/826071
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agocpufreq: interactive: Fix governor start/stop race condition
Ian Chang [Fri, 30 Oct 2015 06:55:20 +0000]
cpufreq: interactive: Fix governor start/stop race condition

Ideally GOV_START and GOV_STOP should be synchronized.
To avoid calling multiple GOV_START, interactive governor
and cpufreq core has a flag, govoernor_enabled.
Use this flag in interactive governor to
synchronize GOV_START and GOV_STOP

bug 200148890

Change-Id: I3cbc6cd146a0c059a0f6d6ed0d6cab9e2fdbaaaf
Signed-off-by: Ian Chang <ianc@nvidia.com>
Reviewed-on: http://git-master/r/825193
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agopci: host: tegra: don't free pcie port stuctures
Vidya Sagar [Tue, 18 Aug 2015 15:08:05 +0000]
pci: host: tegra: don't free pcie port stuctures

some pcie port specific controls are present only in
rootport-0 registers which are applicable for all the ports
Hence, instead of freeing port specific structures, this patch
just disables the port on which no device is enumerated
As per MBIST bug, it also applies MBIST WAR for RP-0 always
even if there is no device enumerated on it

Bug 200122328

Change-Id: I2644144ba0e3be86abc25eeba70e86df0791231c
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/785436
(cherry picked from commit 0865f5492b1d60e457c3d928394a4e61d1eef5a0)
Reviewed-on: http://git-master/r/796900
(cherry picked from commit 4dccaa43a5cda8abcc2aa84079d353eeae5af181)
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/823464
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoarm: tegra: t124: Enable CONFIG_NETFILTER_XT_TARGET_NFLOG
Mohan Thadikamalla [Wed, 4 Nov 2015 07:47:00 +0000]
arm: tegra: t124: Enable CONFIG_NETFILTER_XT_TARGET_NFLOG

Issue: CTS testCleartextNetwork test is fail due to
strict enable command failure from netd.

Fix: Enable pending NFLOG netlink filter for
strict enable command of netd.

Bug 200147480

Change-Id: Id4bb6a32f593750c68303434aab5d77a3c3bf564
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-on: http://git-master/r/827517
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: Use gradual slowdown
Terje Bergstrom [Fri, 16 Oct 2015 22:24:50 +0000]
gpu: nvgpu: Use gradual slowdown

Program clock slowdown to happen using gradual slowdown. It is
significantly faster than the default slowdown.

Change-Id: I9e5259889637fce2c0b083a424b54af12bb45c25
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/819792
(cherry picked from commit aee586151e6a353483397eca6a3e8fd968acd3e0)
Reviewed-on: http://git-master/r/821581
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

3 years agodrivers: hid: Disable haptics on blake
Ankita Garg [Wed, 14 Oct 2015 20:05:45 +0000]
drivers: hid: Disable haptics on blake

Bug 1694535

Change-Id: I684a82bf8652cc8405b79dd09621c026825e4cf8
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/817736
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Toby Butzon <tbutzon@nvidia.com>
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoRevert "iio: proximity: SAR Stable Setting V1.2.3"
Todd Poynter [Thu, 5 Nov 2015 18:07:35 +0000]
Revert "iio: proximity: SAR Stable Setting V1.2.3"

This reverts commit 4e80f495892424d9c4bbd2be4afb19ee504fd02c.

Bug 1696152
Bug 1701337
Bug 200148519

Change-Id: I00a3339db85ba6e6656286dd5ab7633c4d6509b2
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/828533
Reviewed-by: Automatic_Commit_Validation_User

3 years agoserial: add dynamic control for console write
Vaibhav Shinde [Thu, 30 Jul 2015 07:34:55 +0000]
serial: add dynamic control for console write

provides a sysfs interface to control console writes
of a respective terminal.
(/sys/class/tty/ttyS0/console_write_enable)

bug 200105105

Change-Id: I4df7efdf18b4949ee93b34fb75360c3471018569
(cherry picked from commit 6ecbf6656530a062c5cdc82d6dc47da65b308819)
Signed-off-by: Vaibhav Shinde <vashinde@nvidia.com>
Reviewed-on: http://git-master/r/776665
Reviewed-on: http://git-master/r/826896
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
Reviewed-by: Gagan Grover <ggrover@nvidia.com>

3 years agoARM64: foster: Add camera support
Frank Chen [Tue, 3 Nov 2015 21:48:00 +0000]
ARM64: foster: Add camera support

Even Foster does not have built-in cameras
we still need to create power service device
node for SCF in case user plug in an USB camera.

bug 200132491

Change-Id: Ic4f04953d146b9a0312b1fdac808b524bc78abea
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/827218
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

3 years agoarm: config: tegra12: enable PNO / scheduled scan
Michael Hsu [Thu, 29 Oct 2015 19:10:59 +0000]
arm: config: tegra12: enable PNO / scheduled scan

Bug 200149362

Change-Id: Iea69c5b63c94722d794f2830d771381df96a40c8
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/824974
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agohid: jarvis: fix misuse of memcpy
Xia Yang [Wed, 28 Oct 2015 20:28:22 +0000]
hid: jarvis: fix misuse of memcpy

Should use copy_to_user() instead of memcpy when copying from
kernel space to user space.

Bug 1695822

Change-Id: I697c0bd5045107b81b1c3b76108d73704c5e5c7e
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/824970
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Rene Houle <rhoule@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agovideo: tegra: host: Add CSI-E/F settings for T210
Frank Chen [Thu, 8 Oct 2015 17:50:54 +0000]
video: tegra: host: Add CSI-E/F settings for T210

Add missing CSI-E and CSI-F watchdog and status register
settings for t210

bug 1654140
bug 200140820

Change-Id: Id0fb1cd782d7ffeb60a06368d39484785ad34bad
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/824955
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agonet: wireless: bcmdhd_88: Add custom scan policy.
Michael Hsu [Wed, 28 Oct 2015 02:17:45 +0000]
net: wireless: bcmdhd_88: Add custom scan policy.

Apply these scan policy patches from bcmdhd driver to bcmdhd_88 driver.

Patch 1:
> commit 33e09b9b14ea76ca4f8edbb64d8d38bb77d3c289
> Author: Michael Hsu <mhsu@nvidia.com>
> Date:   Mon Jan 12 16:22:17 2015 -0800
>
>     net: wireless: bcmdhd: Add custom scan policy.
>
>     Add sysfs node to allow wifi scan policies to be selected / added / removed.
>
>     Each wifi scan policy consists of:
>     - policy name
>     - one or more scan rules
>
>     Each wifi scan rule consists of:
>     - wait time before starting this scan rule
>     - scan parameters
>       -- home channel away time
>       -- number of probes per channel scan
>       -- active, passive scan time
>       -- home channel dwell time (between channel scans on non-home channel)
>       -- channel list to scan
>
>     Bug 1573165
>
>     Change-Id: I59c0fb563e5ec5677b76e05ea432214e405a51e4
>     Signed-off-by: Michael Hsu <mhsu@nvidia.com>
>     Reviewed-on: http://git-master/r/741981
>     (cherry picked from commit 243a5dba219b94d77e63db925e1746e8f9152d3d)
>     Reviewed-on: http://git-master/r/755270
>     Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
>     Tested-by: Ashutosh Jha <ajha@nvidia.com>

Patch 2:
> commit 2b97acc6ec1b818286f7f46a9a991afb173956af
> Author: nagaraj <nannaiah@nvidia.com>
> Date:   Fri Aug 14 19:44:15 2015 -0700
>
>     Net:bcmdhd: Fix persistent scan failures
>
>     Handle escan failure from firmware and
>     reduce scan retry count for faster recovery.
>
>     Bug 200130449
>
>     Change-Id: I758d85a4544b0752d883cf997e5b0509ce45a625
>     Signed-off-by: nagaraj <nannaiah@nvidia.com>
>     Reviewed-on: http://git-master/r/783962
>     (cherry picked from commit 5bf72b6bbb83e22237bcc65fdba4a9404584a4b4)
>     Reviewed-on: http://git-master/r/805302
>     GVS: Gerrit_Virtual_Submit
>     Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

Patch 3:
> commit 14b19b2ae860683b30b6b4d7fc13868003ef62ba
> Author: Michael Hsu <mhsu@nvidia.com>
> Date:   Wed Aug 5 19:34:58 2015 -0700
>
>     net: wireless: bcmdhd: Add pno timing to custom scan policy.
>
>     Allow PNO (preferred network offload) scanning timing parameters to
>     be configured via the bcmdhd driver sysfs node.
>
>     Write this character string to the bcmdhd sysfs node for scan configuration:
>       pno <time> <repeat> <freq_expo_max> <pno-timing-parameter>...
>     where <pno-timing-parameter> is one of these options:
>       -H home_away_time
>       -n nprobes
>       -a active_time
>       -p passive_time
>       -h home_time
>
>     Change-Id: I0ac75a6935dad2af53c998f871d4f5bbab9cc4de
>     Signed-off-by: Michael Hsu <mhsu@nvidia.com>
>     Reviewed-on: http://git-master/r/782133
>     (cherry picked from commit 265c05f28b74c2886efecc4b76c1e99a4650f8f7)
>     Reviewed-on: http://git-master/r/806985
>     Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
>     Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

Bug 200149362

Change-Id: Ib1529fde04cf04b31db858bfc07c9a228d78a3d0
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/824291
Reviewed-by: Nagaraj Annaiah <nannaiah@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agonet: wireless: bcmdhd: Fix country code map mem leak
Michael Hsu [Thu, 15 Oct 2015 02:14:52 +0000]
net: wireless: bcmdhd: Fix country code map mem leak

Free country code map buffer when adapter is removed.

Bug 200143482

Change-Id: Iab82b3b56ec07a99a3d3012b2931c51ddecbc502
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/817916
(cherry picked from commit acdfc670eae8d581075e3ca41064ab0bb8540d71)
Reviewed-on: http://git-master/r/823728
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agonet: sched: Enhanced Tegra Network Device Queue packet scheduling algorithm
Michael Hsu [Tue, 12 May 2015 00:54:19 +0000]
net: sched: Enhanced Tegra Network Device Queue packet scheduling algorithm

Tegra devices reserve highest priority queue for real-time network
devices, such as audio stream to a network (wifi) gaming controller.

Also control TCP RX by adding a divisor to the TCP window (causing the
TCP sendor to limit the traffic which it sends, i.e., thereby limiting
TCP RX).

Enhancements:
- added tcp window maximum value parameter
  (can be used instead of the tcp window divisor for limiting TCP RX)
- updated the TX bandwidth calculation algorithm

Bug 1689909

Change-Id: I19856c1233f4db9e47c7452cb8da4a607fab42c5
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/819323
Reviewed-by: Nagaraj Annaiah <nannaiah@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agodrivers: tegra: EMC floor control for userland
Sai Gurrappadi [Wed, 8 Apr 2015 17:33:51 +0000]
drivers: tegra: EMC floor control for userland

EMC freq floor can now be set via pmqos by doing:

echo "<emc_freq_khz>" > /dev/emc_freq_min

This change is a straight port of the equivalent T124 change:
d3626864ae9aca28b4f999ce3b35deb4c7a82ac5

Bug 1631192

Change-Id: Idd558602e9d6386970981290d14e660ba00c090e
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/729927
(cherry picked from commit b945e1e46895c4262e8df8812f5b334cee5b0b4a)
Reviewed-on: http://git-master/r/825152
Tested-by: Michael I Gold <gold@nvidia.com>
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Michael I Gold <gold@nvidia.com>

3 years agovideo: tegra: hda: add missing return
Ravindra Lokhande [Tue, 27 Oct 2015 12:38:06 +0000]
video: tegra: hda: add missing return

return statement is needed else it will follow cleanup path.

Change-Id: I10669067240f14270665387021de196ecb3ee549
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/823463
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

3 years agoplatform: tegra: add new panel_cy8c param
Daniel Solomon [Wed, 14 Oct 2015 21:35:20 +0000]
platform: tegra: add new panel_cy8c param

Add "max-xfer-sz" parameter for the panel_cy8c driver.
This parameter indicates the maximum I2C chunk size based
on the platform's SoC and cy8cxxx microcontroller capabilities.

Bug 1679724

Change-Id: I2ed63f4c7f8e8aa8f3ab1530693af281c170d9c1
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/819305
(cherry picked from commit 7ea81eaa71e0ac2b947aa1c64a5b4868d2533ba2)
Reviewed-on: http://git-master/r/825777
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

3 years agoarm64: configs: t210: Enable TEGRA_PANEL_CY8C
Daniel Solomon [Thu, 24 Sep 2015 00:39:02 +0000]
arm64: configs: t210: Enable TEGRA_PANEL_CY8C

Enable CONFIG_CONFIG_TEGRA_PANEL_CY8C, driver for Cypress cy8cxxx
microcontrollers used to control display panel power sequences.

Bug 1679724

Change-Id: I13598cab952107b182653f381617f357839dae27
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/804156
(cherry picked from commit f437d35e98123a762c1542523394899920a601f7)
Reviewed-on: http://git-master/r/818541
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: fix changing min refresh rate
Daniel Solomon [Sat, 5 Sep 2015 04:24:05 +0000]
video: tegra: dc: fix changing min refresh rate

Fix ability to change minimum refresh rate during
runtime.

Bug 1682873

Change-Id: I6d1f38c0e7084557e50ce967649106a69d0c8392
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/794672
(cherry picked from commit 584f05bea8f88674f38c0f6fa719da449387d998)
Reviewed-on: http://git-master/r/805301
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agodc: mode : choose VRR native mode h&v ref_to_sync
Jonathan McCaffrey [Thu, 29 Oct 2015 15:51:15 +0000]
dc: mode : choose VRR native mode h&v ref_to_sync

For DSI panels, if VRR is initialized, set the v & h ref_to_sync values from
the VRR native mode.

This was previously not done ifdef CONFIG_TEGRA_HDMI2_0, which led to display
corruption with TEGRA_DC_EXT_FLIP_HEAD_FLAG_VRR_MODE set, the because the
v_ref_to_sync value was greater than v_front_porch_min,

Bug 1689933

Change-Id: I81e215553ef90636aed319574d20d9e7ea96f696
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/824973
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

3 years agoARM: tegra210: hawkeye: add support for display uC
Daniel Solomon [Thu, 24 Sep 2015 00:54:29 +0000]
ARM: tegra210: hawkeye: add support for display uC

Add support for the Cypress microcontroller used to
control display power sequences on Hawkeye A04.

Bug 1679724

Change-Id: I1437420bec07b755690d5aaa4deb20751372e975
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/804157
(cherry picked from commit 5e92670cbab1e7824b4b3eac305ca23be3e45904)
Reviewed-on: http://git-master/r/818546
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

3 years agoplatform: tegra: add cy8c_panel driver
Daniel Solomon [Wed, 23 Sep 2015 03:38:51 +0000]
platform: tegra: add cy8c_panel driver

Driver support for platforms using Cypress cy8cxxx microcontrollers
over I2C to control display panel power sequences.

Communication with the device and interfacing with userspace is based
on the cy8c_led driver, but added locks around I2C accesses and device
boot/app mode changes.

Bug 1679724

Change-Id: I4c31f331e489f07e5e639c5e00a8296c41617271
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/804155
(cherry picked from commit 9655888c50ff053411cf337b63a0df928aa417c9)
Reviewed-on: http://git-master/r/818538
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Aly Hirani <ahirani@nvidia.com>

3 years agoarm: tegra: enable Tegra WDT for T124
Mitch Luban [Tue, 3 Jun 2014 07:33:10 +0000]
arm: tegra: enable Tegra WDT for T124

Enables both tegra WDT as well as reboot on kernel panic. Reboot
on kernel panic has a timeout value of 60 seconds.

These mechanisms give us a high chance that we have DRAM retention
across resets. Important to gather ramoops and PTM traces.

Change-Id: If5f80c422e511f72430beaf83072a0e2f0b551d7
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/419514
(cherry picked from commit f8e114de5522ba58a1dbfd151eb147b902c401bc)
Reviewed-on: http://git-master/r/824005
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: DT: Disable periodic calibration for SD
Anubhav jain [Wed, 21 Oct 2015 07:31:43 +0000]
arm64: DT: Disable periodic calibration for SD

Change-Id: Ibbfd400a222f700e48e2ccc66bac4a1389532b81
Signed-off-by: Anubhav jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/820825
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agoARM64: dts: disable ldo4 rail discharge on PMIC
Venkat Reddy Talla [Fri, 30 Oct 2015 11:06:56 +0000]
ARM64: dts: disable ldo4 rail discharge on PMIC

Disabling ldo4 rail discharge for Loki and Foster platforms.

Bug 1699953

Change-Id: I3e2dbf3fb16f1b53808bfa8a2c993bf0bdd990ec
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/825311
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoregulator: max77620: add support for enable/disable active discharge
Laxman Dewangan [Thu, 29 Oct 2015 09:08:11 +0000]
regulator: max77620: add support for enable/disable active discharge

Add support for enabling/disabling active discharge through platform
DT node.

Change-Id: I4e2872f4f66747f332d9e86b1efd7ff3cf5f2253
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/824695
(cherry picked from commit 753e63cbeb4e3c3effc406a6e952eb5968726a61)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/825310
GVS: Gerrit_Virtual_Submit

3 years agoregulator: core: add support for active discharge enable/disable property
Laxman Dewangan [Thu, 29 Oct 2015 09:06:24 +0000]
regulator: core: add support for active discharge enable/disable property

Add regulator DT property to add support for configuring the rail's
active discharge enable/disable forcefully. If properties are absent
then it will be POR default.

Change-Id: Ia3a99c6e9aec37ef2824e169e1ae99884163bc25
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/824694
(cherry picked from commit eff460b9d82bd634da66625d05451fae5385d80c)
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/825309
GVS: Gerrit_Virtual_Submit

3 years agoextcon: palmas: do not check for id detect on vbus for id handler
Venkat Reddy Talla [Thu, 29 Oct 2015 11:37:58 +0000]
extcon: palmas: do not check for id detect on vbus for id handler

Do not check for enable-id-detect-on-vbus while registering
irq handler for OTG-Host interrupt line.

Bug 200145974

Change-Id: I1443565a2154faad4a2fca1081e09fc4b9c17ff8
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/824784
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: tegra: host: Rework nvhost_vm
Arto Merilainen [Sun, 16 Aug 2015 07:13:18 +0000]
video: tegra: host: Rework nvhost_vm

This patch effectively removes buffer mapping support from
nvhost_vm. The code was originally added to allow context specific
virtual memory with assumption that nvhost would use iommu API
directly, however, DMA API approach was later selected due to
easier integration.

The code is reworked to allocate vm instance each time when the
channel is mapped and the vm is released when the channel
is is unmapped. VM allocation triggers call to hardware specific
initialization routine.

This patch modifies buffer pinning to happen toward host1x
(gathers) or the vm device (relocations).

Bug 1688003
Bug 1243060
Bug 200148952

Change-Id: I1d36f98316fd48a15b0fe06424b7cb8417ed5e52
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/792128
(cherry-picked from commit 445a666a57a33b94d9540b95def0411b3f216424)
Reviewed-on: http://git-master/r/784030
(cherry picked from commit 4d3ada6221dfd814d99a6c91a4fde1e0915480d4)
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/823502
Reviewed-by: Gagan Grover <ggrover@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoarm64: jetson-cv: disable ldo6
Neil Chen [Wed, 21 Oct 2015 09:18:34 +0000]
arm64: jetson-cv: disable ldo6

Since ldo6 is not used on Jetson-CV, to disable it for safe. Although the ldo6
will not be enabled by any driver in Jetson-CV, but it has been set as
"regulator-always-on" and "regulator-boot-on" in
tegra210-jetson-e-pmic-p2530-0930-e03.dtsi.

Bug 1688673

Change-Id: I1fd17a6dc222d23069f03318ef4b30a67b2cec0f
Signed-off-by: Neil Chen <neilc@nvidia.com>
Reviewed-on: http://git-master/r/820896
(cherry picked from commit 4b331816a0a3ca0b6e1b58ddf641b2cb3242f42b)
Reviewed-on: http://git-master/r/822590
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Tested-by: Kerwin Wan <kerwinw@nvidia.com>

3 years agoclock: tegra21: fix a warning message
TW Chiu [Wed, 21 Oct 2015 08:14:10 +0000]
clock: tegra21: fix a warning message

Fix the warning message below in tegra21_plle_clk_enable():
    "pll_e hw sequencer is already on"

This message is printed when PLLE is under HW control and there is a
request to enable PLLE. When PLLE is under HW control, SW need to
ignore requests to enable or disable PLLE. This message is for
information only.

Bug 1691314

Change-Id: I45585d3b5d6e32320ac2e1dd6511fcf9e63dd504
Signed-off-by: TW Chiu <twchiu@nvidia.com>
Reviewed-on: http://git-master/r/820865
(cherry picked from commit 1542162052ce255bb32d841dfa85ce970e27e09b)
Reviewed-on: http://git-master/r/824703
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoiio: proximity: SAR Stable Setting V1.2.3
Shylender Gaddamwar [Thu, 15 Oct 2015 23:18:01 +0000]
iio: proximity: SAR Stable Setting V1.2.3

- improved target and base value setting for DVT1.
- hw configuration:1.5K+2pf , DNP+2pf , DNP+DNP.

Bug 1696152

Signed-off-by: Shylender Gaddamwar <sgaddamwar@nvidia.com>
Change-Id: I50870a56752f60df55751760ae3bb84e9cf23ebe
Reviewed-on: http://git-master/r/818484
(cherry picked from commit 59df06896a9959e246f4cf3769c724587284eca1)
Reviewed-on: http://git-master/r/823557
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agoarm64: dts: hawkeye: add missing regurators
BH Hsieh [Wed, 28 Oct 2015 05:57:26 +0000]
arm64: dts: hawkeye: add missing regurators

Added missing regurators avdd_usb and vddio_hsic
for ehci@7d004000

Bug 1697336

Change-Id: Ie76e490bc5575096257c9a4c0c23169710761be2
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/823910
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>

3 years agobcmdhd: Add cfg80211 vendor command support
Mohan Thadikamalla [Wed, 28 Oct 2015 11:04:38 +0000]
bcmdhd: Add cfg80211 vendor command support

Issue: Soft AP is note getting enabled due vendor
country fail

Fix: Add below vendor commands to support 5GHz Soft AP
 - ANDR_WIFI_SET_COUNTRY
 - GSCAN_SUBCMD_GET_CHANNEL_LIST

This code is taken from below google source
https://android.googlesource.com/kernel/common

Bug 200148613
Bug 200123839

Change-Id: Iec642dfd2ebd6e1a2266e540ec757bfa91f9e1e9
Signed-off-by: Ecco Park <eccopark@broadcom.com>
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-on: http://git-master/r/823951
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agonet: wireless: bcmdhd_88: disable VSDB_BW_ALLOCATE_ENABLE
Om Prakash Singh [Wed, 28 Oct 2015 06:27:07 +0000]
net: wireless: bcmdhd_88: disable VSDB_BW_ALLOCATE_ENABLE

Bug 200138217

Change-Id: Ia5fc100597c4c195e40e57c3701e1f3a2c71ccf1
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/823926
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agoarm: dts: TN8: set KCL brightness level
Harry Lin [Tue, 27 Oct 2015 09:08:39 +0000]
arm: dts: TN8: set KCL brightness level

- Bootloader charing brightness level is 60.
- Kernel applies bl_measured[] to map 53 to 61,
  which is effectively identical to 60.
- Since bl_measured[] doesn't include level 60,
  set default-charge-brightness to 53 to match
  bootloader.

Bug 200138418

Change-Id: I7af054c90184e59df80f33e02f51ad1f0330ef5a
Signed-off-by: Harry Lin <harlin@nvidia.com>
Reviewed-on: http://git-master/r/823365
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

3 years agovideo: tegra: hdmi: increase the hpd dropout time
Prafull Suryawanshi [Tue, 4 Aug 2015 07:40:35 +0000]
video: tegra: hdmi: increase the hpd dropout time

With few monitors, they take more time for hpd hotplug
and unplug. So hdmi driver think real hotunplug-plug
scenario. To fix it, use same time as in hdmi state machine.

Bug 200106797
Bug 200149156

Change-Id: Ia5934e29cbfb5cb21df34a6cd2fb7299d9e49580
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/778400
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
(cherry picked from commit 00db47d6aa56e848e95426048050f8e68b9a5f44)
Reviewed-on: http://git-master/r/823247

3 years agoARM: tegra12: config: enable SECCOMP
Gagan Grover [Thu, 30 Oct 2014 05:50:55 +0000]
ARM: tegra12: config: enable SECCOMP

This is enabled for Android defconfig file as it is required by CTS
test to pass.

Bug 200046046

Change-Id: Ie1f02469471c3c2602a28a561b5c25f9423899a2
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/591533
(cherry picked from commit 78f81fdb9bc427841f9cdc37de6b2942d552ca70)
Reviewed-on: http://git-master/r/822453
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: Expose HDCP through DT
Aly Hirani [Mon, 26 Oct 2015 21:02:15 +0000]
video: tegra: dc: Expose HDCP through DT

This change exposes the ability to set the HDCP policy through the
device-tree. It moves the HDCP policy into a new device-tree node for
easier maintainace rather than overloading more DC flags. It also adds
a new policy to keep the HDCP always disabled. This is needed for the
recovery kernel where doing HDCP is not possible.

Bug 1694996

Change-Id: Ifd96d2b1bdb3f3f0e963681efd3134719b15e350
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/821655
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agogpu: nvgpu: Avoid resetting CDE flag
sujeet baranwal [Tue, 6 Oct 2015 16:07:24 +0000]
gpu: nvgpu: Avoid resetting CDE flag

While loading the context, erstwhile set CDE flag was being
overwritten by copying code of golden context, thus losing
the information. This was not letting the CDE info reach
to the ucode, and T1 was not configured to 128B mem access.

Bug 200096226

Change-Id: Iaec1471fbcbffd63f8f3919088c7e9295074419d
Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/811741
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Roopa Ranganathan <rranganathan@nvidia.com>

3 years agotegra-se: Unregister algs support from tegra-se
Amith Ramachandra [Sat, 20 Sep 2014 21:45:12 +0000]
tegra-se: Unregister algs support from tegra-se

Owing to lower perf, prefer CPU over SE HW for crypto
operations. However, we may still need SE for save/restore
key context across Lp0 so keep the driver to do this.

Bug 200142359

Change-Id: I16ffaf64400e70615cdb0d4326f5480d172f6be6
Signed-off-by: Amith Ramachandra <aramachan@nvidia.com>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/501214
(cherry picked from commit 9bc76d18fe31233e6aad5ab9b142725b9d0a3875)
Reviewed-on: http://git-master/r/539875
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>
Signed-off-by: Gaurav Singh <gauravsingh@nvidia.com>
Reviewed-on: http://git-master/r/822518

3 years agomisc: uid_cputime: fix access permission of sysfs
Aaron Huang [Fri, 23 Oct 2015 10:09:01 +0000]
misc: uid_cputime: fix access permission of sysfs

Fix the access permission of show_uid_stat as read only.

Bug 200148527

Change-Id: I51800ec86b5a9328e06ed26474fb8e795906ce80
Signed-off-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-on: http://git-master/r/821989
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>

3 years agotegra21_android_defconfig: enable uid_cputime
Aaron Huang [Fri, 23 Oct 2015 04:50:40 +0000]
tegra21_android_defconfig: enable uid_cputime

Enable uid_cputime for Android-M to access related sysfs nodes
for BatteryStats purpose.

Bug 200148527

Change-Id: Ib5bcf5357787a10431d5eceb819d36d070c07f0c
Signed-off-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-on: http://git-master/r/821833
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoRevert "bcmdhd: Change directory for wifi_mac.txt to /factory/fct/"
Martin Gao [Tue, 27 Oct 2015 01:10:37 +0000]
Revert "bcmdhd: Change directory for wifi_mac.txt to /factory/fct/"

This reverts commit f9f1f5c57069e6c134fc3543a0c37c7589d1ec08.

Change-Id: I28cfa9f7fd364edf4267c3f80a403775ba341276
Signed-off-by: Martin Gao <marting@nvidia.com>
Reviewed-on: http://git-master/r/823142
Reviewed-by: Eric Chuang <echuang@nvidia.com>

3 years agoARM: tegra: correct sense res value of VDD_USB_5V0
Leo He [Tue, 20 May 2014 08:29:47 +0000]
ARM: tegra: correct sense res value of VDD_USB_5V0

sense resistor of VDD_USB_5V0 is 0.01 ohm on P1761

Change-Id: Ieb5ff73b38e5991d03e5e3540f5c76eb46364385
Signed-off-by: Leo He <leoh@nvidia.com>
(cherry picked from commit 3bf86d376ad1006ff4fc40e0d91ede3b39e0927f)
Reviewed-on: http://git-master/r/822384
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ian Chang <ianc@nvidia.com>
Tested-by: Ian Chang <ianc@nvidia.com>
Reviewed-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

3 years agovideo: tegra: dc: Add begin and end tracing
Daniel Dworakowski [Thu, 23 Jul 2015 01:06:35 +0000]
video: tegra: dc: Add begin and end tracing

Adds new trace event, and macros to trace beginnings and ends of functions

Change-Id: I58992152fb4a87dee45b216974feb0563b82755a
Reviewed-on: http://git-master/r/773582
Signed-off-by: Jonathan McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/821746
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoinput: touch: sharp: update to version 17.
David Pu [Wed, 21 Oct 2015 05:01:34 +0000]
input: touch: sharp: update to version 17.

- Fixed an issue that fail safe is performed unintentionally
- Fixed dead lock issue
- Changed the function name of suspend/resume callback
- Changed the sequence of tap to wakeup
- Version 22.17.1009

Bug 200145424

Change-Id: I604b0ee79013091e4930cf0ab44d0ccfb6b3d08a
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/820731
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jordan Nien <jnien@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agobcmdhd: Change directory for wifi_mac.txt to /factory/fct/
Srinivas Ramachandran [Thu, 22 Oct 2015 19:05:58 +0000]
bcmdhd: Change directory for wifi_mac.txt to /factory/fct/
bcmdhd_88: Change directory for wifi_mac.txt to /factory/fct/

- Android M modifies vold, and /mnt and /storage mount points
  cause compatible issues for fct and rp3 partitions.
- Change fct mount point from /mnt/factory to /factory/fct

Bug 1697489

Change-Id: I7da3a7157f59353d83c504411c4f60d9c0e46d8f
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/821611
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoiio: common: NVS v209 common timestamps
Erik Lilliebjerg [Wed, 21 Oct 2015 19:20:26 +0000]
iio: common: NVS v209 common timestamps

- Create a common timestamp function for NVS sensor drivers.
- Timestamp changed from ktime_get_ts to get_monotonic_boottime to address
  the timestamp change through suspend.

- Removed the dependency of the NVI driver on NVS drivers supporting the NVI
  auxiliary bus.  If NVI_MPU is not enabled then these drivers build without
  NVI auxiliary bus API support.

Bug 200142073

Change-Id: I53b16bfb39b53015f3ee1e5418755f9b3f0cd132
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/821141
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>

3 years agovideo: tegra: camera: Change max_lane_speed to u64
Sudhir Vyas [Tue, 15 Sep 2015 13:27:01 +0000]
video: tegra: camera: Change max_lane_speed to u64

* Fix u32 range overflow.
When max_lane_speed multiplied to other u32 CSI
caps params, the output does not fit to u32 range.

* Correct lane-speed defines' base.

Bug 200133567

Change-Id: I9f40d7c747b217f072ac7a876f46153d1dec392b
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/799412
(cherry picked from commit 911dfa298ae20b0c65a3daebdef1a0828c3e4aa3)
Reviewed-on: http://git-master/r/820663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charles Kong <charlesk@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Tested-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Tested-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

3 years agoASoC: Tegra: rt5639: Fix pop during power-off
Asha T [Tue, 20 Oct 2015 08:44:17 +0000]
ASoC: Tegra: rt5639: Fix pop during power-off

Codec power-off sequence is coded in
machine driver shutdown to avoid pop during
power-off and CL succeeds in reducing the
intensity of pop.

Bug 200144924

Change-Id: I1bb8e261a4ff67c9733c5210d1ef7eebaa7c6618
Signed-off-by: Asha T <atalambedu@nvidia.com>
Reviewed-on: http://git-master/r/820213
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agoarm64: t210: enable realtek NIC driver
Vidya Sagar [Wed, 21 Oct 2015 18:54:51 +0000]
arm64: t210: enable realtek NIC driver

enables r8169 NIC driver

Bug 200147709

Change-Id: Iaefa158fd88bd6455039acbfab3e641382b55098
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/821098
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoarm64: t210: ksavedefconfig formatted output
Vidya Sagar [Wed, 21 Oct 2015 18:35:37 +0000]
arm64: t210: ksavedefconfig formatted output

Bug 200147709

Change-Id: Ib513dcf6f6ed879656b55f4991937e25809ea02a
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/821097
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: fallback to HDCP 1.x
Aly Hirani [Tue, 6 Oct 2015 22:42:23 +0000]
video: tegra: dc: fallback to HDCP 1.x

Implemented fallback to HDMI 1.x for non 2.2 rx. This change:

1. Exposes the TEGRA_HPD_* as an exported function
2. Adds the detection logic in the HDCP driver to fail HDCP 2.2 and
trigger HDCP 1.4
3. During the fallback, uses the TEGRA_HPD_* function to force hot
unplug and restore to hw state

The force hotplug is needed for some receivers that do not behave
correctly when HDCP 2.2 is started and then aborted half-way.

Bug 1691483

Change-Id: Ie7d7611cff64cb36c3ae63474e5bdb71257eee65
Signed-off-by: Sharath Sarangpur <ssarangpur@nvidia.com>
Reviewed-on: http://git-master/r/819836
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agonet: bcmdhd: Fix DT unregister
Michael Hsu [Mon, 13 Jul 2015 00:18:17 +0000]
net: bcmdhd: Fix DT unregister

Unregister platform driver if it was registered due to device tree
settings.

Bug 1630780

Change-Id: I9dd77a7ede32e73edbcbc5b93b536aacd74487d7
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/769164
(cherry picked from commit b1d18beed200cf29cc4d7f587c61957acba1866e)
Reviewed-on: http://git-master/r/819024
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agonet: wireless: bcmdhd: Fix compilation warnings
Michael Hsu [Tue, 22 Sep 2015 01:55:46 +0000]
net: wireless: bcmdhd: Fix compilation warnings

Fix compiler warning messages.

Bug 1454125

Change-Id: Id61b77731e6ba989d7f6ecae37afb3442f36ba0d
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/802585
(cherry picked from commit 2b4bee3dcc3901daab64281a7258470ddeb62f16)
Reviewed-on: http://git-master/r/811792
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

3 years agoasoc: es755: fix for skype double talk issue
Srinivas Anne [Wed, 21 Oct 2015 01:11:52 +0000]
asoc: es755: fix for skype double talk issue

FW version: M90.5.2.12_B60801_NVidia_Hawkeye_MCFFillIn_STREAM

Updated tuning parameters for voip call usecase.

Bug 200124396
Bug 200131474

Change-Id: Ie6b7d51257ad18e63875e498d8037481584322d4
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/820669
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>

3 years agohawkeye: enable nvtouch; default mode vendor only
Aaron Bartholomew [Thu, 8 Oct 2015 01:22:43 +0000]
hawkeye: enable nvtouch; default mode vendor only

- will add nvtouch to image, but will be in vendor only mode, ie
expects vendor driver to handle touch processing

bug 1688100
bug 1668304
bug 1602711
bug 1651230

Reviewed-on: http://git-master/r/774488
(cherry picked from commit c738b1a08e13a4d05d363c0200dd8379afa23a14)

Signed-off-by: Aaron Bartholomew <abartholomew@nvidia.com>
Change-Id: I7b8eddacf43a16fa65972eb15162940feba5171a
Reviewed-on: http://git-master/r/806271
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: Fix hdmi 2.0 length masking error
Arun Swain [Wed, 16 Sep 2015 19:28:13 +0000]
video: tegra: Fix hdmi 2.0 length masking error

Mask length with 0x1f instead of 0x0f since
length is of 5 bits.

Bug 200122117

Change-Id: I317507e0ccf1ede503ab479ff0151b6c61ac3a13
Reviewed-on: http://git-master/r/802430
(cherry picked from commit 1ba569d7b0559c8a84bcf25a4a6c709ddc8e20aa)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821203
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agotegra: dc: Add hdr support
Arun Swain [Wed, 23 Sep 2015 21:34:18 +0000]
tegra: dc: Add hdr support

Added HDR support in kernel using the new FLIP4.

1. Added support for new HDR infoframe defined
in CEA 861.3.
2. This new infoframe data is associated with each
flip and passed onto kernel from userspace. The
user space uses tegra_dc_ext_hdr struct and the
appropriate tag info in the new FLIP4 ioctl to
pass the info to kernel.
3. The new infoframe data in the ioctl is parsed
and stored in existing tegra_dc_ext_flip_data
struct in the flip ioctl. This info is passed to
dc in flip_worker.
4. Currently the design is to set the eotf as 0
(SDR) and 2(SMPTE 2084) with the required payload
for non-HDR and HDR frames respectively.

Bug 200122117

Change-Id: Ic66fa88db50177ccd0349bbf7a6ff9f33c4eb764
Reviewed-on: http://git-master/r/803998
(cherry picked from commit 3f6e9e9531360eedba5ce43c5d129f34b6d7f68b)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821201
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agotegra: dc: ext: Add TEGRA_DC_EXT_FLIP4 support
Arun Swain [Wed, 23 Sep 2015 21:17:01 +0000]
tegra: dc: ext: Add TEGRA_DC_EXT_FLIP4 support

Add FLIP4 support for the follwing reasons:
1. Cuurent FLIP3 doesn't have enough space in
order to pass head-specific info.
2. In order to pass HDR metadata we need at least
26 bytes and the current FLIP3 doesn't support
that.

The new FLIP4 has
1. A pointer to a array of 32 bytes of data to
pass head-specific info.
2. A nr_elements variabel that indicates the no.
of elements in the above array.

A new "tegra_dc_ext_flip_user_data" is defined
that has 6 bytes of tag info and 26 bytes of
payload data.

Bug 200122117

Change-Id: I4831b89ec25f877a948406feb4589824e82e3f3e
Reviewed-on: http://git-master/r/803991
(cherry picked from commit 83f6cd1eaebf1384c95a48069807407fb7beccf2)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821188
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agovideo: tegra: hdmi: Add HDR notification support
Arun Swain [Tue, 29 Sep 2015 01:47:22 +0000]
video: tegra: hdmi: Add HDR notification support

Add support for notifying user sapce of hdr
capability of the sink.

If hdr info is found in the edid, FB_CAP_HDR is
set and informed to the userspace via
"FBIOGET_FSCREENINFO" ioctl.

Bug 200122117

Change-Id: Iaf96cd4940ab866767c222e18fd2778237b3fe9a
Reviewed-on: http://git-master/r/806384
(cherry picked from commit 2b2c865bead01f282bbdd81aa3bca42a179bb119)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821185
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agotegra: dc :hdmi: Add CEA 861.3 support
Arun Swain [Tue, 15 Sep 2015 03:47:17 +0000]
tegra: dc :hdmi: Add CEA 861.3 support

Add support for reading CEA 861.3 HDR related
info from edid.

Due to lack of floating point support, it is
expected that user space to actually makes sense
of the numbers by following the specs. Kernel
just reads the values as it is from the edid.

Bug 200122117

Change-Id: I91bfe3b92cd8937cb862e8a38f790b89903d90f4
Reviewed-on: http://git-master/r/802449
(cherry picked from commit 39c2e727a24b929fff96df05ef5e032105df44c2)
Signed-off-by: Arun Swain <arswain@nvidia.com>
Reviewed-on: http://git-master/r/821184
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoarm64: t210: disable cluster switch for t210.
Hayden Du [Thu, 15 Oct 2015 10:01:07 +0000]
arm64: t210: disable cluster switch for t210.

Disable cluster switch on T210 platform to avoid
stress issue.

bug 200117285

Change-Id: I2ef7f433d2b2afdadc033cc1d85adcb238f3523a
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/762220
(cherry picked from commit 043030f05d75c1269fd1dd574e48c9c7f05a002e)
Reviewed-on: http://git-master/r/818191
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoplatform: tegra: mc: handle dec and sec mc err combo
Krishna Reddy [Wed, 23 Sep 2015 21:55:25 +0000]
platform: tegra: mc: handle dec and sec mc err combo

Hanlde DECERR_EMEM and SECURTY_VIOLATION error combination.

Bug 1675932

Change-Id: I762b3bfa153ea41af35881fad2c7c9306b0fc8d5
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/804003
(cherry picked from commit 9b1002220dcc62e7f18b2e7db76976318f0592d6)
Reviewed-on: http://git-master/r/820460
GVS: Gerrit_Virtual_Submit

3 years agortc: max77620: remove buffer update for RTCINT reg read
Leo He [Sat, 28 Feb 2015 09:56:11 +0000]
rtc: max77620: remove buffer update for RTCINT reg read

remove unnecessary buffer update for RTCINT reg read,
because RTCINT is not a double buffered register

bug 200056803

Change-Id: Ie3956ee7ef3fdb0f423f081f24c702603672dce0
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/712270
(cherry picked from commit 812afcc13fad503716393b2156dae70bc18d1a1d)
Reviewed-on: http://git-master/r/819473
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoarm64: tegra21: Increase VPR memory
Amit Sharma (SW-TEGRA) [Wed, 21 Oct 2015 09:17:17 +0000]
arm64: tegra21: Increase VPR memory

Increase VPR memory for following devices as follows
to handle 4K content:
 - Foster    – 672 MB
 - HE/Others – 364 MB

of_machine_is_compatible() API can't be used in tegra_t210ref_reserve()
because DT is not populated by the time tegra_t210ref_reserve() is called.
So to set the vpr_size for foster_e device we have to use
of_flat_dt_is_compatible() API.

Bug 200057425

Change-Id: Ie6a1239224176f69e2458a54862d56f724c08382
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/817461
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agomisc: tegra-baseband: fix coverity defect
BH Hsieh [Wed, 30 Sep 2015 04:48:07 +0000]
misc: tegra-baseband: fix coverity defect

fix coverity defect CID 19864
caused by http://git-master/r/453975

Bug 1416640

Change-Id: Ia739024f55e0a75037503fe3d95db86e62be30e3
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/807182
(cherry picked from commit 92bac217c5c1df83829db8b5f52b8f84744f224f)
Reviewed-on: http://git-master/r/812732
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Steve Lin <stlin@nvidia.com>

3 years agoRevert "gpu: nvgpu: WAR for bad GPFIFO entries from userspace"
Terje Bergstrom [Mon, 5 Oct 2015 21:51:13 +0000]
Revert "gpu: nvgpu: WAR for bad GPFIFO entries from userspace"

This reverts commit aeb74fc7952718ffab6281c687951499510c4333.
User space was fixed not to send zero-length GPFIFO entries.

Bug 1662670

Change-Id: Iec6bf1870a19db4e8daa2ed4512650b92a37ba92
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/815440
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
GVS: Gerrit_Virtual_Submit

3 years agoUSB: tegra: support for parsing skip_resume
Suresh Mangipudi [Mon, 19 Oct 2015 11:05:32 +0000]
USB: tegra: support for parsing skip_resume

skip_resume flag will be parsed and stored in case of hsic
interface for T210 platforms

Bug 1694914

Change-Id: I20013a274b2dce43c6102087a791c68677a2343d
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/819583
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoARM: tegra: dts: enable skip resume flag
Suresh Mangipudi [Mon, 19 Oct 2015 11:00:36 +0000]
ARM: tegra: dts: enable skip resume flag

enable skip resume for modem over ehci

Bug 1694914

Change-Id: I9fd88939da0b90ec3e98f560ab27a8a1b0c37645
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/819582
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frederic Bossy <fbossy@nvidia.com>
Tested-by: Frederic Bossy <fbossy@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoarm64: tegra210: dts: Map US/CA/IN to use Country code Q2/998
Srinivas Ramachandran [Tue, 14 Jul 2015 00:54:29 +0000]
arm64: tegra210: dts: Map US/CA/IN to use Country code Q2/998

Power tunings done with latest nvram uses Q2/998 code, however
due to incorrect DT mapping, US country code could be overriden
in firmware. Change mapping for only US/CA/IN to Q2/998 instead

Bug 200087379

Change-Id: I6ec3ac041193cb00ee1bdfe02401359cdabb5f30
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/769571
(cherry picked from commit e4e7f9f83ddd4c85748b6cb6211e78ceb9394bc6)
Reviewed-on: http://git-master/r/819435
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

3 years agoRevert "arm: tegra: no need to reserve fbmem"
Prafull Suryawanshi [Mon, 19 Oct 2015 11:29:44 +0000]
Revert "arm: tegra: no need to reserve fbmem"

Bug 200147064
Bug 1602113

This reverts commit bc3f5f7d619578d864a33508747de03c6adeba0b.

Change-Id: I10c4a4977e874aa34e6256a78e4c015276c1de5c
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/819595
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>
Tested-by: Todd Poynter <tpoynter@nvidia.com>

3 years agoRevert "video: tegra: dc: manage alloc/release framebuffer memory by driver"
Prafull Suryawanshi [Mon, 19 Oct 2015 11:26:26 +0000]
Revert "video: tegra: dc: manage alloc/release framebuffer memory by driver"

Bug 200147064
Bug 1602113

This reverts commit 69867681b50f345c9180d63570a8436a33557809.

Change-Id: I3a65157580b542bee5f15bc9980c558b4047bec7
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/819593
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agovideo: tegra: dc: Fix build break with OF_DC_DEBUG
Aly Hirani [Thu, 15 Oct 2015 18:58:08 +0000]
video: tegra: dc: Fix build break with OF_DC_DEBUG

There was a typo in a couple of the prints that were only conditionally
enabled

Change-Id: Id38f769a057b489de09dc437831ffcf4a8e4dba5
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/818370
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

3 years agoRe-order bus header field before payload msg
Srinivas Ramachandran [Wed, 16 Sep 2015 21:42:20 +0000]
Re-order bus header field before payload msg

The DHD driver implementation derives the bus header
pointer based on the msg payload pointer, assuming
the header memory is always before the msg payload.

DHD ver 1.201.82 has swapped the order of msg payload
field to be before bus header in struct dhd_prot_t.
This causes memory corruption when the driver tries to
access header contents by seeking the msg pointer
backwards.

Previous versions of the DHD driver do not have this
issue, and later versions 1.363.x have the correct order
(Header before the payload)

Bug 200128157

Change-Id: I33c1c99fad970c6aa221537a5bf0496666ea6d00
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: http://git-master/r/800362
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Tested-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit 1c46f75709d86e03bf2a5961e6a5bf3dce651928)
Reviewed-on: http://git-master/r/818003
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

3 years agoarm64: jetson: add chosen node for EEPROM
Gaurav Sarode [Sat, 1 Aug 2015 22:30:58 +0000]
arm64: jetson: add chosen node for EEPROM

Adding node for EEPROM present on Jetson.

Bug 200113569

Change-Id: If891c9323bdff0e931202c3f35486c12a6b81aab
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/777709
(cherry picked from commit 2d57b9b7834e75682957a8b5ced04cda94067146)
Reviewed-on: http://git-master/r/803446
Reviewed-by: Automatic_Commit_Validation_User

3 years agogpu: nvgpu: fix pbdma intr handling
Deepak Nibade [Thu, 24 Sep 2015 09:26:44 +0000]
gpu: nvgpu: fix pbdma intr handling

To handle any of the pbdma interrupt, we currently write zero
to pbdma_method0 and then clear the interrupt

But this is insufficient since we cannot use same intr clear
method for all the interrupts

Hence, add intr specific routines to handle those interrupts

NV_PPBDMA_INTR_0_PBENTRY:
- fix the pb_header to have a null opcode
- fix the pbdma_method to have a valid nop

NV_PPBDMA_INTR_0_METHOD:
- fix the pbdma_method to have a valid nop

NV_PPBDMA_INTR_0_DEVICE:
- fix the pb_header to have a null opcode
- go through all pbdma_method0/1/2/3
-- if they contain host s/w methods, replace those
   methods with a valid NOP

Bug 200134238

Change-Id: I10c284a6cdc1441f9d437cea65aae00d3c33a8c8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/814561
(cherry picked from commit 5e2cfdee1171cc46d3a78465409b2df7372bf0e6)
Reviewed-on: http://git-master/r/819394
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

3 years agoloki: dts: Enable touch on loki-e
Ankita Garg [Wed, 9 Sep 2015 19:32:36 +0000]
loki: dts: Enable touch on loki-e

Bug 1681669

Change-Id: Id990365a3e68d36711431b08b5a62809ae2a0e0f
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/819158
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

3 years agoarm64: tegra: update jetson_e emc dvfs to v983
Kerwin Wan [Mon, 19 Oct 2015 05:32:26 +0000]
arm64: tegra: update jetson_e emc dvfs to v983

Bug 1636958

Change-Id: Icb9ae1e15fd5041f8bbd3df0fe2e4b6d5f84f463
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/819386
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

3 years agoRevert "loki:foster: emc update to 983 v11"
Kerwin Wan [Mon, 19 Oct 2015 03:14:25 +0000]
Revert "loki:foster: emc update to 983 v11"

This reverts commit 27457b6fa2c07a7ddca6df9b58b4818ce6066c93.

Change-Id: I99e9d26b179a0f0d00ccda3a10e3dfb364919b98
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/819341
GVS: Gerrit_Virtual_Submit

3 years agoASoC: Codec: fix headset-mic issue
Sameer Pujar [Tue, 13 Oct 2015 11:06:07 +0000]
ASoC: Codec: fix headset-mic issue

LDO2 and MICBIAS power supplies are turned ON during
jack detection to detect headset-mic. The micbias voltage
turned OFF if there is no headset-mic.
This should be tried on E2614 with FSA rework

Bug 1686170
Bug 200135470

Reviewed-on: http://git-master/r/805033
(cherry picked from commit b05badedae5c0445949c25ebf5b4d44adb638a00)

Change-Id: I88b4901e00b88fae7b7fb1ceacb738dd2fc488df
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/816713
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>

3 years agoiio: light: CM3217 index fix.
Erik Lilliebjerg [Fri, 16 Oct 2015 07:56:04 +0000]
iio: light: CM3217 index fix.

- Fix possible table index out-of-bounds.
- Change default threshold values to something in reality.
- Add CM3217 debug light dump.
NVS_IIO v208:
- Add ability to read debug dump from HW driver without a write.
- Add sensor name to debug prints.
- Add functionality to returned calls from HW driver allowing simplification
  of HW driver code, specifically for multi-sensor drivers.

Bug 200145232

Change-Id: I79d014569e236c70d8a3cdec2945fc0f22e43c07
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/818914
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

3 years agoarm: boot: dts: SB ALS calibration
Erik Lilliebjerg [Fri, 16 Oct 2015 14:50:55 +0000]
arm: boot: dts: SB ALS calibration

- CM3217 device tree calibration values.

Bug 200145232

Change-Id: I781f4ffb1228291a3dbdc7f8352f58bd96ff4f15
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/818911
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

3 years agoconfig: Add NVS drivers
Robert Collins [Thu, 1 Oct 2015 05:52:45 +0000]
config: Add NVS drivers

Bug 200145232

Change-Id: Id2b751b09cdc333c95cc6ccf60be1da7b10bc501
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/807849
Reviewed-by: Automatic_Commit_Validation_User

3 years agodts: Sensors: Add NVS sensor drivers
Robert Collins [Thu, 1 Oct 2015 05:51:47 +0000]
dts: Sensors:  Add NVS sensor drivers

Add NVS sensor drivers:
* LTR5X5
* MAX44000
* CM3217

Bug 200145232

Change-Id: I829b43b8f268926172993fae90633425695c7bc2
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/807848
Reviewed-by: Automatic_Commit_Validation_User

3 years agopcie: host: tegra: adds pad powerdown programming
Vidya Sagar [Mon, 3 Aug 2015 17:26:29 +0000]
pcie: host: tegra: adds pad powerdown programming

adds missing pad powerdown programming which is present
in pcie IAS doc

Bug 200069084
Bug 200044687

Change-Id: I3c69be6da8d849e9c203d3af0fb84b2ade4f09fe
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/778016
(cherry picked from commit 749728999ab66c61e27495567309e26d315a9701)
Reviewed-on: http://git-master/r/818629
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>