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

This reverts commit 1a48e3a1826b6347b95aa3c1c96ab1c957a240ac.

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

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

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

bug 1366383

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

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

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

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

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

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

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

Bug 1344640

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

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

Incrase max LDO5 limit to 3.95 V for vcm30t124 board.

Bug 1369885

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

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

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

Bug 1375550

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

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

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

Bug 1377330

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

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

Add correct fixed regulator support for all
three falvors of Laguna

Bug 1381552
Bug 1372221

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

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

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

Bug 1382004
Bug 1382018

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

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

Remove the registration of nct72 skin temp sensor
for Laguna

Bug 1385303

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

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

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

Bug 1394697

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

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

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

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

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

Based on sku, load loki nff b00 emc table.

Bug 1326949

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

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

Bug 1379891

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

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

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

Bug 1379891

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

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

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

Bug 1373091

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

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

Correct relative paths are necessary for L4T build.

Bug 1395858

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

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

for ar0261 and imx135

bug 1358215

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

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

Added edp support on ar0261 and imx135

bug 1358215

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

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

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

Bug 1390896

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

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

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

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

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

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

Bug 1342499

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

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

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

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

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

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

Bug 1302884

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

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

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

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

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

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

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

Bug 1302884

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

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

The intent is to migrate to the upstream brcm80211 driver.

Bug 1354953
Bug 1368586

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

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

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

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

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

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

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

Add speaker AMP support for revised system-EDP framework

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

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

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

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

This patch adds support to revised system-EDP framework

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

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

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

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

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

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

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

This patch adds compatibility to new system EDP framework

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

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

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

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

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

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

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

Bug 1317330

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

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

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

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

Bug 1254633

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

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

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

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

Bug 1391695
Bug 1388078

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

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

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

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

In addition to above copyright statement were also updated.

Bug 1331357

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

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

Enable dynamic clock gating for sdio

Bug 1354575
Bug 1360926
Bug 1299485

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

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

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

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

Bug 1360926
Bug 1299485

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

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

This reverts commit 9cc57b57980f7653b16d425c37ed2440d098a004.

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

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

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

Bug 1373091

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

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

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

Bug 1354235
Bug 1373091

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

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

This reverts commit cb7faaa3f37cf5d90aaefde7fef8da35ab99fc2b.

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

Bug 1393117

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

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

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

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

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

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

Bug 1352877

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

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

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

Bug 1327668

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

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

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

Bug 1393117

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

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

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

Bug 1380147

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

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

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

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

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

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

Apply upstream kernel fix
(Upstream kernel commit 52fb61250a7a132b0cfb9f4a1060a1f3c49e5a25)

Bug 1393117

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

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

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

Bug 1394730

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

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

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

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

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

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

Bug 1371282

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

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

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

Bug 1373091

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

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

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

Bug 1360455

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

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

This reverts commit cd589d9b55b1e1cbcd7a8096918433970927dade.

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

Bug 1395908

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

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

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

bug 1373850

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

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

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

bug 1373850

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

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

bug 1373850

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

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

for ov5693 and mt9m114 (SOC1040)

bug 1391722
bug 1391719

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

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

on ov5693 and mt9m114 (SOC1040)

bug 1391722
bug 1391719

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

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

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

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

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

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

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

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

bug 1393968

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

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

bug 1384396

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

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

Bug 1381539

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

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>