5 years agoARM: tegra: laguna: Initialize INA226 on Laguna PM358
Leo He [Tue, 16 Jul 2013 12:28:54 +0000]
ARM: tegra: laguna: Initialize INA226 on Laguna PM358

Initialize all the INA226 devices on Laguna PM358.
It was confirmed that an uninitialized INA226 will cause
the extra power consumption.

bug 1324133

Change-Id: Ia4d29112b929a287d3d7b5dd0f16071cc687d8bc
Signed-off-by: Leo He <leoh@nvidia.com>
Reviewed-on: http://git-master/r/250579
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: spi: cleanup: remove old spi tegra11 driver
Shardar Shariff Md [Fri, 19 Jul 2013 06:50:15 +0000]
arm: tegra: spi: cleanup: remove old spi tegra11 driver

Removing old spi_tegra11.c driver and its instances

Change-Id: Id2302c484eeb780ae481e1edc9a25234a4fd77f2
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/251189
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra12: clock: Fix PLLD max rate
Kaz Fukuoka [Fri, 19 Jul 2013 00:04:42 +0000]
ARM: tegra12: clock: Fix PLLD max rate

PLLD on Tegra12 is CLKPLL15G_MIPI_D.
VCO range is 500MHz-1500MHz.

Change-Id: Ie7247aa185d742455ab2e916a390dfbd947a6705
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/251054
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra: fix smsc911x enet problems
Matt Craighead [Thu, 18 Jul 2013 14:42:12 +0000]
ARM: tegra: fix smsc911x enet problems

Support is no longer tied to CONFIG_TEGRA_PRE_SILICON_SUPPORT, only
to CONFIG_SMSC911X.  Not all environments set the pre-silicon flag.

Also, the IRQ chosen on tegra11 collides with the existing thermal
interrupt.  Moved it to an alternative IRQ that is unused by the
kernel.

Change-Id: Ica427249b14b9760d15a851931457d41d74e5097
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/250783
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: pcie: Fix root port 1 detection
Jay Agarwal [Wed, 17 Jul 2013 11:42:19 +0000]
ARM: tegra: pcie: Fix root port 1 detection

1. Correct GPIO number used to select X1
2. Program this GPIO as output high
3. Enable X1 controller only for PM359 board
   in X4_X1 xbar config

Bug 1325897

Change-Id: I3fbe5d44707d79d708235355f06e20260bdaf96e
Signed-off-by: Jay Agarwal <jagarwal@nvidia.com>
Reviewed-on: http://git-master/r/250717
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra: bbc: increase uncached shm window to fit modem statistics
Hervé Fache [Wed, 10 Jul 2013 16:16:52 +0000]
ARM: tegra: bbc: increase uncached shm window to fit modem statistics

The statistics from the BBC are placed in the begining of the shared
memory and need to be accessed uncached as they potentially keep
changing.

Bug 1273958

Signed-off-by: Hervé Fache <hfache@nvidia.com>
Change-Id: I0c1e7bca11821418597c861af192d5df3d904d5a
Reviewed-on: http://git-master/r/247247
(cherry picked from commit 01be97eee50b1960ba1ecdca8bc0d7b2d3a70afb)
Reviewed-on: http://git-master/r/250663
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: register EDP loan between bbc and core
Sivaram Nair [Wed, 12 Jun 2013 09:32:15 +0000]
ARM: tegra: register EDP loan between bbc and core

We need to make a sys EDP loan between the bbc and core (AP+DRAM) sys
EDP clients so that the core can borrow EDP budget from modem.

Bug 1257143

Change-Id: I6f84de745488794eede3268e10633bb38016b2bc
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/238034
(cherry picked from commit 3321b6e54547e2774e0a17ab6fa1f3dc085ba669)
Reviewed-on: http://git-master/r/250624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoEDP: tegra: restructuring debugfs code
Sivaram Nair [Wed, 12 Jun 2013 10:16:59 +0000]
EDP: tegra: restructuring debugfs code

Moving more stuff to common code.

Bug 1257143

Change-Id: Ied0a6ecdaa0dcca53547ba8df6a20de38298e41d
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/238033
(cherry picked from commit 2c8df5eb7508b601f61ea0daef5df6eb9a63a86e)
Reviewed-on: http://git-master/r/250623
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoEDP: tegra: get bbc client name from board file
Sivaram Nair [Wed, 12 Jun 2013 09:30:26 +0000]
EDP: tegra: get bbc client name from board file

Let the board file specify the modem sys EDP client rather than assuming
a fixed name.

Bug 1257143

Change-Id: I2257730428ff7ddc676406f848dee737d84b4fe1
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/238032
(cherry picked from commit e5ed8f7249f357b76cc2cc628efecc031122805d)
Reviewed-on: http://git-master/r/250622
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoEDP: fix loan update gaps
Sivaram Nair [Wed, 12 Jun 2013 09:06:06 +0000]
EDP: fix loan update gaps

The loan update notifier is not called in few situations - fix those.

Bug 1257143

Change-Id: I81a6ad18c2ffab9d1c7b2ea1d38f23e5a29156c8
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/238030
(cherry picked from commit 4fbde3eaaa42b758c9b274bf8970176e0a695e1a)
Reviewed-on: http://git-master/r/250620
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoEDP: relocating update_loans function
Sivaram Nair [Wed, 12 Jun 2013 08:43:03 +0000]
EDP: relocating update_loans function

Relocating this function for increased visibility within the file.

Bug 1257143

Change-Id: I5ab244f57b75636a2273346d1806d24b66a3ab9c
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/238029
(cherry picked from commit 609693e5575d5e7ae52d0c7faecf48fd6ed1c36e)
Reviewed-on: http://git-master/r/250619
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agopower: max17048: update charging status based on SOC and battery status
Venkat Reddy Talla [Thu, 18 Jul 2013 05:01:13 +0000]
power: max17048: update charging status based on SOC and battery status

update battery charging status based on max17048 state of charge
value and battery status(charging, discharging or done state)

Bug 1307664

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

5 years agoARM: tegra11: config: enable BQ2419x battery charger
Venkat Reddy Talla [Thu, 18 Jul 2013 04:18:52 +0000]
ARM: tegra11: config: enable BQ2419x battery charger

enable BQ2419X battery charger config

Bug 1307664

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

5 years agopower: bq2419x: add ONESHOT irq flag
Venkat Reddy Talla [Thu, 18 Jul 2013 04:03:39 +0000]
power: bq2419x: add ONESHOT irq flag

unable to register with threaded IRA handler unless ONESHOT flag is specified

Bug 1307664

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

5 years agovideo: tegra: nvmap: use confing option NVMAP_CACHE_MAINT_BY_SET_WAYS_ON_ONE_CPU
Krishna Reddy [Mon, 8 Jul 2013 18:38:23 +0000]
video: tegra: nvmap: use confing option NVMAP_CACHE_MAINT_BY_SET_WAYS_ON_ONE_CPU

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

5 years agoarm: tegra: pluto: reduce panel init sequence delay
Vineel Kumar Reddy Kovvuri [Fri, 7 Jun 2013 08:20:18 +0000]
arm: tegra: pluto: reduce panel init sequence delay

updates the delays in panel init command sequence.
Improves lp0 resume time.

Bug 1288173

Change-Id: If4a5a5bb7e1033e5ccd24594bf62605de52959c3
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/236617
(cherry picked from commit eb42b64d7aafa61fdc599c39f1b9128f3e894245)
Reviewed-on: http://git-master/r/249509
GVS: Gerrit_Virtual_Submit
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoarm: tegra12: Enable CPU0 powergating
Alex Van Brunt [Sat, 13 Jul 2013 01:11:15 +0000]
arm: tegra12: Enable CPU0 powergating

T12x should use the same code to powergate as T11x. Without this
change, T12x does not powergate CPU0 when idle.

Change-Id: Ib4e7fa52d78fa98b7cca6cad43f969bc6fee3dfd
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
(cherry picked from commit 201e2da6c7c218211865fbaef50172fd909ce15c)
Reviewed-on: http://git-master/r/251117
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: Tegra: smp: Check chipid before dual core SKU
Graziano Misuraca [Tue, 16 Jul 2013 20:45:39 +0000]
ARM: Tegra: smp: Check chipid before dual core SKU

Change-Id: Ia622e439d385ad2affb0958f9c86fccd3eef71a6
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/249910
(cherry picked from commit 00da56084285e681be834b08f3c6f0921a31612f)
Reviewed-on: http://git-master/r/250819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: tegra: ardbeg: Adding support for Bruce data modem
Steve Lin [Wed, 3 Jul 2013 02:32:57 +0000]
ARM: tegra: ardbeg: Adding support for Bruce data modem

Enable Bruce data modem when modem_id is 1.

Bug 1318940

Change-Id: I0afc6be440f63e436b1aedc171fbe8cbad97bd32
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/250491
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agomisc: tegra-baseband: support modem regulator id or supply name
Steve Lin [Sat, 6 Jul 2013 04:19:15 +0000]
misc: tegra-baseband: support modem regulator id or supply name

Add optional modem regulator id in the platform data.

Bug 1318940

Change-Id: I2f99347f78c144abae51056768d8d4bb95f731a9
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/250490
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agodrivers: tegra: gk20a: Enable PMU in GK20a
Prashant Malani [Thu, 11 Jul 2013 02:05:12 +0000]
drivers: tegra: gk20a: Enable PMU in GK20a

We need to enable the PMU to be able to read
load counters and to eventually enable perfmon.

We still keep elpg disabled for now.

Bug 1320968

Change-Id: I73b98c5ce2c3b18d039d3303151fb7d12c71cc72
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/250475
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agodrivers: tegra: gk20a: release mutex cleanly
Prashant Malani [Tue, 16 Jul 2013 01:13:57 +0000]
drivers: tegra: gk20a: release mutex cleanly

gk20a_clk_set_rate() takes a mutex, but doesn't
release it when the requested rate is equal to
the current rate. This causes a deadlock, when
gk20a_clk_set_rate() is called again.
Therefore, we make sure to release the mutex
before exiting.

Bug 1324512

Change-Id: If0b0f77c3e973562cbb1b143cb9d1e94922da6a7
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/250474
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: Fix cmdbuf recycling
Robert Morell [Wed, 17 Jul 2013 04:55:57 +0000]
video: tegra: Fix cmdbuf recycling

The lack of curly brace caused the return statement to always be
executed since the dbg_info macro always expands to a statement.

In addition, the code that was dead was broken: it passed an arbitrary
list node into a list iteration macro, which caused the list head, which
is not an entry of type struct priv_cmd_entry *, to be treated as such
as entry.  This change fixes the code to use the standard
list_for_each_entry and list_for_each_entry_safe_continue macros instead
of attempting to open-code the logic.

Signed-off-by: Robert Morell <rmorell@nvidia.com>
Change-Id: I2cffdc5a0989dc01a1acc197af8c0df6d5ef5578
Reviewed-on: http://git-master/r/250046
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
(cherry picked from commit 4ff00d0189879b9b895fea8bb4c3d9b1260c5811)
Reviewed-on: http://git-master/r/250457
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoconfig: tegra11: reconfig BT options
Mursalin Akon [Tue, 16 Jul 2013 18:53:41 +0000]
config: tegra11: reconfig BT options

- Add/modify couple of core BT options
- Add/modify couple of HID device support

Bug 1319882

Change-Id: Ice4618b8dc964e54c11411d600a1d50f48e177e6
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/249879
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoconfig: tegra12: mount devtmpfs before init
Mursalin Akon [Tue, 16 Jul 2013 18:37:19 +0000]
config: tegra12: mount devtmpfs before init

Without enabling mounting devtmpfs before init
from RFS, there is around 20 sec extra delay.

Bug 1286851

Change-Id: I64f54efd9b9a6ff33c1e5fce7b7b0a2cb4c72cf2
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/249878
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoconfig: tegra1[1,2]: enable ACL for tmpfs
Mursalin Akon [Tue, 16 Jul 2013 18:34:27 +0000]
config: tegra1[1,2]: enable ACL for tmpfs

enable ACL for tmpfs to allow udev to
set extended permission.

Bug 1219372

Change-Id: Ic5eeaddd1dbc499c27626fb141257ff3914d4d0d
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/249877
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoconfig: tegra11: enable blue sleep
Mursalin Akon [Tue, 16 Jul 2013 18:16:15 +0000]
config: tegra11: enable blue sleep

- remove bluedroid
- enable blue sleep driver (and dependency)

Bug 1319882

Change-Id: Iaaf14528539dda8365fb44601d4958cfea1076da
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/249876
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agosoc: tegra: rt5640: add speaker AMP EDP support
Dara Ramesh [Thu, 11 Jul 2013 09:55:26 +0000]
soc: tegra: rt5640: add speaker AMP EDP support

a) registered speaker AMP EDP client
b) implemented throttle callback function for EDP

Bug 1160686

Reviewed-on: http://git-master/r/193066
(cherry picked from commit a1ff2bc465e71cac89edb78b9283bf41cc940228)

Change-Id: I736bdfc6b592dc388f6dde53da6f670be25125b8
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/247814
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoARM: tegra12: add missing call to tegra_perf_init
Matt Craighead [Thu, 18 Jul 2013 14:08:57 +0000]
ARM: tegra12: add missing call to tegra_perf_init

Change-Id: Id6a207aedad46d7b69955ed9ce078b3e130a2c2a
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/250774
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm: config: tegra: change thermal governer for mods config
Vivek Aseeja [Thu, 18 Jul 2013 01:17:22 +0000]
arm: config: tegra: change thermal governer for mods config

Change thermal governor to step wise for mods kernel config
This is in sync with Android configuration

Change-Id: I8e0633ce1756e4e8897af0d4d27f0ae7cbc8668f
Signed-off-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-on: http://git-master/r/250473
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agodriver: ahci: tegra: Update ahci_power_un_gate
sreenivasulu velpula [Mon, 6 May 2013 11:05:05 +0000]
driver: ahci: tegra: Update ahci_power_un_gate

For APBDEV_PMC_SATA_PWRGT_0:
     Set back PADPHY_IDDQ_SWCTL and PADPLL_IDDQ_SWCTL to 0.

For CLK_RST_CONTROLLER_SATA_PLL_CFG1
Set back PADPLL_IDDQ2LANE_SLUMBER_DL to 3us.

Bug 1053727

Change-Id: I8718dc510823ee9fe1eb12c91459c128902b1212
Signed-off-by: sreenivasulu velpula <svelpula@nvidia.com>
Reviewed-on: http://git-master/r/225655
(cherry picked from commit a995a665f62301ac7ee71b4842a6d72f3b374e64)
Reviewed-on: http://git-master/r/248973
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Sumeet Gupta <sumeetg@nvidia.com>

5 years agoarm: configs: Turn off carveout for Ardbeg MODS
Alex Van Brunt [Mon, 15 Jul 2013 20:32:59 +0000]
arm: configs: Turn off carveout for Ardbeg MODS

Bug 1323816

Change-Id: Ied4c0ea60f0cebd1d1481c55e66884d32dec1ca1
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/250422
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
Tested-by: Vivek Aseeja <vaseeja@nvidia.com>

5 years agoarm: tegra12: Add an option to disable carveout
Alex Van Brunt [Mon, 15 Jul 2013 16:26:38 +0000]
arm: tegra12: Add an option to disable carveout

Bug 1323816

Change-Id: I302dbbfc6a7eff31d961d2b8e9cd6ff18d038279
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/250421
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>
Tested-by: Vivek Aseeja <vaseeja@nvidia.com>
Reviewed-by: Joshua Litt <jlitt@nvidia.com>
Tested-by: Joshua Litt <jlitt@nvidia.com>

5 years agostaging: iio: light: tcs3772: Fill Channel Info
Sri Krishna chowdary [Wed, 17 Jul 2013 06:08:23 +0000]
staging: iio: light: tcs3772: Fill Channel Info

K3.8 requires explicit mention of bits to expose
channel's raw sysfs nodes and hence kernel_submit
sees issues with als_proximity test.
Fix the issue by explicit specification of required bits.

Bug 1303054

Change-Id: Icd70421b157cc0580a82b6e9f7e9bc0d3c2e77ee
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/250140
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: Call tegra_se_suspend to save SE context
Shravani Dingari [Tue, 9 Jul 2013 07:03:19 +0000]
ARM: tegra: Call tegra_se_suspend to save SE context

Call tegra_se_suspend() again, immediately after
returning from tegra_suspend_dram(), during LP0 exit.
To call se_suspend(), tegra_smmu_resume() also needs
to be called.
This is an attempt to regenerate SRK and SE context,
so that BootROM won't kill SE on LP0 exit ( if we
try to re-enter LP0 early without waking to active).

Bug 1234330

Change-Id: Ib71e0c9972f307e48395b8f16d79867ad95659a0
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/243462
(cherry picked from commit 155aef2ee1ce6cf0481f8419809024f3e4e7c0e9)
Reviewed-on: http://git-master/r/250052
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: ardbeg: add power monitor devices for Ardbeg A01 boards
Deepak Nibade [Tue, 16 Jul 2013 10:49:19 +0000]
ARM: tegra: ardbeg: add power monitor devices for Ardbeg A01 boards

- power monitor devices are different on Ardbeg A01 and onward boards
- use board_info to get board fab version and based on that register
  devices specific to board

Bug 1325536

Change-Id: I3ee5de03ddc1b858fd3afc96efae6f804859c11d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/249645
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agovideo: tegra: nvmap: remove unnecessary nvmap_common.h file
Krishna Reddy [Tue, 2 Jul 2013 22:56:28 +0000]
video: tegra: nvmap: remove unnecessary nvmap_common.h file

move the content to nvmap_priv.h

Change-Id: I6614e357f64ec19cbb95479697c48c0989a33a5c
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/244556
(cherry picked from commit 866854d9c04c6a13525d4483d25ef71663e0f973)
Reviewed-on: http://git-master/r/249527
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>

5 years agonet: wireless: bcmdhd: Enable flag QUEUE_BW for RBE
Kenneth Tateno [Fri, 7 Jun 2013 20:57:01 +0000]
net: wireless: bcmdhd: Enable flag QUEUE_BW for RBE

Enable QUEUE_BW to support Realtime Bandwidth
estimation for user applications.

Note that this flag is enabled only for bcm43241

Also note that the flag has been
disabled in the broader bcmdhd/Makefile since this
flag only applies to bcm43241.

Bug 1190552

Change-Id: Ib6c527bb09fb96d18fd0b8ef68f0d0527dbfe7c3
Signed-off-by: Kenneth Tateno <ktateno@nvidia.com>
Reviewed-on: http://git-master/r/248510
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Amit Chaudhary <amitc@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agohwmon: ina230: add new sysfs for current measurement
Deepak Nibade [Mon, 15 Jul 2013 09:58:45 +0000]
hwmon: ina230: add new sysfs for current measurement

- add new sysfs API "curr2_input" for current measurement
- this sysfs makes use of shunt resistor value for current calculation
- it is independent of other constants like calibration and power lsb

Bug 1325760

Change-Id: Ib32cf4710402749d297ea8de814055ab799648cd
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/249202
(cherry picked from commit fec75a0beb052c4f5f64073624631f307a27d192)
Reviewed-on: http://git-master/r/250067
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agohwmon: ina230: add new sysfs for power measurement
Deepak Nibade [Mon, 15 Jul 2013 09:37:14 +0000]
hwmon: ina230: add new sysfs for power measurement

- add new sysfs API "power2_input" for power measurement
- this sysfs makes use of shunt resistor value for power calculation
- it is independent of other constants like calibration and power lsb

Bug 1325760

Change-Id: I756e89b98c9771481b1b7e01e2ae0a8a0903eed6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/249201
(cherry picked from commit 4529558b283ada071fd15c4113d9295c8db1d3fc)
Reviewed-on: http://git-master/r/250066
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra11: config: disable HDCP for L4T
Jong Kim [Tue, 9 Jul 2013 21:46:51 +0000]
arm: tegra11: config: disable HDCP for L4T

HDCP are not used/tested in L4T. It simply generates a lot of
meaningless i2c timeout messages and wastes CPU cycles. If needed,
individual users may recompile kernel with HDCP enabled.

bug 1264520

Change-Id: I9f23c6850a68c7db0613a737becc95607c7559e7
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/248090
(cherry picked from commit f72439306a30ce3fbbb184cbf43129a0ad1d7297)
Reviewed-on: http://git-master/r/249966
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agommc: tegra: Dynamic freq calculation for SD
R Raj Kumar [Wed, 12 Jun 2013 14:03:48 +0000]
mmc: tegra: Dynamic freq calculation for SD

Calculate the desired frequencies for SD if dynamic frequency
scaling is enabled. The algorithm determines the frequency based
on the active and idle loads measured at periodic intervals.

Bug 1294659

Reviewed-on: http://git-master/r/238041
(cherry picked from commit 60eb6772ecd4ad186a1f12cc290d593b3c19a7ae)
Change-Id: I34607c1ab74686845abb0643ce0c06cdcd57b17a

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: Ifc248eae03f54b1b26e8d920372c7e70be5d2351
Reviewed-on: http://git-master/r/249600
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agommc: core: add device freq scaling for SD
R Raj Kumar [Wed, 12 Jun 2013 13:41:27 +0000]
mmc: core: add device freq scaling for SD

Added devfreq_init call for SD.

Bug 1294659

Reviewed-on: http://git-master/r/241240
(cherry picked from commit 0164907d83b50134703ae38efb0619dd5b0cdb95)
Change-Id: I0581a18d2b5468d2684e93b28d4e8bf0d81c9fce

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

5 years agommc: sdio: Make devfreq_init call conditional
R Raj Kumar [Sun, 23 Jun 2013 16:03:44 +0000]
mmc: sdio: Make devfreq_init call conditional

devfreq_init call for SDIO device should be called
when it is enumerated in SDR104 mode only and
no need to call devfreq_init in resume cycle.

Reviewed-on: http://git-master/r/241251
(cherry picked from commit b43e7073a874248379df3fb95bae874ed858eb3b)
Change-Id: I13ac5e23cb73c1e2d4c3c37e0071f8819d91f88f

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: Ia6758c053368a0e948250cb4051c62e8bd5ba25f
Reviewed-on: http://git-master/r/249598
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoefshlp:Corrected remaining pdma size logic
Ashutosh Patel [Thu, 20 Jun 2013 10:49:58 +0000]
efshlp:Corrected remaining pdma size logic

Changes :
- Corrected remaining pdma size logic in mmap_dma function

bug 1308180

Change-Id: I69331783cb4d0b710c64ac4cd7e74175baa53e41
Reviewed-on: http://git-master/r/239672
Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com>
(cherry picked from commit b3901d71865f4021c67b48055663d122a6f2319f)
Reviewed-on: http://git-master/r/249069
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoextcon: palmas: remove duplicate ID state update code
Yunfan Zhang [Wed, 10 Jul 2013 06:18:16 +0000]
extcon: palmas: remove duplicate ID state update code

Remove the duplicate and incorrect code in vbus cable update

Change-Id: I59b7b742681b276ace4f902a3b7360f092be5d5c
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/247020
(cherry picked from commit 7f1cf8a10713b42cf2725b8b6d733c83d3c60401)
Reviewed-on: http://git-master/r/247732
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoPM: Add prompt and help for wakelock in Kconfig
Naveen Kumar S [Fri, 28 Jun 2013 14:03:22 +0000]
PM: Add prompt and help for wakelock in Kconfig

Adding bool prompt and help description for CONFIG_WAKELOCK
and CONFIG_HAS_WAKELOCK options in Kconfig file to ease
menuconfig operations

Bug 1314808

Change-Id: I5c450ef0994a08c1bf51e8c9849bb96c69c69081
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/243459
(cherry picked from commit 2dda2db4db3fca12301cab3b9c59fba758573652)
Reviewed-on: http://git-master/r/244781
(cherry picked from commit f3c8128a972e0e9f4df0a6b3d364cb14b5f29a9c)
Reviewed-on: http://git-master/r/247680
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoiio: palmas_gpadc: update current source setting during probe
Yunfan Zhang [Thu, 20 Jun 2013 05:28:34 +0000]
iio: palmas_gpadc: update current source setting during probe

Fix SIM card detection issue when battery not connected.
1) 'channel0_current_uA = 0' is to disable battery presence detection
2) Should update the adc current source selection setting according to
the value passed by platform data during register.

Bug 1293657
Bug 1305937

Change-Id: I69630cf74e296997095a322ab18c894e13d0ab8c
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/240466
(cherry picked from commit 4347e032f09ec003d46ffdf17c207a52c2f79024)
Reviewed-on: http://git-master/r/247040
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agousb: host: tegra: remove QOS request
Mark Kuo [Wed, 19 Jun 2013 09:32:50 +0000]
usb: host: tegra: remove QOS request

A pm_qos_request is added during .probe() but is never removed.
This will leave an invalid node in the plist inside the pm_qos
lib, which may cause panic in plist_add() in future requests of
pm_qos_add_request.

Also use the _sync version to cancel delayed pm_qos work to avoid
possible races.

Bug 1304146

Change-Id: I971e5c0d411d1e0f5b788a7e86aacb34f6f2fdf9
Signed-off-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-on: http://git-master/r/238842
(cherry picked from commit 5c04a90ef7b26b564c2a573502181d71ce9ba3f1)
Reviewed-on: http://git-master/r/244270
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: Tegra: Dalmore: Toggle DDC pull down with hpd
Graziano Misuraca [Mon, 1 Apr 2013 23:27:00 +0000]
ARM: Tegra: Dalmore: Toggle DDC pull down with hpd

Only set DDC_SDA and DDC_SCL pull downs to be active
when we detect a hotplug. Otherwise keep them disabled.

Bug 1237421

Change-Id: I1944584169a1a3c55794e84e8e103158188b3199
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/215268
(cherry picked from commit e2d9970a01d2e1bb167d9bef889895e903334666)
Reviewed-on: http://git-master/r/239364
Reviewed-on: http://git-master/r/249743
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: Tegra: Dalmore: Add Fab05 Power tree
Graziano Misuraca [Tue, 23 Apr 2013 18:45:55 +0000]
ARM: Tegra: Dalmore: Add Fab05 Power tree

Create separate power tree for Fab05 Dalmores.

Also correctly change the power-type for Fab02-
Fab05 dalmores to use the config2 power tree.

Bug 1259294

Change-Id: I9d9d1349c80febae8a647af6ad1a52fb4be0cdf5
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/222140
(cherry picked from commit e4fb4b2ed39b03d65a87bcb729585863ca4ac7a8)
Reviewed-on: http://git-master/r/239360
(cherry picked from commit 553f7deadcbea98b6ffdd3cec60c0c1962da3725)
Reviewed-on: http://git-master/r/249740
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

5 years agoARM: tegra11: update macallan sys EDP data
Sivaram Nair [Tue, 25 Jun 2013 09:31:50 +0000]
ARM: tegra11: update macallan sys EDP data

Updated battery cap and depletion data.

Bug 1306298

Change-Id: Ibad362a6ab5240bdffc0b7bef647468968d0ff0f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/242329
(cherry picked from commit 8f8ac69d9d85afec60d9de32fdab18e2ee644060)
Reviewed-on: http://git-master/r/249540
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: Tegra: smp: case to setup_core_count for T40DC
Graziano Misuraca [Thu, 30 May 2013 17:39:45 +0000]
ARM: Tegra: smp: case to setup_core_count for T40DC

T40DC (dual core) SKU will not have
FUSE_SKU_DIRECT_CONFIG_0 set so we need to check
the SKU explicitly and set the number of cores to
two in that case.

Bug 1262581

Change-Id: I341a606698a5bd72374adaecdcbaf3ef62e351d3
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/234210
(cherry picked from commit 4402ec2394f686e90453b881eaa162db95b303bc)
Reviewed-on: http://git-master/r/240684
(cherry picked from commit e06aea34a825185de5ee479009da2c970f1133c1)
Reviewed-on: http://git-master/r/249748
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: Tegra: cpuquiet: use nr_cpu_ids isntead of NR_CPUS
Graziano Misuraca [Thu, 13 Jun 2013 20:33:20 +0000]
ARM: Tegra: cpuquiet: use nr_cpu_ids isntead of NR_CPUS

Bug 1307544

Change-Id: Icf58253bd145e58d48692178bf2ca244202931d3
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/238616
(cherry picked from commit 7402f99b1de7a622d29c564926bd37a4808a3121)
Reviewed-on: http://git-master/r/240685
(cherry picked from commit fdc876d21128c344d91c964566016d7c71466422)
Reviewed-on: http://git-master/r/249747
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: Tegra: Dalmore: Add support for T40DC memory
Graziano Misuraca [Thu, 25 Apr 2013 00:48:03 +0000]
ARM: Tegra: Dalmore: Add support for T40DC memory

T40DC is in the same speedo bin as T40S. Select the
same memory table.

Bug 1262581

Change-Id: Iea474538f11b4fa42a943e7286bbb2b30aa414f7
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/222729
(cherry picked from commit 6e1d74b831bd9bfde685d1684a057e615fca8bfa)
Reviewed-on: http://git-master/r/240683
(cherry picked from commit a0c171bd9b2bd919a45b7f2c83c973ac47cde8df)
Reviewed-on: http://git-master/r/249746
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: Tegra: Dalmore: Add T40S memtype emc table
Graziano Misuraca [Thu, 24 Jan 2013 01:10:42 +0000]
ARM: Tegra: Dalmore: Add T40S memtype emc table

Add a table for 1600MHz memory and check the
memtype commandline argument to determine which
to select.

Update 1866 T40S table to include 528MHz

Bug 1189313

Reviewed-on: http://git-master/r/193562
(cherry picked from commit d72ff647cdd4f192d96a6d190fa2457dc4148c9b)
Change-Id: I81c96bbb7a82bf29d4b77bd488090c4dfa55120c
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/245644
Reviewed-on: http://git-master/r/249745
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoARM: Tegra: Parse memtype commandline argument
Graziano Misuraca [Fri, 18 Jan 2013 19:36:19 +0000]
ARM: Tegra: Parse memtype commandline argument

Parse memtype argument and make available
through 'tegra_get_memory_type()' call
in board.h

Change-Id: I6a5dbb3e91c071fb0714dbb52d3a5c99925b03e6
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/192465
(cherry picked from commit 1f56bf3208e9ecbacaaf309c91d283d1e252e69d)
Reviewed-on: http://git-master/r/246190
Reviewed-on: http://git-master/r/249744
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agosoc: codecs: max97236: unmute headphone amplifier
Dara Ramesh [Thu, 4 Jul 2013 09:20:43 +0000]
soc: codecs: max97236: unmute headphone amplifier

unmute headphone amplifier left and right volume after
headset/headphone detected.

bug 1312280

Change-Id: I70d0309d125962b4f6bf63560751462d43501820
Reviewed-on: http://git-master/r/245055
(cherry picked from commit 4e4a0297a0e279179fe05593b22a17de17a63449)

Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Change-Id: I0f1fa72f7957a24ed4ba89db2679e2319dcae1de
Reviewed-on: http://git-master/r/249495
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoasoc: tegra: atlantis: enable audio regulator
Dara Ramesh [Thu, 13 Jun 2013 10:56:00 +0000]
asoc: tegra: atlantis: enable audio regulator

a) enable audio "avdd_aud" and "vdd_aud_dgtl" regulator
b) removed unused regulator code.

bug 1306696

Change-Id: I307679813bef8309795cf218f31254d24c8a8014
Reviewed-on: http://git-master/r/238467
(cherry picked from commit ce941c47a70cbcda626b93410ae2d6d3a6f049b4)

Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Change-Id: I40d56abb573548bb27b24fac6ceadbd320bd6b91
Reviewed-on: http://git-master/r/247767
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agoUSB: g_mass_storage: Enable High Speed
Preetham Chandru R [Mon, 15 Jul 2013 14:42:50 +0000]
USB: g_mass_storage: Enable High Speed

Tegra udc does not support Super speed hence enable high speed

Bug 1320494

Change-Id: Iddc39816c4a970d2e436069412a445b7cb351700
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/249233
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agoARM: tegra: Dalmore: Set SDMMC1,3 clock to 156 MHZ
Naveen Kumar Arepalli [Fri, 24 May 2013 06:05:13 +0000]
ARM: tegra: Dalmore: Set SDMMC1,3 clock to 156 MHZ

1. Adding vdd_core regulators for sdmmc3 to be used for
setting core voltage constraints during frequency tuning.

2. Setting SD and SDIO max clock to 156MHz on Dalmore A05
board.

Bug 1238045

Reviewed-on: http://git-master/r/239659
(cherry picked from commit 8396278d283b8ebad6ac8aebee4dc2f669bd7fa8)
Change-Id: I1ba0cf8e434680bc09877156b1066c5eb06dcf24
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/248315
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: enable nvmap handle marshalling
Krishna Reddy [Tue, 4 Jun 2013 18:27:42 +0000]
arm: tegra: enable nvmap handle marshalling

Change-Id: I5190871bb0b77c18a5aca58cf26e9ec7255b875a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/244058
(cherry picked from commit c9aee56b7a737046be3be98ceb21907e5ad3e57a)
Reviewed-on: http://git-master/r/247972
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agovideo: backlight: modify edp brightness
Sri Krishna chowdary [Mon, 24 Jun 2013 16:24:48 +0000]
video: backlight: modify edp brightness

In screen on condition, the minimum brightness that
android tries to set is 10 and since 10 < 26, the backlight
brightess is set to 0. Hence, need to lower this limit
to 10.

Bug 1303259

Change-Id: I8a9aa380756578c5caf23e2c8f0fb19d2f23d3d5
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/241507
(cherry picked from commit b2e3b6dc3181e72027e0e5eb6093f27c395fcf77)
Reviewed-on: http://git-master/r/247109
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoClean up "t124-bringup-2013.07.14-v8.0" merge
Shu Zhang [Mon, 15 Jul 2013 11:06:49 +0000]
Clean up "t124-bringup-2013.07.14-v8.0" merge

Some DNI are not cleanly reverted. Cleared the code in:
arch/arm/configs/tegra12_android_defconfig
drivers/media/video/tegra/nvavp/nvavp_dev.c

Change-Id: I45afbf75e17224fe927f7f8825ab0b8b7dea542f
Signed-off-by: Shu Zhang <chazhang@nvidia.com>

5 years agoarm: tegra: set sdmmc clock to always on
Johnny Qiu [Tue, 2 Jul 2013 12:58:07 +0000]
arm: tegra: set sdmmc clock to always on

Reviewed-on: http://git-master/r/244352
(cherry picked from commit 4a2d271922e7420613fbf47629cb605d35ab80db)

Change-Id: Ibea2f22ae4800abd4b2aa81ce4f29b655504064a
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/248998

5 years agoTegra12: ARM: Clocks: Add guardband for voltage
Krishna Sitaraman [Sat, 13 Jul 2013 00:51:33 +0000]
Tegra12: ARM: Clocks:  Add guardband for voltage

Adding margin for voltage initially. Values will be revised later
after characterization.

Change-Id: I6287d9be10ac0280c7e566c10fe7b09226d764d6
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/248844
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoTegra12: ARM: Clocks: Update speedo value
Krishna Sitaraman [Sat, 13 Jul 2013 00:40:36 +0000]
Tegra12: ARM: Clocks:  Update speedo value

Update speedo value to initial estimate.

Change-Id: I4607f4450f32b17c5eea0f6eb4d021c7431600f2
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/248840
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoARM: tegra: dvfs: Fix error print format
Alex Frid [Thu, 11 Jul 2013 05:42:18 +0000]
ARM: tegra: dvfs: Fix error print format

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

5 years agoARM: tegra: dvfs: Use fixed voltage as nominal.
Alex Frid [Tue, 9 Jul 2013 21:59:38 +0000]
ARM: tegra: dvfs: Use fixed voltage as nominal.

On entry to suspend or when disabling rail scaling, used fixed voltage
instead of nominal for fixed regulator. It allows to avoid error on
setting nominal voltage above fixed level, and it is safe, since the
pll mode frequency is already capped to match fixed voltage level, and
in dfll mode voltage is always scaled to match the frequency.

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

5 years agoarm: tegra12: disable SMMU
Kevin Huang [Sat, 13 Jul 2013 18:30:34 +0000]
arm: tegra12: disable SMMU

Change-Id: I3ccf60d650c53ff417b3f54fe6bec4ce1d533240
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/248858
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoarm: tegra: laguna: use regulator to control bl power
Kerwin Wan [Fri, 12 Jul 2013 22:38:32 +0000]
arm: tegra: laguna: use regulator to control bl power

Since the backlight power on laguna is controlled by regulator not
direct gpio anymore, do corresponding change in laguna panel board file
or gpio request failure will happen when request backlight control gpio.

Change-Id: Ic0c6aae5f63fca42d447bd6eabd2abb18e481840
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/248775
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Johnny Qiu <joqiu@nvidia.com>

5 years agoARM: tegra: disable DT path for host1x and gk20a
Mayuresh Kulkarni [Fri, 12 Jul 2013 14:53:59 +0000]
ARM: tegra: disable DT path for host1x and gk20a

this commit disable DT path for host1x and gk20a

the idea is to statically register the host1x and gk20a
devices

for this to work correctly, it should be ensured that
host1x and gk20a entries are removed from DT

bug 1316106

Change-Id: I8ac90f691b1bc9d6f39b5ad375ffe5cb1ec33b7c
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/248410
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chao Xu <cxu@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agoasoc: tegra: set gpio only if getgpio is successfull
Nikesh Oswal [Fri, 12 Jul 2013 22:19:09 +0000]
asoc: tegra: set gpio only if getgpio is successfull

Change-Id: I1318565b29afbd22926575aebc55ff1e6100ac3a
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/248761

5 years agoarm: tegra: remove support for RT5645 codec
Nikesh Oswal [Fri, 12 Jul 2013 22:18:28 +0000]
arm: tegra: remove support for RT5645 codec

Change-Id: Ie4a6ef9f559efc01326548cca9146b70b9c0604d
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/248760

5 years agoarch: arm: ardbeg: as3648 flash support
Amit Arora [Sun, 30 Jun 2013 22:04:51 +0000]
arch: arm: ardbeg: as3648 flash support

Adds support for as3648 flash on ardbeg.

Bug 1256445

Change-Id: I110683dc40e05f269d190fbcb9d56913d757391a
Signed-off-by: Amit Arora <amita@nvidia.com>
Reviewed-on: http://git-master/r/243737
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Chien-Yu Chen <chichen@nvidia.com>

5 years agoARM: tegra: ardbeg: t12x: Do not use DT for host1x
Chao Xu [Fri, 12 Jul 2013 18:45:51 +0000]
ARM: tegra: ardbeg: t12x: Do not use DT for host1x

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

5 years agovideo: tegra: dc: fix overlapped windows check.
Kevin Huang [Mon, 20 May 2013 21:15:02 +0000]
video: tegra: dc: fix overlapped windows check.

Change-Id: I71ef035f5d047d45ecb15d8d5407d15c7e5c8c1b
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/248484
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: enable USB video in defconfig
Ajay Gupta [Wed, 10 Jul 2013 00:12:25 +0000]
ARM: tegra12: enable USB video in defconfig

Change-Id: I850a7d97d040200b145dd11d0c29db1210fff400
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/247961
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra: clocks: port PLLU changes from tegra11_clocks
Rohith Seelaboyina [Mon, 8 Jul 2013 11:55:51 +0000]
ARM: tegra: clocks: port PLLU changes from tegra11_clocks

port PPLU changes from tegra11_clocks to reduce
the power numbers.

Bug 1320271

Change-Id: Ic34b739aec0db3b1f17f5c5f6ebc0a4fa5677a8b
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/246108
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: tegra: host: correct runtime pm callback registeration
Mayuresh Kulkarni [Wed, 10 Jul 2013 09:47:21 +0000]
video: tegra: host: correct runtime pm callback registeration

register runtime pm callbacks in following conditions:
- when pm domain is not enabled in kernel config
- when module doesn't have power partition in hardware
and hence doesn't not support power domain

this ensures that pm domain call-backs are given priority
when enabled & runtime pm call-backs are given priority
when disabled

Change-Id: I2a7669a8511aec4ea9c29a0cc44d45b8e86d1afd
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/247095
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

5 years agovideo: tegra: nvavp: Change AVP OS carveout bin in T124
Somasundaram S [Thu, 11 Jul 2013 11:01:05 +0000]
video: tegra: nvavp: Change AVP OS carveout bin in T124

Due to recent changes in T124 Tegra reserved memory map,
base address for AVP kernel allocated at boot time has
changed and the AVP OS bin also needs to be changed
accordingly

Bug 1322157

Change-Id: I3b74f17bbddcd4fee6ba485d34f691f178902c0e
Signed-off-by: Somasundaram S <somasundaram@nvidia.com>
Reviewed-on: http://git-master/r/247819
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Somu Sundaram <somasundarams@nvidia.com>
Tested-by: Somu Sundaram <somasundarams@nvidia.com>

5 years agousb: xhci: tegra: fix DFE message handling
Ajay Gupta [Thu, 11 Jul 2013 00:36:00 +0000]
usb: xhci: tegra: fix DFE message handling

Bug 1320274

Change-Id: I24574c552fa115a53f56c29906ea197b2b5090f5
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/247962
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoxhci: tegra: rewind firmware log buffer across ELPG
JC Kuo [Fri, 5 Jul 2013 11:38:35 +0000]
xhci: tegra: rewind firmware log buffer across ELPG

In ELPG, firmware log context is gone. Firmware doesn't save and
restore log enqueue pointer, dequeue pointer, and sequence number at
CSS/CRS.
In order to minimize complexity of firmware design, driver has to
  1) make sure all firmware log is processed after enters ELPG,
  2) rewind firmware log buffer before exit ELPG,
so that firmware will not have a chance to corrupt log buffer.

This commit also wakes firmware log thread in xhci isr. Idea is that
when driver gets interrupted, there must be some firmware logs unread.
xhci isr is a perfect timing to wake log thread up.

bug 1320242

Change-Id: Idbdcf347bc30cbae3249176036eb15672664dadc
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/247960
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agovideo: tegra: nvhost: move camera clks to nvhost
Pablo Ceballos [Tue, 11 Jun 2013 20:51:27 +0000]
video: tegra: nvhost: move camera clks to nvhost

Have nvhost control VI/ISP clocks/power instead of tegra_camera.

Powergating is left disabled for now and the clocks are hard-coded
to their max rate. This will be cleaned up later.

Bug 1154778

Change-Id: Idbc57ef1c30126c0b20c116e67318a00e9c3bd78
Signed-off-by: Pablo Ceballos <pceballos@nvidia.com>
Reviewed-on: http://git-master/r/242013
Reviewed-by: Amit Arora <amita@nvidia.com>
Tested-by: Amit Arora <amita@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chien-Yu Chen <chichen@nvidia.com>

5 years agoarm: Tegra: give gk20a a non-zero SMMU base
Ken Adams [Thu, 11 Jul 2013 20:28:46 +0000]
arm: Tegra: give gk20a a non-zero SMMU base

The nvhost gk20a driver expects dma addresses
to be non-zero.  Set to 1MB at the moment to
be super conservative.

Change-Id: I9b6138b85efab057b63c7357e8c751a1470dee33
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/248017
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: host: gk20a l2 coherency maintenance
Ken Adams [Tue, 9 Jul 2013 22:16:32 +0000]
video: tegra: host: gk20a l2 coherency maintenance

Updates to account for gk20a l2 coherency maintenance across
instance memory updates and buffer unmapping.  This is slightly
more aggressive than it needs to be (especially regarding l2
invalidation).

Also added a nvhost_dbg category for map operations and various
debugging updates.

Change-Id: I9d3e8e293ac3b1f750196e2ebbda0b2e1d52d3be
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/248016
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>

5 years agovideo: tegra: host: gk20a pde reservation
Ken Adams [Sun, 7 Jul 2013 21:59:03 +0000]
video: tegra: host: gk20a pde reservation

Create a one-pde hole (128MB) in the gr address space.
This is apparently needed to avoid some low-address
schemes in gr.  Also in the process of adding this
I noticed a logic bug in the nvhost_allocator init.
It wasn't calculating limit correctly and a few clients
had made use of that.  Cleaned those up as well as it could
lead to collisions.

Change-Id: I6ab200eb6cc3f606de6c03f95821b7c6ab30cead
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/245944

5 years agovideo: tegra: host: add ftrace events for nvhost_as
Ken Adams [Sun, 7 Jul 2013 23:58:25 +0000]
video: tegra: host: add ftrace events for nvhost_as

First cut at ftrace visibility for nvhost_as* ioctls.
Also brought in gk20a mmu fault info.  In that area
just renamed some things to make them consistent (r->v).

Change-Id: I5edad070be32ad7d38270fa49368fb41a342ae59
Signed-off-by: Ken Adams <kadams@nvidia.com>
Reviewed-on: http://git-master/r/245954
Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com>

5 years agoARM: Tegra12: Clock: Increase PLL_X vco max
Krishna Sitaraman [Fri, 12 Jul 2013 01:14:01 +0000]
ARM: Tegra12: Clock: Increase PLL_X vco max

Increase the max vco value allowed for PLLX so that
silicon validation team can do their test.  This will not
increase the core frequency by itself.

Change-Id: I0d74e3be93af8df2ccb023048ec40fe7e3ff7c39
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/248146
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agodrivers: tegra: gk20a: fix clk_set_rate() function
Prashant Malani [Thu, 11 Jul 2013 23:19:20 +0000]
drivers: tegra: gk20a: fix clk_set_rate() function

gk20a_clk_set_rate() has the rate variable
hardcoded to 264, which rendered the rate argument
passed in meaningless.

This change removes the hardcode.

Change-Id: I6496e15d108230c79409f4bf5058e0bf81913ddd
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/248087
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>

5 years agoarm: config: tegra12: Disable TEGRA_CAMERA
Amit Arora [Tue, 9 Jul 2013 03:37:47 +0000]
arm: config: tegra12: Disable TEGRA_CAMERA

TEGRA_CAMERA is disabled for tegra12 as clock specific
code is moved to host1x.

Bug 1154778

Change-Id: Ie36d4c82695520d1b310e46f60c7c2e91acce62d
Signed-off-by: Amit Arora <amita@nvidia.com>
Reviewed-on: http://git-master/r/246443
Reviewed-by: Chien-Yu Chen <chichen@nvidia.com>

5 years agoarm: tegra12: clock: Correct isp/vi clocks
Amit Arora [Tue, 9 Jul 2013 03:50:00 +0000]
arm: tegra12: clock: Correct isp/vi clocks

* Modify device id for vi/csi/isp clocks.
* Correct isp clock rate.
* Add required clock duplicates.

Bug 1154778

Change-Id: Ic2689d018ac15ec3330fd9c5e5df2108236f830d
Signed-off-by: Amit Arora <amita@nvidia.com>
Reviewed-on: http://git-master/r/246444
Reviewed-by: Chien-Yu Chen <chichen@nvidia.com>

5 years agoarm: t124: laguna: fix memory config in Laguna devices tree.
Hayden Du [Sun, 7 Jul 2013 05:28:41 +0000]
arm: t124: laguna: fix memory config in Laguna devices tree.

Change-Id: Idd3d871efcb51d4d518c7f0525e82d088d9b6fa3
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/245899
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Johnny Qiu <joqiu@nvidia.com>

5 years agovideo: tegra: dc: Enable temporal dithering fot t124
Chao Xu [Wed, 10 Jul 2013 01:55:38 +0000]
video: tegra: dc: Enable temporal dithering fot t124

Change-Id: I17d740d95e8fe5ca52264db9e467ae6e34c7d6fa
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/246954
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: config: enable eDP
Chao Xu [Tue, 9 Jul 2013 04:59:21 +0000]
arm: config: enable eDP

Change-Id: Ie5b87eb5de44d4ca634395c1f114e2e1b77fe4e6
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/246469
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: dc: Update eDP support
Chao Xu [Tue, 9 Jul 2013 04:55:52 +0000]
video: tegra: dc: Update eDP support

Change-Id: I6ee39c20d4e120926837f84ab3107d6f4bc5a144
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/246468
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agovideo: tegra: dc: Program back/front porch differently for DP/LVDS
Chao Xu [Tue, 9 Jul 2013 02:17:56 +0000]
video: tegra: dc: Program back/front porch differently for DP/LVDS

For DP/LVDS back porch and front porch need to program differently to match
SOR values. This is a workaround for HW issue (Bug 1021453).

Change-Id: I7760c2cd6dff353c00682f20877fbfa4537f2578
Signed-off-by: Chao Xu <cxu@nvidia.com>
Reviewed-on: http://git-master/r/246467
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: ardbeg: add AUO 14" eDP panel support
Kerwin Wan [Wed, 19 Jun 2013 16:18:45 +0000]
arm: tegra: ardbeg: add AUO 14" eDP panel support

Bug 1306592

Change-Id: I2ad2c3a875712ecb359569c1ec79c914eb352ebc
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/243711
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: Tegra12: clocks: Restore full dvfs clocks for Xusb
Krishna Sitaraman [Thu, 11 Jul 2013 02:57:26 +0000]
ARM: Tegra12: clocks: Restore full dvfs clocks for Xusb

Restore full xusb safe clocks.  This was missed in previous change.

Bug 1320274

Change-Id: I8e77a4002f1489d77e3c2e1f4d791f6f7e43f21d
Signed-off-by: Krishna Sitaraman <ksitaraman@nvidia.com>
Reviewed-on: http://git-master/r/247576
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>

5 years agoARM: tegra12: clock: Change XUSB HS clock source
Kaz Fukuoka [Fri, 5 Jul 2013 00:22:12 +0000]
ARM: tegra12: clock: Change XUSB HS clock source

Used XUSB SS clock (with fixed 1:2 divider) as HS clock source instead
of PLLU secondary divider.

bug 1320301
bug 1320274
Ported from http://git-master/r/216360 (change for Tegra11)

Change-Id: I24247b9d3dd6b3e400299a6d846ee985f0ba3702
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/245231
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Chao Xu <cxu@nvidia.com>