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

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

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

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

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

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

Bug 1302884

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

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

The intent is to migrate to the upstream brcm80211 driver.

Bug 1354953
Bug 1368586

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

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

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

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

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

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

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

Add speaker AMP support for revised system-EDP framework

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

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

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

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

This patch adds support to revised system-EDP framework

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

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

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

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

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

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

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

This patch adds compatibility to new system EDP framework

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

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

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

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

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

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

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

Bug 1317330

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

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

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

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

Bug 1254633

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

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

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

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

Bug 1391695
Bug 1388078

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

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

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

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

In addition to above copyright statement were also updated.

Bug 1331357

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

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

Enable dynamic clock gating for sdio

Bug 1354575
Bug 1360926
Bug 1299485

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

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

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

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

Bug 1360926
Bug 1299485

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

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

This reverts commit 9cc57b57980f7653b16d425c37ed2440d098a004.

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

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

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

Bug 1373091

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

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

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

Bug 1354235
Bug 1373091

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

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

This reverts commit cb7faaa3f37cf5d90aaefde7fef8da35ab99fc2b.

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

Bug 1393117

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

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

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

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

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

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

Bug 1352877

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

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

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

Bug 1327668

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

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

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

Bug 1393117

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

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

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

Bug 1380147

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

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

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

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

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

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

Apply upstream kernel fix
(Upstream kernel commit 52fb61250a7a132b0cfb9f4a1060a1f3c49e5a25)

Bug 1393117

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

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

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

Bug 1394730

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

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

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

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

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

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

Bug 1371282

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

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

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

Bug 1373091

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

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

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

Bug 1360455

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

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

This reverts commit cd589d9b55b1e1cbcd7a8096918433970927dade.

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

Bug 1395908

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

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

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

bug 1373850

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

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

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

bug 1373850

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

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

bug 1373850

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

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

for ov5693 and mt9m114 (SOC1040)

bug 1391722
bug 1391719

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

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

on ov5693 and mt9m114 (SOC1040)

bug 1391722
bug 1391719

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

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

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

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

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

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

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

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

bug 1393968

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

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

bug 1384396

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

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

Bug 1381539

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

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

Feature applicable only for one-shot.

Bug 1381539

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

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

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

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

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

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

bug 1385146
bug 1393896

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

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

Bug 1373364

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

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

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

Bug 1302884

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

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

Bug 1302884

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

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

Tegra Profiler misc driver: add poll support

Bug 1374312

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

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

Reduces pll frequency and dvfs request.

Bug 1370966

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

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

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

Bug 1374266

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

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

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

Bug 1343930

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

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

change CPU/SOC voltage range for TN8 ERS

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

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

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

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

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

Bug 1388078

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

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

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

bug 1238843

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

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

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

Bug 1352148

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Bug 1354923

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

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

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

Bug 1354235
Bug 1373091
Bug 1371547

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

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

bug 1162232

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

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

Based on sku, load thor 1.95 emc table.

Bug 1361282

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

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

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

Bug 1368093

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

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

r4 = PMC base address
r5 = CAR base address

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

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

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

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

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

Tegra kernel now implements this function in a common place.

Bug 1389113

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

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

Tegra kernel now implements this function in a common place.

Bug 1389113

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

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

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

Bug 1389113

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

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

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

Bug 1393553

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

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

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

Bug 1392365

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

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

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

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

Bug 1345931

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

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

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

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

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

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

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

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

Implements EDP client for TN8 & Shield ERS backlight system

Bug 1359894
Bug 1358209

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

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

Add wifi edp client data to platform data.

Bug 1359897

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

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

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

Bug 1297300
Bug 1359897

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

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

Enable wifi edp client support on tegra 12x.

Bug 1359897

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

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

Bug 1345931
Bug 1339832

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

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

Bug 1345931

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

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

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

This also makes DC shutdown process similar to FB_BLANK_POWERDOWN.

Bug 1299434

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

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

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

Bug 1376043

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

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

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

Bug 1376043

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

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

Bug 1352981

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

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

TN8 uses Cm3217 ALS. Hence set CONFIG_SENSORS_CM3217 = y.

Bug 1373590

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

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

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

Bug 1287901
Bug 1356128

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

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

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

This reverts commit b15e435cba59220b7bb40c8f5f3a7cc094b7d8a3.

Bug 1356128

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

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

Update the kernel config to add CIFS support as module.

bug 1392138

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

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

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

Bug 1373590

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

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

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

Bug 1373590

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

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

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

Bug 1373590

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

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

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

Bug 1343634

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

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

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

Bug 1389663

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

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

Support to read v2.3 INTERNAL_DESIGNREV and SW_REVISION.

Bug 1353237

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

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

Bug 1389315

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

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

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

Bug 1380122

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