5 years agoARM: tegra: norrin: disable clock gating for SDIO
Rakesh Goyal [Tue, 3 Dec 2013 13:26:07 +0000]
ARM: tegra: norrin: disable clock gating for SDIO

1) Enable prepower for wifi
2) Disable sdio clock gating

bug 1408537

Change-Id: I782602b9929b9b2fa82592f8c97126f9de4471f0
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/337852
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: sensors: change copyright text
Tejas Sonchhatra [Mon, 9 Dec 2013 12:08:34 +0000]
ARM: tegra: sensors: change copyright text

This change is for modifying the copyright/license header from
BSD2.0 to GPLv2 for few board files.

Change-Id: I1b4f624cdceb75654f81177d17ddcc8e0c4508b8
Signed-off-by: Tejas Sonchhatra <tmanoj@nvidia.com>
Reviewed-on: http://git-master/r/345756
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: host: fix iommu mapping
Deepak Nibade [Mon, 16 Dec 2013 14:06:03 +0000]
video: tegra: host: fix iommu mapping

- gk20a_get_phys_from_iova() directly calls archdata.mapping
- this gives compilation error with SMMU disabled
- use to_dma_iommu_mapping() instead of above
  which returns NULL if SMMU is disabled
- gk20a_get_phys_from_iova() now returns iova address as
  physical address if SMMU is disabled

Bug 1397647

Change-Id: Ie1fe7b88daffaee0c3519e6839898f166b0a3786
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/345860
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoASoC: tegra-alt: add spdif driver
Songhee Baek [Sat, 7 Dec 2013 04:51:55 +0000]
ASoC: tegra-alt: add spdif driver

This change is for adding spdif driver in tegra-alt ASoC.

Bug 1423733

Change-Id: Ic52b58ab9bd0e8cb82e7834a5d1d2f3f87550bf8
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/339601
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>

5 years agoASoC: tegra-alt: vcm30t124: Cleanup error path
Songhee Baek [Fri, 13 Dec 2013 18:35:34 +0000]
ASoC: tegra-alt: vcm30t124: Cleanup error path

When sound card registeration is failed, vcm30t124 needs release
max9485 i2c client, and gpio request for other sound card to use
those resources and it makes other machine driver be probed
properly.

Bug 1413475

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

5 years agoARM: tegra: add SPDIF dt entry in tegra124-soc
Songhee Baek [Wed, 11 Dec 2013 07:31:17 +0000]
ARM: tegra: add SPDIF dt entry in tegra124-soc

This is for adding DT entry for SPDIF under AHUB.

Bug 1423733

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

5 years agoarm: tegra: loki: remove jsa1127 for Loki 1.95
Louis Li [Fri, 13 Dec 2013 02:27:50 +0000]
arm: tegra: loki: remove jsa1127 for Loki 1.95

ALS sensor jsa1127 is not needed for Loki 1.95
Camera also is not needed

Bug 1424722

Change-Id: I413d96ea985ca15cf4a3483eeb9c85ed434fc9eb
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/345114
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agovideo: tegra: host: gk20a: update ELPG debugfs
Prashant Malani [Wed, 4 Dec 2013 03:16:09 +0000]
video: tegra: host: gk20a: update ELPG debugfs

Separate out the elpg transitions counter to an individual
debugfs node. This will make it easier to parse, when read.

Also improve the ELPG debugfs nodes to not unconditionally wake the
GPU up while polling for values. Instead, it should only ensure it
remains powered on if it is already on, and otherwise just return the
values cached at the last railgate entry.

Bug 1410515
Bug 1408385

Change-Id: Id9813737f11942ec8d74075e9cb6fc7c4a50b404
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/338061
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra12: loki: thermal trips changes
Anshul Jain [Tue, 17 Dec 2013 00:52:12 +0000]
arm: tegra12: loki: thermal trips changes

Bug 1405072

Change-Id: I4c48edaf793406c4651ed38e6f803f2b790cf2e8
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/346086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: vcm30t124: mount /dev as devtmpfs
Seshagiri Holi [Mon, 16 Dec 2013 07:18:49 +0000]
arm: tegra: vcm30t124: mount /dev as devtmpfs

Below 2 kernel config are required to mount /dev
as devtmpfs.
- CONFIG_DEVTMPFS enable
- CONFIG_DEVTMPFS_MOUNT enable

Bug 1393400

Change-Id: I18f3093032daeec6bf4be90d71c16985b72a068f
Signed-off-by: Seshagiri Holi <sholi@nvidia.com>
Reviewed-on: http://git-master/r/345678
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: host: remove nvhost_memmgr_handle_to_id API
Krishna Reddy [Tue, 17 Dec 2013 01:11:32 +0000]
video: tegra: host: remove nvhost_memmgr_handle_to_id API

Remove obsolete nvhost_memmgr_handle_to_id API to allow
removal of nvmap_dmabuf_to_user_id API.

Change-Id: Ia53966ba436b2a880bef2a8c0b5df3541bc278c0
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/346097
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoinput: touch: maxim: Update to v1.4.3 Sep 27,2013
Xiaohui Tao [Sat, 14 Dec 2013 01:16:44 +0000]
input: touch: maxim: Update to v1.4.3 Sep 27,2013

Fast-forard maxim touch driver to v1.4.3 Sep 27, 2013

The last commit for the file related in rel-tegratab is:
input: touch: maxim: fix daemon crashing issue
Reviewed-on: http://git-master/r/325614

The last version update in rel-tegratab is:
input: touch: maxim_sti: Update to version 1.4.3, v29
Reviewed-on: http://git-master/r/280094

Change-Id: If57b619e34039332194faa4d027abcb5f8cc8f62
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/345538
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hon Fei Chong <hchong@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm: tegra: e1922: Request dvdd_lcd for display
Q-Ha Park [Fri, 6 Dec 2013 03:41:56 +0000]
arm: tegra: e1922: Request dvdd_lcd for display

Bug 1414351

Change-Id: I068e4528ae9b5f843b76d51cc22e046d19d3ab37
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/345482
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm: tegra12: loki: Set crit limits for BAT rail
Anshul Jain [Fri, 15 Nov 2013 02:38:36 +0000]
arm: tegra12: loki: Set crit limits for BAT rail

Bug 1406218

Change-Id: I597ce098ee94d3d4f0876a29745702f5806adbdc
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/331455
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: platform: tegra: Add feature for SOC1040
Frank Chen [Tue, 10 Dec 2013 21:26:24 +0000]
media: platform: tegra: Add feature for SOC1040

Add EV compensation and manual white balance modes
for SOC1040 YUV sensor

Bug 1403900

Change-Id: I6172eac2103ada434b123e814ec8114d7a7f8146
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/343944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Gary Fitzer <gfitzer@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agousb: host: tegra: Hold temporary lock on resume
Rohith Seelaboyina [Tue, 10 Dec 2013 09:58:53 +0000]
usb: host: tegra: Hold temporary lock on resume

On Shield we are disabling the vbus on suspend
and enabling it back on resume. After resume device
gets disconnected and re-enumerated.
Acquire a temporary wakelock on resume to enumerate
the device properly before it goes to LP0.

Bug 1415958

Change-Id: If67e9d8ca96b94161f4757b2f5a031ca82d8cdc7
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/343632
(cherry picked from commit 31896a8dd19ee9e16f06478dc3f1ea18614e54b5)
Reviewed-on: http://git-master/r/345648
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agomedia: nvavp: Add IOCTL to map/unmap memory
Vandana Salve [Fri, 1 Nov 2013 12:04:48 +0000]
media: nvavp: Add IOCTL to map/unmap memory

Added ioctl NVAVP_IOCTL_MAP_IOVA/NVAVP_IOCTL_UNMAP_IOVA
to map and unmap nvmap memory into correct address space

bug 1371298

Change-Id: I44a654584028c63076dfa7dfb19d4f430cb0dd96
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/324028
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoRevert "usb: gadget: tegra: remove extra spin_unlock/lock"
Rohith Seelaboyina [Thu, 12 Dec 2013 08:56:00 +0000]
Revert "usb: gadget: tegra: remove extra spin_unlock/lock"

This reverts commit ba241f585e66f0b408e91d8baa51db7afd660d11.

Change-Id: Ieaff323ba984e3427150ff801ad462fe813b0d99
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Change-Id: Ic1206760dbb57ff46bebbd695e6e0e82fa8d5ee4
Reviewed-on: http://git-master/r/344720
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: ardbeg: read wifi MAC address from file
Michael Hsu [Wed, 4 Dec 2013 20:23:37 +0000]
arm: tegra: ardbeg: read wifi MAC address from file

Read wifi MAC address from factory partition (/mnt/factory).

Bug 1340767

Change-Id: Icd156eca159a764f0b018d6b5677e1413b0f24b2
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/345589
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoARM: tegra: clock: Re-factor DVFS initialization
Alex Frid [Sun, 15 Dec 2013 05:20:43 +0000]
ARM: tegra: clock: Re-factor DVFS initialization

Combined DVFS rail connection to regulators and DFLL initialization
steps into one critical section protected by CPU clock mutex.

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

5 years agoArm: Tegra: Add ardbeg POP support
Graziano Misuraca [Fri, 13 Dec 2013 00:05:33 +0000]
Arm: Tegra: Add ardbeg POP support

Change-Id: I6ddd5beb06eca1dd78f5211f607a2c1dae795039
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/345948
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm: tegra: ardbeg: support 19x12 and 12x8 AUO panels
Anshuman Nath Kar [Mon, 16 Dec 2013 21:57:50 +0000]
arm: tegra: ardbeg: support 19x12 and 12x8 AUO panels

Change-Id: I280709d6124b9c8fe140bb92e78330ecac3854ad
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/346020
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: dsi: disable ulpm for unsupported boards
Anshuman Nath Kar [Mon, 16 Dec 2013 21:29:56 +0000]
video: tegra: dsi: disable ulpm for unsupported boards

Change-Id: I64e941ec0e8e517b6d7e7d56251b806881a09cc0
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/346005
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: dvfs: Force voltage scaling disable level
Alex Frid [Sun, 15 Dec 2013 03:39:04 +0000]
ARM: tegra: dvfs: Force voltage scaling disable level

Explicitly set disabled voltage level even when voltage scaling is
disabled during kernel initialization (used to keep boot voltage as
is in such case, that may result in unsafe frequency scaling after
initialization).

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

5 years agoARM: tegra: clock: Early exit shared bus user init
Alex Frid [Sat, 14 Dec 2013 08:09:03 +0000]
ARM: tegra: clock: Early exit shared bus user init

Exited disabled shared bus user initialization from table after rate
request update, since shared user parent cannot be changed anyway, and
disabled user should not affect bus rate.

Change-Id: Ia73ec8cff6ebf3a898253c3401d9245686b5a6ea
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/345592
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: thermal: Add core Vmax trip-points for norrin
Alex Frid [Sat, 14 Dec 2013 03:11:30 +0000]
ARM: tegra: thermal: Add core Vmax trip-points for norrin

Bug 1413311

Change-Id: I9254e9f608ecc7c9050703b542692aceb9e7031d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/345563
GVS: Gerrit_Virtual_Submit
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: thermal: Remove unnecessary trip-points
Alex Frid [Sat, 14 Dec 2013 02:57:13 +0000]
ARM: tegra: thermal: Remove unnecessary trip-points

Removed core edp trip-points from Tegra12 platforms (core edp limits
are not applicable on those platforms).

Change-Id: Id31a08b5020ad16bbf5d84cf0eed19ed04ee473f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/345562
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoarm: tegra12: loki: thermal trips changes
Anshul Jain [Sat, 14 Dec 2013 02:13:44 +0000]
arm: tegra12: loki: thermal trips changes

Bug 1405072

Change-Id: Ie968d487dfb45bf0edbe098fcaf11a7470debb75
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/345550
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agobcm43241: disable block ack for UP7
Narayan Reddy [Tue, 10 Dec 2013 15:09:23 +0000]
bcm43241: disable block ack for UP7

Disble BA for TID7 and set BA window size to 32 for
better PC gaming experience.

bug 1423506

Change-Id: I61b25536eb7c92c3e8d99fc3e7b90a6e21b6fdb1
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: http://git-master/r/343999
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoARM: tegra: fuse: add board check for boost
Ray Poudrier [Wed, 27 Nov 2013 01:17:53 +0000]
ARM: tegra: fuse: add board check for boost

Bug 1397902

Change-Id: Iaec76bf0befbe53960a4e37ad078b0cf0fd107eb
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/335955
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: dc: int polarity for windows H, D, T
Daniel Solomon [Thu, 5 Dec 2013 23:46:24 +0000]
video: tegra: dc: int polarity for windows H, D, T

Set UF_INT_POLARITY to high for windows H, D, T on T148 and T124.
Use symbolic names for flags in this polarity register.

Bug 1320797
Bug 1356757

Change-Id: I61fdf6ad77f105d5b65a657c1879199ee57648dc
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/338915
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
(updated to support T124 SoC and rewrote commit message - jdm)
Reviewed-on: http://git-master/r/343879
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: dc: avoid divide-by-zero
Jon Mayo [Fri, 13 Dec 2013 19:12:46 +0000]
video: tegra: dc: avoid divide-by-zero

Make extra checks to avoid division by 0.

Change-Id: I580113f2c7fad4eba05f467f6eeda5080aef281b
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/345396
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jong Kim <jongk@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: prevent kernel panic
Yuvraj Pasi [Fri, 13 Dec 2013 12:35:54 +0000]
video: tegra: host: prevent kernel panic

kernel panic is observed while trying to access
tegra_vi1->ndev->dev.platform_data because it is
null. This WAR prevents kernel panic.

Bug 1425080

Change-Id: I9afa54a9dcbdeca4a633654cb359e3d9e8c34753
Signed-off-by: Yuvraj Pasi <ypasi@nvidia.com>
Reviewed-on: http://git-master/r/345344
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agovideo: tegra: host: vic: Move SETCLASS to pushbuf
Arto Merilainen [Fri, 12 Apr 2013 12:12:17 +0000]
video: tegra: host: vic: Move SETCLASS to pushbuf

Context switch code requires setting class to VIC. It is not
advisable to use setclass command inside command buffers as we
later will enable gather filtering.

Bug 1259826

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

5 years agoarm: tegra: vcm30t124: Disabled GPU freq scaling
Sungwook Kim [Tue, 3 Dec 2013 00:47:34 +0000]
arm: tegra: vcm30t124: Disabled GPU freq scaling

Disabled T124 GK20A GPU clock frequency scaling.  This needs to turn off
both kernel config options, TEGRA_GK20A_PERFMON and TEGRA_GK20A_DEVFREQ.
In the make menuconfig, unselect "Device Drivers" -> "Graphics support" ->
"Enable GK20A frequency scaling" menu entry.

bug 1394920

Change-Id: I7e11311911cf2d3e73b1c16c311eaf3d84138aff
Reviewed-on: http://git-master/r/337478
(cherry picked from commit 4936838b205298d57c2d8773700a868268ba8ec6)
Signed-off-by: Sungwook Kim <sungwookk@nvidia.com>
Reviewed-on: http://git-master/r/340143
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: program DDR IO DPD registers
Prashant Gaikwad [Tue, 29 Oct 2013 08:24:05 +0000]
arm: tegra: program DDR IO DPD registers

Bug 1307958

Change-Id: I5434ad7fa7f4de21fc2c33a974925ab07b642796
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/304746
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Leo He <leoh@nvidia.com>
Tested-by: Leo He <leoh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoASoC: Tegra: Add voice call support
Ravindra Lokhande [Wed, 11 Dec 2013 14:44:33 +0000]
ASoC: Tegra: Add voice call support

Voice call support is added for t12x platforms using rt5639 codec.

Bug 1389146

Change-Id: I0b8d2cec0b5bbde211b36e973731bc6005bb64f6
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/344261
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: loki: add audio dit device
Ravindra Lokhande [Fri, 13 Dec 2013 14:35:22 +0000]
arm: tegra: loki: add audio dit device

Added dummy audio dit device needed to fix build break.

Change-Id: I0f4f9171f0eff7f5be27b33c75b6864422010782
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/345362
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: ardbeg: rename productized power monitor
Pritesh Raithatha [Thu, 12 Dec 2013 14:30:33 +0000]
ARM: tegra: ardbeg: rename productized power monitor

rename productized power monitor as it is having
duplicate names.

Change-Id: I6ceb1be7bf8495ec70a187135e549479a338fc90
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/345337
Reviewed-by: Simo Melenius <smelenius@nvidia.com>
Tested-by: Simo Melenius <smelenius@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra12: loki: put DSIC/D into DPD mode
Terry Wang [Wed, 4 Dec 2013 15:20:44 +0000]
ARM: tegra12: loki: put DSIC/D into DPD mode

Put DSIC/D pads into DPD mode to save additional power for Loki.

Bug 1416110

Change-Id: Ibd5bd402658c6ce06c598150e0134a1ec773502b
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/337250
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: configs: tegra12: Enable MAX44006 ALS
Sri Krishna chowdary [Mon, 16 Dec 2013 07:47:19 +0000]
ARM: configs: tegra12: Enable MAX44006 ALS

Set CONFIG_SENSORS_MAX44005 = y.

Bug 1419572

Change-Id: Iba4e7022cf40d714cc7e37ffc5b7daf494e27668
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/329491
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoArm: tegra124: tn8: support HDMI as primary
Ira Zhuang [Tue, 10 Dec 2013 11:36:11 +0000]
Arm: tegra124: tn8: support HDMI as primary

Please add CONFIG_TEGRA_HDMI_PRIMARY=y to
kernel config file to enable this feature.
Add AIO-DT for TN8
Bug 1407343

Change-Id: If69b1d29daef469fb299cb32c3c1ca2f991e0647
Signed-off-by: Ira Zhuang <izhuang@nvidia.com>
Reviewed-on: http://git-master/r/343657
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agonetlink: Print portid as signed int
Liangcai Li [Mon, 16 Dec 2013 08:21:55 +0000]
netlink: Print portid as signed int

CTS test "testTryToCrashVold" will decode portid from string to signed int,
so the unsigned string may exceed the max value of signed int.

Bug 1417380

Change-Id: I519d335c31a72c65387dd13b5f5229149f6ed15f
Signed-off-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-on: http://git-master/r/345723
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: config: disable IKCONFIG_PROC for security
Eric Miao [Thu, 31 Oct 2013 21:25:53 +0000]
ARM: tegra: config: disable IKCONFIG_PROC for security

Bug 1417380
Bug 1350930

Per CTS 4.3 requirement, IKCONFIG_PROC leaks kernel configuration via
/proc/config.gz, disable this option for security concern.

Change-Id: Ia3fbd7abda54dc4139259f0b1025d9855655fd80
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/323649
(cherry picked from commit 3110b8f695b7191fadb6b7687925cdefed5ccc94)
Reviewed-on: http://git-master/r/345699
Reviewed-by: Liangcai Li <liangcail@nvidia.com>
Tested-by: Liangcai Li <liangcail@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: loki: Dereference before null check
Sumit Singh [Fri, 6 Dec 2013 10:31:28 +0000]
ARM: tegra: loki: Dereference before null check

Coverity id : 25127

Bug 1416640

Change-Id: I01c36d6f2e71893645d6d86f2c64e35cc3466b4b
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/339114
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: dt: Max44006 ALS device registration
Sri Krishna chowdary [Sat, 14 Dec 2013 10:36:16 +0000]
ARM: tegra: dt: Max44006 ALS device registration

This includes
- I2c registration for MAX44006 ALS
- Power tree entry for MAX44006 ALS

Bug 1419572

Change-Id: I6c6e2a877d6eaad471784ef4e95ab015c5d331d0
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/338667
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agostaging: iio: light: max44005: Change sensitivity
Sri Krishna chowdary [Mon, 5 Aug 2013 17:26:11 +0000]
staging: iio: light: max44005: Change sensitivity

max44005 is kept at very high sensitivity due to
which the sensor's illuminance detection range
saturates even at very low intensities ~50 lux.

The userspace driver interprets this value incorrectly
and hence the lux value read by backlight driver are too high.
This causes backlight to stay at its peak value when ever
auto-brightness is enabled.

Hence change sensitivity to increase range of detection.

Bug 1419572

Change-Id: I818e9f76eb6d3ee6de82acf29ec6acb8e5066de6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/259024
(cherry picked from commit 55a5a1a58b9a511fd1ec401e090ed9b0e411cc3a)
Reviewed-on: http://git-master/r/344042
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agostaging: iio: light: max44005: support MAX44006
Sri Krishna chowdary [Tue, 12 Nov 2013 05:41:13 +0000]
staging: iio: light: max44005: support MAX44006

1. Add DT support.
 - compatible = "maxim,max44005" selects max44005 ALS + PS
 - compatible = "maxim,max44006" selects max44006 ALS
2. Add CRGB support
 - Need it for better backlight experience.
3. Correct minor error in restore_state
 - return value is always false irrespective of restore success,
   return the value returned by the callbacks.
4. Enable suspend/resume PM_OPS
5. mask the values returned by sensor to 14 bits. This prevents
   the errored values occuring on IR channel.

Bug 1419572

Change-Id: Iff051d504554449ded30b0e3a7aa575d9e518af1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/329305
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoAsoc: codecs: ALC5639 : Add ioctl support
Manoj Gangwal [Thu, 5 Dec 2013 12:15:03 +0000]
Asoc: codecs: ALC5639 : Add ioctl support

Bug 1418744
Bug 1418174

Change-Id: Ieaf1941bceadacee9824f7c6b2aabaa1714fe42a
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/339120
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoasoc: tegra: rt5639/40: Add irq based HS detection
Manoj Gangwal [Thu, 5 Dec 2013 11:29:27 +0000]
asoc: tegra: rt5639/40: Add irq based HS detection

Bug 1418744
Bug 1418174

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

5 years agoarm: tegra: TN7L: Add irq based headset detection
Manoj Gangwal [Thu, 5 Dec 2013 09:38:46 +0000]
arm: tegra: TN7L: Add irq based headset detection

1) Add support for IRQ based headset detection for
   ALC5639 codec
2) Remove the code for ALC5645 codec

Bug 1418744

Change-Id: I59747e3dd2a15103ac44b413b666cb9089deebe4
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/339071
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: fix the return type of function used for initcall
Laxman Dewangan [Fri, 13 Dec 2013 15:13:38 +0000]
ARM: tegra: fix the return type of function used for initcall

Fix the return type of function used for late_initcall which
fixes following warning:
/*
mach-tegra/common.c:2566:1: warning: initialization from incompatible
pointer type [enabled by default]
*/

Change-Id: I5a0e627f511d8ffe80990dc4005b363f6eb50bfd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/345372
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoArm: Tegra: Add E1936 pmic support
Graziano Misuraca [Thu, 12 Dec 2013 23:59:54 +0000]
Arm: Tegra: Add E1936 pmic support

Change-Id: I396bf6ee32c92bdf56d84033fc874abad44b61e7
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>

5 years agoArm: Tegra: ardbeg POP dts file
Graziano Misuraca [Fri, 13 Dec 2013 00:22:21 +0000]
Arm: Tegra: ardbeg POP dts file

Add base dts for E1922

Change-Id: Ie6295e050bb25d9682bebed2c2b0117b970224fe
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/345480
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm : tegra: support for AUO 12X8 panel
Anshuman Nath Kar [Fri, 13 Dec 2013 02:31:53 +0000]
arm : tegra: support for AUO 12X8 panel

Change-Id: I2dabfd208acdfa10bfd82cc0e1f6141e8768a82e
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/345115
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm : tegra: support for AUO 19X12 panel
Anshuman Nath Kar [Fri, 13 Dec 2013 02:23:09 +0000]
arm : tegra: support for AUO 19X12 panel

Change-Id: I7f71bfc96c120d9e55be7283112a0bebb6f9f63b
Signed-off-by: Anshuman Nath Kar <anshumank@nvidia.com>
Reviewed-on: http://git-master/r/345077
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agomedia: platform: tegra: dw9718: remove set zero
Phil Breczinski [Sat, 14 Dec 2013 00:16:27 +0000]
media: platform: tegra: dw9718: remove set zero

Removes a call to zero the focuser position when setting
arc mode.

Bug 1424632

Change-Id: I92d832c5975e90bcdb23b6e1d6df9ea3fa9d88d0
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/345505
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Sean Pieper <spieper@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm: tegra: edp: loki: update cpu max current
Seema Khowala [Fri, 22 Nov 2013 17:33:09 +0000]
arm: tegra: edp: loki: update cpu max current

Bug 1425488

Change-Id: Icefa992320cb14ed506ebeba1f52d70eff933a8a
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/334541
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra12: loki: Right GPU regulator current
Anshul Jain [Thu, 12 Dec 2013 00:20:00 +0000]
ARM: tegra12: loki: Right GPU regulator current

Bug 1425488

Change-Id: Ibd098d181114c96c5de575d64a542880e522f8f0
Reviewed-on: http://git-master/r/345522
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra12: loki: Change vreg parameter
Anshul Jain [Thu, 12 Dec 2013 00:20:00 +0000]
ARM: tegra12: loki: Change vreg parameter

Changing vreg parameter based on HW input.

Bug 1422196

Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Change-Id: I7b625b6cc13bfe4d99fddba9b311d8ff7da148da
Reviewed-on: http://git-master/r/344472
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoarm: tegra: edp: Add GPU EDP override debugfs
Diwakar Tundlam [Fri, 13 Dec 2013 01:53:55 +0000]
arm: tegra: edp: Add GPU EDP override debugfs

Added ability to override VDD_GPU EDP limit just as for CPU mainly for
SQA testing. Other minor change and typo fixes

Bug 1411163
Bug 1307919

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

5 years agoARM: tegra: thermal: Re-factor trip-points APIs
Alex Frid [Wed, 11 Dec 2013 06:29:34 +0000]
ARM: tegra: thermal: Re-factor trip-points APIs

Re-named, and re-arranged trip-points installation interfaces, so that
interface name reflects module/parameter subject to thermal control,
instead of designated thermal zone (the latter may change on different
platforms creating a confusion with old names).

Change-Id: Ie3714d14103b85720598cf9da44e0abf51326ac5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/344606
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agomisc: inv_mpu: Remove unused kernel files.
Robert Collins [Wed, 13 Nov 2013 23:10:47 +0000]
misc: inv_mpu:  Remove unused kernel files.

Bug 1406088

Change-Id: Iff64878f908e14c7fd6eee7eafd922e06c7ab7c4
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/330742
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra12: loki: Fix regulator warnings
Frank Chen [Fri, 13 Dec 2013 03:00:44 +0000]
ARM: tegra12: loki: Fix regulator warnings

T124 has two vi channels so we need to specify
vi.0 and vi.1 for avdd_dsi_csi regulator to avoid
kernel warnings

Bug 1327952

Change-Id: I18f389562f7e7c7671f90f016079e3cb0a5ff2f2
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/345133
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: tegra: dvfs: Exempt top floor from SiMon offset
Alex Frid [Wed, 11 Dec 2013 03:48:52 +0000]
ARM: tegra: dvfs: Exempt top floor from SiMon offset

Made sure that SiMon offset for VDD_CPU rail is not applied to maximum
thermal floor (lowest temperature entry in thermal floor profile).

Bug 1343366

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

5 years agoARM: tegra: dvfs: Handle SiMon CPU notification
Alex Frid [Tue, 10 Dec 2013 02:26:57 +0000]
ARM: tegra: dvfs: Handle SiMon CPU notification

Registered DFLL call-back with SiMOn notification chain. When SiMOn
grade for DFLL rail (VDD_CPU) is changed, applied the respective offset
to the DFLL thermal floor profile.

Bug 1343366

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

5 years agoARM: tegra12: dvfs: Initialize CPU DVFS with SiMon offsets
Alex Frid [Sun, 8 Dec 2013 04:45:41 +0000]
ARM: tegra12: dvfs: Initialize CPU DVFS with SiMon offsets

Added GPU SiMon offset array with just 2 entries, since only one CPU
SiMon high grade (besides default) is characterized on Tegra12.

Added thermal floor trip-point above thermal shut-down limit. This
trip-point will be never be crossed, but it allows to separate absolute
DFLL minimum voltage and high temperature thermal floor that depends
on SiMon offset. Set new thermal floor to current default DFLL Vmin,
and decreased DFLL Vmin by the high grade offset.

Bug 1343366

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

5 years agovideo: tegra: dc: fix Coverity issues
Deepak Nibade [Sun, 8 Dec 2013 09:39:18 +0000]
video: tegra: dc: fix Coverity issues

- fix dereference before NULL check
Coverity id : 24636
- fix unchecked return value
Coverity id : 25027
Coverity id : 25028
Coverity id : 25243
Coverity id : 25244

Bug 1416640

Change-Id: If9e7ff59267cfc39d10f99061162176b4c49a34c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/339693
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Sumit Singh <sumsingh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: use alt dvfs
Wen Yi [Sat, 7 Dec 2013 03:09:46 +0000]
video: tegra: use alt dvfs

vdd_core can be scaled based on which window is active.

Bug 1404188

Change-Id: I02d132e0178e09638298c6e4da2d4e76ba79b473
Signed-off-by: Wen Yi <wyi@nvidia.com>
Reviewed-on: http://git-master/r/339591
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra12: DC window and vdd_core relation
Wen Yi [Sat, 7 Dec 2013 03:05:05 +0000]
arm: tegra12: DC window and vdd_core relation

Define a property to represent the fact
that some window may require lower vdd_core
when it's active.

For T124, the window is Window B that is the second
window.

Bug 1404188

Change-Id: I5cb387028dd6362cf861a03f184572c70d3dd829
Signed-off-by: Wen Yi <wyi@nvidia.com>
Reviewed-on: http://git-master/r/339590
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agocpuquiet: Fix locking in driver_unregister
Sai Gurrappadi [Thu, 12 Dec 2013 23:25:53 +0000]
cpuquiet: Fix locking in driver_unregister

cpuquiet_switch_governors needs to be protected with the cpuquiet_lock.

Change-Id: I948d1190a270b9e8b732eaad80a303560fe9f282
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/345013
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: fix section mismatch error on panel j-720p driver
Laxman Dewangan [Thu, 12 Dec 2013 09:18:58 +0000]
ARM: tegra: fix section mismatch error on panel j-720p driver

Fix following section mismatch error:
/**
WARNING: vmlinux.o(.text+0x50e4c): Section mismatch in reference from the
 function dsi_j_720p_5_register_bl_dev() to the (unknown reference) .init.data:(unknown)
The function dsi_j_720p_5_register_bl_dev() references
the (unknown reference) __initdata (unknown).
This is often because dsi_j_720p_5_register_bl_dev lacks a __initdata
annotation or the annotation of (unknown) is wrong.

**/

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

5 years agoxhci: tegra: fix kernel panic in system suspend
Henry Lin [Wed, 27 Nov 2013 06:30:18 +0000]
xhci: tegra: fix kernel panic in system suspend

If xhci driver fails to loading firmware from file during
initialization, it frees all resources it uses and set its
driver data to NULL. But xhci driver doesn't unbind it with
xhci platform device. So, system still calls tegra_xhci_suspend()
during system suspend. And, kernel panic happens when xhci
driver trying to access NULL pointer in system suspend.

Bug 1414486

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

5 years agommc: tegra: Switch off idle sdmmc clocks in post resume
Pavan Kunapuli [Thu, 12 Dec 2013 08:57:26 +0000]
mmc: tegra: Switch off idle sdmmc clocks in post resume

Use both card present and mmc->card as indicators for device presence
and turn off the clock in post resume if the device is not present.

Bug 1417148

Change-Id: I48bc2695d3998d3a11fdf9d070e7b275e6da4aed
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/344735
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoarch: arm: tegra: vcm30t124: Make LDO5 always on
Bhavesh Parekh [Thu, 12 Dec 2013 09:03:05 +0000]
arch: arm: tegra: vcm30t124: Make LDO5 always on

LDO5 is used to control sdmmc voltage, which is either 1.8V or 3.3V. And
since it controlled via FPS1 of MAX77663, we can't disable/enable the
rail from the S/w unless we move the rail out of FPS control.
So make the LDO5 always on in the S/w, so that regulator framework
doesn't try to call enable/disable routine.

bug 1397523

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

5 years agovideo: tegra: host: fix pri timeout enable
Kevin Huang [Thu, 12 Dec 2013 17:33:18 +0000]
video: tegra: host: fix pri timeout enable

Change-Id: Ib2c0f15ccb028e7f777e39dd516b7dc59a74f741
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/344887
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Vince Hsu <vinceh@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agocrypto: tegra-se: Add DT support
Shravani Dingari [Tue, 26 Nov 2013 06:04:54 +0000]
crypto: tegra-se: Add DT support

Add DT support for SE driver

Bug 1369830

Change-Id: Iebd0a7f58d0ee6eb3ebc7f75f81690bc1ec972c0
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/334930
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra: se: Add DT support for SE
Shravani Dingari [Tue, 26 Nov 2013 06:03:18 +0000]
arm: tegra: se: Add DT support for SE

Modify board files to support DT for SE

Bug 1369830

Change-Id: I994c57e0f0878953db4d1b0ce0bd8edccbcc55a8
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/334928
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agomisc: tegra-cryptoev: Simple code modification
Shravani Dingari [Thu, 12 Dec 2013 04:25:09 +0000]
misc: tegra-cryptoev: Simple code modification

Modify code to replace hard-coded numbers
with Macros

Change-Id: Ie550dfdb2eb2677be72c7cf0596cc4ccc97af00b
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/344595
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: pmc: add delay before setting up the PMC
Petlozu Pravareshwar [Thu, 12 Dec 2013 10:46:35 +0000]
usb: pmc: add delay before setting up the PMC

Add delay before turning over the pad configuration
to PMC. By this time usb detectors will provide stable
line values. This change is to address the reset issue
seen with some flash drives during LP0 resume.

Bug 1409337

Change-Id: I5467581653cac712843bde19aff437f0c1238c7e
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/344771
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: phy: tegra: use regulator_enable return value
Petlozu Pravareshwar [Thu, 12 Dec 2013 11:13:21 +0000]
usb: phy: tegra: use regulator_enable return value

Use the regulator_enable() return value and add
error prints. This will also avoid the warning
messages during compilation.

Bug 1411132

Change-Id: Ia6c8550e411252808e4d73b0441c9ad158036dcc
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/338665
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoASoC: tegra-alt: vcm30t124: Fix audio noise
Songhee Baek [Thu, 12 Dec 2013 18:20:49 +0000]
ASoC: tegra-alt: vcm30t124: Fix audio noise

To suuport various sampling rate correctly, machine driver needs
to update hw_param from runtime parameter for dai link, so codec
drivers can set proper params in runtime.

Bug 1409761

Change-Id: Ic4e3326abba58e79c88bd96adac6e06b475f07ee
Signed-off-by: Songhee Baek <sbaek@nvidia.com>
Reviewed-on: http://git-master/r/344895
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

5 years agoarm: tegra: tn8: ffd EMC support
Eric Chuang [Tue, 3 Dec 2013 08:40:32 +0000]
arm: tegra: tn8: ffd EMC support

Bug 1417887

Change-Id: I57bc4236c3d2cab1e0c5a916e29fde5431b42501
Signed-off-by: Eric Chuang <echuang@nvidia.com>
Reviewed-on: http://git-master/r/339376
Reviewed-by: Robert Shih <rshih@nvidia.com>
Tested-by: Robert Shih <rshih@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ryane Luo <ryanel@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: enable PTM/ETB tracing after the LP2
Xin Xie [Wed, 4 Dec 2013 00:14:01 +0000]
arm: tegra: enable PTM/ETB tracing after the LP2

bug 9622188

Change-Id: Id55c9f540891363fcc188dc9fe9d0fff80394810
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/337999
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

5 years agothermal: palmas: Add Hot-Die state information
Jinyoung Park [Wed, 11 Dec 2013 00:50:25 +0000]
thermal: palmas: Add Hot-Die state information

Added Hot-Die state information in interrupt handler.

Change-Id: I02398843d95e6477a918c05755bfb641d295c952
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/343896
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agothermal: palmas: Add palmas data into driver data
Jinyoung Park [Thu, 12 Dec 2013 05:30:51 +0000]
thermal: palmas: Add palmas data into driver data

Added the palmas data into the driver data in order to be referred in
callbacks.

Change-Id: I8564fb1e73a2d882c025de982658a93cb6b1472a
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/344624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: add CoreSight PTM and ETB driver
Xin Xie [Sat, 23 Nov 2013 00:34:28 +0000]
ARM: tegra: add CoreSight PTM and ETB driver

bug 9622188

Change-Id: I35c94ad39abf9de61f1f326948cd5b10ca5b9e37
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/337998
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

5 years agoarm: tegra: tn8: ffd regulator support
Eric Eells [Sat, 23 Nov 2013 00:14:37 +0000]
arm: tegra: tn8: ffd regulator support

Bug 1412441

Change-Id: I93f18c8b88c2f12ccde8f041f6ba76899e0c955a
Signed-off-by: Eric Eells <eeells@nvidia.com>
Reviewed-on: http://git-master/r/345075
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: tn8: ffd fix regulator for modem
Robert Shih [Fri, 13 Dec 2013 00:38:50 +0000]
arm: tegra: tn8: ffd fix regulator for modem

Bug 1412441

Change-Id: I35ffffc39a22aaf83ecafd290c21922acd738151
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/345054
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: always enable RAM repair
Adeel Raza [Tue, 24 Sep 2013 19:57:25 +0000]
ARM: tegra: always enable RAM repair

Always enable RAM repair (irrespective of fuse bits) for non-Tegra11
platforms.

Bug 1366617

Change-Id: I548934ca6fbe9e89b27cf99f8929b261fdbddb89
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/335231
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: tegra: cpu: Ensure CPU freq with suspend freq during pre/post suspend
Jinyoung Park [Thu, 7 Nov 2013 08:27:50 +0000]
ARM: tegra: cpu: Ensure CPU freq with suspend freq during pre/post suspend

Tegra CPU driver fixes CPU freq with a selected suspend freq between
pre-suspend and post-suspend. In this pre/post suspend period, the Tegra
CPU driver ignores CPU freq scaling requests from the CPU freq governor.
But the CPU freq governor keep working until the system suspended.
So the CPU freq governor updates its status even if the system is in
the pre/post suspend period.
This makes an unexpected CPU freq setting issue on post-suspend.
To ensure CPU freq with the suspend freq in the pre/post suspend period,
set a policy min/max freq on CPU freq governor to the suspend freq
via PM QoS at pre-suspend and release the PM QoS setting at post-suspend.

Bug 1354391

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

Change-Id: I8efa6dd438a37adc7cadfb1d36eb7340a4e85c79
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/327551
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoarm: tegra12: Fix light thermal HW throttling
Diwakar Tundlam [Wed, 11 Dec 2013 22:54:38 +0000]
arm: tegra12: Fix light thermal HW throttling

Fix light thermal HW throttling cdev registration and its cur_status

Bug 1342361

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

5 years agoARM: tegra11: dvfs: Update c3bus dvfs tables
Alex Frid [Thu, 3 Oct 2013 03:01:04 +0000]
ARM: tegra11: dvfs: Update c3bus dvfs tables

Updated dvfs tables for c3bus modules on T40S/AP40 parts.

Bug 1377341

Change-Id: I2ae8bd61a28696751d4ab2a3f7368106e9771489
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/281235
(cherry picked from commit 41e9d942cd2585c277b078bc0535cede0fe25652)
Reviewed-on: http://git-master/r/344628
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: clock: Fix cbus fine granularity rounding
Alex Frid [Sat, 9 Nov 2013 03:20:17 +0000]
ARM: tegra11: clock: Fix cbus fine granularity rounding

Made sure that rounding rate equal to cbus fine granularity region
threshold returns threshold rate regardless of rounding direction:
up/down (was only up).

Change-Id: I61d33cf400b52e8d51a711a995666a5edb9b0cf3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/328576
(cherry picked from commit 651660986248a50e9440475ea630026b1458daa1)
Reviewed-on: http://git-master/r/344627
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agostaging: ozwpan: Fix an issue with hub_status.
Todd Poynter [Tue, 10 Dec 2013 19:20:38 +0000]
staging: ozwpan: Fix an issue with hub_status.

Update ozwpan to the latest drop from ATMEL to
resolve an issue with hub_status() returning the
wrong status.  This resulted in the USB stack
trying to read the port status continously.

Bug 1415705.

Change-Id: Ia9656b311327a1104cdf4ff601a4335c5d9f390f
Signed-off-by: Todd Poynter <tpoynter@nvidia.com>
Reviewed-on: http://git-master/r/343767
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: dvfs: Update GPU DVFS debugfs node
Alex Frid [Sun, 8 Dec 2013 03:47:15 +0000]
ARM: tegra: dvfs: Update GPU DVFS debugfs node

Updated GPU DVFS table debugfs node to properly show maximum voltage
across thermal ranges at current SiMon offset (instead of peak maximum
voltage across all SiMon offsets).

Bug 1343366

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

5 years agoARM: tegra12: dvfs: Handle SiMon GPU notification
Alex Frid [Sun, 8 Dec 2013 01:54:14 +0000]
ARM: tegra12: dvfs: Handle SiMon GPU notification

Registered DVFS call-back with SiMOn notification chain. When SiMOn
grade for GPU rail is changed, switched between default (grade 0) and
shifted by SiMon offset (grade 1) GPU DVFS tables.

Bug 1343366

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

5 years agoARM: tegra12: dvfs: Initialize GPU DVFS with SiMon offsets
Alex Frid [Sat, 7 Dec 2013 04:37:18 +0000]
ARM: tegra12: dvfs: Initialize GPU DVFS with SiMon offsets

Added GPU SiMon offset array with just 2 entries, since only one GPU
SiMon high grade (besides default) is characterized on Tegra12.

Constructed GPU DVFS table shifted by high grade offset during GPU
initialization. The new table is not used, for now.

Decreased GPU rail minimum voltage limit to include offset.

Bug 1343366

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

5 years agocrypto: tegra-se: avoid ctx save buf from highmem
Hiroshi Doyu [Tue, 10 Dec 2013 11:26:13 +0000]
crypto: tegra-se: avoid ctx save buf from highmem

DMA API(IOMMU) can allocate pages from highmem since IOMMU usually
voids the limitation of accesible page range from HWA. But there's
some special case that a client wants pages accessible within 32bit
explicitly, especially for some PM suspend/resume case here. This
patch gives a hint to DMA API where to allocate pages.

Bug 1414172

Change-Id: I4f457264724d92e2d9fba7993c2c62c165fe2010
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/343646
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoRevert "crypto: tegra-se: alloc ctx save buf from atomic pool"
Hiroshi Doyu [Tue, 10 Dec 2013 11:09:35 +0000]
Revert "crypto: tegra-se: alloc ctx save buf from atomic pool"

This reverts commit 08b47b078d9cccc831d23eeeabaeec18f51c562c.

Bug  1414172

Change-Id: I5050f886aa9e3bc4cdc508f52204506543dfdef4
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/343644
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>