5 years agoARM: tegra: ardbeg: set avg values for productized sensors
Timo Alho [Tue, 5 Nov 2013 12:51:15 +0000]
ARM: tegra: ardbeg: set avg values for productized sensors

bug 1401524

Change-Id: Ibc384ffc42e5a6ac0ec019794f53f377c5307f35
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/326697
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agopower: max17048: add interrupt handler feature
Venkat Reddy Talla [Thu, 7 Nov 2013 07:27:40 +0000]
power: max17048: add interrupt handler feature

implement interrupt handler feature to generate interrupt
to wake up device from LP0 when battery state of charge is
low.
Bug 1355408

Change-Id: Icb12c507ca8c9eb4f6e7d58b0ea0fc48d462ed52
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/327530
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: dts: TN8:add max17048 ALRT gpio irq
Venkat Reddy Talla [Thu, 7 Nov 2013 07:24:53 +0000]
ARM: dts: TN8:add max17048 ALRT gpio irq

add gpio irq to detect voltage low when
vcell is below threshold value.
Bug 1355408

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

5 years agopincntrl: add support for AMS AS3722 pin control driver
Bibek Basu [Fri, 25 Oct 2013 05:34:06 +0000]
pincntrl: add support for AMS AS3722 pin control driver

The AS3722 is a compact system PMU suitable for mobile phones, tablets etc.

Add a driver to support accessing the GPIO, pinmux and pin configuration
of 8 GPIO pins found on the AMS AS3722 through pin control driver and
gpiolib.
The driver will register itself as the pincontrol driver and gpio driver.

Bug 1394720

Original-author: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: I4106c6c6a267849849497cb7a3cfb58a63a83056
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Florian Lobmaier <florian.lobmaier@ams.com>
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/309460
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: assign rcv sel bit for t124 pinmux
Andy Park [Mon, 4 Nov 2013 19:56:44 +0000]
arm: tegra: assign rcv sel bit for t124 pinmux

Assign RCV SEL bit for T124 pinmux.

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

5 years agopinctrl: tegra: align mux enums and table for pincontrol as per TRM
Laxman Dewangan [Wed, 6 Nov 2013 10:27:49 +0000]
pinctrl: tegra: align mux enums and table for pincontrol as per TRM

Add missing entry and remove non-documented entry for pincontrol table
for Tegra124.

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

5 years agopinctrl: tegra: align mux enums and table for pincontrol as per TRM
Laxman Dewangan [Wed, 6 Nov 2013 10:25:37 +0000]
pinctrl: tegra: align mux enums and table for pincontrol as per TRM

Add missing entry and remove non-documented entry for pincontrol table
for Tegra114.

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

5 years agopinctrl: tegra: add support for soc specific suspend/resume calls
Laxman Dewangan [Wed, 6 Nov 2013 10:24:54 +0000]
pinctrl: tegra: add support for soc specific suspend/resume calls

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

5 years agopinctrl: tegra: add APIs to access pincontrol from non-dt driver
Laxman Dewangan [Tue, 5 Nov 2013 15:10:10 +0000]
pinctrl: tegra: add APIs to access pincontrol from non-dt driver

Add APIs to access the pincontrol configuration from non-dt
driver and initialisation.

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

5 years agopinctrl: tegra: add mux option for non-dt support
Laxman Dewangan [Tue, 5 Nov 2013 15:08:08 +0000]
pinctrl: tegra: add mux option for non-dt support

The non-dt mux option is defined in the mach/pinmux.h and hence
added these option in the pingroup table to look for non-dt mux option
when using the driver from board files.

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

5 years agopinctrl: register pincontrol driver at early stage
Laxman Dewangan [Tue, 5 Nov 2013 14:45:00 +0000]
pinctrl: register pincontrol driver at early stage

Moving pincontrol driver registration to the postcore_init_sync
to get initialised before other driver start using it.

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

5 years agogpio: fix allocation in atomic context
Laxman Dewangan [Wed, 6 Nov 2013 13:28:55 +0000]
gpio: fix allocation in atomic context

For initialisation of the GPIO based on DT data, it allocates memory.
Hence calling the gpio initialisation based on dt node on non-atomic
context.

bug 1400884

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

5 years agoRevert "media: nvavp: uninit nvavp in runtime PM"
Sridhar Lavu [Wed, 6 Nov 2013 15:15:57 +0000]
Revert "media: nvavp: uninit nvavp in runtime PM"

This reverts commit 6918965ec9dbf422ddd6468c0cabd4b5e6a82a01
since seems to be causing sanity regression

Bug 1254633 : original change
Bug 1401797 : sanity regression

Change-Id: I27efd4645f6565106b05dfc2d0410c53f19db040
Signed-off-by: Sridhar Lavu <slavu@nvidia.com>
Reverts-what-was-Reviewed-on: http://git-master/r/304210
Reviewed-on: http://git-master/r/327177
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agousb: xhci: tegra: add dt support
Krishna Yarlagadda [Mon, 21 Oct 2013 12:35:03 +0000]
usb: xhci: tegra: add dt support

Add dt support for xhci driver

Bug 1357627

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

5 years agoARM: dt: tegra: add xhci dt support
Krishna Yarlagadda [Wed, 16 Oct 2013 10:42:38 +0000]
ARM: dt: tegra: add xhci dt support

Add dt entries for all xusb supported boards

Bug 1357627

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

5 years agoARM: xhci: tegra: dt support for xhci
Krishna Yarlagadda [Mon, 21 Oct 2013 12:33:31 +0000]
ARM: xhci: tegra: dt support for xhci

Modify board files to support dt entries for xusb

Bug 1357627

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

5 years agousb: otg: tegra: Clear stray intr before enable
Krishna Yarlagadda [Tue, 8 Oct 2013 06:11:26 +0000]
usb: otg: tegra: Clear stray intr before enable

Clear status of pending interrupts before enabling interrupts
again. Doing both in a single write leaves out atleast one
instance of interrupt pending

Bug 1357627

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

5 years agousb: xhci: tegra: Fix pmc & regulator for dalmore
Krishna Yarlagadda [Thu, 26 Sep 2013 04:22:53 +0000]
usb: xhci: tegra: Fix pmc & regulator for dalmore

Regulators should be enabled only if port is enabled
PMC port and xhci port are different in case of dalmore

Bug 1357627

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

5 years agoARM: tegra: xhci: multi port support for dalmore
Krishna Yarlagadda [Wed, 25 Sep 2013 11:34:08 +0000]
ARM: tegra: xhci: multi port support for dalmore

Enable mulitple ports support on dalmore. Fix regulators
to handle this and add entry for missing ports in xusb data

Bug 1357627

Change-Id: Iae395bfe62ae9ac21dc28c7ed2b351d680081337
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/301792
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agovideo: tegra: dc: ignore invalid windows
Jon Mayo [Tue, 5 Nov 2013 20:52:05 +0000]
video: tegra: dc: ignore invalid windows

Walk through valid_windows bitmask to skip over invalid windows.
Mark invalid windows with a flag for easy checking.

Change-Id: Idda005b57ca8503462b01ef1193c993a73432e18
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/326796
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: Disable gk20a powergating
Arto Merilainen [Mon, 4 Nov 2013 15:17:33 +0000]
video: tegra: host: Disable gk20a powergating

This patch disabled gk20a powergating in order to increase LP0
stability.

Change-Id: Ia8e18e676167e8ffc033d261a658a15d0ace4afe
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/326699
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: suspend call prepare_poweroff
Arto Merilainen [Mon, 4 Nov 2013 12:00:17 +0000]
video: tegra: host: suspend call prepare_poweroff

Earlier finalize_poweroff was called only as part of save_state() and
therefore it was not automatically part of suspend. In practise the
callback was called as powergating was allowed for devices that
required finalize_poweroff() callback. However, if powergating is
disabled for a device and that device requires finalize_poweroff
callback, it will fail.

This patch makes nvhost to call finalize_poweroff callback during
suspend if powergating is not allowed for the device.

Change-Id: I01dae8dbb36ddcd902bb5ccfa93b1c5adbc6c940
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/326698
Reviewed-by: Chao Xu <cxu@nvidia.com>
Tested-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra12: soctherm: enable MEM zone
Diwakar Tundlam [Thu, 17 Oct 2013 23:31:35 +0000]
arm: tegra12: soctherm: enable MEM zone

Enable MEM zone for temperature sensing.
Force HW requirement of equal shutdown temps for GPU & MEM zones.

Bug 1342361

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

5 years agosecurity: tlk_driver: interface to program VPR base/len
James Zhao [Wed, 16 Oct 2013 22:05:53 +0000]
security: tlk_driver: interface to program VPR base/len

Add interface for the kernel to program vpr base
address through TLK.
Expect phys addr of vpr base, and vpr size.

bug 1279160

Change-Id: I0ff6ef9783ac2bb6438afa0552f57a84e84bf567
Signed-off-by: James Zhao <jamesz@nvidia.com>
Reviewed-on: http://git-master/r/302404
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoxhci: tegra: remove write INTERPKT_DELAY in driver
Joy Wang [Tue, 29 Oct 2013 08:58:52 +0000]
xhci: tegra: remove write INTERPKT_DELAY in driver

As firmware will set
XUSB_CFG_HSPX_CORE_HSICWRAP.INTERPKT_DELAY to 0x30.
Remove this register write in driver.

Bug 1342607

Change-Id: Ic6197fe738ffbef820c463032650715d225b44f2
Signed-off-by: Joy Wang <joyw@nvidia.com>
Reviewed-on: http://git-master/r/304773
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agousb: xhci: tegra: add delay for port direct to U3
joyw [Mon, 21 Oct 2013 08:31:55 +0000]
usb: xhci: tegra: add delay for port direct to U3

In xhci_bus_suspend, when driver direct port to U3,
need to wait for 10ms for port to direct to U3.

Bug 1386845

Change-Id: I3d214b3538813af5278aa1c00c73a215ad474f59
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/301707
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: mm: cpa: Only call update_page_count() with CPA
Alex Waterman [Tue, 5 Nov 2013 00:17:46 +0000]
arm: mm: cpa: Only call update_page_count() with CPA

If CPA is disabled this function call is not necessary. The
ifdef is inside the if block since it prevents the compiler
from complaining about an unused variable.

Bug 1393434

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

5 years agovideo: tegra: host: Force enable clock in resume
Terje Bergstrom [Wed, 6 Nov 2013 09:46:59 +0000]
video: tegra: host: Force enable clock in resume

Force enable clocks when calling .finalize_poweron.

Bug 1388078

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

5 years agovideo:tegra:gk20a: enable mmu timeout handler
Kirill Artamonov [Tue, 5 Nov 2013 16:07:09 +0000]
video:tegra:gk20a: enable mmu timeout handler

bug 1355640
bug 1389783

Signed-off-by: Kirill Artamonov <kartmaonov@nvidia.com>
Change-Id: I5451e5411b0d5a536497a20516196c5a09508510
Reviewed-on: http://git-master/r/326728
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoARM: tegra: pass the bq2419x OTG/USB gpio
Laxman Dewangan [Wed, 6 Nov 2013 07:06:28 +0000]
ARM: tegra: pass the bq2419x OTG/USB gpio

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

5 years agopower: bq2419x: support for OTG/IUSB pin configurataion through GPIO on DT
Laxman Dewangan [Wed, 6 Nov 2013 06:47:37 +0000]
power: bq2419x: support for OTG/IUSB pin configurataion through GPIO on DT

Add the property parser for the GPIO to configure otg/iusb pin through DT.

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

5 years agopower: max77660: Reduce boost enable time
Rohith Seelaboyina [Wed, 23 Oct 2013 09:43:19 +0000]
power:  max77660: Reduce boost enable time

Reduce Boost enable time to 500us.

Bug 1390334

Change-Id: Ic1729ee257029ef28021683e96d2f1bf9e9339dc
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/302771
(cherry picked from commit 931205baa5cb1ec92ee052fe77e730450b5f5a11)
Reviewed-on: http://git-master/r/326666
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoHID: i2c-hid: Stop querying for init reports
Bibek Basu [Mon, 21 Oct 2013 04:21:46 +0000]
HID: i2c-hid: Stop querying for init reports

According to specifications, HID over I2C devices
are not bound to respond to query for INPUT
REPORTS. Thus dropping the call during init
as many devices do not respond causing error
messages during boot.

Bug 1372332

Cherry-picked from http://www.spinics.net/lists/linux-input/msg27869.html

Change-Id: Id6fd0f07f8f94060c9e3fad7349a12452a31da23
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/325939
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: tn8: Change Orientation vector.
Jordan Nien [Wed, 30 Oct 2013 07:57:58 +0000]
ARM: tegra: tn8: Change Orientation vector.

The change is for E1845 sensor module.

Bug 1347824

Change-Id: Iad36db0cebaf3519a31c9b8d2b390f3f6d456955
Reviewed-on: http://git-master/r/326593
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jordan Nien <jnien@nvidia.com>
Tested-by: Jordan Nien <jnien@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: platform: tegra: OV5693 EEPROM support
David Wang [Tue, 5 Nov 2013 20:45:47 +0000]
media: platform: tegra: OV5693 EEPROM support

Add EEPROM read/write support for OV5693.

Bug 1390863

Change-Id: I01198c27f56bef953b33598f7866a26123c910de
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/326313
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agofs: partitions: efi: Fix bound check
Antti P Miettinen [Tue, 5 Nov 2013 18:30:10 +0000]
fs: partitions: efi: Fix bound check

Use ARRAY_SIZE instead of sizeof to get proper max for label
length.

Bug 1401569

Change-Id: I98cfcca33bb8da18a791750ba8fa85d76a9afc05
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/326759
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agopower: bq2419x: power on if usb cable insert/remove on power off state
Laxman Dewangan [Thu, 31 Oct 2013 10:41:21 +0000]
power: bq2419x: power on if usb cable insert/remove on power off state

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

5 years agopower: battery-gauge: add API to power on when usb cable insert/remove
Laxman Dewangan [Thu, 31 Oct 2013 10:39:19 +0000]
power: battery-gauge: add API to power on when usb cable insert/remove

Add APIs which configure the system pmic to power on when usb cable
insert/remove in power off mode.

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

5 years agopower: reset: palmas: add power on with USB cable insert/removal
Laxman Dewangan [Thu, 31 Oct 2013 10:38:30 +0000]
power: reset: palmas: add power on with USB cable insert/removal

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

5 years agoarm: config: tegra12: enable tegra wakeup monitor
Jiukai Ma [Thu, 31 Oct 2013 06:37:33 +0000]
arm: config: tegra12: enable tegra wakeup monitor

Enable wakeup monitor for active standby feature.

    Bug 1307966
    Bug 1297009

Change-Id: I00431762d5e522e1fa45b8850ead506172d50c39
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/309983
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: loki: Increase PWM frequency
Anshul Jain [Wed, 30 Oct 2013 00:19:33 +0000]
arm: tegra: loki: Increase PWM frequency

Fan pwm is running at half the required frequency.
This change doubles the PWM frequency.

Bug 1364451

Change-Id: Ie19a51f11b2218e55e32a86fd4bb4a7d031dd4db
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/305129
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: dc: read syncpts for valid windows
Edgardo Handal [Tue, 5 Nov 2013 17:14:29 +0000]
video: tegra: dc: read syncpts for valid windows

Bug 1400213

Change-Id: I9961c61066a08b645700edbebc1154119105f6b5
Signed-off-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-on: http://git-master/r/326746
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: nvmap: don't copy vma on fork
Krishna Reddy [Mon, 4 Nov 2013 21:49:18 +0000]
video: tegra: nvmap: don't copy vma on fork

don't copy vma on fork to avoid race condition.

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

5 years agoarm: tegra12: soctherm: check for fuse revision
Diwakar Tundlam [Fri, 1 Nov 2013 22:05:26 +0000]
arm: tegra12: soctherm: check for fuse revision

Check CP fuse ATE revision for both old and new formats.

Bug 1399184
Bug 1291108

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

5 years agoARM: tegra: RODATA: Fix for normal OS
Antti P Miettinen [Mon, 4 Nov 2013 13:31:35 +0000]
ARM: tegra: RODATA: Fix for normal OS

The tegra_generic_smc is not present in normal OS.

Change-Id: I5d265841cfb6fc1ebe8fe51b9341fab408ef7ddc
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/326083
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>

5 years agoxhci: tegra: load xusb fw file by async api
Henry Lin [Fri, 18 Oct 2013 11:43:22 +0000]
xhci: tegra: load xusb fw file by async api

By using request_firmware_nowait(), which is an asynchronous version
of request_firmware(), to load xusb firmware, driver can avoid the
deadlock that occurs when request_firmware() is called without
udev service in presence.

Bug 1370816
Bug 1381552

Change-Id: Id0ef45b224634a1f210646add9a8f0f2c015a4e1
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/301713
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agofuse: cleanup unwanted fuse related data
Shardar Shariff Md [Thu, 31 Oct 2013 09:36:21 +0000]
fuse: cleanup unwanted fuse related data

cleanup of unwanted fuse related data as
a part of migration of fuse driver

Bug 1380004

Change-Id: I78ff9f6b1d3a27ae0ba0369ad9692c40e9e24bfd
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/310037
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

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

Bug 1381539

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

5 years agoEDP: tn8: add consumer data for as364x
Timo Alho [Tue, 29 Oct 2013 09:13:18 +0000]
EDP: tn8: add consumer data for as364x

add system edp consumer data for as364x flash device

Bug 1394505

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

5 years agomedia: video: tegra: as364x: new sysedp support
Timo Alho [Tue, 29 Oct 2013 09:11:15 +0000]
media: video: tegra: as364x: new sysedp support

add support for revised system EDP framework

Bug 1394505

Change-Id: I4b69ae1f486a1a4d8b5da816b25410381438e49b
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/304820
Reviewed-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: add API to query current power state
Timo Alho [Tue, 29 Oct 2013 08:24:05 +0000]
EDP: add API to query current power state

Add sysedp_get_state API function call to query current power state of
sysedp consumer.

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

5 years agoArm: tegra: add tegra wakeup monitor support
Jiukai Ma [Thu, 31 Oct 2013 06:35:13 +0000]
Arm: tegra: add tegra wakeup monitor support

Add the paltform data of tegra wakeup monitor to enable it.

Bug 1307966
Bug 1297009

Change-Id: Iabf43dfe26db8b06b09536cac24c181ca0c0acc7
Signed-off-by: Jiukai Ma <jiukaim@nvidia.com>
Reviewed-on: http://git-master/r/304862
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: add function to enter LP0 from cpuidle
Prashant Gaikwad [Tue, 22 Oct 2013 06:29:08 +0000]
arm: tegra: add function to enter LP0 from cpuidle

Bug 1254633

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

5 years agoARM: tegra: csi: remove csi.c
Kushal Shah [Mon, 4 Nov 2013 21:35:04 +0000]
ARM: tegra: csi: remove csi.c

csi.c is used by dsi driver for t30 SOC.
As t30 is no longer supported, removing csi.c.

Bug 1379870

Change-Id: I26df7fc1eec7a222fba17a8585e0d7efb71858bf
Signed-off-by: Kushal Shah <kshah@nvidia.com>
Reviewed-on: http://git-master/r/326243
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: add rtc timer to wake from lp0
Prashant Gaikwad [Wed, 23 Oct 2013 11:46:56 +0000]
arm: tegra: add rtc timer to wake from lp0

When device is in LP0 all timers are off except RTC.
Use this timer when we enter LP0 from cpuidle.

Bug 1254633

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

5 years agoarm: tegra: add config for LP0-in-idle state
Prashant Gaikwad [Wed, 30 Oct 2013 07:48:22 +0000]
arm: tegra: add config for LP0-in-idle state

Bug 1254633

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

5 years agoi2c: tegra: handle Tegra pm notifier events
Prashant Gaikwad [Wed, 30 Oct 2013 12:49:30 +0000]
i2c: tegra: handle Tegra pm notifier events

Bug 1254633

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

5 years agoRevert "i2c: tegra: restore i2c after resume from LP0"
Prashant Gaikwad [Wed, 30 Oct 2013 14:01:43 +0000]
Revert "i2c: tegra: restore i2c after resume from LP0"

This reverts commit 98d2ffb58e7649eb158367a0f4d675939fe5abef.

Instead of using domain for this purpose notifiers will be used.
Change http://git-master/r/#/c/310064 is pushed to achieve this.

Change-Id: Ie463e266d16c5678dafbf7ffa9d110cd1e7b4caf
Reviewed-on: http://git-master/r/309647
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Loki: Add orientatioin
Xiaohui Tao [Thu, 31 Oct 2013 01:26:04 +0000]
ARM: tegra: Loki: Add orientatioin

The new board has the chip rotated 90 degree.
Add another entry for the FAB 01 unit.

Change-Id: I60779cc59b251141bcd86c2c1432f5f9575fb4b5
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/309867
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: Move busy from ELPG residency
Terje Bergstrom [Sat, 2 Nov 2013 05:50:00 +0000]
video: tegra: host: Move busy from ELPG residency

Move nvhost_module_busy() for ELPG residency query to the debugfs
wrapper. The query is called also from pmu_destroy(), which causes
a race.

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

5 years agovideo: tegra: host: dbg interface power ioctl blcg
Mayank Kaushik [Fri, 1 Nov 2013 06:02:29 +0000]
video: tegra: host: dbg interface power ioctl blcg

To turn off BLCG with the debugger interface's ioctl,
write to therm_gate_ctrl_blk_clk instead of writing
to all 60 registers in gating_desc gk20a_blcg_gr.

The profiler was seeing fluctuations in counter values
when using the gating_desc gk20a_blcg_gr register to
turn blcg off/on. The desktop GPU driver instead writes
to therm_gate_ctrl_blk_clk to control blcg. Using the
same approach here makes the intermittence go away.

Change-Id: I2548d457c4a3f7573383c77112eb60f850420fe7
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/323895
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra12: soctherm: use global chipid variable
Diwakar Tundlam [Mon, 28 Oct 2013 21:52:50 +0000]
arm: tegra12: soctherm: use global chipid variable

Bug 1342361

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

5 years agoARM: tegra12: clock: Add SDMMC clocks for DDR mode
Alex Frid [Wed, 18 Sep 2013 22:16:12 +0000]
ARM: tegra12: clock: Add SDMMC clocks for DDR mode

Defined separate SDMMC clocks for DDR mode. They are associated with
the same physical clock controls as HS200 and SDR104 mode clocks but
have different max clock limits, and no voltage dependency.

Updated SDMMC dvfs tables in HS200/SDR104 mode.

Bug 1372817
Bug 1371250

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

5 years agoARM: tegra: dvfs: Allow GPIO # 0 for DFLL PWM control
Alex Frid [Sun, 3 Nov 2013 07:02:31 +0000]
ARM: tegra: dvfs: Allow GPIO # 0 for DFLL PWM control

Zero is a valid GPIO number. No need to bail out when GPIO # 0 is
specified as DFLL PWM buffer control. Also no need to request GPIO
for direct one-wire PWM configuration. Respectively updated CL-DVFS
initialization.

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

5 years agoARM: tegra: dvfs: Fix DFLL undershoot guard-band
Alex Frid [Sun, 3 Nov 2013 06:24:03 +0000]
ARM: tegra: dvfs: Fix DFLL undershoot guard-band

Fixed output voltage mapping for DFLL undershoot guard-band
calculation in PWM mode.

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

5 years agoARM: tegra: dvfs: Add deferred override option
Alex Frid [Wed, 30 Oct 2013 20:38:19 +0000]
ARM: tegra: dvfs: Add deferred override option

Added an option to defer aggregation of module peak voltage into core
override floor after DVFS initialization. This way the peak voltage can
be determined based on board specific maximum rate rather than using
maximum chip capability. Provided interface to specify deferred maximum
rates, and platform specific call-back to adjust DVFS tables (when
necessary) after final override floor is resolved. Override floor is
reported equal to nominal voltage (i.e., zero override range) until
all deferred limits are known.

Bug 1372817

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

5 years agovideo: tegra: host: Fix deferred ELPG enable
Arto Merilainen [Thu, 31 Oct 2013 15:51:00 +0000]
video: tegra: host: Fix deferred ELPG enable

Deferred ELPG enable has effectively been broken. The variable
elpg_enable_allow has never been cleared and hence ELPG has always
been instantaneous operation.

This patch also accounts few issues related to deferred ELPG enabling:
- The reference count has not been balanced if we enable ELPG in
deferred fashion. This may cause ELPG to be leaved on when it should
be turned off
- Locking has not been proper in deferred ELPG enablement. This patch
modifies the code so that we don't unnecessarily release the lock
when enabling ELPG.
- We give a warning if something suspicious occurs while enabling/
disabling ELPG (i.e. disable call does not lead to actually disabling
ELPG)

Bug 1398567

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

5 years agovideo: tegra: host: podgov: Scaling turns on dev
Arto Merilainen [Fri, 1 Nov 2013 09:35:53 +0000]
video: tegra: host: podgov: Scaling turns on dev

podgov exposes different scaling schemes. Only the most common
scheme, scaling based on busy/idle events, had proper module_busy
and module_idle guaranteed. Userspace and framerate based policies
did not explicitly enable device and this may have lead to usage of
hardware when it is not powered.

Change-Id: If882765d3d07e4d64d16942e247c9863f7597840
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/323996
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: Handle GPCPLL sliding timeout
Alex Frid [Sat, 2 Nov 2013 06:34:35 +0000]
video: tegra: host: Handle GPCPLL sliding timeout

Added 500us timeout for GPCPLL sliding. Fall back to pll re-locking
under bypass if timeout is detected.

Bug 1399520

Change-Id: I1dd98caaa8cb4d67cace86a610f350be90aa14f7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/325904
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: gk20a: defered mmu fault handling
Mayank Kaushik [Mon, 28 Oct 2013 21:30:45 +0000]
video: tegra: gk20a: defered mmu fault handling

When an SM debugger is attached and MMU debug mode is enabled,
the TEX unit will send a TRAP token to the SM when an MMU fault
is hit due to GPC. The SM debugger can then allow a user to
examine SM state.

To make this possible, the driver must not clean up the channel and
must not reset GR when an MMU fault is hit and an SM debugger is
detected. The GR reset must be marked pending and performed the first
time any channel is being freed, else the channel free hangs.

Bug 1387153

Change-Id: I982081924295cbf620e05b45ef2fb2c0fac18a70
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/305104
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: dc: check powergate for reg dump
Jong Kim [Thu, 31 Oct 2013 22:47:24 +0000]
video: tegra: dc: check powergate for reg dump

Check powergate before dumping registers.
If power is gated, then quietly return without dumping ady regs.

bug 1396823

Change-Id: Icc8077c48e28fec455b208f061e214dfae0d06fe
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/323688
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: Regops whitelist & locking fix
Mayank Kaushik [Tue, 29 Oct 2013 15:44:20 +0000]
video: tegra: host: Regops whitelist & locking fix

regops: Add PFIFO_MMU_FAULT_ID and PTIMER_TIME_(0|1) to the global regops whitelist
Also, check the session type before deciding whether to take the gpu's debug session
lock or the per-channel debug session lock, since the profiler session can be used
without a channel.

Change-Id: I9905c2728f003f2b2247491e353e13cef753505a
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Reviewed-on: http://git-master/r/305106
Reviewed-by: Geoffrey Gerfin <ggerfin@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: Do not lock when enabling GPU
Terje Bergstrom [Thu, 31 Oct 2013 07:43:55 +0000]
video: tegra: host: Do not lock when enabling GPU

Do not lock nvhost power management when enabling GPU. Locking can
result in a deadlock, and runtime PM takes care of the concurrency.

Bug 1392583

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

5 years agovideo: tegra: host: Wait for jobs to be freed
Terje Bergstrom [Fri, 1 Nov 2013 09:20:06 +0000]
video: tegra: host: Wait for jobs to be freed

Wait for all jobs in channel to be freed before closing the channel.

Bug 1388078

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

5 years agovideo: tegra: host: move vi_set_la() to tegra_vi.c
Bryan Wu [Thu, 31 Oct 2013 19:18:40 +0000]
video: tegra: host: move vi_set_la() to tegra_vi.c

vi_set_la() in vi.c makes vi.c can't be built as a module. So move it
to tegra_vi.c which will always built in. And add a static mutex lock
for bandwidth operation in tegra_vi.c after removing struct vi_lock.

Bug 1349044

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

5 years agomedia: tegra v4l2 camera: refactor driver code
Bryan Wu [Tue, 8 Oct 2013 22:39:41 +0000]
media: tegra v4l2 camera: refactor driver code

Reconstruct the driver for Tegra V4L2 camera driver:
 - remove old driver file tegra_v4l2_camera.c
 - create driver file vi.c for VI/CSI (T20/T30/T114/T148)
 - create driver file vi2.c for VI2/CSI2 (T124)

Bug 1377330

Change-Id: If030cf98e700b9201caa60328be822bc10610e74
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/289329
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

5 years agoARM: tegra: loki: set HDMI GPIO for loki ffd
Ray Poudrier [Wed, 23 Oct 2013 11:31:45 +0000]
ARM: tegra: loki: set HDMI GPIO for loki ffd

Loki FFD had the HDMI enable GPIO moved.
Update pinmux and regulators based on board id

Bug 1373526

Change-Id: I0f95176aeffff47533dbff6edcb2ca4f818ca7c3
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Signed-off-by: siddardha naraharisetti <siddardhan@nvidia.com>
Reviewed-on: http://git-master/r/302809
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: Check error code in gr init
Terje Bergstrom [Thu, 31 Oct 2013 12:27:30 +0000]
video: tegra: host: Check error code in gr init

Check error code in gr init, and if one of the steps fail, do not
resume but pass the failure upwards.

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

5 years agomedia: platform: tegra: imx135: fix fuse ID read
Phil Breczinski [Fri, 1 Nov 2013 01:28:34 +0000]
media: platform: tegra: imx135: fix fuse ID read

Corrects a typo that broke the fuse ID read function.

Bug 1399462

Change-Id: I71a3ee7f75e2743c9c5f82b0305da9029a90df4a
Signed-off-by: Phil Breczinski <pbreczinski@nvidia.com>
Reviewed-on: http://git-master/r/323730
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: Tegra12: Clocks: Update PROD values for PLLC2 and PLLC3
Krishna Sitaraman [Tue, 29 Oct 2013 20:44:13 +0000]
ARM: Tegra12: Clocks: Update PROD values for PLLC2 and PLLC3

Update KB, FRM and HYST settings for PLLCX

Bug 1339555

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

5 years agoARM: tegra: mc: Make MC PM code use MC IO accessors
Alex Waterman [Wed, 30 Oct 2013 18:47:28 +0000]
ARM: tegra: mc: Make MC PM code use MC IO accessors

Instead of using readl()/writel() now use the MC versions
of these macros.

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

5 years agoARM: tegra: mc: Add __raw read/write IO accessors
Alex Waterman [Wed, 30 Oct 2013 18:35:29 +0000]
ARM: tegra: mc: Add __raw read/write IO accessors

Add MC specific __raw readl/writel IO access macros to
speed up accesses that don't need synchronization.

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

5 years agoARM: tegra: mc: move common code to mc.c
Alex Waterman [Wed, 30 Oct 2013 18:03:23 +0000]
ARM: tegra: mc: move common code to mc.c

o Move the PM related code in common-t3.c to mc.c and
  remove the old common-t3.c file. This is MC specific
  code and as such it should live in the mc.c file which
  is already common to all Tegra3 and beyond chips.

o Also remove some dead code that was sitting around for
  tegra 2x platforms.

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

5 years agoARM: tegra: mc: Move defs around
Alex Waterman [Fri, 25 Oct 2013 21:13:23 +0000]
ARM: tegra: mc: Move defs around

Moves some definitions around to better support
multiple mc sub-drivers.

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

5 years agoarm:tegra:loki:update hdmi drive_current settings
siddardha naraharisetti [Wed, 30 Oct 2013 20:43:40 +0000]
arm:tegra:loki:update hdmi drive_current settings

Update hdmi drive_current settings for loki nff

Bug 1353322

Change-Id: I8920e7edfdd90228ec3c892170011536b6d002b3
Reviewed-on: http://git-master/r/309761
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Siddardha Naraharisetti <siddardhan@nvidia.com>
Tested-by: Siddardha Naraharisetti <siddardhan@nvidia.com>
Reviewed-by: Tao Xie <txie@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: ardbeg: enable soc_camera support
Bryan Wu [Fri, 4 Oct 2013 01:08:56 +0000]
ARM: tegra: ardbeg: enable soc_camera support

Introduce soc_camera_platform device as a pseudo device for our
VI2/CSI2 test pattern generator.

Bug 1377330

Change-Id: Iaba2083e5fadee5cbe23d88109b10ae56c531972
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/289330
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

5 years agoarm: tegra: do not read cntfrq register
Bo Yan [Fri, 1 Nov 2013 05:17:06 +0000]
arm: tegra: do not read cntfrq register

cntfrq register is not initialized, reading from it returns garbage
value. instead, just call the measurement function
tegra_clk_measure_input_freq, which returns the same frequency.

Change-Id: If2229808686dae76bb92088b4e6540c979b7643f
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/323826
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit

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

Feature applicable only for one-shot.

Bug 1381539

Change-Id: I07c5fb8b6ce1a4cad2ea4d11ebad0d363840e648
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/310051
Tested-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: host: implement priority for gk20a
Kirill Artamonov [Thu, 31 Oct 2013 12:59:16 +0000]
video: tegra: host: implement priority for gk20a

Enable NVHOST_IOCTL_CHANNEL_SET_PRIORITY interface.

Change channel timeslices to manipulate scheduling.

bug 813676

Change-Id: Ie3696de3689cb01277cab77a49f79ca4c99fbf7b
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>

5 years agoRevert "video: tegra: host: Wait for jobs to be freed"
Terje Bergstrom [Fri, 1 Nov 2013 12:42:48 +0000]
Revert "video: tegra: host: Wait for jobs to be freed"

This reverts commit 227286c775d6fbeeeea11acd330dad9dc78465d8.

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

5 years agoRevert "video: tegra: host: Wait for jobs to be freed"
Terje Bergstrom [Fri, 1 Nov 2013 12:35:15 +0000]
Revert "video: tegra: host: Wait for jobs to be freed"

This reverts commit 227286c775d6fbeeeea11acd330dad9dc78465d8.

Change-Id: Ibe2a0f26380aab21ced99d12a0d9c31d70a6456b

5 years agovideo: tegra: host: Wait for jobs to be freed
Terje Bergstrom [Fri, 1 Nov 2013 09:20:06 +0000]
video: tegra: host: Wait for jobs to be freed

Wait for all jobs in channel to be freed before closing the channel.

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

5 years agoEDP: add event tracing for dynamic capping
Timo Alho [Wed, 30 Oct 2013 09:37:49 +0000]
EDP: add event tracing for dynamic capping

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

5 years agovideo: tegra: host: use dma APIs in gr3d.c
Deepak Nibade [Thu, 24 Oct 2013 09:04:38 +0000]
video: tegra: host: use dma APIs in gr3d.c

Use dma_alloc_*/dma_free_* APIs in gr3d.c for
function nvhost_3dctx_alloc_common()

Bug 1380147

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

5 years agovideo: tegra: host: Keep GPU busy during jobs
Terje Bergstrom [Thu, 31 Oct 2013 19:25:00 +0000]
video: tegra: host: Keep GPU busy during jobs

Call runtime PM to keep GPU busy when there's a job running.

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

5 years agoARM: tegra: ahb: Fix PROD settings value conflict.
vinodg [Thu, 31 Oct 2013 01:32:42 +0000]
ARM: tegra: ahb: Fix PROD settings value conflict.

Enable EN_USB_WAIT_COMMIT_ON_1K_STALL (bit 9) and
WR_WAIT_COMMIT_ON_1K (bit 8) in AHB_GIZMO_AHB_MEM_0
register. This is added because current defaults have
mismatch with T124 Production setting values.

bug 1347007

Change-Id: Ia16e9c5e559b85ba748148034b5427bb259c1ee0
Signed-off-by: vinodg <vinodg@nvidia.com>
Reviewed-on: http://git-master/r/309869
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: host: gk20a: Add refcounting to vm
Arto Merilainen [Wed, 30 Oct 2013 13:12:11 +0000]
video: tegra: host: gk20a: Add refcounting to vm

We used to release vm immediately after as_share was destroyed.
Usually all hw operations have been finished this point, however, in
rare cases we may not have processed completion of all work on the
hardware.

This patch adds reference counting to vm. We currently take reference
each time we create a vm and make a submit using the vm. Reference is
dropped after submit completion and when as_share releases the vm.

Bug 1374242

Change-Id: I473d1ca06bc883cf30f7da953ca30cd27c046daa
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/309636
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agomisc: tegra-baseband: take wakelock after remote wakeup
Neil Patel [Thu, 10 Oct 2013 00:31:19 +0000]
misc: tegra-baseband: take wakelock after remote wakeup

Take a wakelock after a remote wakeup event occurs. This is done to
help ensure we do not suspend before the upper layers can handle
incoming data.

Bug 1362837

Change-Id: I7dc4ee43e4443e9ac0635eac179427c2348238c8
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/289962
(cherry picked from commit 72fdcc5a7843bf952af79e3aa7020a962935cccb)
Reviewed-on: http://git-master/r/303523
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agocpufreq: don't allow governor limits to be changed when it is disabled
Viresh Kumar [Sat, 31 Aug 2013 12:23:40 +0000]
cpufreq: don't allow governor limits to be changed when it is disabled

__cpufreq_governor() returns with -EBUSY when governor is already
stopped and we try to stop it again, but when it is stopped we must
not allow calls to CPUFREQ_GOV_LIMITS event as well.

This patch adds this check in __cpufreq_governor().

Bug 1371564

Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit f73d39338444d9915c746403bd98b145ff9d2ba4)
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Change-Id: Iba25d40c8bc12d7030e60d35b0fa1a6042ebeacf
Reviewed-on: http://git-master/r/309652
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: Tegra: Fix PowerGate status logic
Bhavesh Parekh [Thu, 31 Oct 2013 06:45:22 +0000]
ARM: Tegra: Fix PowerGate status logic

In the code we are reading value of PMC_PWRGATE_TOGGLE in reg variable.
But loop was checking for status variable. Fix the same

Change-Id: If18bf9ddcb403b60f084dee2edf3980e06ff2e3b
Signed-off-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-on: http://git-master/r/309991
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>