6 years agofixup board-bonaire.c remove mach/io.h
Shridhar Rasal [Tue, 10 Sep 2013 08:43:59 +0000]
fixup board-bonaire.c remove  mach/io.h

Change-Id: Iaa51ace191f6e7de1c19af37d6a6f7db76281a0a
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/272456
Reviewed-by: Automatic_Commit_Validation_User

6 years agofixup board-bonaire-sdhci.c move iomap.h
Shridhar Rasal [Fri, 6 Sep 2013 08:42:53 +0000]
fixup board-bonaire-sdhci.c move  iomap.h

Change-Id: Ia1f15846f5760da9ec8a209b5eb94717553cdaf4
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/271833
Reviewed-by: Automatic_Commit_Validation_User

6 years agofixup board-bonaire.c move iomap.h
Shridhar Rasal [Fri, 6 Sep 2013 08:29:22 +0000]
fixup board-bonaire.c move  iomap.h

Change-Id: I9b92915daeb65d6d3f077420b966e4e06f853a35
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/271830
Reviewed-by: Automatic_Commit_Validation_User

6 years agofixup board-bonaire-panel.c move iomap.h
Shridhar Rasal [Fri, 6 Sep 2013 08:31:43 +0000]
fixup board-bonaire-panel.c move iomap.h

Change-Id: I81e05a2dff8b7071ed83004666b058504086bc04
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/271831
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra:dalmore : Add support for K3.10 audio
Manoj Gangwal [Mon, 2 Sep 2013 13:25:52 +0000]
arm: tegra:dalmore : Add support for K3.10 audio

1) Add pcm device.
2) Add dups clocks for audio modules.

Bug 1310452

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

6 years agoARM: configs: Add support for Audio
Manoj Gangwal [Mon, 2 Sep 2013 12:27:22 +0000]
ARM: configs: Add support for Audio

Bug 1360529

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

6 years agoARM: config: t12x: Enable ALC5639 codec
Manoj Gangwal [Wed, 4 Sep 2013 09:01:28 +0000]
ARM: config: t12x: Enable ALC5639 codec

Bug 1310452

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

6 years agoARM:tegra: Add support for pcm device
Manoj Gangwal [Mon, 2 Sep 2013 13:11:06 +0000]
ARM:tegra: Add support for pcm device

Bug 1310452

Change-Id: I46ae58fa4feb2285786cd6b81eeb37843a7a441d
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/269154
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoasoc: tegra: Add support for K3.10 audio
Manoj Gangwal [Tue, 3 Sep 2013 07:03:50 +0000]
asoc: tegra: Add support for K3.10 audio

1) Add support for K3.10 audio
2) Register dai as a component

Bug 1310452

Change-Id: I4c09f6b84632ab4adc0748fca807254dba3d19c5
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/269377
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoasoc: tegra: Add support for audio for K3.10
Manoj Gangwal [Tue, 3 Sep 2013 12:55:35 +0000]
asoc: tegra: Add support for audio for K3.10

Bug 1310452

Change-Id: I949d331270c5b19c5046f567d091ca055d234d53
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/269551
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agotfa9887: Fix compilation error for K3.10
Manoj Gangwal [Wed, 4 Sep 2013 08:56:54 +0000]
tfa9887: Fix compilation error for K3.10

Bug 1310452

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

6 years agoRevert "HACK: ARM: tegra: Disable AHB prefetch for USB"
Jeetesh Burman [Tue, 10 Sep 2013 09:55:20 +0000]
Revert "HACK: ARM: tegra: Disable AHB prefetch for USB"

Since SMMU issue is fixed, So remove hack to disable AHB GIZMO
PREFETCH for USB.

BUG 1215880
BUG 1362455

This reverts commit 1893bb32be8e462bf06a69cd397aff6199a2a90f.

6 years agomisc: tegra-baseband: reset irq value if failed to request
Prashant Gaikwad [Thu, 5 Sep 2013 09:46:21 +0000]
misc: tegra-baseband: reset irq value if failed to request

Change-Id: Ib9b54607fc5aae60ac0c3abdc0c8cfe106553971
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/270749
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>

6 years agoUPSTREAM: timer_list: correct the iterator for timer_list
Nathan Zimmer [Wed, 28 Aug 2013 00:12:18 +0000]
UPSTREAM: timer_list: correct the iterator for timer_list

Correct the issue with /proc/timer_list reported by Holger.  When reading
from the proc file with a sufficiently small buffer, 2k so not really that
small, there was one could get hung trying to read the file a chunk at a
time.

The timer_list_start function failed to account for the possibility that
the offset was adjusted outside the timer_list_next.

Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Reported-by: Holger Hans Peter Freyther <holger@freyther.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Berke Durak <berke.durak@xiphos.com>
Cc: Jeff Layton <jlayton@redhat.com>
Tested-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: <stable@vger.kernel.org> # 3.10.x
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
(cherry picked from commit 231efe79024840d9665f61f19cce032aaa8d8cea)
Change-Id: Ie543eb9649a0cb0f12a3f74b291e065c9d23cf18
Reviewed-on: http://git-master/r/270878
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: dt: tegra114: Update timer interrupt list
Shridhar Rasal [Thu, 5 Sep 2013 16:01:03 +0000]
ARM: dt: tegra114: Update timer interrupt list

Remove virtual and hypervisor timers from interrupt
list of armv7-timer.

bug 1360734

Change-Id: Ib777ee861965e44238eafe740886ee4eda925667
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/270879
Tested-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>

6 years agoARM: tegra: initialize hotplug for T12x
Eric Miao [Fri, 6 Sep 2013 11:26:42 +0000]
ARM: tegra: initialize hotplug for T12x

Bug 1360967
Bug 1360842

Change-Id: If2bfa4b0ff370d2383cd368351627fde1bad89ae
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/271474
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agogpio: tps65910: Restore upstream v3.10.10 version
Dan Willemsen [Wed, 4 Sep 2013 05:47:24 +0000]
gpio: tps65910: Restore upstream v3.10.10 version

We don't use this driver on any supported downstream platforms

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: I1f082cdb4f14a7e6dfc1d0b4aa07325102d99ab2
Reviewed-on: http://git-master/r/270001

6 years agocrypto: tegra-aes: Revert to v3.10.10 version
Dan Willemsen [Wed, 4 Sep 2013 05:27:08 +0000]
crypto: tegra-aes: Revert to v3.10.10 version

This isn't being built on supported products, so use the upstream
version.

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: If2abf074dcf702062eb8c2bcf7c3cb79bb5ae354
Reviewed-on: http://git-master/r/270000

6 years agortc: tps65910: Restore upstream v3.10.10 version
Dan Willemsen [Wed, 4 Sep 2013 06:14:06 +0000]
rtc: tps65910: Restore upstream v3.10.10 version

We don't use this driver on any supported downstream platforms.

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: I5aae841585b4ad5107f925c745558c75f23fb670
Reviewed-on: http://git-master/r/270002

6 years agofixup! ARM: tegra: tps6586x: add empty function direction_input
Dan Willemsen [Wed, 4 Sep 2013 05:44:04 +0000]
fixup! ARM: tegra: tps6586x: add empty function direction_input

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: I082f222945f054b585659cbd65d042d45e3cd225
Reviewed-on: http://git-master/r/269997

6 years agofixup! devfreq: Add stub functions to governor.h
Dan Willemsen [Wed, 4 Sep 2013 05:50:28 +0000]
fixup! devfreq: Add stub functions to governor.h

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: I0c7f47cb3c57636154b2bd1478387d29ad02feaf
Reviewed-on: http://git-master/r/269998

6 years agoarm: tegra: fix dma driver name
Prashant Gaikwad [Thu, 5 Sep 2013 09:43:47 +0000]
arm: tegra: fix dma driver name

Change-Id: Ia309497d56ccea8483ad4a21dafe4ece5721a030
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/270748
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Tested-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: config: add TEGRA_NVAVP to tegra12_android_defconfig
Eric Miao [Thu, 5 Sep 2013 09:39:32 +0000]
ARM: config: add TEGRA_NVAVP to tegra12_android_defconfig

  Bug 1360855

Camera doesn't work without NVAVP enabled.

Change-Id: I2ed94be71ac84a47cf180d482efa2efcc78ec448
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/270698
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Ajay Nandakumar M <anandakumarm@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: ardbeg: Add late init to MACHINE_START
Shridhar Rasal [Tue, 3 Sep 2013 08:33:55 +0000]
ARM: tegra: ardbeg: Add late init to MACHINE_START

With this Debug Sys file entries pertaining to clock is created
through late initcall.

Bug 1360842

Change-Id: I88e4c1e3872ed33130ec9c3e4c81212c1972f92f
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/269417
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Tested-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agofixup! [ARM/tegra] Add initial Tegra3 driver support
Dan Willemsen [Wed, 4 Sep 2013 05:59:32 +0000]
fixup! [ARM/tegra] Add initial Tegra3 driver support

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Change-Id: Icbf625909d86f842b036b8afcc36b326de659963

6 years agoARM: config: tegra11: Re-generate defconfig
Preetham Chandru R [Wed, 4 Sep 2013 11:30:34 +0000]
ARM: config: tegra11: Re-generate defconfig

Re-generated the defconfig to reflect the current kconfigs.
Also made sure that the tegra11_defconfig is similar to that
of tegra11_android_defconfig.
Removed CONFIG_TEGRA_GRHOST_SYNC as it depends on CONFIG_ANDROID

Bug 1342028

Change-Id: I26d76b1605d76a93cf4414e51362ab182299e351
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/270078
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Tested-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: Tegra12: config: Enable AVP & Camera modules
Ajay Nandakumar [Wed, 4 Sep 2013 06:25:47 +0000]
ARM: Tegra12: config: Enable AVP & Camera modules

Enabling NVAVP and Camera Modules T124 based boards.

Bug 1360943
Bug 1360855
Bug 1360842

Change-Id: I3a10c79ed4c7eebf4f040cf02a5c6462ad41b9fc
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/269533
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: Tegra12: config: Regenerate defconfig
Ajay Nandakumar [Wed, 4 Sep 2013 06:17:19 +0000]
ARM: Tegra12: config: Regenerate defconfig

Re-generate defconfig using Ksetup.

Bug 1360943
Bug 1360855
Bug 1360842

Change-Id: I8cdcbbffc85721a346b56dd68f9767bb5144a7b1
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/269532
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Eric Miao <emiao@nvidia.com>
Tested-by: Eric Miao <emiao@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agostaging:iio:light:isl29028: expose als's raw sysfs
Sri Krishna chowdary [Tue, 3 Sep 2013 14:54:48 +0000]
staging:iio:light:isl29028: expose als's raw sysfs

in_illuminance_raw sysfs is being used by user space
driver to read light intensisty in lux values.
Set bit to expose the same.

Bug 1327616
Bug 1263672

Change-Id: I193ee871480284fa496bf0c82367b773ab83de18
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/269583
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: tegra: Remove second instance of uart clock
Dan Willemsen [Wed, 4 Sep 2013 02:38:41 +0000]
ARM: tegra: Remove second instance of uart clock

See upstream commit 0b5168f92d587c328a4ac060a9f3d1a029ddc3b4

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agofixup! ARM: tegra: pci: add extended config space support
Dan Willemsen [Wed, 4 Sep 2013 02:07:43 +0000]
fixup! ARM: tegra: pci: add extended config space support

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agovideo: tegra: host: Enable ISPB 2nd lvl clock gating
Terje Bergstrom [Fri, 30 Aug 2013 09:18:32 +0000]
video: tegra: host: Enable ISPB 2nd lvl clock gating

Bug 1346075

Change-Id: I599bd96f9520a766bad0e9a42e2258b556fd0ee8
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/268432
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: register power-supply notification through extcon
Laxman Dewangan [Tue, 3 Sep 2013 10:59:58 +0000]
ARM: tegra: register power-supply notification through extcon

Register power-supply-extcon driver to notify the power supply
state by getting supply information through excon notification.

bug 1352669

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

6 years agoARM: config: enable POWER_SUPPLY_EXTCON for T124 platform
Laxman Dewangan [Tue, 3 Sep 2013 10:43:29 +0000]
ARM: config: enable POWER_SUPPLY_EXTCON for T124 platform

Enable POWER_SUPPLY_EXTCON for T124 platform to support the
power supply notification and status through extcon.

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

6 years agoserail: tegra: renames the driver for easy to interpret/use
Laxman Dewangan [Mon, 2 Sep 2013 13:33:06 +0000]
serail: tegra: renames the driver for easy to interpret/use

Change the port name to SERIAL_TEGRA, driver name to serial-hs-tegra
and add some new compatible value for making easy to use.

bug 1349711

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

6 years agovideo: tegra: host: Prevent syncpoint 0 tampering
Arto Merilainen [Wed, 28 Aug 2013 08:08:18 +0000]
video: tegra: host: Prevent syncpoint 0 tampering

Faulty submits can cause syncpoint 0 value to be incremented. This
patch hooks interrupt handler to verify that the syncpoint 0 is
restored back to 0 in case it is accidentally incremented.

Bug 1349710

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

6 years agovideo: tegra: host: Init intr hw after poweron
Arto Merilainen [Wed, 28 Aug 2013 11:27:40 +0000]
video: tegra: host: Init intr hw after poweron

Interrupt initialisation was performed without powering on host1x.
This change adds full separation between software
(nvhost_intr_init()) and hardware (nvhost_intr_start())
initialisations.

Bug 1349710

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

6 years agovideo: tegra: host: Remove NVHOST_SYNC_QUEUE_SIZE
Arto Merilainen [Thu, 29 Aug 2013 05:28:29 +0000]
video: tegra: host: Remove NVHOST_SYNC_QUEUE_SIZE

This patch removes unused variable definition
NVHOST_SYNC_QUEUE_SIZE.

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

6 years agogpio: palmas: align driver to mainline
Laxman Dewangan [Mon, 2 Sep 2013 12:39:36 +0000]
gpio: palmas: align driver to mainline

Align the Palmas GPIO driver to mainline and keep
porting TPS80036 device on this driver.

This will also add DT support on this driver.

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

6 years agotracing: remove clock lock/unlock event.
Jiejing Zhang [Wed, 28 Aug 2013 06:20:12 +0000]
tracing: remove clock lock/unlock event.

This patch is removed  clock lock/unlock event.

For those reasons:
1. events are *too* much, because clock tree, one lock operation
   will invoke too much clock_lock & clock_unlock event.

compare these two traces:
trace-cmd record -e regulator -e power  16000 -s 1000000 sleep 10
3162112 byte

trace-cmd record -e regulator -e power -v -e "clock_*lock" -b 16000 -s 1000000 sleep 10
585726 byte

The trace size was 1/6 between with lock & without lock events.

2. the debug function of adding this event is not clear.

Change-Id: I6e8d93487c8cc472990fd6a21d7e1f4c63e24556
Signed-off-by: Jiejing Zhang <jiejzhang@nvidia.com>
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/269324
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: tn8: disable CM32181 registration
Daniel Fu [Mon, 2 Sep 2013 08:50:48 +0000]
ARM: tegra: tn8: disable CM32181 registration

ALS will not support on TN8 by now.
Disable CM32181 registartion on TN8.
Remove CM32181 power entry in TN8 power board-file.

Bug 1359627

Change-Id: I6fd1ef4e5a68ff394bab3586b36303a55ff0fc1e
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/269027
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agocpuidle: Fix disabled sysfs entry
Prashant Gaikwad [Wed, 14 Aug 2013 10:33:39 +0000]
cpuidle: Fix disabled sysfs entry

disable parameter is moved from idle state to state_usage.
We need disabled parameter from state to control the state.

Change-Id: I0a17c60fffe1e391916679073e047cab1d90cfb2
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/267250
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoWAR: arch: arm: add Processor entry for compatibility
Shu Zhang [Tue, 27 Aug 2013 06:53:56 +0000]
WAR: arch: arm: add Processor entry for compatibility

Some legacy applications depend on "Processor" entry from
/proc/cpuinfo to detect cpu information.
Add "Processor" entry back to avoid null pointer issues.

Bug 1356278
Bug 1353101
Bug 1348757
Bug 1326291
Bug 1353766
Bug 1270814

Change-Id: I92f6ac0fdced812f228c9984fd47e133e8548355
Signed-off-by: Shu Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/268998
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

6 years agovideo: tegra: gk20a: cache clockgating states
Prashant Malani [Wed, 14 Aug 2013 01:56:14 +0000]
video: tegra: gk20a: cache clockgating states

Save SLCG,BLCG and ELCG state so that when gk20a
powers-on again, these will retain earlier
configuration.

Also surround calls to SLCG/BLCG/ELCG enable with
nvhost_module_busy/idle so that we ensure gk20a
is powered on before accessing the registers.

Bug 1348359

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

6 years agoARM: tegra: pcie: Fix ASPM, X1 detect on resume
Jay Agarwal [Wed, 28 Aug 2013 06:57:27 +0000]
ARM: tegra: pcie: Fix ASPM, X1 detect on resume

1. Re-enable ASPM, Gen2 features on resume path
2. Removed unnecessary condition to detect cards
   on X1 slot of ERS-S.

Bug 1357399
Bug 1358636

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

6 years agoARM: tegra: PCIe: Enable PCIe in Kernel
Jay Agarwal [Fri, 30 Aug 2013 06:02:24 +0000]
ARM: tegra: PCIe: Enable PCIe in Kernel

Bug 1304277

Change-Id: Id9892584df04b58209e3ccad8007d8bc5c65d310
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/264499
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoarm: tegra: tn8: add the regulator client for nct72
Hayden Du [Mon, 2 Sep 2013 04:35:26 +0000]
arm: tegra: tn8: add the regulator client for nct72

bug 1354884

Change-Id: Ied1d76ec9e44613b114ba7e2dd5252f75d81b7e0
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/268883
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agothermal: Add palmas thermal support
Pradeep Goudagunta [Thu, 29 Aug 2013 10:55:42 +0000]
thermal: Add palmas thermal support

Palmas series pmic chip supports hot die interrupt configurable for
four different critical temperature thresholds.

Bug 1355680

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

6 years agomfd: palmas: Add palmas_thermal init
Pradeep Goudagunta [Mon, 2 Sep 2013 05:49:09 +0000]
mfd: palmas: Add palmas_thermal init

Initialize palmas_thermal driver, add palmas_thermal as mfd_cell
and irq resources.

Bug 1355680

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

6 years agoextcon: palmas: add support for ACA detection
Laxman Dewangan [Mon, 2 Sep 2013 06:56:04 +0000]
extcon: palmas: add support for ACA detection

To support the ACA detection as per BC1.1, add cable
detection for ID-Ra, ID-Rb and ID-Rc.

The normal host and device cable detection is still
supported.

bug 1188954

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

6 years agoextcon: palmas: add DT support for plamas-extcon driver
Laxman Dewangan [Thu, 29 Aug 2013 15:43:13 +0000]
extcon: palmas: add DT support for plamas-extcon driver

Add DT support for palmas extcon driver by integrating
the mainline driver.

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

6 years agoARM: tegra: properly configure Palmas pins for ID/VBUS detection
Laxman Dewangan [Thu, 29 Aug 2013 16:47:03 +0000]
ARM: tegra: properly configure Palmas pins for ID/VBUS detection

T124 platforms like Ardbeg, Loki, TN8 uses the PMIC for detecting
VBUS and ID pins.

Configure the pins of Palmas to set these pins in proper option.

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

6 years agoARM: tegra: Fix empty size check for linear FB
Hiroshi Doyu [Wed, 28 Aug 2013 11:44:34 +0000]
ARM: tegra: Fix empty size check for linear FB

Fix wrong empty error check for linear FB.

Change-Id: I0405699d6d49945338f36820f57f8f2837356e16
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/267356
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: tegra: Put contiguous FBs into a linear map
Hiroshi Doyu [Wed, 28 Aug 2013 09:26:21 +0000]
ARM: tegra: Put contiguous FBs into a linear map

Put contiguous FB areas into a sigle linear map to avoid gap pages
being inserted.

HACK: Till per device IOVA management is introduced.

Bug 1356760

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

6 years agoiommu/tegra: smmu: fix perf regression with map_sg
Krishna Reddy [Tue, 3 Sep 2013 01:55:03 +0000]
iommu/tegra: smmu: fix perf regression with map_sg

fix perf regression with map_sg compared to map_pages.

Change-Id: Idf0a77f9262b81d580bc92f258827f04968f3677
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/269278
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

6 years agovideo: tegra: nvmap: Check ownership from client
Arto Merilainen [Fri, 30 Aug 2013 13:10:44 +0000]
video: tegra: nvmap: Check ownership from client

Buffers can be shared between multiple processes, each of which have
their own nvmap clients. Currently we allow/deny access to a handle
based on owner field of the handle, however, this fails if we share
the handle between multiple clients.

This patch adds an additional check: If the owner differs from the
current client, we check if the handle still has been added to
client private list.

Bug 1355815

Change-Id: Ib419d7db343f81d46e79084248ce92643842031b
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/268540
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Anssi Kalliolahti <akalliolahti@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agovideo: tegra: dsi: Create DSI MIPI debugfs nodes
Vineel Kumar Reddy Kovvuri [Wed, 28 Aug 2013 11:48:29 +0000]
video: tegra: dsi: Create DSI MIPI debugfs nodes

Implements Debugfs node for DSI MIPI register dump

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

6 years agovideo: tegra: host: fix gva truncation issue
Krishna Reddy [Mon, 2 Sep 2013 21:09:58 +0000]
video: tegra: host: fix gva truncation issue

gvs is held in u32 instead of u64. this is causing incorrect
truncation and incorrect unmapping.
Bug 1355842

Change-Id: Ia0698fd9d03beb2f05ae7a495d5ea9180e882683
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/269267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agovideo: tegra: host: Separate kernel and user buffers
Terje Bergstrom [Mon, 2 Sep 2013 09:58:39 +0000]
video: tegra: host: Separate kernel and user buffers

Flag only buffers mapped via the MAP_BUFFER IOCTL as user mapped.

Change-Id: Idcafee51563a977cd08d6067c022e1bc5fcd4bce
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/269091
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dsi: Fix dsi clk ref count balancing
Vineel Kumar Reddy Kovvuri [Wed, 28 Aug 2013 10:24:19 +0000]
video: tegra: dsi: Fix dsi clk ref count balancing

Balance enable and disable clk ref counts

Change-Id: I582e2a16d4c9a8000b810fde0ab68aa64b71d1de
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/267252
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoinput: misc: bmp180: remove input_free_device call from bmp_remove
Krishna Reddy [Fri, 30 Aug 2013 19:15:15 +0000]
input: misc: bmp180: remove input_free_device call from bmp_remove

This is not necessary as input_unregister_device internally calls
input_free_device. Calling this is causing access of already freed
dev memory.

Change-Id: I9f50f3b1359d00ba9ef97515afd22cb290cd540d
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/268664
Reviewed-by: Joshua Cha <joshuac@nvidia.com>

6 years agoinput: misc: ak8975: remove input_free_device call from akm_remove
Krishna Reddy [Fri, 30 Aug 2013 19:12:47 +0000]
input: misc: ak8975: remove input_free_device call from akm_remove

This is not necessary as input_unregister_device internally calls
input_free_device. Calling this is causing access of already freed
dev memory.

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

6 years agoARM: tegra: mipi-cal: t148 specific clk72mhz
Charlie Huang [Wed, 28 Aug 2013 19:37:43 +0000]
ARM: tegra: mipi-cal: t148 specific clk72mhz

clk72mhz is t148 arch specific clock name, no need to request it for
t114, otherwise a kernel warn will be reported.

bug 1353722

Change-Id: Idcbf110dcbdb0f5dce61336bd4fa8ef659683b71
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/268733
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: tn8: change compass I2C add for tn8
Daniel Fu [Thu, 29 Aug 2013 06:46:58 +0000]
ARM: tegra: tn8: change compass I2C add for tn8

The sensor module of TN8 is different from ardbeg.
Change Compass I2C add to 0x0D.
Change Compass Power tree entries for TN8.

Bug 1348064

Change-Id: I75b9e9078da82c5ef61b7f772e1cc9dc56bea129
Signed-off-by: Daniel Fu <danifu@nvidia.com>
Reviewed-on: http://git-master/r/267799
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra12: Fix unpowergate sequence for GK20A
Prashant Malani [Thu, 1 Aug 2013 03:03:31 +0000]
ARM: tegra12: Fix unpowergate sequence for GK20A

Ensure that GPU partition reset is asserted
before we remove the clamp to gpu power
partition.

Bug 1339089

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

6 years agoarm: tegra: add bq20z45 guage support for ardbeg
Andy Park [Mon, 26 Aug 2013 21:47:17 +0000]
arm: tegra: add bq20z45 guage support for ardbeg

Enable BQ20Z45 Fuel Guage in Ardbeg board file.

Bug 1344257

Change-Id: I0be05142a9d14a7b71f2b4bfe232d8f7467dc292
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/268059
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: add bq2471x charger support for ardbeg
Andy Park [Mon, 26 Aug 2013 21:44:44 +0000]
arm: tegra: add bq2471x charger support for ardbeg

Add necessary battery charger data to ardbeg board file to support
BQ24715/BQ24717 battery charger.

Bug 1344257

Change-Id: I0e01a60c5f75ef2eac05861876d948b457351004
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/268057
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agovideo: tegra: host: Remove legacy IOCTLs
Terje Bergstrom [Tue, 27 Aug 2013 06:38:13 +0000]
video: tegra: host: Remove legacy IOCTLs

Remove legacy calls. The old submit interface was deprecated a year
ago and the old GPU ioctl's were not used in main codeline.

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

6 years agopinctrl: palmas: remove unused member of pinctrl-palmas platform data
Laxman Dewangan [Fri, 30 Aug 2013 09:04:44 +0000]
pinctrl: palmas: remove unused member of pinctrl-palmas platform data

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

6 years agoarm: tegra: ardbeg: Support E1792
Seema Khowala [Tue, 6 Aug 2013 23:26:14 +0000]
arm: tegra: ardbeg: Support E1792

E1792 is same as Sheild E1780 SKU1000 except
the Memory.E1792 has LPDDR3(EDFA164A2MA-JD-F,
LPDDR3 x32, 933Mhz, 16Gb) instead.
Default DDR voltage for E1733 and E1735 pmu
is 1.35V but lpddr3 supports 1.2V

Bug 1339736

Change-Id: Ie1e23e3512876940349ee6c4c915c890b5ebfdad
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/263470
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

6 years agostaging: android: avoid memory access after free
Krishna Reddy [Fri, 30 Aug 2013 15:45:41 +0000]
staging: android: avoid memory access after free

driver data has to be set before destroyig device to avoid
accessing memory after free.

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

6 years agoswitch: avoid memory access after free
Krishna Reddy [Fri, 30 Aug 2013 15:38:41 +0000]
switch: avoid memory access after free

driver data has to be set before destory of device to
avoid accessing memory after free.

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

6 years agovideo: tegra: nvmap: fix incorrect memory access
Krishna Reddy [Fri, 30 Aug 2013 15:27:29 +0000]
video: tegra: nvmap: fix incorrect memory access

fix incorrect memory access sequence in nvmap_dmabuf_release().
handle memory access after handle put can result in accessing
freed memory.

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

6 years agoarm: tegra12: ardbeg: turn off ldo1 of TPS65913
Wen Yi [Mon, 26 Aug 2013 22:29:25 +0000]
arm: tegra12: ardbeg: turn off ldo1 of TPS65913

The rail ldo1 supplies to 1v05 pll rails and should be
turned off when device is in LP0.

Bug 1355205

Change-Id: I2ecde33da725349cd866ec00664615e81cbe1e76
Signed-off-by: Wen Yi <wyi@nvidia.com>
Reviewed-on: http://git-master/r/266234
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

6 years agoarm: tegra: laguna: enable cl_dvfs and correct the settings
Kerwin Wan [Wed, 7 Aug 2013 06:54:17 +0000]
arm: tegra: laguna: enable cl_dvfs and correct the settings

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

6 years agoarm: configs: enable bq2471x as default on t12x
Andy Park [Mon, 26 Aug 2013 21:48:30 +0000]
arm: configs: enable bq2471x as default on t12x

Enable BQ2471X Battery Charger as default on T12X devices.

Bug 1344257

Change-Id: Ib10df6bb83db081b59a9f677075a020dcd77e278
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/268058
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: add bq2471x battery charger driver
Andy Park [Mon, 26 Aug 2013 21:41:51 +0000]
power: add bq2471x battery charger driver

Add BQ24715/BQ24717 battery charger driver.

Bug 1344257

Change-Id: Ia5bf9d3af7f836d937634b00043adef1c6391b0b
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/268056
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: pinmux: Fix GME, AT5 drive pinmux
Chaitanya Bandi [Thu, 29 Aug 2013 10:20:57 +0000]
ARM: tegra: pinmux: Fix GME, AT5 drive pinmux

Fixed the definitions of GME, AT5 drive pinmux
registers.

Bug 1347466

Change-Id: If30197a6cec9d7cb543c65619680d279fc99c549
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/267904
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agovideo: tegra: Eliminate build warnings and errors
Mark Zhang [Thu, 15 Aug 2013 05:48:25 +0000]
video: tegra: Eliminate build warnings and errors

Eliminate build warnings and errors if "CONFIG_TEGRA_GRHOST_SYNC"
is not enabled.

Change-Id: I7157c56f041cc5593be0c3ea38046960ef7d65af
Signed-off-by: Mark Zhang <markz@nvidia.com>
Reviewed-on: http://git-master/r/262328
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agovideo: tegra: host: fix nvhost block free
Kevin Huang [Thu, 29 Aug 2013 18:58:28 +0000]
video: tegra: host: fix nvhost block free

The pointer to the next block is accidentally freed when we free
current block.

Bug 1355842

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

6 years agousb: xhci: tegra: enable otg with xusb host
Rohith Seelaboyina [Thu, 29 Aug 2013 05:00:13 +0000]
usb: xhci: tegra: enable otg with xusb host

enable switching between usb2.0 device and xusb host
on otg port

Bug 1307598

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

6 years agoARM: tegra: usb: support xusb on otg port
Rohith Seelaboyina [Wed, 28 Aug 2013 14:52:06 +0000]
ARM: tegra: usb: support xusb on otg port

platform data to support changing port ownership
to xusb when port 0 is in host mode

Bug 1307598

Change-Id: I3fd332b07ebfbb8b3baca400500a7e984c88a99e
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/265537
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: tegra: xhci:Transfer utmi port to pmc in elpg
Rohith Seelaboyina [Thu, 22 Aug 2013 10:52:30 +0000]
usb: tegra: xhci:Transfer utmi port to pmc in elpg

Program pmc for transfer of utmip ports to pmc
during elpg entry or exit.

Bug 1307598

Change-Id: Iabc250202e7e3386b18889a136cdf2f04c27698f
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/265536
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: xusb:Transfer utmi port to pmc in elpg
Rohith Seelaboyina [Thu, 22 Aug 2013 10:06:04 +0000]
ARM: tegra: xusb:Transfer utmi port to pmc in elpg

Program pmc for utmip ports during elpg entry/exit.

Bug 1307598

Change-Id: I29803a053850418ca532c438cc390cdc5de12d25
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/265535
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: use soctherm for thermal actions
Diwakar Tundlam [Thu, 29 Aug 2013 00:54:55 +0000]
arm: tegra: use soctherm for thermal actions

Check soctherm CP and FT fuse revision and if valid, switch thermal
trip points to use socthem thermal zones. We remove tegra-balanced
cooling device from NCT platform data and raise NCT's shutdown point
by 20C to effectively deactivate it.

With this change, thermal actions will use soctherm on properly fused
chips and use NCT on improperly fused chips.

Changed trip point thresholds to T148 values as recommended by HW
engg, until TSOSC and hotspot characterization is done. Enabled
throttling and therm-trip on CPU and GPU TSOSCs.

Bug 1291108

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

6 years agoarm: tegra: use fuse check rev api and init soctherm
Diwakar Tundlam [Thu, 29 Aug 2013 00:47:49 +0000]
arm: tegra: use fuse check rev api and init soctherm

Bug 1291108

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

6 years agoarm: tegra: add api to check fuse revision
Diwakar Tundlam [Wed, 28 Aug 2013 21:31:16 +0000]
arm: tegra: add api to check fuse revision

Bug 1291108

Change-Id: Iff50cc37452ecc20164b35ad3ef8caec3a0551f8
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/267647
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xue Dong <xdong@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: soctherm: fix invalid array index
Xin Xie [Tue, 25 Jun 2013 00:36:43 +0000]
arm: tegra: soctherm: fix invalid array index

We are using the -1 for the enum typed value and it is used for array
access.

bug 1312613

Change-Id: I52b31327e9c332616675cda30877737d42f23ac1
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/241619
(cherry picked from commit 32ccb8129534e279702eacfa4789d05f93603470)
Reviewed-on: http://git-master/r/267646
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agovideo: tegra: nvmap: implement begin/end_cpu_access
Krishna Reddy [Thu, 29 Aug 2013 20:34:49 +0000]
video: tegra: nvmap: implement begin/end_cpu_access

realize begin_cpu_access, end_cpu_access interface in nvmap dambuf.

Change-Id: I9ad3476831237651420b3c005295058d8e0e9570
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/268087
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: nvmap: rename cache_maint function
Krishna Reddy [Thu, 29 Aug 2013 20:22:14 +0000]
video: tegra: nvmap: rename cache_maint function

rename cache_maint function to __nvmap_cache_maint and
expose it for other nvmap files.

Change-Id: Ieb12eb2c38dc3d226b10f5df71eea50c9d0bfa8e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/268086
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra12: Clocks: Update clocks frequency for display block
Krishna Sitaraman [Wed, 28 Aug 2013 23:19:20 +0000]
ARM: Tegra12: Clocks: Update clocks frequency for display block

Update the display clocks to support higher resolution displays.

Bug 1355253

Change-Id: I8c30d83d03efa17c9271d31778ff67625590279d
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/267600
Reviewed-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>
Tested-by: Xue Dong <xdong@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

6 years agotegra: Kconfig: Select shared pad config option
Anand Bhatia [Wed, 28 Aug 2013 18:58:22 +0000]
tegra: Kconfig: Select shared pad config option

Helper functions to enable or disable PCIE physical pads are not
available if USB support is disabled. Select TEGRA_USB_SHARED_PAD
if TEGRA_PCI is enabled OR if USB_SUPPORT is enabled.

Change-Id: Ic24f525442f093d4213dc497a0ae321ddbfbfcfd
Signed-off-by: Anand Bhatia <anandb@nvidia.com>
Reviewed-on: http://git-master/r/267470
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoplatform: tegra: Use usb shared pad config option
Anand Bhatia [Wed, 28 Aug 2013 18:48:20 +0000]
platform: tegra: Use usb shared pad config option

Helper functions to enable or disable PCIE physical pads are not
available if USB support is disabled. Using TEGRA_USB_SHARED_PAD
compiles shared pad support when TEGRA_PCI is enabled OR if
USB_SUPPORT is enabled.

Change-Id: I1520d934fdefebbf8ddf2424b0d03072580bb6c9
Signed-off-by: Anand Bhatia <anandb@nvidia.com>
Reviewed-on: http://git-master/r/267469
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoUSB: Kconfig: Added config option for shared pad
Anand Bhatia [Wed, 28 Aug 2013 00:26:56 +0000]
USB: Kconfig: Added config option for shared pad

Helper functions to enable or disable PCIE physical pads are not
available if USB support is disabled. Created a separate config
option TEGRA_USB_SHARED_PAD to include these function based on
either USB or PCIE enable.

Change-Id: I6f0a31e7c4c43b13e7e41890b2586f67a247a9b8
Signed-off-by: Anand Bhatia <anandb@nvidia.com>
Reviewed-on: http://git-master/r/266993
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agovideo: tegra: dc: Clean up dp/lvds code
Chao Xu [Wed, 28 Aug 2013 23:38:50 +0000]
video: tegra: dc: Clean up dp/lvds code

. Fixing errors with link training.
. Not setting pll_dp as the parent of sor_clk.
. Not enabling dc CRC (it was enabled for testing purpose).

Change-Id: I432e0d7f73f1df394ed4af90dcd1715ecf2dd4f9
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/267622

6 years agovideo: tegra: nvmap: validate handle correct
Krishna Reddy [Thu, 29 Aug 2013 04:43:10 +0000]
video: tegra: nvmap: validate handle correct

during nvmap_dmabuf_export validate the handle correct.

Change-Id: I2e06d652a716ca545ffe6dc4a87400bf6baaaa2d
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/267697
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dsi2edp: add ASSR support
Ken Chang [Thu, 30 May 2013 06:09:19 +0000]
video: tegra: dsi2edp: add ASSR support

Enable TC358770A ASSR if eDP panel is connected
and the panel supports ASSR.

Bug 1295551
Bug 1211053

Change-Id: I99e831f060b64524f92643325472f346f42ff285
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/234379
(cherry picked from commit 5873bd15186d04c7941441854f3e64d9f8d9aed4)
Reviewed-on: http://git-master/r/263003
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: la: set t148 bbc ptsa values are PROD values
Krishna Reddy [Thu, 15 Aug 2013 00:27:13 +0000]
arm: tegra: la: set t148 bbc ptsa values are PROD values

Change-Id: Ib078a733dfd75d8af137e680a818075991a3ca5e
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/266184
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agotegra: video: fix timing reg set for 1080i
Xue Dong [Wed, 28 Aug 2013 23:03:42 +0000]
tegra: video: fix timing reg set for 1080i

bug 1343195

Change-Id: Ied1cf35f894f094974e71ac48efbfb5bd9da5cad
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/267590
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

6 years agovideo: tegra: Fix build error if tegra 2x is enabled
Mark Zhang [Wed, 14 Aug 2013 10:14:17 +0000]
video: tegra: Fix build error if tegra 2x is enabled

Callback ops "postpoweron" has been changed but the in tegra 2x,
the codes which call it doesn't change which makes a build error.

Change-Id: Ia861304d172b2516bcb5f7a82e45d62ddc3cff18
Signed-off-by: Mark Zhang <markz@nvidia.com>
Reviewed-on: http://git-master/r/262265
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>