5 years agoARM: tegra: fix regulator_get() return value check
Mallikarjun Kasoju [Fri, 22 Nov 2013 10:10:12 +0000]
ARM: tegra: fix regulator_get() return value check

regulator_get() returns either error pointer or valid pointers.
It never returns NULL. Hence it is not a correct to check
the return pointer as IS_ERR_OR_NULL(). It should be only IS_ERR().

Bug 1410234

Change-Id: I8cf668ca0bced49ee4f47ccf9b02d70fd0263cd6
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/334471
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: tegra12: Loki: Add C2 debug port support
Will Wu [Mon, 18 Nov 2013 05:05:01 +0000]
arm: tegra12: Loki: Add C2 debug port support

Enable C2 port for Loki platform for debugging microcontroller
in Joystick in case of mcu failure.

Bug 1375728

Change-Id: I85fd8eed598c2f68ab74faf2d05f75e48b338568
Signed-off-by: Will Wu <willw@nvidia.com>
Reviewed-on: http://git-master/r/332705
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agousb: gadget: tegra: get DCP current from platform data
Rakesh Bodla [Fri, 22 Nov 2013 14:50:55 +0000]
usb: gadget: tegra: get DCP current from platform data

Get DCP current limit from platform data, if it is
not passed used default value specified.

Bug 1403563

Change-Id: I65fba7b6329955ef20e8ce0f738e2842b255b8da
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/332255
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: usb: set DCP current for loki
Rakesh Bodla [Fri, 22 Nov 2013 14:48:52 +0000]
ARM: tegra: usb: set DCP current for loki

Loki comes with charger which is capable of charging
at 2A, add dcp current limit in platform data.
Set DCP current limit for loki to 2A.

Bug 1403563

Change-Id: If4e72ecbf756e658ebe2a29c5490ad791163f655
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/332734
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: hdmi: check powergate status
pdabade [Fri, 22 Nov 2013 09:57:40 +0000]
video: tegra: hdmi: check powergate status

Checking powergate status before dumping registers.
If power is gated, return quietly.

bug 1403057

Change-Id: I7791ede351b3f0ecec909f99d8ec279f33d37700
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/333953
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 agommc: tegra: Fix ddr clock selection in ddr mode
Pavan Kunapuli [Thu, 21 Nov 2013 13:26:46 +0000]
mmc: tegra: Fix ddr clock selection in ddr mode

This patch fixes the condition used to choose ddr/sdr clock.
When ddr mode is set for first time, ddr clock is selected.
But, in subsequent set_ios calls, the incorrect conditional
check leads to sdr clock selection for ddr mode as well.

Bug 1371250

Change-Id: Ia81371871e13059f16a016028475d3d63d470666
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/334056
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonet: wireless: bcmdhd: enable WiFi EDP support
Om Prakash Singh [Fri, 22 Nov 2013 11:11:00 +0000]
net: wireless: bcmdhd: enable WiFi EDP support

apply missing change from:
commit 0493f65a029a9ffe2ce52e61ab34e2ce4c44df3a
net: wireless: bcmdhd: add EDP support (revised framework)

remove old edp framework code:
commit 342d744a07cb56aa9577acc27ebf49dbee8bd21a
net: wireless: bcmdhd: Wifi EDP support

Bug 1160685

Change-Id: Ia0fc8652d11e6d9252d102245a2127018ed87de3
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/334333
Reviewed-by: Timo Alho <talho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoUSB: ehci: tegra: destroy mutex when driver remove
Suresh Mangipudi [Sat, 23 Nov 2013 08:39:59 +0000]
USB: ehci: tegra: destroy mutex when driver remove

mutex_destroy to be called when the driver is removed.

BUG 1401358

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

5 years agoUSB: tegra: Fix the print message
Suresh Mangipudi [Tue, 19 Nov 2013 08:19:46 +0000]
USB: tegra: Fix the print message

Update the print message when interrupts occur.

Bug 1395732

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

5 years agoARM: Tegra12: DVFS: Add audio codec clocks to dvfs table
Krishna Sitaraman [Wed, 20 Nov 2013 21:30:54 +0000]
ARM: Tegra12: DVFS:  Add audio codec clocks to dvfs table

Audio clocks hda, hda2codec_2x fail at 800mV.  Adding them to dvfs table to
prevent switching to 800mV when these are active.

Change-Id: I111d303ab675475776af9fe92141a9d6090da088
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333612
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra12: Clocks: Add xusb from dvfs table
Krishna Sitaraman [Wed, 20 Nov 2013 21:20:35 +0000]
ARM: Tegra12: Clocks:  Add xusb from dvfs table

Xusb cannot be run at 800mv.  Hence adding it back to dvfs table to prevent switching to
800mV when xusb is active.

Bug 1342499

Change-Id: I2d6a3299528028e2f6db11e0f8056d623f27db5e
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333611
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra12: DVFS: Update display dvfs clocks
Krishna Sitaraman [Wed, 20 Nov 2013 21:07:59 +0000]
ARM: Tegra12: DVFS: Update display dvfs clocks

Bug 1342499

Change-Id: I6b1609f0b9744f3872ad5e35f404893aff6f1396
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333610
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra12: DVFS: Update SOC dvfs table for clock buses and cpu_lp
Krishna Sitaraman [Wed, 20 Nov 2013 20:44:15 +0000]
ARM: Tegra12: DVFS:  Update SOC dvfs table for clock buses and cpu_lp

Bug 1342499

Change-Id: I8ba9eac503e217c9dc880907381eeabdf159f685
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/333609
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: power: Specify PMU undershoot gaurd-band
Seema Khowala [Thu, 21 Nov 2013 20:43:27 +0000]
ARM: tegra12: power: Specify PMU undershoot gaurd-band

Specified PMU undershoot gaurd-band 100mV for TN8 (E1736 PMU)

Bug 1285525

Change-Id: I5d9b89204db4584653ab3bd6be259a20fbe0a5c2
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/334124
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoinput: touch: synaptics: Add ftrace log support
Vincent Chen [Wed, 30 Oct 2013 02:21:52 +0000]
input: touch: synaptics: Add ftrace log support

Enable Synaptics interrupt handler ftrace logging

Bug 1394727

Change-Id: Iac0cb5a4c8c0c6d94a344f99527b34ce23cad469
Signed-off-by: Vincent Chen <zochen@nvidia.com>
Reviewed-on: http://git-master/r/305172
(cherry picked from commit 05b43663f563a695e2c2981fb673f932b9796398)
Reviewed-on: http://git-master/r/330899
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: mipi_cal: check powergate status
pdabade [Fri, 22 Nov 2013 10:03:32 +0000]
video: tegra: mipi_cal: check powergate status

Checking powergate status before dumping registers.
If power is gated, return quitely.

bug 1403057

Change-Id: I5507667cb33bdb79fa666a808438f6f321d5beb0
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/334003
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarch: config: tegra update mods defconfig
Vivek Aseeja [Thu, 21 Nov 2013 22:12:38 +0000]
arch: config: tegra update mods defconfig

Enable PINCTRL_AS3722 and POWER_RESET_AS3722

Bug 1409265

Change-Id: I8aee3a59f035f6c04d80ca05ae34eecea1abcd3b
Reviewed-on: http://git-master/r/334160
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
Tested-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agousb: xhci: tegra: fix dt parse error
Krishna Yarlagadda [Wed, 13 Nov 2013 09:59:55 +0000]
usb: xhci: tegra: fix dt parse error

In dt all constants are considered to be u32 and when read back in
driver we would get msb (which is zero always for a u8). changing
driver to read the value as u32 and then save to u8. this will
ensure proper conversion

Change-Id: I23e5ad3476a2f4eace759560e50eb073cfad9cdd
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/330208
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: dt: tegra: xhci: dt entry for hsic on ardbeg
Krishna Yarlagadda [Wed, 13 Nov 2013 08:55:29 +0000]
ARM: dt: tegra: xhci: dt entry for hsic on ardbeg

hsic config values are added as an array in the
order defined in structure

Bug 1342607

Change-Id: I5033408f487ebab86c98a6fce77c4a1e56b13c6f
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/330164
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agommc: sdhci: enable EMMC delayed clock gating
Bitan Biswas [Mon, 11 Nov 2013 05:49:18 +0000]
mmc: sdhci: enable EMMC delayed clock gating

Aggressive clock gating was reported as degrading
random performance numbers. Similar to SDIO we
are enabling delayed clock gating of EMMC. This
reduces the overhead of clock enable and disable.
 - clock gating happens if EMMC interface is idle
   for over 20msec

bug 1372006

Change-Id: If9f08af6d5ae55e4c30aeef0a36d8c9fdd5fe5a8
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/328775
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>

5 years agousb: xhci: tegra: support hsic dt config
Krishna Yarlagadda [Wed, 13 Nov 2013 08:52:29 +0000]
usb: xhci: tegra: support hsic dt config

Changes to read hsic cofig data from dt and change header
to have all u8 values which simplifies parsing dt

Bug 1342607

Change-Id: I0c547a32a347e561eccd35acc16c824cd105e69c
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/330163
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: host: Add debug_dump_locked()
Arto Merilainen [Thu, 21 Nov 2013 12:42:16 +0000]
video: tegra: host: Add debug_dump_locked()

In some occasions we already have lock while calling debug
dump or we lock it immediately after calling the debug dump. This
patch adds an alternative version of the function to skip locking
of a single cdma structure thereby allowing the caller to be
responsible of locking.

Bug 1408228

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

5 years agovideo: tegra: host: Enable GPU rail gating
Terje Bergstrom [Wed, 9 Oct 2013 10:16:59 +0000]
video: tegra: host: Enable GPU rail gating

This reverts commits be06c1b68a9427d38673f9a00612d93414263be0 and
f96d264eec6338b2e08d05465d1c6d08d3eb658 and enables dynamic rail
gating.

Bug 1364240

Change-Id: Ifc0014530c8222cd51af85f60117d338fc39a48a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/334166

5 years agoRevert "video: tegra: host: Disable gk20a powergating"
Prashant Malani [Sat, 9 Nov 2013 02:10:37 +0000]
Revert "video: tegra: host: Disable gk20a powergating"

Bug 1404859

This reverts commit 5fd204d40cf820d3603e133d7c2781f156a2cb08.

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

5 years agovideo: tegra: host: Enable only gk20a at dump
Terje Bergstrom [Fri, 22 Nov 2013 08:45:17 +0000]
video: tegra: host: Enable only gk20a at dump

At gk20a channel dump only gk20a needs to be turned on.

Bug 1364240

Change-Id: Iac40dba3105d31049e2839f10f3bae95421cd741
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/334398
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agovideo: tegra: host: Do not touch clocks in poweron
Terje Bergstrom [Fri, 22 Nov 2013 08:41:54 +0000]
video: tegra: host: Do not touch clocks in poweron

Bug 1364240

Change-Id: I3de437e875bb04ad2968efcde300c4b8cb8f2e4c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/334397
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: Initialize VENC refcount
Terje Bergstrom [Wed, 20 Nov 2013 06:08:52 +0000]
ARM: tegra: Initialize VENC refcount

Initialize VENC refcount to 1 if power domain is already on. This
prevents an underflow of refcount when the driver power gates VENC
at probe.

Bug 1400020

Change-Id: Icf3721d3270eb8d97cf8dfb70710a5dab9555e57
signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/334061
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Pablo Ceballos <pceballos@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: Remove definition and reference of tegra_pinmux_device
Laxman Dewangan [Wed, 20 Nov 2013 13:38:28 +0000]
ARM: tegra: Remove definition and reference of tegra_pinmux_device

Platform device tegra_pinmux_device is used for legacy pinmux driver
which has been removed in order to use the pincontrol driver.

Hence tegra_pinmux_device is no more used and removing it.

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

5 years agoARM: tegra: remove all pinmux tables
Laxman Dewangan [Wed, 20 Nov 2013 13:34:33 +0000]
ARM: tegra: remove all pinmux tables

Pincontrol driver is moved to drivers/pinctrl and the tables
lying on the mach-tegra is no more used.

Hence removing these table files from code tree.

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

5 years agoARM: tegra: change all pinmux apis to inline
Laxman Dewangan [Wed, 20 Nov 2013 13:32:25 +0000]
ARM: tegra: change all pinmux apis to inline

Change all pinmux wrapper APIs to inline and use the pincontrol
APIs.

Remove the Make of the source file which implement these pinmux APIs.

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

5 years agopinctrl: tegra: use pinmux define header only
Laxman Dewangan [Wed, 20 Nov 2013 13:28:18 +0000]
pinctrl: tegra: use pinmux define header only

The data type definitons of tegra pinmux is in mach/pinmux-defines.h
and so including this file only instead of mach/pinmux.h

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

5 years agoARM: tegra: pinmux: move pinmux datatype definiton to separate file
Laxman Dewangan [Wed, 20 Nov 2013 13:24:14 +0000]
ARM: tegra: pinmux: move pinmux datatype definiton to separate file

Move the pinmux data type definition to different file as
mach/pinmux-defines.h becasue pincontrol driver requires
these definitons only.

This will also avoid circular dependency as Pinmux API will use
the pincontrol API and pincontrol APIs will use the pinmux definitions
Currenlty pinmux APIs and deinitions are on same header file.

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

5 years agoARM: tegra: move pinmux configuration on board-suspend
Laxman Dewangan [Thu, 21 Nov 2013 07:22:58 +0000]
ARM: tegra: move pinmux configuration on board-suspend

Set sleep pinmux configuration on board suspend instead of
pinmux suspend as pinmux suspend does not allow any configuration
parameters from platforms.

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

5 years agoARM: tegra: populate pwrdet regulator board entry
Aaron Huang [Mon, 11 Nov 2013 09:33:50 +0000]
ARM: tegra: populate pwrdet regulator board entry

Powerdetect regulator entries populated for T12x boards:
- loki

bug 1358252

Change-Id: I42f1acb8779328835e6b4b16d44e899327782ba2
Signed-off-by: Aaron Huang <aaronh@nvidia.com>
Reviewed-on: http://git-master/r/328840
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoCpufreq: interactive: Add boost_factor
Puneet Saxena [Wed, 13 Nov 2013 13:18:36 +0000]
Cpufreq: interactive: Add boost_factor

Sudden burst in load causes freq to scale hispeed_freq.
This is not always good for the osidle display off use cases,
where we want to scale freq conservatively.

Introduces "boost_factor" which raises freq exponentially
till max freq in case load remains higher than "go_hispeed_load".

By default, it is DISABLED.

Bug 1402227

Change-Id: I65269310ef7d2427e2ab9eb456a066571c7a9ba5
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/330368
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agommc: sdhci: tegra: atomic clk control
Bitan Biswas [Thu, 21 Nov 2013 12:12:21 +0000]
mmc: sdhci: tegra: atomic clk control

Tegra sdhci set clock API is made atomic to
prevent race between multiple callers

bug 1405624

Change-Id: Ib2815d332fda8f5ac55b6e87a3a8dce31076ab9e
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/334014
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>

5 years agovideo: tegra: host: Check before unpin request
Shridhar Rasal [Thu, 21 Nov 2013 14:11:52 +0000]
video: tegra: host: Check before unpin request

Check if sgt allocated without errors before unpin request.

Bug 1399277

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

5 years agovideo: tegra: host: avoid overwhelming warnings.
Kevin Huang [Thu, 21 Nov 2013 21:23:03 +0000]
video: tegra: host: avoid overwhelming warnings.

Bug 1410396

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

5 years agousb: host: tegra: fix usb-device reset in LP0 exit
Jeetesh Burman [Fri, 4 Oct 2013 05:53:56 +0000]
usb: host: tegra: fix usb-device reset in LP0 exit

While resuming from LP0, ehci getting reset that causes
ip address lost if usb-ethernet dongle is used for
network connection, this is happend because usb-ehci resume
functionality called twice and therefore USB_PORTSC_CCS bit
in register USB_PORTSC get changed, which causes reset command
sent to the utmi.

To maintain uniformity, changes also done in tegra_ehci_suspend.

In the tegra_ehci_probe, unnecessary tried to resume ehci. So,
removing resume functionality while probing ehci.

Bug 1355760

Change-Id: I6b170131704b36e722ed2b8ec2abb770770fd859
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>

5 years agoARM: tegra: rename the name of the dtb for tn8 with E1769
Kerwin Wan [Thu, 21 Nov 2013 12:27:10 +0000]
ARM: tegra: rename the name of the dtb for tn8 with E1769

This makes the name of this dtb is consistent with nvgetdtb.

Change-Id: Iab1fe5d685156f91a1faab199ec183258e994328
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/334020
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: gk20a: Slide GPCPLL to VCO min on disable
Alex Frid [Wed, 13 Nov 2013 04:10:33 +0000]
video: tegra: gk20a: Slide GPCPLL to VCO min on disable

Bug 1399520

Change-Id: Ib86f86e6ad4d8137c7a7df3bb804747bc21a4fde
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/332805
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoEDP: tn8: update ESR values
Timo Alho [Tue, 19 Nov 2013 09:01:11 +0000]
EDP: tn8: update ESR values

Update tn8 battery & board esr values to reflect typical TN7/Yoku
4100mAh battery values in room temperature.

bug 1345916

Change-Id: If51142cda8419b4556bfd0d724cc321b69bd3771
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/332837
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: dsi: Add panel dt support
Vineel Kumar Reddy Kovvuri [Thu, 21 Nov 2013 07:28:16 +0000]
video: tegra: dsi: Add panel dt support

Add support required for default ardbeg panel

Bug 1385965

Change-Id: Ic2743df4bb48d0317cd46bac83d235219d46ec15
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/327043
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: dts: ardbeg: Add panel dt support
Vineel Kumar Reddy Kovvuri [Thu, 21 Nov 2013 07:27:40 +0000]
arm: dts: ardbeg: Add panel dt support

dt support for default ardbeg panel

Bug 1385965

Change-Id: Ie3b5cd505e75a7a138e791752efbdff9df4cacda
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/327042
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: host: register tsec power domain
Shridhar Rasal [Thu, 21 Nov 2013 09:03:15 +0000]
video: tegra: host: register tsec power domain

Register tsec power domain and make it subdomain of host1x.

Bug 1411849

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

5 years agovideo: tegra: host: gk20a: improve ELPG stats
Prashant Malani [Tue, 19 Nov 2013 00:04:04 +0000]
video: tegra: host: gk20a: improve ELPG stats

Display number of ELPG transitions when then elpg_residency
node is probed. Update the function which obtains that info from
DMEM to also get the number of elpg transitions.

Bug 1408385

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

5 years agovideo: tegra: host: Remove debugfs on init fail
Shridhar Rasal [Wed, 13 Nov 2013 07:00:13 +0000]
video: tegra: host: Remove debugfs on init fail

Remove device debugfs entries and invoke user deinit
on init failure.

Bug 1382725

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

5 years agovideo: tegra: host: gk20a: Remove vm interface
Arto Merilainen [Tue, 19 Nov 2013 11:18:03 +0000]
video: tegra: host: gk20a: Remove vm interface

We used to have an interface for various different vm operations
inside vm structure. In practise, we have always used the same
functions in this level of abstraction and hence the interface has
just added unnecessary complexity.

This patch removes the interface, makes the related functions public
(inside gk20a driver) and modifies all code to use the functions
directly.

Change-Id: I8b39eafb4169a905677db37c5155e1c4f5c55aa9
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/332897
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra12: power: Add CPU partition IDs
Antti P Miettinen [Tue, 19 Nov 2013 13:53:37 +0000]
ARM: tegra12: power: Add CPU partition IDs

Useful for testing/debugging.

Change-Id: I32c9ec531b37493d28a1c252120bc91eb2cc7be9
Reviewed-on: http://git-master/r/332944
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Antti Miettinen <amiettinen@nvidia.com>
Tested-by: Antti Miettinen <amiettinen@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: add cluster to traces
Antti P Miettinen [Mon, 18 Nov 2013 17:55:39 +0000]
ARM: tegra: add cluster to traces

Log start and target cluster in cluster switch event traces.

Change-Id: I5b83139809cb8e4928033ade87c14321e7ce2aad
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/332498
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoregulator: as3722: Set SD6 enable time to 275us
Prashant Malani [Wed, 20 Nov 2013 19:20:00 +0000]
regulator: as3722: Set SD6 enable time to 275us

Add enable time setting for SD6, to provide sufficient
rail enable time during GPU rail power up.

Bug 1404859

Change-Id: I7d6a9ba0ee4a5cdc86daf70804f9407ce1c53a08
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/333569
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: bq27441: Kernel warning on low battery
Darbha Sriharsha [Wed, 20 Nov 2013 11:40:22 +0000]
power: bq27441: Kernel warning on low battery

Print kernel warning logs when battery is running
low. Print messages at soc levels of 15%, 10% and 5%

Bug 1408737

Change-Id: Ib3ea9c837c86bb627a64c1ce71f11381c7bb5854
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/333397
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoRevert "Revert "net: wireless: bcmdhd: update driver to version 1.88.55""
Om Prakash Singh [Thu, 21 Nov 2013 04:13:47 +0000]
Revert "Revert "net: wireless: bcmdhd: update driver to version 1.88.55""

Bug 1411371

This reverts commit 34e8dfb82b8f2a4f0b92e603b0bfb3f55de07024.

Change-Id: I0f8f24d09cb072f210b3f5e65f1d05f8e327a60d
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/333806
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agotegra: pm: Change host1x client name
Shridhar Rasal [Wed, 30 Oct 2013 11:59:46 +0000]
tegra: pm: Change host1x client name

Change-Id: Ifac49ad9abe9328bf01a9aabfd0955a583c39f6c
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/309605
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: update PM domain hierarchy
Shridhar Rasal [Tue, 22 Oct 2013 12:28:16 +0000]
video: tegra: host: update PM domain hierarchy

- Update host1x and its clients power domain hierarchy
- Wire host1x finalize_poweron and prepare_poweroff callbacks
- Remove runtime_suspend/resume from host1x pm_ops
- Set device as wakeup capable to false

Bug 1384396

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

5 years agovideo: tegra: dsi: test for writing cmd to panel
Tejas Sonchhatra [Wed, 13 Nov 2013 11:01:42 +0000]
video: tegra: dsi: test for writing cmd to panel

This change adds test for sending the command taken as input
from user.It checks funtionality of write_data.

Change-Id: Ib60fab0013e7845057ba08597d0515ec7a45565b
Signed-off-by: Tejas Sonchhatra <tmanoj@nvidia.com>
Reviewed-on: http://git-master/r/330271
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoregulator: as3722: sd0 min_uV check
Bibek Basu [Thu, 14 Nov 2013 14:42:46 +0000]
regulator: as3722: sd0 min_uV check

Check for min_uV allowed for SD0 reg
based on number of cells

Bug 1396052

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

5 years agowatchdog: as3722_wdt: support for AMS AS3722
Bibek Basu [Thu, 7 Nov 2013 05:32:14 +0000]
watchdog: as3722_wdt: support for AMS AS3722

Add watchdog timer driver for as3722 device.
The timer can be start/stop and set timing through watchdog subsystem
callbacks.

Bug 1396052

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

5 years agoARM: tegra: ardbeg: turn off vbus on lp0
Rohith Seelaboyina [Mon, 18 Nov 2013 04:28:43 +0000]
ARM: tegra: ardbeg: turn off vbus on lp0

Turn off vbus during suspend as Tn8 has BQ24192
which gets reset after ~25 sec.

Bug 1393968

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

5 years agoARM: tegra: create io registration dtsi for TN8
Laxman Dewangan [Wed, 20 Nov 2013 11:03:18 +0000]
ARM: tegra: create io registration dtsi for TN8

Create sinlge dtsi for IO registration for all version of TN8
and include them from top level dts file.

Change-Id: I8de11ac7aeb90b179e182c8fad2da88073f5a6ce
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/333386
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: re-organise power tree of tegra124 platform
Laxman Dewangan [Wed, 20 Nov 2013 10:38:30 +0000]
ARM: tegra: re-organise power tree of tegra124 platform

Following are changes:
- Move the power tree  of different table as separate dtsi file and placed
  then at tegra124-platforms with proper name.
- Split fixed and PMIC device power tree for better reusability,
- Include the power tree dtsi file from top level dts file.
- remove unused power tree dtsi files.

Change-Id: I2674db6198abdceabd9234058bfe06c6becad240
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/333385
Reviewed-by: Hayden Du <haydend@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: config: tegra: enable KEYCHORD config
Laxman Dewangan [Wed, 20 Nov 2013 11:55:16 +0000]
ARM: config: tegra: enable KEYCHORD config

bug 1372927

Change-Id: I8b16f74be807425fad954a27329aa1031c16aa2b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Will Wu <willw@nvidia.com>
Reviewed-on: http://git-master/r/333405
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: OV7695: Ignore unsupported settings
Frank Chen [Tue, 19 Nov 2013 23:30:01 +0000]
video: tegra: OV7695: Ignore unsupported settings

Ignoring unsupported EV compensation and manual
white balance mode settings. This is needed before
Camera V3 is completed.

Bug 1327952

Change-Id: Icbc9251da2e95ef9647d81e9f9e2baf55322a570
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/333108
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoASoC: tegra-alt: vcm30t124: ignore pmdown time
Songhee Baek [Sat, 16 Nov 2013 05:40:58 +0000]
ASoC: tegra-alt: vcm30t124: ignore pmdown time

By default DAPM power down has delay, and it causes  AMX input
stream disable delay, at the result, AMX has fifo underrun in
the input stream FIFO and AMX output pauses until input is di
abled.
So we need to disalbe AMX input stream right away with this flag.
Another reason for this change is to update I2S clock frequency when
we need for new sampling rate.

Bug 1408779

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

5 years agoarm: tegra: laguna: adding edp client for aou1080p
Tejas Sonchhatra [Tue, 19 Nov 2013 05:18:25 +0000]
arm: tegra: laguna: adding edp client for aou1080p

This change is for adding edp client for backlight for
auo 1080p 14" panel ,which is default panel for laguna.

Bug 1399057

Change-Id: I2c421098f76f928675a5906147cbc3e23e96ed3e
Signed-off-by: Tejas Sonchhatra <tmanoj@nvidia.com>
Reviewed-on: http://git-master/r/332731
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agousb: phy: tegra: Return err value properly.
Rohith Seelaboyina [Wed, 13 Nov 2013 09:22:48 +0000]
usb: phy: tegra: Return err value properly.

In tegra_get_clocks() API,Err value is not returned
properly, instead Null is being returned.
Fixed by returning err value properly.

Bug 1395059

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

5 years agovideo: tegra: host: Sanitize suspend sequence
Terje Bergstrom [Mon, 18 Nov 2013 18:30:26 +0000]
video: tegra: host: Sanitize suspend sequence

Suspend channel when the corresponding device is clock gated. This
allows using standard genpd suspend and resume functions that call
.suspend only when device is powered and .resume only if it's powered
down.

Also removes extra module suspend callbacks, and aborts suspend if
device is still active.

Remove extra clk enable/disable pair in module suspend/resume. It's
called now only from genpd, and it ensures clocks are on when needed.

Change-Id: I6eb3dd1db33fbe73bf43d4bbb8c9265540d42d80
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/332810
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Tested-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: t124: tn8: update max cpu/gpu current
Seema Khowala [Tue, 19 Nov 2013 00:02:24 +0000]
arm: tegra: t124: tn8: update max cpu/gpu current

Bug 1411163

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

5 years agoarm: tegra: ardbeg: update cpu max current
Seema Khowala [Tue, 19 Nov 2013 00:07:36 +0000]
arm: tegra: ardbeg: update cpu max current

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

5 years agovideo: tegra: dc: skip over invalid windows
Edgardo Handal [Wed, 20 Nov 2013 18:46:13 +0000]
video: tegra: dc: skip over invalid windows

Change-Id: I5f5c4ea9fbf739fe1107f08569a2f4922f2a7d31
Signed-off-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-on: http://git-master/r/333545
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra12: dvfs: Add new Tegra12 sku definitions
Alex Frid [Sat, 16 Nov 2013 05:01:13 +0000]
ARM: tegra12: dvfs: Add new Tegra12 sku definitions

Bug 1342499
Bug 1397902

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

5 years agoARM: tegra12: dvfs: Defer override floor for display
Alex Frid [Thu, 31 Oct 2013 03:18:25 +0000]
ARM: tegra12: dvfs: Defer override floor for display

Deferred aggregation of display peak voltage into core override floor.

Defined two types of SDMMC DVFS tables: "1-point tuning" table, and
"2-point tuning" table.

- "1-point tuning" table is applicable when override floor is equal
to nominal voltage (range is zero). This table forces nominal voltage
for any SDMMC rate above 50MHz. It is installed by default, and it is
overwritten when display peak voltage is aggregated, provided final
override floor is below nominal voltage.

- "2-point tuning" table is applicable when override floor is below
nominal voltage (i.e., at least 2 tuning points in override range).
This table supports intermediate rates above 50MHz and below maximum at
voltages lower than nominal. It is installed when display peak voltage
is aggregated, provided final override floor is below nominal voltage.

Bug 1372817

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

5 years agoARM: tegra: ardbeg: report max pixel clock to dvfs
Jon Mayo [Wed, 30 Oct 2013 22:30:34 +0000]
ARM: tegra: ardbeg: report max pixel clock to dvfs

Report maximum display pixel clock to tegra_dvfs_resolve_override().

Bug 1372817

Change-Id: I13e5b6a0e6d0d1ade6d72374e22287363605ebe7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/309805
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>

5 years agoRevert "net: wireless: bcmdhd: update driver to version 1.88.55"
Sridhar Lavu [Wed, 20 Nov 2013 18:03:45 +0000]
Revert "net: wireless: bcmdhd: update driver to version 1.88.55"

This reverts commit 649f97831026ca4e3cda642a7aab7a3c7801a3bf
since this change breaks ap_comms sanity.

Bug 1404820 : original change
Bug 1402287 : original change
Bug 1411371 : regression

Change-Id: Idc2d1df201d71fc8ce37a42c9ad340e2519785ac
Signed-off-by: Sridhar Lavu <slavu@nvidia.com>
Reverts-what-was-Reviewed-on: http://git-master/r/331593
Reviewed-on: http://git-master/r/333533

5 years agoRevert "arm: tegra: loki: support board revision"
Sridhar Lavu [Wed, 20 Nov 2013 14:09:17 +0000]
Revert "arm: tegra: loki: support board revision"

This reverts commit e332472a1104624927f57cf40d26d64d6edd76ef
since it breaks Loki boot sanity

Bug 1317330 : original change
Bug 1411253 : regression change

Change-Id: I60fa5f5cebe9aeca08d5d414ce02249d0f440ce4
Signed-off-by: Sridhar Lavu <slavu@nvidia.com>
Reverts-what-was-Reviewed-on: http://git-master/r/333071
Reviewed-on: http://git-master/r/333443
Reviewed-by: Automatic_Commit_Validation_User

5 years agousb: gadget: tegra: enabling apple charger
Josh Kuo [Thu, 31 Oct 2013 05:06:31 +0000]
usb: gadget: tegra: enabling apple charger

enabling apple charger detection (500/1000/2000mA)
and, enable charging current as per that charger requirement

Bug 1383500

Change-Id: I3d481652d53e2c2b1f88ad820d5335ff01733602
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/309913
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Reviewed-by: Greg Lo <glo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agommc: tegra: Use sdmmc_ddr clock in DDR50 mode
Pavan Kunapuli [Tue, 19 Nov 2013 16:45:18 +0000]
mmc: tegra: Use sdmmc_ddr clock in DDR50 mode

Characterization defines separate DVFS tables for DDR and SDR modes. In
order to save power by allowing for lower core voltages in ddr mode,
check for ddr uhs mode request and use sdmmc_ddr clock in ddr mode. In other
modes use sdr clock.

Bug 1371250

Change-Id: If4f78108db4b9c4f115104ae0a0622fcf1a5933e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/332987
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra12: clock: Initialize sdmmc_ddr clocks
Pavan Kunapuli [Tue, 19 Nov 2013 16:39:14 +0000]
ARM: tegra12: clock: Initialize sdmmc_ddr clocks

Set pll_p as parent clock for all sdmmc_ddr clocks and set
the initial frequency to 48MHz.

Bug 1371250

Change-Id: I2a0bafbe7ade15d8ee8ae9001029631152f073fa
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/332986
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agommc: tegra: Add ops for pre and post ios config
Pavan Kunapuli [Mon, 18 Nov 2013 09:12:12 +0000]
mmc: tegra: Add ops for pre and post ios config

Implementing callbacks for pre and post ios settings configuration
to handle clock enable/disable requirements. Also, retuning requests
handling during power off is moved to platform_ios_exit callback.

Bug 1371250

Change-Id: I43637f90ff5bf9cc6b4f4f0e7cae3c62ba414a11
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/332985
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agommc: sdhci: Platform ops for pre/post ios setting
Pavan Kunapuli [Mon, 18 Nov 2013 09:03:09 +0000]
mmc: sdhci: Platform ops for pre/post ios setting

Provide platform specific operations for any necessary handling
before and after ios settings configurations.

Bug 1371250

Change-Id: I634cf18fc52a41842e80227265006880d6e98aa0
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/332984
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonet: wireless: bcmdhd: update driver to version 1.88.55
Neeraj Garg [Wed, 13 Nov 2013 11:02:11 +0000]
net: wireless: bcmdhd: update driver to version 1.88.55

Bug 1404820
Bug 1402287

Change-Id: I3e54be5870cf4ad1b1d75742e47dfb25485faca9
Signed-off-by: Neeraj Garg <neerajkg@broadcom.com>
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Reviewed-on: http://git-master/r/331593
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoregulator: palmas: set enable time delay of smps to 275 usec.
Laxman Dewangan [Wed, 20 Nov 2013 07:28:02 +0000]
regulator: palmas: set enable time delay of smps to 275 usec.

As per datasheet, setting smps enable time to 275 micro seconds.

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

5 years agoarm: tegra: Revert skip pcie partition powergate
Ashutosh Patel [Mon, 15 Jul 2013 04:39:51 +0000]
arm: tegra: Revert skip pcie partition powergate

Changes:
    - Revert pcie partition powergate skipping

Bug 1302133
Bug 1313433

Reviewed-on: http://git-master/r/248995
(cherry picked from commit e320771af616ba44f20084c06702d2622c24aef0)

Change-Id: I04edc3c96b2b84c59f32a2acf72e8a561302dbfe
Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com>
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/333001
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: dsi: sending dcs cmd to host_v_blank
Tejas Sonchhatra [Tue, 12 Nov 2013 11:12:52 +0000]
video: tegra: dsi: sending dcs cmd to host_v_blank

Making test for sending dcs cmd for one shot mode panel.
This tests the feaatures of host_cmd_v_blank_dcs.

Change-Id: Ia433501e773b4deac2a30fc332a22e6894b589db
Signed-off-by: Tejas Sonchhatra <tmanoj@nvidia.com>
Reviewed-on: http://git-master/r/329567
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agopower: max17048: clear charging_done when status is CHARGING
Darbha Sriharsha [Wed, 7 Aug 2013 12:04:08 +0000]
power: max17048: clear charging_done when status is CHARGING

We should clear the charging_done flag when the charger driver
communicates the charging status as POWER_SUPPLY_STATUS_CHARGING
and only set it when the status is POWER_SUPPLY_STATUS_DONE

Bug 1344351

Change-Id: Iad3a7fa3e26fcafae77769accf1fd9343b2a0757
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/333238
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: bq27441:clear charge complete flag in charging mode
Venkat Reddy Talla [Mon, 18 Nov 2013 09:56:26 +0000]
power: bq27441:clear charge complete flag in charging mode

Clearing charging-done flag when device battery is in
charging state.
Never report battery SOC more than 100% to framework layer.

Bug 1407771

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

5 years agovideo: tegra: t124: Update VI/ISP emc init freq
Sudhir Vyas [Thu, 24 Oct 2013 11:48:42 +0000]
video: tegra: t124: Update VI/ISP emc init freq

Set VI/ISP EMCs' init frequencies to 0.
They should be set to proper values as per driver's
requirements later whenever needed.

Bug 1393088

Change-Id: Ic3ecf2e50290cfa9b6254aa019f4bf5ed53384b4
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/303328
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

5 years agoASoC: tegra-alt: support various sampling rate
Songhee Baek [Tue, 19 Nov 2013 00:27:34 +0000]
ASoC: tegra-alt: support various sampling rate

WM8731 can support 8kHz, 16kHz, 32kHz, 44.1kHz and 48kHz.
AD1937 can support 32kHz, 44.1kHz, 48kHz.

Bug 1409761

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

5 years agoARM: tegra: dvfs: Switch to peak voltage prediction
Alex Frid [Tue, 19 Nov 2013 00:21:48 +0000]
ARM: tegra: dvfs: Switch to peak voltage prediction

Replaced calls to predict voltage interface with predict peak voltage
as appropriate for evaluation of EMC DVFS maximum voltage.

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

5 years agoARM: tegra: dvfs: Update voltage prediction interfaces
Alex Frid [Tue, 19 Nov 2013 00:14:24 +0000]
ARM: tegra: dvfs: Update voltage prediction interfaces

Allowed peak voltage prediction for clocks with alternative dvfs
frequencies installed. The purpose of alternative frequencies is to
provide lower voltage is some special modes. Hence, using primary
dvfs frequency entries results in peak predicted voltage anyway.
Still failed other predict voltage interface if alternative dvfs
ladder is installed.

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

5 years agoARM: tegra: dvfs: Support persistent alt frequencies
Alex Frid [Sat, 16 Nov 2013 07:16:06 +0000]
ARM: tegra: dvfs: Support persistent alt frequencies

Existing interface to dvfs alternative frequencies combined enable
control with alternative ladder installation. Hence, the only way to
switch back to primary frequencies was to de-install alternative ones.

This commit provided separate install and enable interfaces, so that
alternative ladder can be installed once, and then enabled/disabled
under client control. Also made sure alternative voltage-frequency
mapping results in lower voltage at the same frequency (this was an
implicit assumption of alternative frequencies support - now it is
enforced explicitly).

Bug 1397158

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

5 years agodrivers: media: tegra: fix incorrect license info
Charlie Huang [Wed, 13 Nov 2013 23:28:26 +0000]
drivers: media: tegra: fix incorrect license info

to make them compatible with the Linux kernel licensing.

bug 1406088

Change-Id: I33a3f3995d1fe256e662236b0e33b59a4fa024be
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/332586
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: configs: tegra12: Enable tegra_volt_cap
Sai Gurrappadi [Fri, 8 Nov 2013 01:57:45 +0000]
ARM: configs: tegra12: Enable tegra_volt_cap

Turns CONFIG_TEGRA_CPU_VOLT_CAP on.

Bug 1349095

Change-Id: Ib363316d385b4d2cc4378b678790c6f8498a47d5
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/327987
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra12: dvfs: Disable vmax thermal profile
Sai Gurrappadi [Wed, 13 Nov 2013 01:37:58 +0000]
ARM: tegra12: dvfs: Disable vmax thermal profile

Disable the vmax thermal profile in dvfs if the cpu voltage cap module
exists as it will do the vdd_cpu vmax capping.

Bug 1349095

Change-Id: Ica211c7a68f6595038dd922ca49e6111cf0e4a81
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/329934
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: Add cpu voltage cap trip points
Sai Gurrappadi [Wed, 13 Nov 2013 01:30:24 +0000]
ARM: tegra: Add cpu voltage cap trip points

Add cpu voltage cap trip points for ardbeg, loki and laguna.

Bug 1349095

Change-Id: Ia1fe0cd2adb86fef1fefc61ad3fbf3b49467879e
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/329932
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra: Module for dynamic voltage limits
Sai Gurrappadi [Fri, 8 Nov 2013 01:56:12 +0000]
ARM: tegra: Module for dynamic voltage limits

Provide userspace with an interface to dynamically adjust
CPU <voltage, temperature> cap. Userspace must respect datasheet-imposed
limits.

Bug 1349095

Change-Id: Ie6d5834d56ad0f1d325bdfbb294c5d9189a8ea2f
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/327986
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoarm: tegra: loki: support board revision
Jun Yan [Wed, 13 Nov 2013 23:32:18 +0000]
arm: tegra: loki: support board revision

Add board revision support for loki, to distinguish
among E2548,E2549 and P2530.

Bug 1317330

Change-Id: I2bbdb6ab4a3843a6c54a9b4fbbf3e5055b9a3e7d
Signed-off-by: Jun Yan <juyan@nvidia.com>

Conflicts:
arch/arm/mach-tegra/board-loki.c
Change-Id: Ia10ee4ad4230a5f6c2d24a8d72f557344f15b6e3
Reviewed-on: http://git-master/r/333071
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jun Yan <juyan@nvidia.com>
Tested-by: Jun Yan <juyan@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agosound: pci: fix hdmi power usage count
Mohan Kumar [Wed, 6 Nov 2013 09:15:18 +0000]
sound: pci: fix hdmi power usage count

after resume from LP0, tegra-hda refcount showing negative values
in PM domains, call power down during suspend if it's on inorder to
maintain the resume/suspend state in sync.

Bug 1399964
Bug 1407992
Bug 1392965
Bug 1407018

Change-Id: I675e8c4fe3edaf3ff4c15aec9f2e3872b9e39164
Reviewed-on: http://git-master/r/327039
Tested-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoPM / Domains: skip start/stop device in noirq
Prashant Gaikwad [Mon, 18 Nov 2013 09:02:41 +0000]
PM / Domains: skip start/stop device in noirq

Bug 1401451

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

5 years agoarm: tegra: add PM domain for nvavp
Prashant Gaikwad [Fri, 15 Nov 2013 11:56:45 +0000]
arm: tegra: add PM domain for nvavp

- Add PM domain for nvavp seperately

Bug 1401451

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