6 years agoirq: enable suspended EARLY_RESUME irqs forcefully if not resumed
Laxman Dewangan [Mon, 3 Jun 2013 12:21:30 +0000]
irq: enable suspended EARLY_RESUME irqs forcefully if not resumed

When system enters into suspend, it disable all irqs in single
function call. This disables EARLY_RESUME irqs also along with
normal irqs.

The EARLY_RESUME irqs get enabled in sys_core_ops->resume and
non-EARLY_RESUME irqs get enabled in normal system resume path.

When suspend_noirq failed or suspend is aborted for any reason,
the EARLY_RESUME irqs do not get enabled as sys_core_ops->resume()
call did not happen. It only enables the non-EARLY_RESUME irqs in normal
system resume path. This makes the EARLY_RESUME irqs interrupt to be
disable for remaining life of system.

Add checks on normal irq_resume() whether EARLY_RESUME irqs have been
enabled or not and if not then enable it forcefully.

bug 1282448

Change-Id: I7ffffd725675ca635310eb4913a1f885d2e42e37
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235000
(Cherrypicked commit 91262b293e7c061f6c80488fa235811362e128e6)
Reviewed-on: http://git-master/r/236600
Reviewed-by: Automatic_Commit_Validation_User

6 years agoALSA: usbaudio: Expose usb device supported sample rates
Rahul Mittal [Mon, 3 Jun 2013 15:29:03 +0000]
ALSA: usbaudio: Expose usb device supported sample rates

Add alsa control for exposing sample rate range
supported by the usb audio device

Bug 1274264
Bug 1240790

Change-Id: I6b0c43416ad61009cd287f948210aca29b62c3fc
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/235030
(cherry picked from commit 3ee6a261731ca9d07e54c47923d338ca193dfed4)
Reviewed-on: http://git-master/r/236563
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: remove CPU power lim from EDP debugfs
Sivaram Nair [Thu, 6 Jun 2013 10:46:23 +0000]
ARM: tegra: remove CPU power lim from EDP debugfs

This attribute is moved under the sys EDP debugfs - hence, removing it
from here.

Change-Id: I3167a4121a9260754b51230b417317e6c2ddee4d
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/236269
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoEDP: tegra: capping table debugfs attrib
Sivaram Nair [Thu, 6 Jun 2013 10:42:30 +0000]
EDP: tegra: capping table debugfs attrib

Adding debugfs attributes for getting AP+DRAM EDP table and CPU power
limits.

Change-Id: I36f7d447a964f34a3ab6d803d753537baca1e235
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/236268
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agovideo: tegra: dc: support global alpha for in-order blender.
Kevin Huang [Wed, 5 Jun 2013 18:51:21 +0000]
video: tegra: dc: support global alpha for in-order blender.

Sequential blender uses different fulfillment of  global alpha
from parallel blender.

COVERAGE:
out.rgb = (1 - src.alpha * ga) * dst.rgb + ga * src.alpha * src.rgb

PREMULT:
out.rgb = (1 - src.alpha * ga) * dst.rgb + ga * src.rgb

Bug 1299706

Change-Id: I48e57fdc2e4c28768e4f364b2a4cf51ff331ca6e
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/235980
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoregulator: core: add api for setting ramp delay of rails dynamically
Laxman Dewangan [Wed, 5 Jun 2013 12:49:58 +0000]
regulator: core: add api for setting ramp delay of rails dynamically

Add public regulator API to configure the ramp delay of rails
dynamically.

bug 1287836

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

6 years agostaging: iio: light: Return -1 if channel is off
Sri Krishna chowdary [Wed, 5 Jun 2013 11:33:08 +0000]
staging: iio: light: Return -1 if channel is off

Return -1 to differentiate between the following cases
1. channel enabled + data value returned 0
2. channel disabled

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

6 years agoARM: tegra: macallan: fix Coverity issue
Deepak Nibade [Tue, 4 Jun 2013 14:48:41 +0000]
ARM: tegra: macallan: fix Coverity issue

- fix uninitialized scalar variable
  Coverity id : 23406

Bug 1046331

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

6 years agousb: otg: tegra: Avoid multiple calls to schedule_work
Petlozu Pravareshwar [Tue, 4 Jun 2013 12:24:49 +0000]
usb: otg: tegra: Avoid multiple calls to schedule_work

Avoid multiple calls to schedule_work when resuming otg.

Bug 1297202

Change-Id: Icb14fb7a7d5bdb66d98cc4b85681c4b204258109
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/235460
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agomedia: video: tegra: ov2710: move MCLK into sensor
David Schalig [Tue, 4 Jun 2013 07:19:31 +0000]
media: video: tegra: ov2710: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: Icdb297a20271f3360c9af24fa66d28eac3cdc4a5
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/235321
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karsten Patzwaldt <kpatzwaldt@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dsi: Remove DT gpio parse
Animesh Kishore [Mon, 3 Jun 2013 12:01:15 +0000]
video: tegra: dsi: Remove DT gpio parse

Moved to panel driver.

Bug 1172236

Change-Id: I814b5245066892a2604a4a00e0502898a5eca31c
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/235008
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agommc: tegra: Fix tuning for multiple freqs
Pavan Kunapuli [Tue, 28 May 2013 14:39:14 +0000]
mmc: tegra: Fix tuning for multiple freqs

When DFS is enabled and tuning is run for multiple frequencies, ensure
that tuning settings/flags are maintained indenpendently for each
frequency.

Bug 1238045

Tested-by: Riham Haidar <rhaidar@nvidia.com>
(cherry picked from commit c6ee9bbf8a901359881d40a6ad9902aae44f4044)
Change-Id: Id4bde8d93c89b9e0188948fba37402f3251ff578
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/234886
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoARM: tegra: sdhci: Pass min,max vcore overrides
Pavan Kunapuli [Wed, 8 May 2013 04:31:42 +0000]
ARM: tegra: sdhci: Pass min,max vcore overrides

Pass minimum and maximum vcore override voltages to be used
during auto tuning.

Bug 1246712
Bug 1294659

Change-Id: I9d038dcec32fc3592103ab459aa99591ea4a7106
Reviewed-on: http://git-master/r/212683
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/234885
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agommc: tegra: Set override voltages with dvfs APIs
Pavan Kunapuli [Fri, 17 May 2013 14:18:53 +0000]
mmc: tegra: Set override voltages with dvfs APIs

Set tuning override voltages using dvfs APIs rather than regulators.
During boot, if the minimum override voltage cannot be set, schedule
for retuning.

Bug 1246712

Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
(cherry picked from commit e7c9ed6a732d08a3638bff997b671c87081d4257)
Change-Id: Ie467b4250107c9745d34859ec2a405aa42024186
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/234884
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Tested-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoARM: tegra148: clock: Update cpu to emc rate ratio
Pritesh Raithatha [Mon, 27 May 2013 14:01:21 +0000]
ARM: tegra148: clock: Update cpu to emc rate ratio

Bug 1285880

Change-Id: I545195aca15b5ec24228bd4d82cc3ee5d9dcc99d
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/233003
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: nvmap: Export handle parameters
Terje Bergstrom [Mon, 27 May 2013 10:56:53 +0000]
video: tegra: nvmap: Export handle parameters

Implement nvmap_get_handle_param(), which exports nvmap parameters to
other kernel drivers.

Bug 1259839

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

6 years agomedia: video: tegra: optimize AR0833 sequence to reduce wait time
Hu He [Fri, 19 Apr 2013 17:14:02 +0000]
media: video: tegra: optimize AR0833 sequence to reduce wait time

Reduce wait time from 100ms to 1ms per
suggestion from vendor.

Bug 1261782

Change-Id: I294380676ecb0602c2b5d8f633fb41c4673347eb
Signed-off-by: Hu He <hhe@nvidia.com>
Reviewed-on: http://git-master/r/221255
(cherry picked from commit b4d857393e0755d0148a41eb1e7cf58d2aedab40)
Reviewed-on: http://git-master/r/231736
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agosecurity: nv_tee_driver: file storage apis
Varun Wadekar [Thu, 18 Apr 2013 07:02:05 +0000]
security: nv_tee_driver: file storage apis

- Add a new FS ioctl handler to service ioctls from the storage
daemon.
- Add read/write handler to help the secure world to get its
data across to the storage daemon.
- A read request with NULL input params will return the size of
the file. The client then can allocate memory accordingly and proceed
with the actual read.

The general sequence of events from the daemon would be:
- TEE_IOCTL_FILE_NEW_REQ to get the file name, size and type (read/write)
- TEE_IOCTL_FILE_FILL_BUF to get data in case of writes
- TEE_IOCTL_FILE_REQ_COMPLETE to signal completion to the secure world

Change-Id: I52450af8d79164338773c1575417a863978de3d6
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/220982
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra14: pm: Keep PLLP on during LP1BB
Prashant Malani [Thu, 6 Jun 2013 18:17:56 +0000]
ARM: tegra14: pm: Keep PLLP on during LP1BB

Modem can run off of PLLP. Therefore we
always keep PLLP on while entering LP1BB

Bug 1299404
Bug 1302597

Change-Id: I56a4178e954188d7e1c73058933a1eddc2e24b8d
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/236363
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: ceres: move battery model data to common INI file
Laxman Dewangan [Wed, 5 Jun 2013 10:19:52 +0000]
ARM: tegra: ceres: move battery model data to common INI file

Move battery model data to the common INI file in place of
keeping it in c file.

This way, it will simple and easy to refer the different battery data
at single place.

Change-Id: I7ff721f86832f12aa7173ca7f0689ff670f77483
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235835
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: macallan: add Yoku 3900 battery data for Max17048
Laxman Dewangan [Mon, 3 Jun 2013 13:52:51 +0000]
ARM: tegra: macallan: add Yoku 3900 battery data for Max17048

Just add the Yoku 3900mA battery data for Macallan.
Details of model data:
 Battery: Yoku
 current: 3900mA
 system shutdown voltage 3.0V.
 Model: Max17048

Macallan will still use the Yoku4100 as default.

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

6 years agoARM: tegra: pluto: move battery model data to common INI file
Laxman Dewangan [Wed, 5 Jun 2013 10:00:49 +0000]
ARM: tegra: pluto: move battery model data to common INI file

Move battery model data to the common INI file in place of
keeping it in c file.

This way, it will simple and easy to refer the different battery data
at single place.

Change-Id: Ie874effd679ddf6a5f24c10e2f11a4623866047d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/234769
(Cherrypicked from commit d0a22eb7f117fb6bfe68022d0541134a8c0bf68e)
Reviewed-on: http://git-master/r/235833
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: macallan: move battery model data to common INI file
Laxman Dewangan [Wed, 5 Jun 2013 09:15:14 +0000]
ARM: tegra: macallan: move battery model data to common INI file

Move battery model data to the common INI file in place of
keeping it in c file.

In this way, the model data will share the same structure and
avoid the duplicaton of table across board files.

Change-Id: I33aa45b1fbed48b6ad15512398949f390c3bbabe
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/234571
(Cherrypicked from 7bb76ff9095a6bab220af5442063a503d174e2bd)
Reviewed-on: http://git-master/r/235832
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: macallan: add ini file for yoku 4100mAh battery
Syed Rafiuddin [Thu, 30 May 2013 06:55:17 +0000]
arm: tegra: macallan: add ini file for yoku 4100mAh battery

addition of battery chracterization data to max71048
fuel-gauge driver

Bug 1283683

Change-Id: I6cf37a3d3720f98de0e58f1027bb88e712641e92
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/232077
(Cherrypicked from 048954eaaa6accbb97e41e856d3b6bb04d5382e0)
Reviewed-on: http://git-master/r/235831
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomedia: video: tegra: ov14810: move MCLK into sensor
David Schalig [Wed, 5 Jun 2013 06:53:24 +0000]
media: video: tegra: ov14810: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: Idfcea1c37d8cc4b399e897ddf28bd102d42b9270
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/235752
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karsten Patzwaldt <kpatzwaldt@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: ar083x: move MCLK into sensor
David Schalig [Wed, 5 Jun 2013 02:13:09 +0000]
media: video: tegra: ar083x: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: Ia7a7de2ab800d05abc60547774b052c886d04d1f
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/235690
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karsten Patzwaldt <kpatzwaldt@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: video: tegra: ov9726: move MCLK into sensor
David Schalig [Wed, 5 Jun 2013 02:11:40 +0000]
media: video: tegra: ov9726: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I46a2ec249f79eb21bbe388a2c67a22e0b3d6fa1e
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/235689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Karsten Patzwaldt <kpatzwaldt@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agotegra: Ceres: Ensure gpadc driver is probed before charger
Darbha Sriharsha [Wed, 5 Jun 2013 15:25:39 +0000]
tegra: Ceres: Ensure gpadc driver is probed before charger

Ensure that the max77660 charger driver is probed after
the max77660 GPADC driver as the charger driver uses readings
obtained from GPADC driver

Bug 1259466

Change-Id: I39bf1e182f3a985427c18368e4d9d0620343847c
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/236241
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: add config option for nvmap handle marshalling
Krishna Reddy [Tue, 4 Jun 2013 18:23:46 +0000]
video: tegra: add config option for nvmap handle marshalling

update code to perform handle marshalling based on config option

Change-Id: If7dd8a20088dfa9d593f799ec9ceab006b4a6880
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/235525
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agosched,rt: disable rt_runtime borrowing by default
Mike Galbraith [Thu, 30 May 2013 21:01:25 +0000]
sched,rt: disable rt_runtime borrowing by default

Make the default RT_RUNTIME_SHARE setting reflect the most common
throttle role, that of safety mechanism to protect the box.

Bug 1269903

Change-Id: Id4ccf0095ea254f2e15fddc7ab02069f7f60a7c0
Signed-off-by: Mike Galbraith <bitbucket@online.de>
Reviewed-on: http://git-master/r/234274
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM:tegra: Add support to parse touch id
Xiaohui Tao [Tue, 21 May 2013 22:03:02 +0000]
ARM:tegra: Add support to parse touch id

Support to parse touch panel id for roth

Change to parse touch vendor id for ceres and pluto

Bug 1253012

Change-Id: I902a1a63efc030cb4b4e82e7301c00027c8e950c
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/221647
Reviewed-on: http://git-master/r/218964
(cherry picked from commit 29178237b3073b45569dcec2fc85bdd7491a1f25)
(cherry picked from commit a79f45c5357191fa8da61c8fefe3a79bef8afadb)
Reviewed-on: http://git-master/r/229038
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: enable Tskin-induced thermal shutdown
Hyungwoo Yang [Tue, 23 Apr 2013 00:17:56 +0000]
ARM: tegra: enable Tskin-induced thermal shutdown

This change adds a trip point which shutdowns device when Tskin
reaches to the trip point. Default value of the trip point is 57C.

Bug 1274052

Change-Id: Ibebd93ba3b83d750cd34bb01f35ef2695ab8c975
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/221813
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: macallan: enable OC4 interrupt
Tony Liu [Mon, 6 May 2013 05:48:54 +0000]
arm: tegra: macallan: enable OC4 interrupt

Following are changes:
-provide base interrupt for soc therm to support OC interrupt
-enable CPU/GPU throttling through OC4 interrupt

Bug 1255452

Change-Id: I19d0194fc411df4da73d2f6dc5abc0c5ab7937a9
Signed-off-by: Tony Liu <tonliu@nvidia.com>
Reviewed-on: http://git-master/r/225550
(cherry picked from commit f9e520dec8fb4bf0628f87367841936586fc15fa)
Reviewed-on: http://git-master/r/235799
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agomedia: video: tegra: ov5650: move MCLK into sensor
David Schalig [Tue, 4 Jun 2013 07:15:37 +0000]
media: video: tegra: ov5650: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I73f4b1c599ed8565fa9bc414eca166e61ac98f4a
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/235320
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: otg: increase otg wakelock hold time
Rohith Seelaboyina [Fri, 24 May 2013 11:02:24 +0000]
usb: otg: increase otg wakelock hold time

increase otg wakelock hold time to properly load/unload
stack in case of usb devices

Bug 1293039

Change-Id: I7e17c2bb6dd0a6e383e398c94e23a584ec22aa10
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/232073
(cherry picked from commit e3487db6b4064797f2ebcb38296f5b2a651b1a83)
Reviewed-on: http://git-master/r/234840
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: edp: refactor Tegra3x CPU EDP params
Diwakar Tundlam [Fri, 10 May 2013 23:14:50 +0000]
arm: tegra: edp: refactor Tegra3x CPU EDP params

Move tegra3x CPU EDP params routine to its own file.

Bug 1274041

Change-Id: Id41eeeccb11a61f2d463f91f2b0fb72567cc3eea
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/233911
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra14: clock: Fix PLLC2 and PLLC3 parameters
Kaz Fukuoka [Tue, 28 May 2013 23:46:41 +0000]
ARM: tegra14: clock: Fix PLLC2 and PLLC3 parameters

Changing to Ka=26 and Kb=80 to solve locking issue.

bug 1239762
bug 1293714
bug 1292927

Change-Id: I562087f80288f552012c25920f46492d2bec0fa6
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/233458
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoregulator: palmas: add turn ON time for LDOs
Laxman Dewangan [Tue, 4 Jun 2013 14:53:48 +0000]
regulator: palmas: add turn ON time for LDOs

Palmas' LDO take 100 to 500us for turning it ON.
Add the enable time for LDOs.

bug 1289898

Change-Id: I8a8aeee04d2a53443e7281f3e066cf51cd5c17b2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235483
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agovideo: tegra: dsi: fix Coverity issues
Deepak Nibade [Tue, 4 Jun 2013 12:59:21 +0000]
video: tegra: dsi: fix Coverity issues

- fix negative array index write
  Coverity id : 23410
- fix dereference before null check
  Coverity id : 23411

Bug 1046331

Change-Id: Ibdd0e7f0049c04e5c6f69b4e099f5b709a076773
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/235468
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: dalmore: enable full regulator constraints
Laxman Dewangan [Tue, 4 Jun 2013 12:52:14 +0000]
ARM: tegra: dalmore: enable full regulator constraints

Enable full regulator constraints so that the rail which does not
have any user and not always-ON can be disable after kernel boot
complete.

bug 1219076

Change-Id: I4bb641bbad451d207c46b7cc19538fb794908d0b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235464
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: pluto: enable full regulator constraints
Laxman Dewangan [Tue, 4 Jun 2013 11:44:15 +0000]
ARM: tegra: pluto: enable full regulator constraints

Enable full regulator constraints so that the rail which does not
have any user and not always-ON can be disable after kernel boot
complete.

Also remove overusage of sleep flag as the rails can be off in normal
state of the system, not limited to LP0 state.

bug 1219076

Change-Id: Ie955666dee9b405256437b8cae98842c1fa56f64
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235443
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: Dalmore: ldo9 warm boot state fix
R RAJ KUMAR [Tue, 4 Jun 2013 10:07:08 +0000]
ARM: tegra: Dalmore: ldo9 warm boot state fix

Palmas regulator ldo9 is not in correct state
needed to power on sdmmc3 after a soft reboot.
As a result card is not detected after a soft
reboot. fix is to mantain the last software
set value to the ldo and not the OTP value
after a soft reset.

Bug 1299139

Change-Id: I593e0f2947f46d71da94ea8e2d4d6a6fca8e4388
Signed-off-by: R RAJ KUMAR <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/235406
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agosoc: tegra: max98090: speaker EDP client support
Dara Ramesh [Tue, 4 Jun 2013 06:17:30 +0000]
soc: tegra: max98090: speaker EDP client support

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

bug 1297303

Change-Id: Iebedd70566878218848040b7090a2976c1ec520b
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/235288
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agostaging: iio: light: Remove temperature sensor
Sri Krishna chowdary [Tue, 4 Jun 2013 05:35:25 +0000]
staging: iio: light: Remove temperature sensor

Although MAX44005 supports temperature sensor,
Android has no use case for Ambient temperature sensor.
Remove temp sysfs and hence temperature enable
functionality too.

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

6 years agoARM: tegra: GPS: make regulator name proper
Laxman Dewangan [Mon, 3 Jun 2013 18:23:24 +0000]
ARM: tegra: GPS: make regulator name proper

GPS driver requires 2 voltages 1.8V and 3.3V. The 1.8V is
require  for digital section and call as "dvdd" and 3.3V is
require for analog section and called as "avdd".

Renaming the supply name accordingly.

Change-Id: Ie8f6a17533deed20b65b3e66122c5b84786c3a6f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235082
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: BT: bluedroid: make regulator name proper
Laxman Dewangan [Mon, 3 Jun 2013 17:37:39 +0000]
ARM: tegra: BT: bluedroid: make regulator name proper

BT driver bluedroid requires 2 voltages 1.8V and 3.3V. The 1.8V is
require  for digital section and call as "dvdd" and 3.3V is require
for analog section and called as "avdd".

Renaming the supply name accordingly.

Change-Id: Idc531d0df1ecc91e3f1f433ce99f4a6ddca24873
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235081
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: wifi: bcm4329_wlan: make regulator name proper
Laxman Dewangan [Mon, 3 Jun 2013 17:21:52 +0000]
ARM: tegra: wifi: bcm4329_wlan: make regulator name proper

WIFI module BCM4329 require 2 voltages 1.8V and 3.3V. The 1.8V is
require  for digital section and call as "dvdd" and 3.3V is require
for analog section and called as "avdd".

Renaming the supply name accordingly.

Change-Id: I6e92140b1fffa813bed2335e53c2f308c0a39875
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235080
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoARM: tegra: nfc: add device name in regulator consumer for nfc
Laxman Dewangan [Mon, 3 Jun 2013 16:58:57 +0000]
ARM: tegra: nfc: add device name in regulator consumer for nfc

Add the device name in the regulator consumer entry for nfc devices
interfaced on different platforms.

Change-Id: Ibae71f787f5c44a457ca82b5bd541a3eec687a6b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/235079
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: camera: do not powergate DISA on T30
Naveen Kumar S [Thu, 30 May 2013 09:14:02 +0000]
video: tegra: camera: do not powergate DISA on T30

Added conditional check to determine that the SoC is not T20 or T30
while powergating DISA partition as this partition is not present
in these SoCs.

Bug 1289935

Change-Id: I13b9eb84edf4c2a9fed27905f245f0be5d7da365
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/234054
(cherry picked from commit 21694e460574c1228c01c4cae3a7071026020096)
Reviewed-on: http://git-master/r/234976
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: dynamically init sys EDP cap
Sivaram Nair [Wed, 29 May 2013 10:21:29 +0000]
ARM: tegra: dynamically init sys EDP cap

If the device is not powered by a battery, use virtualy unlimited
battery cap.

Change-Id: I1f6bf578af2309d1070034e57ca9b6b6e9575568
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/233652
(cherry picked from commit 3dc65b43185f38e1f9768fbf85c9bf71926eb585)
Reviewed-on: http://git-master/r/234968
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoEDP: tegra: rebase core client states on gain
Sivaram Nair [Thu, 30 May 2013 11:22:57 +0000]
EDP: tegra: rebase core client states on gain

The core client E-states are scaled down proportional to the gain
factor. This will reduce the difference between an available budget and
AP+DRAM EDP table entries.

Bug 1266730

Change-Id: Ie68d3a71e320433b2096e3a5d40c8bb1185bae4f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/234947
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoEDP: psy depletion: allow null rbat lut
Sivaram Nair [Wed, 29 May 2013 17:50:29 +0000]
EDP: psy depletion: allow null rbat lut

For boards that do not specify an rbat lut, use the r_const as the
RBAT.

Change-Id: Ica8045c65fed34b48f2b89a5be4bc1435320924f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/233805
(cherry picked from commit 43e96b352cdfb1438edc326da0ac4ae05e14c03e)
Reviewed-on: http://git-master/r/234945
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: ceres/atlantis: add driver name in regulator consumer
Laxman Dewangan [Mon, 3 Jun 2013 07:13:01 +0000]
ARM: tegra: ceres/atlantis: add driver name in regulator consumer

Add driver name in the regulator consumer for the tegra_bbc_proxy
driver.

Also corrected the error check return from regulator_get() as it
returns PTR_ERR in case of error, it never returns NULL.

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

6 years agoarm: tegra: save and restore EMC_REFRESH value
Prashant Gaikwad [Fri, 31 May 2013 09:15:32 +0000]
arm: tegra: save and restore EMC_REFRESH value

After exit from LP1/LP0 EMC_REFRESH was restored to 1 which
is incorrect from timing perspective. It was working fine
with system suspend state since later frequency switch will
restore it to correct value. But for LP1 in idle it regressed
power on DDR power rails since DRAM dynamic self refresh will
not work.

Bug 1294838

Change-Id: I0aa9a7ef74f28a97cd1603179f2362d223b10c76
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/234474
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoInput: touch: raydium: Update to Raydium v56.1 driver
Xiaohui Tao [Thu, 30 May 2013 18:30:13 +0000]
Input: touch: raydium: Update to Raydium v56.1 driver

Raydium code drop

Jump directly from v51 to v56.1

V52 Changes (Beta) (Roth only):
[1]  Add Kernel control architecturee (SlowScan/SetIdle/Start/End..)
[2]  New parameter loading architecture
[3]  Refine ESD solution for MP
[4]  Re-fine self-test procedure for MP
[5]  Load calibration file from environment variable path
[6]  Fix the LP0 2 sec delay issue
[7]  Fix finger on the screen during boot up issue
[8]  This version only support Roth platform
[9]  Refine coding style (4/16)
[10] Newer parameter modifier apk (4/16)
[11] Newer architecture for idle mode power saving has some problem,
     please ignore the idle mode verification on this trial version  (4/16)

V53 Changes (Beta) (Roth only):
[1]  Save calibration file from environment variable path
[2]  Refine selftest threshold

V54 Changes (Beta) (Roth only):
[1]  Fix the hard code file path to environment variable path
[2]  Remove the redundancy message in kernel layer

V54.1 Changes (Beta) (Roth only):
[1]  Refine environment variable path mechanism
[2]  Add test version field for debugging
[3]  Enable environment variable path debug msgs

V54.2 Changes (Beta) (Roth only):
[1] Refine coding style
[2] Add kernel command entries
[3] Using kernel command instead of hard-coded in suspend/resume routine
[4] Using lower report rate during idle mode to fix CPU ain't got into idle mode (5 Hz)

V55.0 Changes (Beta) (Roth only):
[1]  Fix idle mode issue & increase report rate
[2]  Add error handling block for kernel table loading
[3]  Refine coding style

V55.1 Changes (Beta) (Roth only):
[1]  Refine parameter for factory test
[2]  Add copy file from TOUCH_CONF_DIR in parameter loading
[3]  Turn on loading file logcat msgs

V55.2 Changes (Beta) (Roth only):
[1]  Remove unnecessary code
[2]  Add GPIO interface for future sensor select
[3]  Refine selftest procedure
[4]  Refine calibration procedure

V55.3 Changes (Beta) (Roth only):
[1]  Add support to disable power and clock when display is off
[2]  Parameter fine-tune

V55.4 Changes (Beta) (Roth only):
[1]  Fix CTS test failure in service transaction return
[2]  Fix stub command error return

V55.5 Changes (Beta):
[1]  Suppor roth/pluto/dalmore

V55.6 Changes (Beta):
[1]  Refine coding style
[2]  Parameter fine tune for pluto/dalmore

V55.7 Changes (Beta):
[1]  Parameter fine tune for pluto/dalmore

V55.8 Changes (Beta):
[1]  Parameter fine tune for pluto(Orientation setting for RM31081)

V55.9 Changes (Beta):
[1]  Refine resume control flow
[2]  Modify touch WDT function
[3]  Touch start/stop control flow modification

V55.10 Changes (Beta):
[1]  Set REST as the following
    Suspend
      1. Pull RESET low
      2. Disable clk and power
      3. Pull RESET high
    Resume
      1. Pull RESET low
      2. Enable power ,clk
      3. Pull RESET high

V56 Changes:
[1]  Fix CTS fail error

V56.1 Changes:
[1]  Fix CTS fail error
[2]  Shorten suspend/resume duration

Bug 1278869
Bug 1283619
Bug 1297187
Bug 1280093
Bug 1257642
Bug 1245549
Bug 1245404

Change-Id: I04acd5001e6ec675c3a4ddf2db892e0886d36303
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/234223
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: update timing after emc register write
Prashant Gaikwad [Thu, 30 May 2013 11:55:10 +0000]
arm: tegra: update timing after emc register write

Need to trigger timing parameter update from software
after writing to EMC_CFG register unless there is
frequency switch. During resume from LP1 there is no
frequency switch hence update it using EMC_TIMING_CONTROL
register.

Bug 1294838

Change-Id: Id426d4e436ce033547c9e3e96a5b504b609a5c04
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/234150
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: roth: fix panel enable behavior
Rakesh Iyer [Fri, 29 Mar 2013 20:35:22 +0000]
arm: tegra: roth: fix panel enable behavior

Fix errors in panel enable behavior.

Bug 1263244.

Change-Id: Ife5ef0e59bff4bd3df53fc1e69e6d3c588d2edd2
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/214656
(cherry picked from commit b8faf9aef359394386bd76d9d8462a9e7026a8cc)
Reviewed-on: http://git-master/r/231230
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: roth: correct panel sequences
Rakesh Iyer [Mon, 18 Mar 2013 22:40:56 +0000]
arm: tegra: roth: correct panel sequences

Program roth panel with vendor provided sequences.
Initialize panel voltages in vendor specified order.

Bug 1250336.
Bug 1254735.

Change-Id: Icbc305acb4146134475dc390c6274258902bbe93
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/210987
(cherry picked from commit 9c86432f5f209913c6c908b783ac7b09ec8328bb)
Reviewed-on: http://git-master/r/231229
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: roth: ld05 for hdmi for roth 2560
Rakesh Iyer [Mon, 11 Mar 2013 19:48:21 +0000]
arm: tegra: roth: ld05 for hdmi for roth 2560

Use ldo5 for hdmi pll for roth 2560.

Bug 1247377

Change-Id: Iad109096480f8ac1f3d8bf35beaf45a38be71617
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/208155
(cherry picked from commit 6a579c1713067c6cdb9e0c88c7fc5f4e5c5e1ba8)
Reviewed-on: http://git-master/r/231228
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra14: fuse: expose core speedo via API
Prashant Malani [Tue, 4 Jun 2013 22:30:55 +0000]
ARM: tegra14: fuse: expose core speedo via API

Provide a function to return the core speedo
value being used.

Bug 1234031

Change-Id: If20b6a4e46e71fb8e69ebcdfa2477d8b9eb88710
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/235632
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hoang Pham <hopham@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agousb: xhci: tegra: clear SMI_INTR when ENABLE_BW msg
Ajay Gupta [Sat, 1 Jun 2013 00:05:37 +0000]
usb: xhci: tegra: clear SMI_INTR when ENABLE_BW msg

SMI_INTR also needs to be cleared as part of handling ENABLE_BW
firmware message.

Also fixed a locking related issue in enable_fw_message()

Bug 1297966

Change-Id: Ia4c9ccf0316240b0e966a6510d665a549c8ba711
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/234723
(cherry picked from commit d3077c2b7a259ff8f21103f672f294817478b487)
Reviewed-on: http://git-master/r/235061
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: set SNPS as owner to save power
Ajay Gupta [Fri, 31 May 2013 17:40:19 +0000]
usb: xhci: tegra: set SNPS as owner to save power

Saves power when no HS devices are connected.

Bug 1275290

Change-Id: Ic5f75411ea7e888fc150459a03b004fbc034d7e0
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/234625
(cherry picked from commit 18b7fd1a4deb8b77b589f03b5d4e1cb10645efac)
Reviewed-on: http://git-master/r/235060
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: enable SS wake intr for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable SS wake intr for active ports

Enabling SS wake interrupt only for active ports as passed
by board file.

Bug 1268244

Change-Id: Iee368f51c875594085798c055d37633b3d6f02a8
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229993
(cherry picked from commit 9b0292923e23f6ade3f515fa180f08ef4f14654c)
Reviewed-on: http://git-master/r/235059
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: enable HS wake intr for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable HS wake intr for active ports

Enabling HS wake interrupt only for active ports as passed
by board file.

Bug 1268244

Change-Id: I8c5120d290762084c7fd02f60d415a7b19d52bdf
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229992
(cherry picked from commit 900660be1be54a64a1f8e49c231664c2d20bdd7c)
Reviewed-on: http://git-master/r/235058
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: enable SS wake signal for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable SS wake signal for active ports

Enabling SS wake only for active ports as passed by board file.

Bug 1268244

Change-Id: Ib0c9e94a9353b2ce3a3ece3082b86726e2c041f9
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229991
(cherry picked from commit 19e2fc3504f0ef07d6a0d45deff831ef7d43125e)
Reviewed-on: http://git-master/r/235057
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: enable SS VCORE only for active ports
Ajay Gupta [Fri, 17 May 2013 21:29:06 +0000]
usb: xhci: tegra: enable SS VCORE only for active ports

Enabling SS VCORE only for active ports as passed by board file.

Bug 1268244

Change-Id: Ifd2a04340c2b17d3e1410f233c3a6949050818a6
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229990
(cherry picked from commit 8c59ce76e72d88eecaafeaf6ea31b2f7152310b3)
Reviewed-on: http://git-master/r/235056
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: refactor padctl programming
Ajay Gupta [Mon, 3 Jun 2013 17:09:37 +0000]
usb: xhci: tegra: refactor padctl programming

Removes the padctl_data being passed from board file as
some of them can be computed inside driver based on active
ports on a board. Some padctl datas are platform specific and
so have been moved to arch/arm/mach-tegra/xusb.c

Bug 1268244

Change-Id: I782768eddbb2a1e240fa798982eb64a3459ba617
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229987
Reviewed-on: http://git-master/r/235055
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: cleanup hs disconnect fix
Ajay Gupta [Tue, 14 May 2013 22:11:34 +0000]
usb: xhci: tegra: cleanup hs disconnect fix

HS disconnect fix has introduced Coverity bug by returning
unconditionally from a function leaving dead code after return.
Fixing the same by checking a flag "ignore_freq_change" which
will be set for T114 in arch/arm/mach-tegra/xusb.c.

Bug 1046331

Change-Id: I7b86a47b7d1051db6d29fb56fb27c4a426df2ec6
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229986
(cherry picked from commit 758d93a5fc85cecde8a34f108650e3cbbd41aba4)
Reviewed-on: http://git-master/r/235054
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: read port number from board data
Ajay Gupta [Tue, 14 May 2013 21:34:00 +0000]
usb: xhci: tegra: read port number from board data

Bug 1268244

Change-Id: I9cb06015f096de6c3f65a8bef73441918ab1e58f
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228502
Reviewed-on: http://git-master/r/235053
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: xusb: read usb_calib once in common file
Ajay Gupta [Tue, 14 May 2013 20:16:36 +0000]
ARM: tegra: xusb: read usb_calib once in common file

Moved usb_calib read part in arch/arm/mach-tegra/xusb.c from
Dalmore and Pluto board files.

Bug 1268244

Change-Id: I1188499da7138c5b02c8d26d298646ad179226e1
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228501
(cherry picked from commit f42db0c62ddb8826797cf285df3a5547039a6a22)
Reviewed-on: http://git-master/r/235052
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: read padctl data from new place
Ajay Gupta [Tue, 14 May 2013 19:30:42 +0000]
usb: xhci: tegra: read padctl data from new place

xusb platform device will now have padctl data inside baord_data
which is a struct inside tegra_xusb_platform_data

Bug 1268244

Change-Id: I147eacfcdeaec22d7d101a739af82ccb2b3febf0
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228500
Reviewed-on: http://git-master/r/235051
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: refactor xusb registration
Ajay Gupta [Tue, 14 May 2013 19:09:59 +0000]
ARM: tegra: refactor xusb registration

Refactored xusb device registration to support multi chip
and multi board configuration.

Added arch/arm/mach-tegra/xusb.c where all board files belonging
to any tegra chip would call tegra_xusb_init() with board specific
config to register xusb platform device.

Bug 1268244

Change-Id: I6fc08e9c762e93c68172be58b187add6f62171cb
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228499
Reviewed-on: http://git-master/r/235050
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra: xusb: set PD_CHRP and PD_DISC always zero
Ajay Gupta [Tue, 21 May 2013 15:54:04 +0000]
ARM: tegra: xusb: set PD_CHRP and PD_DISC always zero

This is needed to save 4mW power.

Bug 1275290

Change-Id: Id96916c1a9d85f915284369942a59e454becc1d8
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/231016
(cherry picked from commit fd2289697553352c75838a35a8898a168de85bdb)
Reviewed-on: http://git-master/r/235049
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agousb: xhci: tegra: process set bandwidth fw message
Ajay Gupta [Mon, 20 May 2013 21:46:22 +0000]
usb: xhci: tegra: process set bandwidth fw message

Bug 1266234

Change-Id: I0c89373913391bd8b04f2245d178eae44a9bded5
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/231004
Reviewed-on: http://git-master/r/235048
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: Tegra: Roth: Update DVFS for P2454 and P2560
Sang-Hun Lee [Tue, 21 May 2013 18:33:19 +0000]
ARM: Tegra: Roth: Update DVFS for P2454 and P2560

Bug 1181038

Change-Id: I1bb349448106dcc30e7d7fd6d62bbe9dfd2f9f7f
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/223940
(cherry picked from commit aa528008d1fc4f706e897f7618d59f8e577129a0)
Reviewed-on: http://git-master/r/231255
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: Tegra: Roth: Toggle DDC pull down with hpd
Graziano Misuraca [Thu, 4 Apr 2013 00:23:06 +0000]
ARM: Tegra: Roth: 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: I57bb7209ac79762f90c88e999a75133d8125c453
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/216317
(cherry picked from commit 222b3bd12b2c5a5e2537ce1a89e356b646f5be79)
Reviewed-on: http://git-master/r/224297
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agopower: test_power: add voltage_ocv and temp parameters
Timo Alho [Mon, 3 Jun 2013 07:40:05 +0000]
power: test_power: add voltage_ocv and temp parameters

This patch extends test_power by adding configurable parameters for
open circuit voltage and temperature of the battery.

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

6 years agommc: tegra: Code clean up
Naveen Kumar Arepalli [Mon, 3 Jun 2013 04:26:49 +0000]
mmc: tegra: Code clean up

For SDR 50 mode don't run the sdmmc controller at freq greater
than 104MHz other than T30 platforms.

Bug 1239457

Change-Id: I89014c0a829b1ecb2e30580288cc314205c73f95
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/234849
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agomedia: video: tegra: imx135: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:59:45 +0000]
media: video: tegra: imx135: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: Ica2b05b59b86df8cc7e1179e5e42fca93b169bba
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234468
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agomedia: video: tegra: imx132: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:59:12 +0000]
media: video: tegra: imx132: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I5ca45aba3d8aaf49926df0c77375b714afb90e27
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234467
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agomedia: video: tegra: ov9772: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:58:45 +0000]
media: video: tegra: ov9772: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I38990e3a830b93368c6d7800a8d2207aeaada08a
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234466
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agomedia: video: tegra: imx091: move MCLK into sensor
David Schalig [Fri, 31 May 2013 08:50:09 +0000]
media: video: tegra: imx091: move MCLK into sensor

Move MCLK control from tegra_camera into sensor driver,
to allow for full control over MCLK rate and enable timing,
per sensor power-on/off sequence specification.

Bug 1298672

Change-Id: I222a93d9bc29f01d9f582f614c3513e439e634e5
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234465
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: decouple MCLK from vi device
David Schalig [Thu, 30 May 2013 08:24:38 +0000]
arm: tegra: decouple MCLK from vi device

Allow clocks vi_sensor and vi_sensor2 to be used from any device,
not only tegra_camera (vi) device. This is a prerequisite to
move sensor MCLK control into sensor drivers, and to use MCLK for
non-camera devices.

Also, the default recommendation for camera MCLK is different
between T20/T30/T114 and T148: On T148 cameras should use vi_sensor2
while on other Tegra families it should be vi_sensor. Thus
create a clock alias 'default_mclk', to allow sensor drivers without
explicit MCLK config default to the right one.

Bug 1298672

Change-Id: Ifda4d39d927560e2f2c50c953f2a9c372e9cf72c
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/234044
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: roth: keep smart dimmer off on boot
Rakesh Iyer [Sun, 31 Mar 2013 06:49:02 +0000]
arm: tegra: roth: keep smart dimmer off on boot

Keep smart dimmer off during boot for a consistent backlight setting.

Bug 1263334.

Change-Id: I2bc663f1e366c488d16641d99899bc51b9197867
Signed-off-by: Rakesh Iyer <riyer@nvidia.com>
Reviewed-on: http://git-master/r/214844
(cherry picked from commit c52c073efc2e47c5eab2f0802b07c96d23302065)
Reviewed-on: http://git-master/r/229755
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: macallan: set the LDO5 to 2.8V
Hunk Lin [Sat, 11 May 2013 07:47:36 +0000]
arm: tegra: macallan: set the LDO5 to 2.8V

This rail is used for avdd of CAM2. Checked the datasheet of OV9772,
the avdd's typical value is 2.8V.

Bug 1287854

Change-Id: I9d38554f79d02cf1177c4a44c77b8b14d371e08a
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/227723
(cherry picked from commit ff221e553ea99b822181965b1ae5fc8191b72996)
Reviewed-on: http://git-master/r/228241
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoarm: tegra: macallan: set apply_uV for LDOs
Hunk Lin [Tue, 7 May 2013 09:51:18 +0000]
arm: tegra: macallan: set apply_uV for LDOs

apply_uV should be set if min == max, so change this flag for LDOs which
min == max.

Bug 1280145

Change-Id: I683b88c6ab011811a44a830550ef254f0e1ff609
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/226127
(cherry picked from commit 6019174f94407020d7d49e8128a24b5ea54faf63)
Reviewed-on: http://git-master/r/226963
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: backlight: EDP client for backlight
Vineel Kumar Reddy Kovvuri [Wed, 29 May 2013 05:31:05 +0000]
video: backlight: EDP client for backlight

Implements EDP client for Atlantis & Ceres backlight system
Bug 1266737

Change-Id: I236a4e9f4e17b50b9ee068c80e91411e3edd3a8e
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/221554
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agopower: palmas-battery: remove build warnings
Laxman Dewangan [Mon, 3 Jun 2013 09:16:17 +0000]
power: palmas-battery: remove build warnings

Fix build warnings:
-----------
palmas_battery.c: In function 'palmas_battery_current_now':
palmas_battery.c:540:20: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_voltage_now':
palmas_battery.c:612:17: warning: unused variable 'palmas' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_temperature':
palmas_battery.c:624:17: warning: unused variable 'palmas' [-Wunused-variable]
palmas_battery.c: In function 'palmas_gasgauge_calibrate':
palmas_battery.c:1225:11: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_current_avg':
palmas_battery.c:1311:15: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_current_setup':
palmas_battery.c:1413:15: warning: unused variable 'addr' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_remove':
palmas_battery.c:1637:17: warning: unused variable 'palmas' [-Wunused-variable]
palmas_battery.c: In function 'palmas_battery_probe':
palmas_battery.c:1500:13: warning: 'di' may be used uninitialized in this function [-Wuninitialized]
palmas_battery.c:1585:14: warning: 'retry_count' may be used uninitialized in this function [-Wmaybe-uninitialized]
-----------

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

6 years agoiommu/tegra: smmu: Introduce conditional GFP_ATOMIC
Hiroshi Doyu [Tue, 28 May 2013 12:34:27 +0000]
iommu/tegra: smmu: Introduce conditional GFP_ATOMIC

Introduce conditional GFP_ATOMIC to avoid unnecessary OOM with
GFP_ATOMIC at non atomic context.

bug 1281030

Change-Id: Ia3d0a48dcb5661b18efc2810b17d6e2925469204
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/233317
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoisomgr: optimize the reserve/realize calls
Krishna Reddy [Wed, 22 May 2013 19:34:07 +0000]
isomgr: optimize the reserve/realize calls

optimize the reserver/realize calls if there is
no change in bw requested.
update the trace message for set_margin API.

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

6 years agostaging: nvshm: fix race condition at tty init
Martin Chabot [Wed, 29 May 2013 14:28:30 +0000]
staging: nvshm: fix race condition at tty init

Fix kernel panic when data is received before
tty is installed.
Add more sanity check to avoid potential crashes
Remove unused variables
Remove tty flow control warning to avoid filling log

Bug 1295849

Change-Id: I388d93ddc01e8ad120dd1015d39c9227afadbc53
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/233766
Reviewed-by: Julien Vuillaumier <jvuillaumier@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Herve Fache <hfache@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agovideo: tegra: nvmap: detect invalid pointers passed to nvmap
Krishna Reddy [Thu, 30 May 2013 23:42:39 +0000]
video: tegra: nvmap: detect invalid pointers passed to nvmap

detect invalid pointers passed to nvmap and avoid crash in nvmap.
generate warnings for API's that don't return error, to ease
client code debug.

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

6 years agoARM: tegra14: pm: don't always shut pllp in LP1BB
Prashant Malani [Thu, 30 May 2013 20:57:51 +0000]
ARM: tegra14: pm: don't always shut pllp in LP1BB

If we are entering in LP1BB, and EMC is running
off of PLLP, we should refrain from switching it
off.

Bug 1295878

Change-Id: I5c87edc231fde529fd7d28f1d5574ebb74cf8427
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/234273
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vinayak Pane <vpane@nvidia.com>
Tested-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-by: Herve Fache <hfache@nvidia.com>
Tested-by: Herve Fache <hfache@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agoARM: tegra: gizmo: Change SE prefetch settings
Shravani Dingari [Thu, 30 May 2013 05:48:39 +0000]
ARM: tegra: gizmo: Change SE prefetch settings

Remove IMMEDIATE bit setting for SE and use
default value of zero for this bit

Bug 1287300

Change-Id: I68e61ddba0e9a4257ceb79d453006eacc98d0fe1
Signed-off-by: Shravani Dingari <shravanid@nvidia.com>
Reviewed-on: http://git-master/r/233979
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agoASoC: Tegra: Add support for dual mic
Ravindra Lokhande [Fri, 3 May 2013 16:42:39 +0000]
ASoC: Tegra: Add support for dual mic

To send dual mic data to modem we need to remove DAM from uplink path.

This changes removes dam from uplink path and sets codec rate to
16khz and uses dam for downlink.

Bug 1234999
Bug 1263251

Change-Id: I2ebfb206543afe352268049327a284e54e1933f8
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/225300
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agohwmon: ina230: add function to check alert flag
Timo Alho [Fri, 31 May 2013 18:58:07 +0000]
hwmon: ina230: add function to check alert flag

This patch adds a function to check the status of alert flag. This
enables alert functionality to be used (by polling) for ina devices
that do not have alert IO signal connected to AP.

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

6 years agovideo: tegra: dsi: Guard auto calibration for 11x SOC
Vineel Kumar Reddy Kovvuri [Tue, 28 May 2013 07:58:05 +0000]
video: tegra: dsi: Guard auto calibration for 11x SOC

Guard auto calibration logic with CONFIG_ARCH_TEGRA_11x_SOC
to make future chips unaffected.

Bug 1294647

Change-Id: If700bc846858423250d7b92909f87f01c613e093
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/233220
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

6 years agovideo: tegra: host: Load all sync points in waitchk
Terje Bergstrom [Tue, 5 Mar 2013 08:24:30 +0000]
video: tegra: host: Load all sync points in waitchk

Waitchk updates only a few sync point values from hardware because
the loop end condition is misconfigured. Fix that, and use the
standard bitmap macros for declaring the waitchk mask.

Remove checking for current > max, because that is easy to fail in
case of wrapping sync point.

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

6 years agoregulator: core: disable parent if child enabled during registration
Laxman Dewangan [Tue, 28 May 2013 14:44:57 +0000]
regulator: core: disable parent if child enabled during registration

If regulator's parent is enabled because of regulator is found to
be enabled during registration then disable parent if:
- regulator registration failed or
- when full constraints is enabled and regulator get disabled.

bug 1285809

Change-Id: I7a7c551543a9cbecf83bf10ef783e72aaa8c2173
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Venkat Reddy <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/233346
(Cherrypicked commit 93b10111379bbbef916b86105510f1b7bd6bf77f)
Reviewed-on: http://git-master/r/234761
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: mcerr: Include proper header for tegra148
Bo Yan [Fri, 31 May 2013 17:13:52 +0000]
ARM: tegra: mcerr: Include proper header for tegra148

Change-Id: I03ccdd575d798d2740982bf747f87f7000d8f49b
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/234583
Reviewed-by: Automatic_Commit_Validation_User