5 years agoARM: tegra: fix sdmmc2-sdslot regulator configuration
Laxman Dewangan [Thu, 19 Dec 2013 13:47:01 +0000]
ARM: tegra: fix sdmmc2-sdslot regulator configuration

THe SDMMC2 sd card slot power is provided through Tegra GPIO PR0
which is not open drain type.
Removing this flag from the regulator registration.

bug 1418136

Change-Id: Ic948c4e422fbc5262805f2df60527cec8313e2a0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/347556
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrew Tran <atran@nvidia.com>
Tested-by: Andrew Tran <atran@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra124: Laguna: add pinmux to dtb
Bibek Basu [Wed, 18 Dec 2013 17:11:40 +0000]
ARM: tegra124: Laguna: add pinmux to dtb

Add pinmux support to dtb

Bug 1423348
Bug 1427643

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

5 years agothermal: tmp006: Add skin temperature support
Preetham Chandru R [Thu, 12 Dec 2013 13:12:46 +0000]
thermal: tmp006: Add skin temperature support

Add tmp006 skin temperature monitoring support

Bug 1397494

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Change-Id: I5ebe460fbb0bef891547c25ef86a9521f6f3efbd
Reviewed-on: http://git-master/r/331571
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra: pd: Update domain client list
Shridhar Rasal [Wed, 18 Dec 2013 06:34:20 +0000]
arm: tegra: pd: Update domain client list

host1x client's as a sub domain managed from nvhost,
remove these domain from MC domain.

bug 1411159

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

5 years agoArm: Tegra: E1922: Override smps6 voltage
Graziano Misuraca [Tue, 17 Dec 2013 21:32:09 +0000]
Arm: Tegra: E1922: Override smps6 voltage

Change-Id: Ia2d2b77180ec3fdde133bb4dcc9ab8dc1b93d520
Reviewed-on: http://git-master/r/346636
Reviewed-by: Graziano Misuraca <gmisuraca@nvidia.com>
Tested-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: Constant delay for FECS reset
Arto Merilainen [Tue, 17 Dec 2013 09:39:18 +0000]
video: tegra: host: Constant delay for FECS reset

FECS used to use readl() for waiting reset propagation. This patch
modifies the code to use constand udelay() to ensure that all parts
are properly reset before continuing.

Bug 1425077

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

5 years agovideo: tegra: host: enable host1x powergate
Shridhar Rasal [Tue, 3 Dec 2013 06:18:08 +0000]
video: tegra: host: enable host1x powergate

- Enable host1x powergate with 50 mS powergating delay.
- Set host1x wakeup capable device.

Bug 1411159

Change-Id: Ifa2cf4c48204aad25bef530848b7f31c2ff46f27
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/346997
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra124: norrin: ldo7 voltage update
Bibek Basu [Thu, 12 Dec 2013 06:00:02 +0000]
ARM: tegra124: norrin: ldo7 voltage update

increase voltage of ldo7 to 1.275v

Bug 1423329

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

5 years agoARM: tegra: loki: correct uSD pinmux
Ray Poudrier [Wed, 18 Dec 2013 23:19:44 +0000]
ARM: tegra: loki: correct uSD pinmux

Rx and Tx were swapped for input/output

Bug 1426375

Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Change-Id: I7b4d1bc0097b801b01b9ed64479d567519b2e078
Reviewed-on: http://git-master/r/347210
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-by: Ankita Garg <ankitag@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: power tree changes for E1936 and E1922
gaurav singh [Thu, 19 Dec 2013 02:17:28 +0000]
ARM: tegra: power tree changes for E1936 and E1922

Enabled the power of sdmmc2 and pmic clock of BT/WIFI module

Bug 1425764

Change-Id: Id0573bec6bbf294fb2aea14cd78c037889bf7d88
Signed-off-by: gaurav singh <gauravsingh@nvidia.com>
Reviewed-on: http://git-master/r/347296
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: Assign new client for re-used mapping
Raghavendra VK [Fri, 13 Dec 2013 08:01:27 +0000]
video: tegra: host: Assign new client for re-used mapping

bug 1409513

Change-Id: I70810a1d909c035a94f5d2de76b855cebbf52aa7
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/345235
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: rename nvidia-boardids to nvidia,boardids on all DTS file
Laxman Dewangan [Wed, 18 Dec 2013 14:42:34 +0000]
ARM: tegra: rename nvidia-boardids to nvidia,boardids on all DTS file

The boardids can be passed as the nvidia,boardids instead of nvidia-boardids
as <company-name>,<propname> is generic way of making properties name.

Change-Id: I56546210f60aedf8e9f195f515483fad31289a42
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/347077
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra124: support new AMS PMIC
Bibek Basu [Tue, 17 Dec 2013 06:12:31 +0000]
ARM: tegra124: support new AMS PMIC

Add platforma support for detection of
new AMS PMIC for SD0 reg for
PM374 FAB B board & PM359C board

Bug 1425474

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

5 years agoregulator: as3722 : SD0 init val based on boardid
Prabhu Kuttiyam [Thu, 19 Dec 2013 00:07:03 +0000]
regulator: as3722 : SD0 init val based on boardid

Decide the PMIC version based on board id as
AMS PMIC rev id is not correct in silicon.
Add DT support also.

Bug 1425474

Change-Id: Ia51462980da582c958a26e156b48a1e5d655559f
Signed-off-by: Prabhu Kuttiyam <pkuttiyam@nvidia.com>
Reviewed-on: http://git-master/r/347241
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: host: vi: only do host1x_writel for vi.0
Bryan Wu [Wed, 18 Dec 2013 19:21:11 +0000]
video: host: vi: only do host1x_writel for vi.0

During module removing, vi.0 device will release the whole resources
and set aperture[0] to NULL. Then vi.1 device will try to call
host1x_writel(), which will access the master device vi.0's aperture.
This will cause kernel oops with NULL pointer access.

This patch will check the device id, only do the host1x_writel()
operation for vi.0.

Bug 1421146

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

5 years agoARM: tegra12: loki: enable PCL auto detection
Frank Chen [Tue, 3 Dec 2013 19:59:38 +0000]
ARM: tegra12: loki: enable PCL auto detection

device supported: ov7695

Bug 1417635

Change-Id: I999349e2a17b931dc438aae0774964bac69d78e1
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/338397
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: cec: Add sysfs node to set logical addr
Ankita Garg [Thu, 17 Oct 2013 18:45:31 +0000]
misc: cec: Add sysfs node to set logical addr

Sysfs node takes string of decimal representation of logical address
Logical address must be in bit-map form, e.g., "0x10" for address 4

Bug 1395893

Change-Id: I899fe80e1ebcc9957ac6efe3c4f6d07873b2a8db
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/303968
(cherry picked from commit ff2b08c0dc1d6ff3c1d7cac012cdccfa17c6399c)
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/346043
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: cec: Fix bug potentially cause system hang
Xia Yang [Tue, 29 Oct 2013 00:51:50 +0000]
misc: cec: Fix bug potentially cause system hang

Remove wait_event_interruptible() from interrupt context
Change init_done to be atomic_t and reset as early as possible

Bug 1395893

Change-Id: Ib0cf423a3405293000b0c0d9aa105da5bba22e53
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/304631
(cherry picked from commit ef034436a3c8aaf7a9ce5dd9ebaf8dc90dbcce4b)
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/346042
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: cec: cancel workqueue in suspend
Deepak Nibade [Mon, 30 Sep 2013 06:13:59 +0000]
misc: cec: cancel workqueue in suspend

cancel the workqueue in suspend method before turning
  off the clock

Bug 1360341

Change-Id: I126da686a6ba0c5eec55b67df1e9f962ce16fc48
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/280159
(cherry picked from commit 7cc6da6e41c7889f7ed8da7833d293b3b884bc0e)
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/346041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: cec: add wait_event for CEC ops
Shridhar Rasal [Tue, 14 May 2013 09:30:33 +0000]
misc: cec: add wait_event for CEC ops

Add wait_event to make sure that CEC functions
do not execute until CEC init completes

Bug 1283088

Change-Id: I1d26360326338f549a14cbf109a24c2935ebe472
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/232566
(cherry picked from commit 6e94e976c1e2121d81d19018b79a97d353b11d70)
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/346039
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomisc: cec: add worker handler for resume
Shridhar Rasal [Tue, 14 May 2013 09:30:33 +0000]
misc: cec: add worker handler for resume

HDMI CEC needs 1 sec delay for reset hardware in resume
Adding work handler for CEC init

Bug 1283088

Change-Id: I4498584ec93c1a5eefddfad9966cb5a1e7776e6e
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/228332
(cherry picked from commit 596245cee4b2c239843c2f920d83c21721af2ffb)
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/346038
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: loki:enable HDMI as primary for foster
siddardha naraharisetti [Wed, 20 Nov 2013 23:41:33 +0000]
arm: tegra: loki:enable HDMI as primary for foster

enable HDMI as the primary display for foster

Bug 1407836

Change-Id: I148a2ca3176ca4adfc0310cfc5999d441755fb06
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/333697
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>

5 years agoARM: config: build soc_camera_platform as a module
Bryan Wu [Wed, 18 Dec 2013 19:43:25 +0000]
ARM: config: build soc_camera_platform as a module

soc_camera_platform should be a module for camera test pattern
generator testing. It's a virtual sensor driver as well as other real
camera sensor driver. So build it as a module, switching between
different sensor should be easier in runtime.

Bug 1383193

Change-Id: Ibfe98b8925cd27215a4b39558830ad554616eb0a
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/347147
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoarm: tegra: tn8: correct makefile entries
Nitin Kumbhar [Thu, 12 Dec 2013 09:23:18 +0000]
arm: tegra: tn8: correct makefile entries

Makefile needs to have .dtb files and not .dts files.

Change-Id: I6100eee431fe0292f9de13d68b2a34d4abe2e695
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/344749
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: tn8: Add support for voice call.
vinod subbarayalu [Thu, 12 Dec 2013 20:08:45 +0000]
arm: tegra: tn8: Add support for voice call.

Bug 1420679

Change-Id: Ib22b6c13c631eb7b16b07154fe947f32dbec1f04
Signed-off-by: Vinod Subbarayalu <vsubbarayalu@nvidia.com>

5 years agoarm: tegra: tn8: ffd enable micro-SD slot.
Andrew Tran [Tue, 17 Dec 2013 00:35:40 +0000]
arm: tegra: tn8: ffd enable micro-SD slot.

Change power_gpio to correct GPIO

Bug 1418136

Change-Id: Id896c1c74a9aa3d3df02ba4f325a5187d78e8a0a
Signed-off-by: Andrew Tran <atran@nvidia.com>

5 years agoARM: tegra: dvfs: Add nominal voltage to DVFS debugfs tree
Alex Frid [Tue, 17 Dec 2013 00:02:20 +0000]
ARM: tegra: dvfs: Add nominal voltage to DVFS debugfs tree

Change-Id: I4e15f272018640b1c3054514e840d177b659b609
Signed-off-by: Alex Frid <afrid@nvidia.com>

5 years agovideo: tegra: avp: Fix PM QoS init/uninit
Mandar Potdar [Wed, 18 Dec 2013 09:45:54 +0000]
video: tegra: avp: Fix PM QoS init/uninit

Fix PM QoS add and remove

bug 1396367

Change-Id: I7ec594976303a0b026bd998365421307d25eeca7
Signed-off-by: Mandar Potdar <mpotdar@nvidia.com>

5 years agoARM: tegra: Loki: Use sensor select to choose touch
Xiaohui Tao [Thu, 12 Dec 2013 20:24:57 +0000]
ARM: tegra: Loki: Use sensor select to choose touch

Change-Id: Idacd49981fed8cffcb1a4acccff324bfbfa82ca6
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/347121

5 years agoinput: touch: Raydium: Code drop v61.5
Xiaohui Tao [Tue, 17 Dec 2013 21:54:34 +0000]
input: touch: Raydium: Code drop v61.5

[1] Partially resolve user space pointer directly used in kernel driver (except DEV_ATTR part)
[2] Report mode switch support
[3] Refine multiple input devices and input protocol A
[4] Support eraser
[5] Implement mechanism to ensure multi-resume/suspend will be correctly executed
[6] Fix CS cmd fail issue
[7] Fix fast draw suffered from line broken issue
[8] Fix idle mode stability on Ardbeg issue

Bug 1414130
Bug 1408503
Bug 1398820
Bug 1398173
Bug 1371286
Bug 1392722

Change-Id: Icbd9250339a04f60390d5247e37aad3bfc49c526
Reviewed-on: http://git-master/r/346650
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agosoc: tegra: rt5639: balance regulator disabling
Vinayak Pane [Sat, 14 Dec 2013 02:28:25 +0000]
soc: tegra: rt5639: balance regulator disabling

Regulator enable, disable is not balanced in case of probe failure.
Restoring the regulators after probe failure and also at remove.

Bug 1425501

Change-Id: Ie6b5e87f3ec9cd31fcf7fa86c3f45022581b9ea1
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/345554
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoiommu/tegra: smmu: clear asid field correct
Krishna Reddy [Wed, 18 Dec 2013 00:43:37 +0000]
iommu/tegra: smmu: clear asid field correct

Clear asid field correctly based on number of
asids supported.
Bug 1380855

Change-Id: I2d0e7ab6b4fe01715156248aba257cdfb96e38b3
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/346737
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: dts: Add tn8 E1549 dts
Min-wuk Lee [Mon, 16 Dec 2013 06:28:16 +0000]
arm: tegra: dts: Add tn8 E1549 dts

Add new tegra124-tn8-1780-1100-a03-02.dts,
that will support E1549 display board with
E1845 Sensor, E1780 main board.
Add new tegra124-tn8-1780-1100-a03-03.dts,
that will support E1549 display board with
E1769 PMU, E1780 main board.

Bug 1371533

Change-Id: I818ba8675bcee20edad161b4c558f8d4669e7697
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/345663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agovideo: tegra: host: gk20a: fix ELPG robustness
Prashant Malani [Wed, 4 Dec 2013 19:15:14 +0000]
video: tegra: host: gk20a: fix ELPG robustness

If we disable ELPG via sysfs node, enter suspend, then on subsequently
waking up, the ELPG ref count would get reset to 1, and then get reduced
to 0 by the forced disable call in PMU init. However, the subsequent
enable call will increment the ref count, but not actually enable ELPG,
becaues the sysfs command had set the ELPG enabled flag to false. This
causes an elpg_ref count imbalance, and all subsequent ELPG
enable/disable calls become suspect.

Therefore, we remove the check of elpg_enabled flag inside the
elpg_enable() routine. Instead, we just deduct and extra ref count when
we disable elpg via the sysfs. This way, as long as all usage of elpg is
balanced, our ref counts will ensure that elpg is disabled, and this
status can be maintained across railgates.

Bug 1410515

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

5 years agovideo: tegra: host: Use nvhost_err instead of dbg_err
Terje Bergstrom [Wed, 18 Dec 2013 12:25:41 +0000]
video: tegra: host: Use nvhost_err instead of dbg_err

Use nvhost_err instead of nvhost_dbg(dbg_err, ) in the new notifier
code.

Change-Id: I345b6a321c4042d290d4fd1938999a9c1e7be400
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/347046
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agovideo: host: vi: fix unbalanced power operations
Bryan Wu [Sat, 7 Dec 2013 00:34:24 +0000]
video: host: vi: fix unbalanced power operations

Forget to remove VI platform device from power domain, which will
cause kernel oops when reload the module. Add
tegra_pd_remove_device() to solve this problem.

Regulator operation is also unbalanced, so move regulator_get()
in vi_init() and regulator_put() in vi_deinit(). Move
regulator_enable() in nvhost_vi_finalize_poweron() and
regulator_disable() in nvhost_vi_prepare_poweroff()

Remove pm_runtime operations, since they are handled by nvhost core

Bug 1421146

Change-Id: Iaec45d54ebf75f910c8e08b40b989632be834558
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/339527
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: host: fix unbalanced pm_runtime operations
Bryan Wu [Sat, 7 Dec 2013 00:28:43 +0000]
video: host: fix unbalanced pm_runtime operations

In nvhost_module_init(), pm_runtime_enable() is called. But when
unloading kernel driver, nvhost_module_deinit() forget to call
pm_runtime_disable() which will cause unbalanced operation warnings.

Add pm_runtime operations in nvhost_module_deinit(), also drivers
don't need to do pm_runtime operations which will be handled by
nvhost core.

Bug 1421146

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

5 years agovideo: tegra: host: Add MSENC debug prints
Terje Bergstrom [Thu, 12 Dec 2013 08:46:47 +0000]
video: tegra: host: Add MSENC debug prints

Change-Id: I34d401b6b904cf566ef6676b149ee582762fcbff
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/344756
Reviewed-on: http://git-master/r/345614

5 years agovideo: tegra: host: Use host1x_readl/writel
Terje Bergstrom [Sun, 15 Dec 2013 12:09:38 +0000]
video: tegra: host: Use host1x_readl/writel

Introduce one set of functions to read/write host1x and host1x client
registers, and remove redundant ones.

Change-Id: I42ac706ec6c6f030175d0ee1d6a343ccaa7b7143
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/345613

5 years agovideo: tegra: host: Convert debug errors to dev_err
Terje Bergstrom [Sun, 15 Dec 2013 10:56:50 +0000]
video: tegra: host: Convert debug errors to dev_err

Convert nvhost_dbg(dbg_err, ...) to nvhost_err(). The latter is not
conditional, and calls dev_err().

At the same time, changes the debug disabled path to be the fast path.

Change-Id: Ibc5258f1649c0f7584f28fc5f5448c463c3fdc14
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/345612

5 years agoEDP: tn8: update ESR tables
Timo Alho [Fri, 13 Dec 2013 07:51:03 +0000]
EDP: tn8: update ESR tables

Measurements on QA boards show that battery+board impedance can be
higher that estimated with boards that dev have. This patch increases
ESR by 40mOhm throughout the entire battery range.

Bug 1398591

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

5 years agoASOC: Tegra: Add control for I2s Loopback
Mubashra Khan [Tue, 17 Dec 2013 13:15:42 +0000]
ASOC: Tegra: Add control for I2s Loopback

It creates a control 'I2S Loopback'.If it is set ON,
then playback file traverses through I2S to record path.

Bug number: 1411829

Change-Id: I352cad7ceadbac06efcf75d7a9045d04f4e3a8cb
Signed-off-by: Mubashra Khan <mukhan@nvidia.com>
Reviewed-on: http://git-master/r/346496
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

5 years agoHID: usbhid: disable autosuspend for usb mouses
Petlozu Pravareshwar [Fri, 13 Dec 2013 06:49:21 +0000]
HID: usbhid: disable autosuspend for usb mouses

By default autosuspend is enabled for all the usb
devices. This change will disable the autosuspend
for mouses.

Bug 1417972

Change-Id: I904877afda1469b3e4a6d1111c5ccacd7c5a9816
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/345198
GVS: Gerrit_Virtual_Submit
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: gadget: otg: Allow device to charge in LP0
Rohith Seelaboyina [Tue, 10 Dec 2013 04:29:35 +0000]
usb: gadget: otg: Allow device to charge in LP0

Add support for charging of device in LP0, when
vbus detection happens through pmic.

Bug 1406615

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

5 years agousb: gadget: tegra: Support charging in LP0
Rohith Seelaboyina [Mon, 9 Dec 2013 09:15:32 +0000]
usb: gadget: tegra: Support charging in LP0

Add Support to allow device to charge in LP0
when vbus detection happens through pmic.

Bug 1406615

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

5 years agoARM: tegra: usb: Add vbus/id_extcon_dev to pdata
Rohith Seelaboyina [Mon, 9 Dec 2013 08:52:16 +0000]
ARM: tegra: usb: Add vbus/id_extcon_dev to pdata

Move vbus/id_extcon_dev_name to usb platform data,
Add support for charging in LP0, when vbus
detection happens through pmic.

Bug 1406615

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

5 years agoiio:light:jsa1127: add integration time DT support
Yunfan Zhang [Tue, 10 Dec 2013 02:47:50 +0000]
iio:light:jsa1127: add integration time DT support

1)add intergration time DT support
2)clean up DT parsing(naming and API)
3)add binding doc

Bug 1422148

Change-Id: I0068792f9c3afa972702352a3b512b3fd4ca1c77
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/340211
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoEDP: sysedp: move consumers into 'consumers' kset
Timo Alho [Tue, 17 Dec 2013 15:54:46 +0000]
EDP: sysedp: move consumers into 'consumers' kset

This patch creates a 'consumers' kset under sysedp directory where all
sysedp consumers are to be placed. The purpose is to allow uevents to
be sent when consumers are created so that their file permissions can
be managed from userspace.

Bug 1416849

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

5 years agoARM: Tegra12: DVFS: Raise pll_m ceiling to 1200
Sang-Hun Lee [Fri, 22 Nov 2013 23:14:13 +0000]
ARM: Tegra12: DVFS: Raise pll_m ceiling to 1200

Raise pll_m and emc ceiling to 1200 Mhz

Bug 1393328

Change-Id: Ib31cf8fde622ae4949b848d1ef4d731a8d58ca99
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/334786
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: rename nvidia-boardids to nvidia,boardids on all DTS file
Laxman Dewangan [Mon, 16 Dec 2013 12:28:53 +0000]
ARM: tegra: rename nvidia-boardids to nvidia,boardids on all DTS file

The boardids can be passed as the nvidia,boardids instead of nvidia-boardids
as <company-name>,<propname> is generic way of making properties name.

Change-Id: Icee1181305f0464301a5b660783b3aabf4469360
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/345811
GVS: Gerrit_Virtual_Submit

5 years agoARM: Tegra: tn8/ardbeg: Do not register powermon
Graziano Misuraca [Wed, 18 Dec 2013 02:14:53 +0000]
ARM: Tegra: tn8/ardbeg: Do not register powermon

Do not register powermon devices for E1922, E1923,
and E1784

Change-Id: I8d33dd2f3fb16aa2c49c7324995d3b2c2de1ecfe
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/346769
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Q-Ha Park <qpark@nvidia.com>
Tested-by: Q-Ha Park <qpark@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoinput: misc: inv: prevent IRQ revival
Sang-Hun Lee [Wed, 9 Oct 2013 21:14:24 +0000]
input: misc: inv: prevent IRQ revival

Problem description:
 - nvi_work_function may revive IRQ which was disabled
   during suspend and shutdown

Fix description:
 - Add a flag stop_workqueue which is set during suspend
   and shutdown
 - If the flag is set, make workqueue not revive the IRQ

Bug 1361923

Change-Id: I498091602ef9c43b75c0a17d7fe0837624271959
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/284347
Reviewed-on: http://git-master/r/330860
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoinput: misc: inv: fix race in shutdown and suspend
Sang-Hun Lee [Tue, 8 Oct 2013 21:14:24 +0000]
input: misc: inv: fix race in shutdown and suspend

Problem description:
 - Write to shutdown flag is not mutex protected
 - nvi_work_func may be scheduled after shutdown or suspend
 - kfifo is being freed for shutdown, which could
   corrupt memory if there is a further access to
   kfifo by nvi_pm_exit and its function calls

Fix description:
 - Encapsulate write to shutdown flag with a mutex,
   to ensure readers get valid information
 - Wait for nvi_work_func to complete during shutdown and suspend
 - Free kfifo only during remove

Bug 1361923

Change-Id: I64dabfb21a289354e7f7c58ac408dc48bcff9267
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/283813
Reviewed-on: http://git-master/r/330859
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoinput: misc: inv: reset gyro on an interrupt storm
Sang-Hun Lee [Fri, 21 Jun 2013 04:08:23 +0000]
input: misc: inv: reset gyro on an interrupt storm

Problem description:
 - Sometimes gyro sends more interrupts than the system could handle
 - This locks up the system for a long time if the system is locked up
   at a low power cluster

Fix description:
 - If gyro sends more interrupts than the specification, disable interrupt
   and schedule a power cycle of gyro

Bug 1311053

Change-Id: Ib6a3eb2991702a4ca41657cfc57179e16ebcd11d
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/280083
Reviewed-on: http://git-master/r/330858
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: gk20a: fix resource leaks
Deepak Nibade [Tue, 17 Dec 2013 11:35:40 +0000]
video: tegra: host: gk20a: fix resource leaks

fix Coverity issues of resource leaks
Coverity id : 25341
Coverity id : 25342

Bug 1416640

Change-Id: I31286753c8c36e98203180141ae7b2fe456aa30d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/346465
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: loki: Power supply for JSA1127 ALS
Sri Krishna chowdary [Tue, 17 Dec 2013 09:46:40 +0000]
ARM: tegra: loki: Power supply for JSA1127 ALS

Bug 1410461

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

5 years agommc: sdhci: some fixes for 64bit DMA mode support
Louis Li [Wed, 11 Dec 2013 13:42:13 +0000]
mmc: sdhci: some fixes for 64bit DMA mode support

1. Move the configuration of HOST_VERSION_4_EN and ADDRESSING_64BIT_EN
bits of SDHCI_HOST_CONTROL2 register into sdhci_reset function.

2. Modify the type of addr arg of sdhci_set_adma_desc to dma_addr_t.

3. To make it simple, pre-allocate 128 bits for each DMA desc even 64bit
addressing is not enabled.

Bug 1400870

Change-Id: I514539aaae747b10da1f9f72d6dae7ff72699848
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/344251
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoarm: tegra: tn8: ffd add 2gb EMC support
Robert Shih [Tue, 17 Dec 2013 01:11:56 +0000]
arm: tegra: tn8: ffd add 2gb EMC support

Bug 1417887

Currently the ram_code is the same between 4GB and 2GB sku, so need
to use seperate dtb for 2GB sku.

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

5 years agoARM: tegra12: clock: Add memory controller clock
Alex Frid [Thu, 12 Dec 2013 07:14:27 +0000]
ARM: tegra12: clock: Add memory controller clock

Memory controller clock is a child of EMC clock and it is running at
either 1:1 or 1:2 ratio from EMC. MC rate is changing as part of EMC
clock scaling only. No direct MC rate control is allowed.

Added MC clock to the clock tree for information purpose.
Ported from commit 9f8c1aa319ca19a39b56db901326997883fa6f2b

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

5 years agodriver: media: tegra: ov5693 fuse ID support
David Wang [Tue, 17 Dec 2013 02:11:31 +0000]
driver: media: tegra: ov5693 fuse ID support

Add fuse ID read support for the ov5693 from OTP Bank 0

Bug 1399569

Change-Id: I340a355b091081bdd87cb65a9dfd63d2e35b760b
Reviewed-on: http://git-master/r/346150
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoregulator: Fix voltage level change notification
Alex Frid [Sun, 15 Dec 2013 07:50:39 +0000]
regulator: Fix voltage level change notification

- Do not sent pre-/post- change notification in case selector is equal
to old_selector, and regulator control interface is not called

- Pass voltage value (not selector) to post-change notification to be
consistent with pre-change notification.

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

5 years agovideo: tegra: nvmap: remove nvmap_dmabuf_to_user_id
Krishna Reddy [Tue, 17 Dec 2013 16:54:56 +0000]
video: tegra: nvmap: remove nvmap_dmabuf_to_user_id

remove obsolete API nvmap_dmabuf_to_user_id.

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

5 years agomedia: platform: tegra: nvavp: remove references to nvmap
Krishna Reddy [Tue, 17 Dec 2013 01:03:20 +0000]
media: platform: tegra: nvavp: remove references to nvmap

Remove obsolete references to nvmap.
Bug 1426429

Change-Id: I15e93aa3707b71572503b2ce9c4e6b0987f3a190
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/346092
GVS: Gerrit_Virtual_Submit

5 years agobcmdhd: setting the correct file permissions
Kyeong Kim [Wed, 11 Dec 2013 19:58:28 +0000]
bcmdhd: setting the correct file permissions

Change-Id: Iae055282624ac95a494e15acd4cab36ef4182e82
Signed-off-by: Kyeong Kim <kyeongk@nvidia.com>
Reviewed-on: http://git-master/r/344379
Reviewed-by: Steve Lin <stlin@nvidia.com>
Tested-by: Steve Lin <stlin@nvidia.com>

5 years agoARM: tegra: Support both touch for TN7/TN8
Xiaohui Tao [Sat, 14 Dec 2013 00:19:49 +0000]
ARM: tegra: Support both touch for TN7/TN8

Bug 1423298

Change-Id: I8a8ef9b70fb46ae6a222a786400537ec934d3daf
Reviewed-on: http://git-master/r/345501
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hon Fei Chong <hchong@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agodriver:media:tegra:IMX135: Add 640x480 120fps mode
David Wang [Thu, 12 Dec 2013 22:49:54 +0000]
driver:media:tegra:IMX135: Add 640x480 120fps mode

Add 640x480 120fps slow motion mode for IMX135

Bug 1423271

Change-Id: I685eefb6c7f378f1b55370050d00beed3f231f20
Reviewed-on: http://git-master/r/346116
Tested-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agovideo: tegra: Fix filtering on t124
Michael Frydrych [Fri, 29 Nov 2013 10:16:08 +0000]
video: tegra: Fix filtering on t124

Filtering capabilities of windows on t124 were incorrectly
setup.

Bug 1413155
Bug 1418047

Change-Id: Ide2cf08a0ad33e953a0d417607e819ce3e2b24a6
Signed-off-by: Michael Frydrych <mfrydrych@nvidia.com>
Reviewed-on: http://git-master/r/337115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Tuomas Kulve <tkulve@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: fix gk20a error handling
Kirill Artamonov [Thu, 21 Nov 2013 14:38:12 +0000]
video: tegra: host: fix gk20a error handling

Implement handling for gk20a semaphore_timeout, illegal_notify.

Report correct gk20a error codes to userspace drivers using
error notification interface.

Remove incorrectly done engine reset from non-mmu error handlers.
These errors already trigger mmu fault and engine reset is part of
mmu fault recovery.

Don't skip reset if gk20a_gr_isr() handles several interrupt
flags.

bug 1402282
bug 1355640

Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Change-Id: I622a26ccd1fb5efd1344083e3c1ffc0a79d7f8e4
Reviewed-on: http://git-master/r/336286
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoEDP: fix string handling in consumer_unregister
Timo Alho [Fri, 13 Dec 2013 06:27:53 +0000]
EDP: fix string handling in consumer_unregister

Last character of incoming string was mistakenly stripped. This patch
fixes the issue.

Bug 1416849

Change-Id: I8741504bb5887ad54b93a5066a99bfecc55cff9f
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/345196
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Greg Heinrich <gheinrich@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: power tree changes for E1936 and E1922.
gaurav singh [Tue, 17 Dec 2013 05:03:44 +0000]
ARM: tegra: power tree changes for E1936 and E1922.

Change-Id: I8df72962eea63090649366ed943a69c4991e8521
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Signed-off-by: gaurav singh <gauravsingh@nvidia.com>
Reviewed-on: http://git-master/r/338826
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoSATA: tegra: SATA Driver code cleanup
venkatajagadish [Mon, 16 Dec 2013 08:50:40 +0000]
SATA: tegra: SATA Driver code cleanup

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

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>