5 years agopower: Prefer min over max for online cpus
Sai Gurrappadi [Mon, 21 Oct 2013 17:44:23 +0000]
power: Prefer min over max for online cpus

We prefered min_online_cpus over max_online_cpus if min > max.
min_wins is now true for online cpu PmQoS requests.

Bug 1270839

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

5 years agoRevert "video: tegra: host: add power domain for host1x"
Sridhar Lavu [Mon, 21 Oct 2013 17:01:50 +0000]
Revert "video: tegra: host: add power domain for host1x"

This reverts commit 674927b93952b919195a691c4226391007cfd026
since it is causing sanity failure for suspend sanity.

Bug 1384396 : original change
Bug 1392433 : sanity regression

Change-Id: I3647050c51ccc8c24eead2a234fae64a15d07599
Signed-off-by: Sridhar Lavu <slavu@nvidia.com>
Reverts-what-was-Reviewed-on: http://git-master/r/299959
Reviewed-on: http://git-master/r/301857
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoarm: tegra: remove unnecessary fuse header files
Shardar Shariff Md [Wed, 16 Oct 2013 06:36:20 +0000]
arm: tegra: remove unnecessary fuse header files

Removing unwanted fuse.h header inclusion

Bug 1380004

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

5 years agoarm: tegra: fuse: replace globals with functions
Shardar Shariff Md [Thu, 17 Oct 2013 06:48:18 +0000]
arm: tegra: fuse: replace globals with functions

Replace globals tegra_sku_id, tegra_chip_id &
tegra_bct_strapping with below functions
u32 tegra_get_sku_id(void);
u32 tegra_get_chip_id(void);
u32 tegra_get_bct_strapping(void);

Bug 1380004

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

5 years agoarm: t124: spi: Fix in setting RX_TAP_DELAY
Shardar Shariff Md [Mon, 21 Oct 2013 10:46:10 +0000]
arm: t124: spi: Fix in setting RX_TAP_DELAY

RX_TAP_DELAY should be set even if controller data(cdata)
as tap delay should be set depending on speed

Change-Id: Ia584be5c6bfd1e71166b4241ff127c22e1a7aeaf
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/301756
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: host: Fix compile warnings
Terje Bergstrom [Mon, 21 Oct 2013 10:12:34 +0000]
video: tegra: host: Fix compile warnings

Some "unsigned long"s were converted to u32. for_each_set_bit()
requires unsigned long, so convert some instanced back.

Fix how include files are included.

Forward declare nvhost_set_error_notifier.

Fix parameter to nvhost_memmgr_put() to be handle and not id.

Fix tracing to use %llx and casting to u64 to print dma_addr_t.

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

5 years agoarm: t124: spi: set rx tap delay
Shardar Shariff Md [Mon, 21 Oct 2013 10:33:56 +0000]
arm: t124: spi: set rx tap delay

Set rx tap delay as per characterisation data

Bug 1381154

Change-Id: Ic6faf9dea58e77e9624fdff2d4273e5bc806d898
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/301752
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoarm: t124: spi: Improve slew rate of SPI signals
Shardar Shariff Md [Mon, 21 Oct 2013 09:14:21 +0000]
arm: t124: spi: Improve slew rate of SPI signals

As per characterisation data set pad groups
AT2, UAD, UAA with below settings
0x70000874 = 0x03f37000
0x70000924 = 0xf1717000
0x700008B8 = 0xf1717000

Bug 1381154

Change-Id: Ic2580a51c40f68e7875b6158668c7c10faad66d4
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/301723
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agovideo: tegra: host: add power domain for host1x
Prashant Gaikwad [Mon, 7 Oct 2013 10:29:07 +0000]
video: tegra: host: add power domain for host1x

If we enter LP0 from cpuidle all the context of host1x will
be reset as VDD_CORE is turned off in LP0.

Use generic power domain to save and restore the context of
host1x. If host1x is runtime suspended for 2s then it will
get suspended and context is saved. If some request or remote
weakeup is received for it then it is restored.

Bug 1384396

Change-Id: I6313ee49287379820b4f936c0d7cb8433934ce2c
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/299959
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoregulator: fixed: enable regulator if it is always on
Laxman Dewangan [Tue, 8 Oct 2013 12:55:48 +0000]
regulator: fixed: enable regulator if it is always on

If regulator is always ON then make sure it is enabled
at the time of registration.

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

5 years agoRevert "arm: tegra: update iso efficiency calculation"
Terje Bergstrom [Mon, 21 Oct 2013 06:55:49 +0000]
Revert "arm: tegra: update iso efficiency calculation"

Bug 1392092

This reverts commit 8d82e31458712d16b5a8ad4cd31072d4e1daa288.

Change-Id: Id6036b116620314d6fccbe309f2f293c6806caa3
Reviewed-on: http://git-master/r/301669
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra12x: iomap: Fix NOR size
Ashwin Joshi [Fri, 11 Oct 2013 10:11:25 +0000]
arm: tegra12x: iomap: Fix NOR size

Make Tegra NOR size configurable since different Automotive boards have
different NOR sizes and that needs to be mapped by the kernel.

Bug 1386803
Bug 1373849

Change-Id: Ib2dca855a5eb23c484c054772227cb2a3d562a49
Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-on: http://git-master/r/301681
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agopower: bq2419x: Export sysfs node to set output current
Darbha Sriharsha [Tue, 15 Oct 2013 14:22:21 +0000]
power: bq2419x: Export sysfs node to set output current

Export sysfs node to set the output charging current
value.

Bug 1385836

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

5 years agopower: bq2419x: Restart charging after charge complete
Darbha Sriharsha [Fri, 4 Oct 2013 13:42:21 +0000]
power: bq2419x: Restart charging after charge complete

Add support for restart of charging a certain time interval
after the charging complete interrupt is generated.

Bug 1354923

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

5 years agopower: bq2419x: Provided low batt voltage notification
Darbha Sriharsha [Fri, 4 Oct 2013 12:06:17 +0000]
power: bq2419x: Provided low batt voltage notification

Print the low battery voltage notification in the interrupt
service bq2419x interrupt service routine.

Bug 1354813

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

5 years agoarm: tegra: Pass irq number to bq2419x charger
Darbha Sriharsha [Fri, 4 Oct 2013 11:36:58 +0000]
arm: tegra: Pass irq number to bq2419x charger

Pass interrupt number through device tree file
to bq2419x charger driver on TN8 platform.

Bug 1354813

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

5 years agoarm: tegra: Transfer bq2419x platform data to DT
Darbha Sriharsha [Mon, 30 Sep 2013 06:14:27 +0000]
arm: tegra: Transfer bq2419x platform data to DT

Remove bq2419x platform data from the board file
and add it to the devicr tree files for tn8.

Bug 1375730
Bug 1367264

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

5 years agopower: bq2419x: Add device tree support
Darbha Sriharsha [Wed, 25 Sep 2013 07:18:37 +0000]
power: bq2419x: Add device tree support

Add device tree parsing support in bq2419x battery charger driver

Bug 1367264

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

5 years agovideo: tegra: host: gk20a: split pmu init
Prashant Malani [Sat, 28 Sep 2013 22:34:57 +0000]
video: tegra: host: gk20a: split pmu init

Split pmu init into two parts. One before, and one
after graphics init. This way, we don't have to waste
time waiting on the first wait queue, which consumes
a lot of time.

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

5 years agovideo: tegra: host: Register gk20a for touch boost
Terje Bergstrom [Wed, 9 Oct 2013 12:22:53 +0000]
video: tegra: host: Register gk20a for touch boost

Register gk20a device to be notifier on touch event.

Bug 1364240

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

5 years agoPM / Domains: Check if device wants to wake up
Terje Bergstrom [Wed, 9 Oct 2013 12:22:02 +0000]
PM / Domains: Check if device wants to wake up

If a a define is marked as "NO_POWER_OFF", and it's suspended, wake
it up.

Bug 1364240

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

5 years agoPM / QoS: Add notifier for flags
Terje Bergstrom [Wed, 9 Oct 2013 12:21:42 +0000]
PM / QoS: Add notifier for flags

dev_pm_qos has a notifier for DEV_PM_QOS_LATENCY. Add a similar
notifier for DEV_PM_QOS_FLAGS.

Bug 1364240

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

5 years agoinput: cfboost: Add GPU wake-up
Terje Bergstrom [Wed, 9 Oct 2013 10:14:49 +0000]
input: cfboost: Add GPU wake-up

Add interface for registering a GPU device. Whenever touch event is
received, ask the domain not to be powered off.

Bug 1364240

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

5 years agoPM / QoS: add dev_pm_qos_update_request_timeout()
Terje Bergstrom [Wed, 9 Oct 2013 08:33:38 +0000]
PM / QoS: add dev_pm_qos_update_request_timeout()

Add dev_pm_qos_update_request_timeout() that works in the same way as
pm_qos_request_timeout().

Bug 1364240

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

5 years agoinput-cfboost: use RT kthread for PM QoS request
Yogish Kulkarni [Tue, 5 Feb 2013 12:01:08 +0000]
input-cfboost: use RT kthread for PM QoS request

It has been observed that input drivers worker thread gets scheduled
before boost worker thread, specifically in case of Raydium touch.
The delayed scheduling of boost works adds to first touch latency
when cpu is idle and running at lower clock rate. Hence use RT
kthread for fast scheduling of boost work. Thread Priority is set to
MAX_RT_PRIO-10 so that the highest RT priority level is left for
EMC DVFS.

Bug 1245419
Bug 1229219
Bug 1364240

Change-Id: I342161532a7b8407d1ecfad29710e13a47331bff
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/249716
(cherry picked from commit 851e0df306161be573b1a94c6eb3fdfdb5107167)
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/288807
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: host: Fix deadlock in rl update
Arto Merilainen [Thu, 17 Oct 2013 14:37:27 +0000]
video: tegra: host: Fix deadlock in rl update

Engine recovery was initiated if the runlist update failed. The
recovery is performed in asynchronous fashion and it accesses runlist
data structures that are protected by runlist lock. Runlist update routine,
however, did not release lock at this point and therefore it effectively
caused deadlock.

This patch makes the runlist routine to release the mutex if it needs to
initiate engine recovery

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

5 years agovideo: tegra: host: gk20a: Don't wait timedout ch
Arto Merilainen [Thu, 17 Oct 2013 14:34:07 +0000]
video: tegra: host: gk20a: Don't wait timedout ch

gk20a channel finish used to always wait until the channel has done all
syncpoint increments. However, if the channel has timeouted, it surely
will not make those increments. This patch modifies channel finish to
skip syncpoint wait if the channel has timeouted.

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

5 years agovideo: tegra: host: SM faults trigger recovery
Arto Merilainen [Thu, 17 Oct 2013 13:11:48 +0000]
video: tegra: host: SM faults trigger recovery

We used to ignore SM faults when debugger was not attached. This
patch makes us now to correctly trigger channel recovery routine.

Bug 1334322

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

5 years agovideo: tegra: host: gk20a: Recover GR on faults
Arto Merilainen [Tue, 15 Oct 2013 10:36:14 +0000]
video: tegra: host: gk20a: Recover GR on faults

GR faults used to trigger channel free which is illegal operation
inside (threaded) ISR. Channel free requires pre-emption of a
channel and given that operation likely will fail if GR already
has generated an interrupt.

This patch modifies the code to trigger GR recovery in exceptions.

Bug 1334322

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

5 years agovideo: tegra: host: gk20a: Imm TLB invalidation
Arto Merilainen [Thu, 17 Oct 2013 13:03:35 +0000]
video: tegra: host: gk20a: Imm TLB invalidation

PMU assumes that the pages that it requests to be mapped are available
immediately. However, we currently postpone TLB invalidation to channel
submission and therefore the hw may end up accessing the pages
before the TLB contains the pages.

This patch adds TLB invalidation when we are mapping memory to non-
existent address space (i.e. pmu and fecs memory).

Bug 1334322

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

5 years agovideo: tegra: host: gk20a: Add FECS debug dump
Arto Merilainen [Fri, 18 Oct 2013 13:04:21 +0000]
video: tegra: host: gk20a: Add FECS debug dump

We currently do not have good diagnostic tools for FECS. This patch
adds a debug dump to FECS so that we print some useful registers of
FECS when
1) we get chsw error or
2) PMU dump is performed (PMU crashes)

Bug 1369878

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

5 years agoRevert "usb: gadget: tegra: Updates for 3.6"
Rohith Seelaboyina [Tue, 15 Oct 2013 08:51:59 +0000]
Revert "usb: gadget: tegra: Updates for 3.6"

This reverts commit 7be795c532fd0b699978638bc68cc28d96882802.
udc->transceiver should be NULL in case otg failed
to register, this avoids unnecessary checks and
improves the reability of the code.

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

5 years agoARM: tegra: dalmore: Add vdd_lcd_bl disable delay
Vineel Kumar Reddy Kovvuri [Fri, 4 Oct 2013 09:14:06 +0000]
ARM: tegra: dalmore: Add vdd_lcd_bl disable delay

Adds delay for vdd_lcd_bl regulator to fix unexcepted
behaviours during quick disable and enable cycle.

Bug 1346985

Change-Id: I1e31c6ea5cac6c8fa9d15d6f961a45fc75281578
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/288743
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoregulator: core: introduce regulator disable time
Laxman Dewangan [Mon, 21 Oct 2013 07:02:58 +0000]
regulator: core: introduce regulator disable time

It is observed that some regulators do not get re-enabled without
waiting for the duration of disable time to completely turn off
Introduce the regulator disable time to make sure regulators are
disabled before enabling it.

Bug 1346985

Change-Id: I0bfff8f32dab7986ffab901b735fad6b4ec79c6f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/288742

5 years agovideo: tegra: host: gk20a: protect elpg debugfs
Prashant Malani [Mon, 14 Oct 2013 18:46:08 +0000]
video: tegra: host: gk20a: protect elpg debugfs

Protect a possible race on accessing of registers
in the elpg debugfs node by surrounding the access
with module_busy/module_idle calls.

Bug 1349649

Change-Id: If7fd544daf05b9298307f2b39bcd5c966d88f4e0
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/299038
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agovideo: tegra: host: Implement error notification
Kirill Artamonov [Thu, 10 Oct 2013 12:29:03 +0000]
video: tegra: host: Implement error notification

Implement interface to pass gk20a error notification
to userspace.

bug 1297417
bug 1232244

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

5 years agoARM: tegra: loki: enable clock debug init.
Jiejing Zhang [Thu, 17 Oct 2013 08:22:25 +0000]
ARM: tegra: loki: enable clock debug init.

Add late_init call to support clock debug init etc.

Change-Id: I9322c3354616384f508679600a2dbae0a5bb0032
Signed-off-by: Jiejing Zhang <jasozhang@nvidia.com>
Reviewed-on: http://git-master/r/300461
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra11: disable DEBUG_LL/EARLY_PRINTK in defconfig
Matt Craighead [Fri, 18 Oct 2013 20:54:44 +0000]
ARM: tegra11: disable DEBUG_LL/EARLY_PRINTK in defconfig

This seems to have gotten turned on erroneously as part of the
K3.10 transition, and is inconsistent with tegra12_defconfig.

Change-Id: Ia61bb7738bce6e056fa615c34e7fd2a75ac9c4af
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/301371
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

5 years agoARM: tegra: don't enable both SMC91X and SMSC911X
Matt Craighead [Fri, 18 Oct 2013 20:58:47 +0000]
ARM: tegra: don't enable both SMC91X and SMSC911X

Some defconfigs were enabling both, which could lead to strange
problems because they would both try to use the same IRQ.

Bug 1351589

Change-Id: I1f34711e18fb4f72b3c73b364324b53918fb44ce
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/301374
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm: tegra: change iso mgr efficiency for T114
Xue Dong [Wed, 16 Oct 2013 22:37:20 +0000]
arm: tegra: change iso mgr efficiency for T114

bug 1162232

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

5 years agoarm: tegra: update iso efficiency calculation
Xue Dong [Tue, 10 Sep 2013 01:48:31 +0000]
arm: tegra: update iso efficiency calculation

bug 1162232

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

5 years agoRevert "input: sensor: compass: Add sec-salve-id for compass"
Mitch Luban [Fri, 18 Oct 2013 23:38:10 +0000]
Revert "input: sensor: compass: Add sec-salve-id for compass"

This reverts commit 925b5913a6d7f1108ae8cbe0eb263bdf07bf1a3b.

Change-Id: Ie879e7cd77897497e32323e16b7004317e6f5163
Reviewed-on: http://git-master/r/301456
Tested-by: Mitch Luban <mluban@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: tegra: dalmore - Bruce modem platform data
Julien Vuillaumier [Fri, 18 Oct 2013 08:05:43 +0000]
arm: tegra: dalmore - Bruce modem platform data

Cold boot GPIO (MDM_COLDBOOT) IRQ handler to be declared as oneshot
for K3.10

Bug 1391146

Change-Id: I53539b35f31b50824126711eaa15b458dedcc8e3
Reviewed-on: http://git-master/r/301110
Reviewed-by: Steve Lin <stlin@nvidia.com>
Tested-by: Steve Lin <stlin@nvidia.com>

5 years agoarm: tegra12: soctherm: use high precision mode
Diwakar Tundlam [Mon, 14 Oct 2013 19:08:52 +0000]
arm: tegra12: soctherm: use high precision mode

Enabling high precision mode for T12x as it supports high precision
temperature sensing with 0.5C resolution of temperatures and 1C
resolution of thresholds.

Bug 1291108

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

5 years agoarm: tegra: skip carveout base and size prints
Krishna Reddy [Thu, 17 Oct 2013 21:10:56 +0000]
arm: tegra: skip carveout base and size prints

When NVMAP_USE_CMA_FOR_CARVOUT is enabled, don't print
carveout base and sizes as they are not known in board
specific files.
Bug 1279160

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

5 years agoinput: sensor: compass: Add sec-salve-id for compass
Xiaohui Tao [Tue, 17 Sep 2013 17:53:00 +0000]
input: sensor: compass: Add sec-salve-id for compass

Bug 1356943

Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/272840
Reviewed-on: http://git-master/r/273830
Reviewed-on: http://git-master/r/275874
(cherry picked from commit 9f42dfc3cda19db08aec5a01ed124789240c4970)
Reviewed-on: http://git-master/r/290021

Change-Id: I804f363ae38aad8c0f239dc9fa1800becd6f0f2e
Reviewed-on: http://git-master/r/300698
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoinclude: linux: nvmap: add carveout resize params
Vandana Salve [Thu, 17 Oct 2013 21:16:54 +0000]
include: linux: nvmap: add carveout resize params

Add cma chunk size and resize params in
nvmap_platform_carveout.
Prepare nvmap to support carveout resizing.

bug 1279160

Change-Id: I2fc201281a1a2b0b19ffa29d0912a5b2d1ade8af
Signed-off-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-on: http://git-master/r/300693
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agopower: PM QoS support for bounded constraints
Sai Gurrappadi [Tue, 1 Oct 2013 17:37:35 +0000]
power: PM QoS support for bounded constraints

Extended PM QoS to allow binding of two constraints. Bounded constraints
add the following functionality:

- Priority for min/max bound requests. Targets bounds are set
  to satisfy all priorities (intersection of all ranges). If it
  is not possible to do so, higher priorities prevail
- Timeouts for bound requests
- Userspace interface that exposes bound requests

PM QoS still supports its original kernelspace and userspace interfaces

Bug 1270839
Bug 1349096

Change-Id: Ic83444912b330fc71335d9a5b59077b1d16496bd
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/299037
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agopmqos: Replace spinlock with mutex for pm_qos_lock
Sai Gurrappadi [Tue, 1 Oct 2013 17:01:27 +0000]
pmqos: Replace spinlock with mutex for pm_qos_lock

Using a spinlock (taken with irqsave) meant that pm_qos_lock couldn't be
used to synchronize on the notifiers in order to ensure proper order of
the notifications. This is needed in case where there might be two near
simultaneous pmqos client requests for a bound on the same constraint;
the notifiers in pm_qos_update_target for the two clients could
potentially engage in a race.

Example:

Assume two requests are made (A, B with A coming first) for max cpufreq
and these are the only requests currently available.

Current behavior can result in:

notify(max_cpu_freq, minof(A, B))
notify(max_cpu_freq, minof(LONG_MAX, A))

Expected behavior:

notify(max_cpu_freq, minof(LONG_MAX, A))
notify(max_cpu_freq, minof(A, B))

Most of the PM QoS and Dev PM QoS requester clients were reviewed and
none of them were found to be calling pm_qos_add/update/remove request
from interrupt or atomic context since those calls include the blocking
notifier call which cannot be done in atomic context.

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

5 years agovideo: tegra: host: convert dmabuf to fd
Krishna Reddy [Thu, 17 Oct 2013 20:13:16 +0000]
video: tegra: host: convert dmabuf to fd

convert dmabuf to fd when handles are represented with
fd's.

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

5 years agovideo: tegra: dc: set syncpt max to N+1 in dc disable
Xue Dong [Thu, 17 Oct 2013 23:45:59 +0000]
video: tegra: dc: set syncpt max to N+1 in dc disable

bug 1388480

Change-Id: I7fc2c41e329651e0fbf3fbe8ee22755ad42b9da8
Signed-off-by: Xue Dong <xdong@nvidia.com>
Reviewed-on: http://git-master/r/300896
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: dvfs: Increase VDD_GPU safe step up
Alex Frid [Wed, 16 Oct 2013 20:49:34 +0000]
ARM: tegra12: dvfs: Increase VDD_GPU safe step up

Increased VDD_GPY safe step up to maximum voltage - effectively
removed any stepping up.

Bug 1387622

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

5 years agoARM: tegra12: dvfs: Increase VDD_CORE safe step up
Alex Frid [Wed, 16 Oct 2013 20:26:44 +0000]
ARM: tegra12: dvfs: Increase VDD_CORE safe step up

Increased VDD_CORE safe step up to maximum voltage - effectively
removed any stepping up.

Bug 1387622

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

5 years agoarm: tegra: loki: read wifi MAC address from file
Michael Hsu [Thu, 10 Oct 2013 02:06:33 +0000]
arm: tegra: loki: read wifi MAC address from file

Read wifi MAC address from factory partition (/mnt/factory).

Bug 1340767
Bug 1385793

Change-Id: I28095c4e6fc7ae9fdfe8c1df277715343a966082
Signed-off-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-on: http://git-master/r/299728
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

5 years agoARM: Tegra: Utilize burst policy for LP1 wakeup
Antti P Miettinen [Sun, 13 Oct 2013 19:52:35 +0000]
ARM: Tegra: Utilize burst policy for LP1 wakeup

Running SCLK from CLKS makes LP1 wakeup latencies horrible.
However, we can utilize IRQ bursting to switch automatically
to CLKM upon LP1 wakeup IRQ. This maintains low power for LP1
but improves wakeup latencies significantly.

Bug 1381343

Change-Id: I9a3fcd81999d1b593bf242bfa7ef8505f9848d43
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/298749
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoARM: tegra12: clock: Put PLLE under h/w control
Kaz Fukuoka [Tue, 1 Oct 2013 01:08:11 +0000]
ARM: tegra12: clock: Put PLLE under h/w control

Ported from Tegra11 change Ifa0621f2d3bb7c0f8f52a0f9947990b789e1241b

Change-Id: Ie954f38dd52f098cfcad7f99449662e1d23c1be2
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/298499
Reviewed-by: Chao Xu <cxu@nvidia.com>
Tested-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra: Clock: Clean up soc clock
Krishna Sitaraman [Fri, 4 Oct 2013 23:32:44 +0000]
ARM: Tegra: Clock: Clean up soc clock

set max freq of sclk to 408Mhz
set max freq of hclk to 408Mhz
set max freq of pclk to 204Mhz (half of hclk)
set max freq of cop to be same as sclk

Change-Id: Iff46067b215d79fba1b8c891b6c5ad2e32fdfa2a
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/299018
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoinput: touch: radyium: code drop v60.8
Xiaohui Tao [Wed, 9 Oct 2013 17:03:32 +0000]
input: touch: radyium: code drop v60.8

Fix potential deadlock
Add Loki panel support

Bug 1350878
Bug 1380477
Bug 1357654
Bug 1365494

Change-Id: I1b997217cab4abb3eb974230811e6df06588801b
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/290022
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoRevert "tty: serial: 8250: tegra fix spurious interrupts"
Edgardo Handal [Tue, 15 Oct 2013 19:40:56 +0000]
Revert "tty: serial: 8250: tegra fix spurious interrupts"

This reverts commit c131ba5b6169ae02c51c67e470df35e7ef71e21a.

Bug 1229695
Bug 1339412

Signed-off-by: Edgardo Handal <ehandal@nvidia.com>
Change-Id: I1ff590e58c82c7f4238e292fd6160502a8a8088c
Reviewed-on: http://git-master/r/299585
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>

5 years agoarm: tegra: disable PLLM in SoC idle state
Prashant Gaikwad [Wed, 16 Oct 2013 12:37:13 +0000]
arm: tegra: disable PLLM in SoC idle state

If EMC is clocked from PLLM then just gating EMC clock
does not save power. Hence in SoC idle state turn off PLLM
if it is ON. Assuming here is that if PLLM is on it is
set as source of EMC.

pllm_state = (pllp_override && pllp_override_en) || (~pllp_override && pllm_base)

Change-Id: I4c79d56f1869610257c26474ce02f20a894dfc58
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/300542
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoasoc: tegra: Enable ULP audio
Scott Peterson [Wed, 16 Oct 2013 22:16:57 +0000]
asoc: tegra: Enable ULP audio

Enable the ULP audio using AVP for
K3.10 kernel.

Bug 1389595
Bug 1388523

Change-Id: I81a4732a00891db177e1e3aed8c5be7382f55b96
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/300176
Reviewed-by: Manoj Gangwal <mgangwal@nvidia.com>
Tested-by: Manoj Gangwal <mgangwal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: t12x: Enable DEVSLP feature
venkatajagadish [Wed, 25 Sep 2013 07:21:08 +0000]
ARM: tegra: t12x: Enable DEVSLP feature

Bug 1309168

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

5 years agoARM: tegra12: ardbeg:put PEX pads into DPD mode
Terry Wang [Thu, 3 Oct 2013 10:35:52 +0000]
ARM: tegra12: ardbeg:put PEX pads into DPD mode

Put PCIE pads(PEX_CLK2,PEX_CLK1 and PEX_BISA) into DPD mode
to save additional power except Laguna.

Bug 1320273

Change-Id: I7ac54221223456cedb521483c414c0f95638b17c
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/298856
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: PINMUX: tegra12: Recover DPD status in resume
Terry Wang [Tue, 15 Oct 2013 04:00:49 +0000]
ARM: PINMUX: tegra12: Recover DPD status in resume

Save T124 DPD/DPD2 status before system enter sleep mode.
Recover T124 DPD/DPD2 status after system resume from sleep state.

bug 1320273

Change-Id: Ia3a4122a1b9fc6bf3639d4f35309f07787b07899
Signed-off-by: Terry Wang <terwang@nvidia.com>
Reviewed-on: http://git-master/r/298857
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoxhci: tegra: fix ACK/NACK mbox message processing
JC Kuo [Wed, 16 Oct 2013 10:47:41 +0000]
xhci: tegra: fix ACK/NACK mbox message processing

Driver should not write 0 to XUSB_CFG_ARU_MAILBOX_CMD register,
because clearing USB_CFG_ARU_MAILBOX_CMD_INT_EN bit means disabling
mailbox messaging from firmware's perspective.

bug 1389380

Change-Id: I7b9d860c3069ef0342066f5a1823a99d271c2ec8
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/299941
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoxhci: tegra: support loading xusb firmware from file
JC Kuo [Mon, 24 Jun 2013 12:19:31 +0000]
xhci: tegra: support loading xusb firmware from file

This commit add the capability of loading Tegra xusb firmware from
a firmware file in file system.

Two kernel module parameters provides the firmware loading flexibility.
1. "use_bootloader_firmware=Y" driver loads firmware from the
   bootloader carveout region.
2. "use_bootloader_firmware=N" driver loads firmware from the file
   specified by "firmware_file" parameter.

This example shows how to load firmware from /etc/firmware/xusb_sil_prod_fw

   insmod /system/lib/modules/xhci-hcd.ko use_bootloader_firmware=N firmware_file=xusb_sil_prod_fw

bug 1301430
bug 1381552

Change-Id: I7ff4a86ab56b2724d3a4d17f28fe048e6303b067
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/241457
(cherry picked from commit 12c6b61e6af9a2dbfc5d92fcb0032392ed88594b)
Signed-off-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/299351
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: t12x: Sata Lp0 related changes
venkatajagadish [Wed, 25 Sep 2013 07:16:45 +0000]
ARM: tegra: t12x: Sata Lp0 related changes

Bug 1357649

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

5 years agoARM: tegra: t12x: T124 specific changes for SATA
venkatajagadish [Fri, 30 Aug 2013 11:26:53 +0000]
ARM: tegra: t12x: T124 specific changes for SATA

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

5 years agovideo: tegra: dsi: Send panel commands from link 1
Vineel Kumar Reddy Kovvuri [Fri, 27 Sep 2013 11:38:17 +0000]
video: tegra: dsi: Send panel commands from link 1

Fix panel commands not being sent from DSI link 1
Bug 1373421

Change-Id: I2e1301fbfee4d2958dae5291619dc3463fe9a25e
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/299859
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoi2c: tegra: restore i2c after resume from LP0
Prashant Gaikwad [Fri, 18 Oct 2013 06:03:59 +0000]
i2c: tegra: restore i2c after resume from LP0

Add function to restore all i2c controllers after
resume from LP0. It will happen in idle thread where
irqs are disabled and it is expected that no one
would be using i2c device.

Bug 1254633

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

5 years agoARM: tegra12: Update audio config
Scott Peterson [Wed, 16 Oct 2013 00:00:06 +0000]
ARM: tegra12: Update audio config

Update the kernel config to add the
rt5639 and rt5640 codecs.

Change-Id: Id3ce337e4803db605e28211a52d4c8d042e9d353
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/299698
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agosound: pci: hda: fix runtime pm
Prashant Gaikwad [Wed, 16 Oct 2013 13:52:12 +0000]
sound: pci: hda: fix runtime pm

Instead of keeping runtime status as active get reference
and release when probe is finished.

Bug 1389404

Change-Id: I11b7744d5892419069b0c6db6f3dfe1908fce41d
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/300025
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Tested-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: add more stats to power domain summary
Prashant Gaikwad [Wed, 16 Oct 2013 11:09:11 +0000]
arm: tegra: add more stats to power domain summary

Add reference count and suspended time information
to domain sumary debug fs.

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

5 years agoARM: tegra: ardbeg: Unmask UHS modes for SD/SDIO
Pavan Kunapuli [Thu, 17 Oct 2013 09:56:38 +0000]
ARM: tegra: ardbeg: Unmask UHS modes for SD/SDIO

Enabling all UHS modes support for SD cards. For SDIO devices SDR12,
SDR25 UHS modes are unmasked.

Bug 1299485

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

5 years agommc: tegra: Clean up voltage switching code
Pavan Kunapuli [Thu, 17 Oct 2013 09:37:47 +0000]
mmc: tegra: Clean up voltage switching code

Disabling and re-enabling card clock before and after voltage switching
is now handled in the mmc core driver. The settling time after
voltage switch is also handled by the mmc driver. Removing the
redundant code from the voltage switching implementation in the sdhci
tegra driver.

Bug 1299485

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

5 years agommc: core: Keep host clk ON during voltage switch
Pavan Kunapuli [Thu, 17 Oct 2013 09:29:44 +0000]
mmc: core: Keep host clk ON during voltage switch

Adding option to skip host clock gating while switching signal voltage
to 1.8V during a UHS card enumeration. The specification mentions that
only card clock has to be disabled during voltage switching.

Bug 1299485

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

5 years agomedia: platform : tegra: change focuser char
Amey Asgaonkar [Tue, 8 Oct 2013 23:26:43 +0000]
media: platform : tegra: change focuser char

change char of focuser dw9718 by modifing the settle time
and slew rate.

Bug 1329980

Change-Id: I7068e11b7a9980746f92a30d1210de82407a8ae7
Signed-off-by: Amey Asgaonkar <aasgaonkar@nvidia.com>
Reviewed-on: http://git-master/r/300191
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Ruicheng Dai <rdai@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoclocksource: tegra: Disable for wakeup timers for non-smp platforms
Ajay Nandakumar [Thu, 17 Oct 2013 13:57:12 +0000]
clocksource: tegra: Disable for wakeup timers for non-smp platforms

Disabling wakeup timers for non-smp platforms

Change-Id: Ie309a9157440795c82cfb525316d24036ee57191
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/300614
Reviewed-by: Matt Craighead <mcraighead@nvidia.com>
Tested-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoAsoc: tegra: rt5639/40: Fix edp manager issue
Manoj Gangwal [Fri, 11 Oct 2013 14:18:06 +0000]
Asoc: tegra: rt5639/40: Fix edp manager issue

Handle the case when edp manager is not
present.

Bug 1383175

Change-Id: Iaa9e691836c4644ecf5cfafcfcafddee839c3161
Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-on: http://git-master/r/289880
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovcm30t124: add config file
Daniel Kionka [Mon, 14 Oct 2013 17:48:44 +0000]
vcm30t124: add config file

Copied from tegra_vcm30-t124_gnu_linux_defconfig.
Part of transition from vcm30-t124 vcm30t124.

Bug 1371825

Change-Id: I0798c8a1a44983a6e7bf283266befb1d06d68298
Signed-off-by: Daniel Kionka <dkionka@nvidia.com>
Reviewed-on: http://git-master/r/299080
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: David Gorgen <dgorgen@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Ashwin Joshi <asjoshi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: tegra: vcm3.0: t124: Add panel file
Raghavendra VK [Thu, 3 Oct 2013 06:24:26 +0000]
arm: tegra: vcm3.0: t124: Add panel file

- Register host, nvmap and AVP devices.
- Register eDP, HDMI displays. eDP is not functionally tested. Only HDMI
  is intended to be used.
- Power on GK20A (VDD_GPU)

bug 1373849

Change-Id: I979b6fdbbfbcf474b7644533d531c90759a0cd2b
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/289691
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: vcm30_t124: Disable DP
Raghavendra VK [Thu, 10 Oct 2013 08:47:02 +0000]
ARM: tegra: vcm30_t124: Disable DP

bug 1373849

Change-Id: Id9a898d1a0aad8de8bc61383c9d5a0dba444f091
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/289692
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: soc_camera_platform: add dev_priv field
Bryan Wu [Tue, 8 Oct 2013 22:36:33 +0000]
media: soc_camera_platform: add dev_priv field

.priv field is used by Tegra V4L2 SoC camera driver, so introduce
a new field named .dev_priv.

Bug 1377330

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

5 years agovideo: tegra: dp: Update DP MSA on modeset
Daniel Solomon [Tue, 15 Oct 2013 20:30:16 +0000]
video: tegra: dp: Update DP MSA on modeset

Update SOR registers from which DP main stream
attribute data is derived when a DC modeset
has occurred.

Change-Id: Ica53d4908eb56cbbce964342986164fc9b8d9543
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/300069
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: dc: add modeset notifier
Daniel Solomon [Thu, 17 Oct 2013 00:24:46 +0000]
video: tegra: dc: add modeset notifier

Add out_ops operation to notify the interface layer
of when a modeset has occurred.

Change-Id: Id39b6a1e80a8bd6fbce09b159213423c9a864038
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/300068
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: soctherm: keep soc therm clk always on
Seema Khowala [Thu, 17 Oct 2013 00:21:10 +0000]
arm: tegra: soctherm: keep soc therm clk always on

Bug 1367985

Change-Id: I845ea2645d6aefc13717edec43472f34e39140b5
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/300241
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoRevert "input: sensor: compass: Add sec-salve-id for compass"
Sridhar Lavu [Thu, 17 Oct 2013 18:17:27 +0000]
Revert "input: sensor: compass: Add sec-salve-id for compass"

This reverts commit a5d457ed40342736b059ab66e68839d9b901df6c
since this may be causing sanity regressions.

Bug 1356943 - original change
Bug 1390642 - sanity regression

Change-Id: I40a9ff951ebb81df6f3e44603e2f34097fa653d0
Signed-off-by: Sridhar Lavu <slavu@nvidia.com>
Reverts-what-was-Reviewed-on: http://git-master/r/290021
Reviewed-on: http://git-master/r/300656
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agotegra: dc: providing default lcd rotation
Vladislav Sahnovich [Tue, 24 Sep 2013 01:36:07 +0000]
tegra: dc: providing default lcd rotation

Allow support for default panel rotation.

Bug 1323602.

Change-Id: I55169442afe89331bc61a18c995aa567ca90ff2e
Signed-off-by: Vladislav Sahnovich <vsahnovich@nvidia.com>
Reviewed-on: http://git-master/r/300690
Tested-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: TN8: Add mt9m114 sensor support
David Wang [Tue, 1 Oct 2013 19:29:51 +0000]
ARM: tegra: TN8: Add mt9m114 sensor support

Add SOC1040 (mt9m114) YUV sensor board file
support.

bug 1364405

Change-Id: Ib778467f96fa77f376cad2c127cd9e9763955e3f
Signed-off-by: David Wang <davidw@nvidia.com>
Reviewed-on: http://git-master/r/282824
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: clock: Add gbus edp capping clock
Alex Frid [Wed, 16 Oct 2013 05:58:47 +0000]
ARM: tegra12: clock: Add gbus edp capping clock

Bug 1307919

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

5 years agoARM: tegra12: ardbeg: Support E1767 PMIC module prototype
Alex Frid [Tue, 15 Oct 2013 07:21:32 +0000]
ARM: tegra12: ardbeg: Support E1767 PMIC module prototype

Added support for E1767 PMIC module prototype based on E1735 module
with sku 1001 (E1735 module itself has sku 1000). Major difference:
PWM 1-wire regulator with external buffer is replaced with directly
connected regulator.

Bug 1349163

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

5 years agoARM: tegra: power: Don't change mode of uninitialized DFLL
Alex Frid [Tue, 15 Oct 2013 01:37:13 +0000]
ARM: tegra: power: Don't change mode of uninitialized DFLL

If DFLL has not initialized, yet, or initialization failed:
- do not change DFLL mode from sysfs callback
- do not resume DFLL bypass mode after CPU rail gating/cluster switch

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

5 years agovideo: tegra: nvmap: don't get handle that has ref count as zero
Krishna Reddy [Wed, 16 Oct 2013 20:51:01 +0000]
video: tegra: nvmap: don't get handle that has ref count as zero

Don't get handle that has ref count as zero. This is necessary to
avoid dmabuf NULL issue during nvmap_duplicate_handle_id based on id.
Bug 1389719

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

5 years agoarm: tegra: build only one tegra*_la.c file
Matt Craighead [Mon, 14 Oct 2013 20:24:54 +0000]
arm: tegra: build only one tegra*_la.c file

This slightly reduces the kernel's size and build time and is
more consistent with how other files are handled in the makefile.

Bug 1351594

Change-Id: I087263f0e1d9afa1fa844a337b1823ddc8cbfa80
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/299058
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>

5 years agoarm: tegra: T124 DIS and VE powergate dependency
Pablo Ceballos [Wed, 9 Oct 2013 21:01:48 +0000]
arm: tegra: T124 DIS and VE powergate dependency

The DIS partition cannot be powergated without the VE partition first
being powergated. Implement this dependency using the ref-counts.

Bug 1310335
Bug 1350333

Change-Id: I4686816260e7e966635dc4786d07d7d390254c59
Signed-off-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-on: http://git-master/r/288574
Reviewed-on: http://git-master/r/298773
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: host: ELPG off on gr isr and ctx init
Terje Bergstrom [Mon, 14 Oct 2013 12:51:01 +0000]
video: tegra: host: ELPG off on gr isr and ctx init

Turn ELPG off when processing a gr interrupt, and when initializing
a new GR context.

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

5 years agovideo: tegra: gk20a GPC/TPC/SM exception handling, event notifications
Ken Adams [Wed, 9 Oct 2013 16:10:11 +0000]
video: tegra: gk20a GPC/TPC/SM exception handling, event notifications

- Enabling GPC/TPC/SM exceptions
- Handling above exceptions and notifying debug clients
- Multiple debug interfaces per channel
- Sticky and queued debug events
- Ioctl interface for enabling/disabling/clearing events

Change-Id: If760e72ea4390591a2397b2c2306327f34ccdd30
Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com>
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/284225
GVS: Gerrit_Virtual_Submit
Tested-by: Ryan Wong <ryanw@nvidia.com>
Reviewed-on: http://git-master/r/299123

5 years agovideo: tegra: gk20a regops whitelisting
Ken Adams [Wed, 9 Oct 2013 16:03:08 +0000]
video: tegra: gk20a regops whitelisting

All regops (debugger/profiler) must now pass a whitelist
check.

Removes superfluous is_quad and pad fields from the ioctl interface.
Re-orders regop elements to be 64b friendly.

Bug 1228597

Change-Id: I84b374a1462e6ec722ed50212a97d32c25a73bb5
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/284223
Reviewed-by: Mayank Kaushik <mkaushik@nvidia.com>
Tested-by: Mayank Kaushik <mkaushik@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-on: http://git-master/r/299122
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Geoffrey Gerfin <ggerfin@nvidia.com>

5 years agoinput: sensor: compass: Add sec-salve-id for compass
Xiaohui Tao [Tue, 17 Sep 2013 17:53:00 +0000]
input: sensor: compass: Add sec-salve-id for compass

Bug 1356943

Change-Id: If34b39b849e350fd9312b9a73130db13c3571b4c
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/272840
Reviewed-on: http://git-master/r/273830
Reviewed-on: http://git-master/r/275874
(cherry picked from commit 9f42dfc3cda19db08aec5a01ed124789240c4970)
Reviewed-on: http://git-master/r/290021
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: Loki: Auto detect touch panel
Xiaohui Tao [Tue, 24 Sep 2013 17:26:32 +0000]
ARM: tegra: Loki: Auto detect touch panel

Change-Id: I8cbd73ab4b14ee685f3ca89964f9adc160a7e11b
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/290020
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>