5 years agoARM: tegra: dvfs: Removed rail dfll mode thermal trips
Alex Frid [Sat, 20 Apr 2013 23:32:50 +0000]
ARM: tegra: dvfs: Removed rail dfll mode thermal trips

Removed separate set of trip-points for rail cooling device in dfll
mode. Used the same set as in pll mode. No need for two sets, and rail
thermal code had required them to be identical, anyway (bailed out
with WARN if requirement was violated).

Change-Id: Icf4b12736794cd5b5fabad8a01186c176689df07
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221347
(cherry picked from commit 5df0fb6eb46a68cb9fb6d1bb71240d71119ff3ce)
Reviewed-on: http://git-master/r/221865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: dalmore: Fix logical vs bitwise AND bug
Ajay Gupta [Wed, 10 Apr 2013 22:15:49 +0000]
ARM: tegra: dalmore: Fix logical vs bitwise AND bug

Fixes bug be correctly using bitwise '&' AND operation

Change-Id: I3dbc6a5f91cbafbe93203bd84d8b989a419e307e
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/218396
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit 670d49e44b77376954ed530eb47cb7231afdf58e)
Reviewed-on: http://git-master/r/222117
Reviewed-by: Automatic_Commit_Validation_User

5 years agopower: max77660: cleanups on driver
Laxman Dewangan [Tue, 23 Apr 2013 09:14:04 +0000]
power: max77660: cleanups on driver

Following cleanups are done:
- Change "irq" variable names to proper name.
- Unregister power supply in error path of probe as well as on remove.
- Properly wakeups all irq supported by this driver on suspend.
- Add check for timing on charger wdt.
- Name isr names properly rather than duplicating it.
- Make irq flags to EARLY_RESUE to handle interrupts after wakeup.

Change-Id: I7cce06efa267918edef60f34a7f2ebdb02133b5b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/222012
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agomfd: max77660: change module alias to i2c
Laxman Dewangan [Tue, 23 Apr 2013 08:52:26 +0000]
mfd: max77660: change module alias to i2c

max77660 is i2c client driver and hence changing the MODULE_ALIAS to
i2c.

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

5 years agoasoc: tegra: Fix Kernel panic during recording
Vijay Mali [Tue, 16 Apr 2013 06:56:01 +0000]
asoc: tegra: Fix Kernel panic during recording

Add boundary check for DAM ifc and channel id
if all functions where these are used.
During camcoder recording DAM functions are called with
negative ifc, causing kernel panic.

Change-Id: Idd4df5eae579f9a89222361d594a79ddcdfc1fe5
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/219692
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit 4b1e7a3b7e861049a53207ac16e11d36f3d15f06)
Reviewed-on: http://git-master/r/221969
Reviewed-by: Automatic_Commit_Validation_User

5 years agousb: otg: tegra: add check code for extcon dev name
Yunfan Zhang [Fri, 19 Apr 2013 03:14:21 +0000]
usb: otg: tegra: add check code for extcon dev name

Must check NULL string pointer before call extcon_get_extcon_dev() or
will panic with NULL pointer passed.

Bug 1274380

Change-Id: I1c31c56cc051690b33a2682be53588f46486cfb3
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/220819
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra: emc: Disable EMC scaling by default
Alex Waterman [Sat, 13 Apr 2013 00:15:28 +0000]
ARM: tegra: emc: Disable EMC scaling by default

EMC scaling can be enabled on boot with the following command:

  echo 1 > /sys/module/tegra14_emc/parameters/emc_enable

Change-Id: I00095553c5e5c96fc1fac168d61b41d0cc9fdd70
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/219138
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra: emc: Remove unnecessary registers
Alex Waterman [Fri, 12 Apr 2013 01:14:06 +0000]
ARM: tegra: emc: Remove unnecessary registers

A couple of registers that no longer exist from t114 have now
been removed for t148.

Change-Id: Id971cd02bb5eaf8a612213df7d56908dea695ef4
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/219136
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agosound: hda: Add runtime PM support
Prashant Gaikwad [Tue, 23 Apr 2013 06:22:08 +0000]
sound: hda: Add runtime PM support

Add stub runtime PM support to notify device state to MC clock domain.

Bug 1276821

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

5 years agoinput: vibrator: drv2603: fix unbalance regulator ops
Yunfan Zhang [Fri, 19 Apr 2013 10:35:03 +0000]
input: vibrator: drv2603: fix unbalance regulator ops

Fix unbalance regulator operations(enable/disable) when suspend.

[   52.257586] unbalanced disables for fixed_reg_battery
...
[   52.303525] [<c03453e0>] (_regulator_disable+0x12c/0x24c) from
[<c034552c>] (regulator_disable+0x2c/0x58)
[   52.313318] [<c034552c>] (regulator_disable+0x2c/0x58) from
[<c0451034>] (drv2603_vibrate+0x74/0x10c)
[   52.322644] [<c0451034>] (drv2603_vibrate+0x74/0x10c) from
[<c04510f0>] (drv2603_suspend+0x24/0x2c)
[   52.331902] [<c04510f0>] (drv2603_suspend+0x24/0x2c) from
[<c036d144>] (platform_pm_suspend+0x3c/0x6c)

Change-Id: I4246a5b5061c8701ba6f53fb75f52cd36d79df96
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/221014
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Sharma <sumsharma@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra14: dvfs: Add Bin1 big block tables
Prashant Malani [Thu, 4 Apr 2013 00:26:05 +0000]
ARM: tegra14: dvfs: Add Bin1 big block tables

Also correct the process id numbering for bin0

Bug 1246952

Change-Id: Ib1ad7245158e5db6290618ef6aae14635ea931ab
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/216356
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoarm: tegra: remove __initdata keyword for nvmap_device
Krishna Reddy [Mon, 22 Apr 2013 23:28:11 +0000]
arm: tegra: remove __initdata keyword for nvmap_device

nvmap_device was incorrectly marked as __initdata during
dalmore board files creation and it got carried forward to
boards that are created later onwards.
Bug 1247591

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

5 years agomedia: tegra: add ov5693 with ad5823 focuser
Lihui Cui [Fri, 18 Jan 2013 01:12:53 +0000]
media: tegra: add ov5693 with ad5823 focuser

bug 1218661

Conflicts:
drivers/media/video/tegra/Makefile

Change-Id: Id6c8d697c8a9fa8f0d4414802ad866783c00d695
Signed-off-by: Lihui Cui <lcui@nvidia.com>
Reviewed-on: http://git-master/r/192227
(cherry picked from commit 94001d3f174ea954d261dac864dd73136ebf07a7)
Reviewed-on: http://git-master/r/221390
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agomedia: video: tegra: lm3565: add system EDP client
Charlie Huang [Fri, 19 Apr 2013 20:14:38 +0000]
media: video: tegra: lm3565: add system EDP client

The camera flash/torch has a substantial peak power in a phone. We
need to track its state (and even sometimes inhibit its usage) for
system EDP management.

bug 1266733

Change-Id: I3ae28490509aa0e7cfc6be78754910fdbdbe74b0
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/221193
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoARM: tegra14: fuse: Implement alternate way to get cpu_iddq value
Hoang Pham [Tue, 23 Apr 2013 01:14:54 +0000]
ARM: tegra14: fuse: Implement alternate way to get cpu_iddq value

Bug 1234249

Change-Id: I2513dee4991d966e17fb42c4e777c3a0142b9c3f
Signed-off-by: Hoang Pham <hopham@nvidia.com>
Reviewed-on: http://git-master/r/220727
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agostaging: nvshm: add support to call remote procedures
Hervé Fache [Tue, 2 Apr 2013 14:15:18 +0000]
staging: nvshm: add support to call remote procedures

This patch provides all the support to encode/decode messages, plus a
threaded dispatcher and a test module.

The test mpdule provides functions for testing:
* ping(): takes no arguments and returns none either
* test(): a test function that decodes/encodes but calls nothing
* msleep(): a call to the kernel's msleep, to test multithreading
* printk(): sends a string to printk, nice to test _and_ debug

Bug 1248547

Change-Id: I916be503965f88bd583905fc76a1925de945abf4
Signed-off-by: Hervé Fache <hfache@nvidia.com>
Reviewed-on: http://git-master/r/216045
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agowatchdog: max77660: donot reset WDT from thread on suspend
Laxman Dewangan [Sun, 21 Apr 2013 10:23:35 +0000]
watchdog: max77660: donot reset WDT from thread on suspend

If device is suspended then do not reset WDT timer from thread.

bug 1257433

Change-Id: I4e5a5faea20365e7387b26404bb7e98ffe25f832
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/221389
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Greg Heinrich <gheinrich@nvidia.com>
Tested-by: Prashant Malani <pmalani@nvidia.com>

5 years agoARM: tegra14: clock: Update PLL settings
Kaz Fukuoka [Thu, 18 Apr 2013 22:00:01 +0000]
ARM: tegra14: clock: Update PLL settings

bug 1239762

Change-Id: If7c0c4a3dd10d7cdb3c632c3c3b999c7e3dc8221
Signed-off-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-on: http://git-master/r/220739
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoMake firmware loading of R8169 optional
Mursalin Akon [Thu, 11 Apr 2013 17:28:07 +0000]
Make firmware loading of R8169 optional

According to Realtek, the firmware provides
power optimizations. The driver works without
the firmware. Plus, there are scenarios where
the firmware is not available, which makes the
driver wait at request_firmware call (i.e.,
60 sec wait).

Bug 1236060

Change-Id: Ifad95b9eb9e161c77171df3e65351aff80e4a4ad
Signed-off-by: Mursalin Akon <makon@nvidia.com>
Reviewed-on: http://git-master/r/218609
(cherry picked from commit f7a5ab6dc1b7da3e3da10cb88478e5fa4a7c92b9)
Reviewed-on: http://git-master/r/220717
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoinclude: linux: tegra: audio: add DMIC info.
Ankit Gupta [Fri, 28 Sep 2012 07:39:46 +0000]
include: linux: tegra: audio: add DMIC info.

Added DMIC parameters info.

Change-Id: Ib403016e9dab5e6e49972bfa4ac167a5b2b24a34
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/213521
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

5 years agoARM: mach-tegra: adding DMic device information.
Chandrakanth Gorantla [Wed, 27 Mar 2013 09:52:38 +0000]
ARM: mach-tegra: adding DMic device information.

o Adding support for DMIC build in kconfig.
o Create platform device for DMic.

Change-Id: I09513e96b0a261cb837c86c19705b3c83fccb6c5
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Signed-off-by: Chandrakanth Gorantla <cgorantla@nvidia.com>
Reviewed-on: http://git-master/r/213516
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra14: add clock configuration for dmic.
Ankit Gupta [Thu, 31 Jan 2013 06:57:42 +0000]
ARM: tegra14: add clock configuration for dmic.

Update the clock information of Digital Mics.

Change-Id: I7ac4fab5cef8eb746cacf1c53f1e0c6df0662405
Signed-off-by: Ankit Gupta <ankitgupta@nvidia.com>
Reviewed-on: http://git-master/r/213511
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: cpuquiet: make no_lp = -1 always force cluster switch
Peter Boonstoppel [Fri, 5 Apr 2013 23:38:37 +0000]
ARM: tegra: cpuquiet: make no_lp = -1 always force cluster switch

When setting the no_lp sysfs node to -1 the system would attempt to
switch to the LP cluster. This can fail if the frequency or the number
of online cores are too high.

This change ensure the frequency and number of online cores are first
brought down, such that a cluster switch on no_lp = -1 always
succeeds.

Bug 1247636
Bug 1253920

Change-Id: If6af671e8defdfc8172e8d9356ddf03d54bae98d
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/217033
(cherry picked from commit a712c562fb66c3f964783410e6b482bfebbb33fc)
Reviewed-on: http://git-master/r/221636
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agomfd: max77660: set EARLY_RESUME for global top interrupts
Laxman Dewangan [Mon, 22 Apr 2013 13:01:31 +0000]
mfd: max77660: set EARLY_RESUME for global top interrupts

Global top interrupts support is having interrupts like system WDT
which supports the wakeup of system.

Hence setting flag for this interrupt to EARLY_RESUME to handle it
properly by max77660 main interrupts.

bug 1275444

Change-Id: I58c1f58a6f9a2b5b44ac794bc6e6bbf8a58468f1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/221596
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agortc: max77660: add print when setting/reading time and alarm
Laxman Dewangan [Mon, 22 Apr 2013 10:21:11 +0000]
rtc: max77660: add print when setting/reading time and alarm

To make debug easy, adding print when setting/reading current time and
alarm time.

bug 1275444

Change-Id: I39373ff1daad65315c434beab87b911ab9ddee96
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/221546
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: camera: return isomgr mem when exit
Jihoon Bang [Fri, 22 Mar 2013 20:48:34 +0000]
video: tegra: camera: return isomgr mem when exit

Remove memory reservation in isomgr when
camera is closed.
Use CONFIG_TEGRA_ISOMGR instead of chip config
for isomgr interface.

Bug 1274857

Change-Id: I446de32f059917423e95d1fb3be3132d3fc2cc8f
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/212217
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM: tegra: dvfs: Add dvfs rail thermal floor query
Alex Frid [Tue, 2 Apr 2013 04:37:12 +0000]
ARM: tegra: dvfs: Add dvfs rail thermal floor query

Bug 1261915

Change-Id: Ie53438687ab881610d34df1972d07de68e2df3b5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/215358
(cherry picked from commit 32717a8e4dccebf164c56f505e8db82a78753e4f)
Reviewed-on: http://git-master/r/221377
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: clock: Rearrange initial XUSB clocks parents
Alex Frid [Thu, 4 Apr 2013 03:26:19 +0000]
ARM: tegra11: clock: Rearrange initial XUSB clocks parents

Bug 1250832

Change-Id: I72868656b285bb96a07c18d7ec32824bdee76cca
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216362
(cherry picked from commit 27de3300ca5ac6675df48fef684c259bcf75b386)
Reviewed-on: http://git-master/r/221376
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra11: dvfs: Update XUSB SS and HS dvfs table
Alex Frid [Thu, 4 Apr 2013 02:48:21 +0000]
ARM: tegra11: dvfs: Update XUSB SS and HS dvfs table

Update XUSB SS and HS clocks dvfs table and maximum rate limits.

Bug 1250832

Change-Id: Ie18fae844c87a529be7cd2dbd956ce30aa9ee07d
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216361
(cherry picked from commit b8d7cee548e19c538429f4766c301a7d9dc1d1c9)
Reviewed-on: http://git-master/r/221375
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra11: clock: Change XUSB HS clock source
Alex Frid [Wed, 3 Apr 2013 03:29:28 +0000]
ARM: tegra11: 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 1250832

Change-Id: Iafc24b9a9208ea4184f5a3c04deca48a24ca73c4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216360
(cherry picked from commit 49b23eed5d9cceb4c6258e2bbb805bbab33c2c92)
Reviewed-on: http://git-master/r/221374
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agovideo: tegra: dc: use height for rotated bw calc
Jon Mayo [Tue, 5 Mar 2013 22:37:57 +0000]
video: tegra: dc: use height for rotated bw calc

Swap input width and height when calculating window bandwidth for rotated
windows.

Bug 1243957

Change-Id: I9f972e3dd7bcd8ca74596595a2066cb9d56de3b7
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/206438
(cherry picked from commit cf9b403efbb2c5f0ae825eb17b767571dadf2e80)
Reviewed-on: http://git-master/r/221318
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra14: clock: Convert ISO manager emc user.
Alex Frid [Tue, 9 Apr 2013 04:53:52 +0000]
ARM: tegra14: clock: Convert ISO manager emc user.

Converted iso.emc shared user into floor user, as it will be a channel
to specify latency, not bandwidth requirements. For the latter ISO
manager will use per-client shared users (e.g., disp1.emc, camera.emc,
and so on), and let shared bus aggregation code to determine cumulative
bandwidth request.

Change-Id: I2c6667666240663a058a4695a10acbd86425c36f
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/219501
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra11: clock: Convert ISO manager emc user.
Alex Frid [Tue, 9 Apr 2013 04:33:20 +0000]
ARM: tegra11: clock: Convert ISO manager emc user.

Converted iso.emc shared user into floor user, as it will be a channel
to specify latency, not bandwidth requirements. For the latter ISO
manager will use per-client shared users (e.g., disp1.emc, camera.emc,
and so on), and let shared bus aggregation code to determine cumulative
bandwidth request.

Change-Id: I831df0f7d9f2fba39705ce2b7ae80c5c9748bc0c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/219500
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra14: clock: Re-factor EMC bw requirement calculation
Alex Frid [Sun, 7 Apr 2013 05:12:27 +0000]
ARM: tegra14: clock: Re-factor EMC bw requirement calculation

- Separated iso EMC shared users (display and camera) from other
bandwidth shared users
- Added shared user id flags to EMC shared users that may affect
maximum iso share allocation
- Determined EMC bw requirement as maximum of total bw requested
by all bw users, and iso bw scaled up to guarantee allocated share

Change-Id: I5ac5dde4721698a62245e0c2a463773ed5a38d34
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/217123
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra14: clock: Add emc use case table
Alex Frid [Sun, 7 Apr 2013 04:03:58 +0000]
ARM: tegra14: clock: Add emc use case table

Added initial table to specify iso bandwidth share dependency on emc
use cases. Just two use cases: display only and display + camera are
identified for now.

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

5 years agobacklight: max8831: apply EDP state changes
Sivaram Nair [Wed, 17 Apr 2013 15:31:02 +0000]
backlight: max8831: apply EDP state changes

The brightness settings does not correctly reflect the E-state changes -
fixing this.

- On E-state request: brightness is set according to the approved
  E-state
- On throttle/promotion: brightness is changed according to the new
  E-state

Change-Id: I0c9ce9bbda5f00109841505a8d2b4cbfb8009721
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/220252
(cherry picked from commit 6caf157dbd6f285cb64951b100763c836adcd5c2)
Reviewed-on: http://git-master/r/220953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: fix wifi E-state
Sivaram Nair [Fri, 5 Apr 2013 09:20:40 +0000]
ARM: tegra: fix wifi E-state

Fixing the E-state value as per new data from vendor.

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

5 years agoEDP: tegra: change gpu window threshold to 80
Sivaram Nair [Tue, 9 Apr 2013 08:38:08 +0000]
EDP: tegra: change gpu window threshold to 80

Making 80 ms as the default window length based on empirical data.

Change-Id: I3e59d7cdafd6bb13031d5e0df67cd31c76e120b6
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/220168
(cherry picked from commit 4dc0d781dd828f912a9c028cba360870f5975a27)
Reviewed-on: http://git-master/r/220951
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: tegra: pluto: update AP+DRAM EDP states
Sivaram Nair [Tue, 9 Apr 2013 08:39:23 +0000]
ARM: tegra: pluto: update AP+DRAM EDP states

Removed bad entries from the AP+DRAM E-state tables.

Change-Id: I7c013f7d69fc63a288d78770759e0eb774dc9ce6
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/220167
(cherry picked from commit f74abd3ec2910942654c7a7b7e8935c6b78517d7)
Reviewed-on: http://git-master/r/220950
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agopower: max77665: add sysfs to display OC count
Sivaram Nair [Wed, 17 Apr 2013 11:32:16 +0000]
power: max77665: add sysfs to display OC count

A new read-only sysfs entry is added to display the OC interrupt count.

Change-Id: I967d34c4c7c55d3fc6490fccecae7c60904c76ad
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/220166
(cherry picked from commit b0e02ec66549d0dffdf88868002c25b7c2c4d0d7)
Reviewed-on: http://git-master/r/220949
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agopower: max77665: reducing open prints
Sivaram Nair [Wed, 17 Apr 2013 09:44:59 +0000]
power: max77665: reducing open prints

To reduce the amount of open prints, following changes are made.
- moving dev_info to dev_dbg.
- print charger status only if there was a charger interrupt

Change-Id: Ib31ddf1ce05abae738e794edbe248b2707010f60
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/220165
(cherry picked from commit 0f06b19226be7f138404cdaa13c0414f84855418)
Reviewed-on: http://git-master/r/220948
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: remove open printk
Sivaram Nair [Wed, 17 Apr 2013 09:12:18 +0000]
ARM: tegra: remove open printk

Changing to use pr_debug.

Change-Id: I417a5e51e2e5ad328ca2d4c8fd3d5d7388fab173
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/220164
(cherry picked from commit 1b635d0808b833529b9da96cc4a96ac3875b0382)
Reviewed-on: http://git-master/r/220947
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoEDP: tegra: removing open printk
Sivaram Nair [Mon, 15 Apr 2013 07:24:52 +0000]
EDP: tegra: removing open printk

Moved to pr_debug

Change-Id: I4e0ea0f59b4231190f9972b8dc79e0d877b57216
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/219306
(cherry picked from commit 7da6cc7c2c33d6e5c95900c1fdcbeaae695bc58d)
Reviewed-on: http://git-master/r/220946
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: tegra: pluto: enable thermal and low system voltage interrupts
Laxman Dewangan [Tue, 16 Apr 2013 10:51:13 +0000]
ARM: tegra: pluto: enable thermal and low system voltage interrupts

The charger device max77665 supports the thermal and low system
voltage interrupts. Enabling this interrupt through platform
data of max77665.

bug 1216535

Change-Id: I9bf2acf39bc6544f95dc6334f3a609118e1150c3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219792
(cherry picked from commit 06ea456cdfb79f5126d3fdd9f3c024e2e7f0d738)
Reviewed-on: http://git-master/r/220945
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agopower: max77665-charger: add support for overcurrent
Laxman Dewangan [Tue, 16 Apr 2013 10:48:23 +0000]
power: max77665-charger: add support for overcurrent

Add support for overcurrent interrupt and threshold  configuration:
- Enable OC interrupt.
- Set battery to system overcurrent to 3250mA.
- Add sysfs for the OC interrupt disable/enable.
- Add sysfs for the OC threshold configuration.

bug 1216535

Change-Id: I3b1b7811ba22930b2cc6d49bbcbff36cff3a064a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219791
(cherry picked from commit dd6f4dfaa8650942a488c82e1153ff29bde73f0d)
Reviewed-on: http://git-master/r/220944
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agopower: max77665-charger: get irq number through platform_get_irq()
Laxman Dewangan [Tue, 16 Apr 2013 10:38:46 +0000]
power: max77665-charger: get irq number through platform_get_irq()

Get the max77665 charger submodule interrupt number through
platform_get_irq() rather than getting it through platform data.

bug 1216535

Change-Id: I32314086dbfe3a1a435fcd7012b7cae73d081eb5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219790
(cherry picked from commit ff62d047edb588ada5e1f8fdc8936414f579862c)
Reviewed-on: http://git-master/r/220943
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agomfd: max77665: add top sys interrupt support
Laxman Dewangan [Tue, 16 Apr 2013 10:32:34 +0000]
mfd: max77665: add top sys interrupt support

The top system interrupt of max77665 enables the interrupt for
thermal and low system voltage.

Add support for enabling this interrupt.

bug 1216535

Change-Id: Ifea7ecae3367497f7cff283b44bba013d1b8415d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/219789
(cherry picked from commit 023b62e2f27a9461d4fc441209fad855b36bd855)
Reviewed-on: http://git-master/r/220942
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Tested-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: tegra: pluto: Do not register I2C3 from board file
Chaitanya Bandi [Thu, 18 Apr 2013 01:06:10 +0000]
ARM: tegra: pluto: Do not register I2C3 from board file

As I2C3 device is being registered through device tree,
removing its registration in board file.

Change-Id: I881aebca603de980c7329135886bbebbb734cb4c
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/220411
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: introduce manual config table for t11x
Andy Park [Wed, 17 Apr 2013 23:43:16 +0000]
ARM: tegra: introduce manual config table for t11x

To facilitate and keep track of software changes on pinmux table, manual
configuration table is introduced so that the developers are aware of pinmux
settings that are not in sync with the spreadsheet. Any pinmux configuration
changes made in software side should be upstreamed to spreadsheet.

Some refactorings are done to reduce the redundancy and new macros for gpio and
unused pins are introduced as well to be sync'd with the current autogeneration
tool.

Bug 1256207
Bug 1231210

Change-Id: I39e23cd335d36b8e39a1b7848df65d261ddbd24d
Signed-off-by: Andy Park <andyp@nvidia.com>
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/220389
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra: remove SDMMC4_RST from pinmux
Andy Park [Wed, 17 Apr 2013 21:53:49 +0000]
ARM: tegra: remove SDMMC4_RST from pinmux

SDMMC4_RST does not exist in T11x. Remove it for consistency.

Bug 1232862

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

5 years agovideo: tegra: dsi: Enable MIPI auto calibration
Vineel Kumar Reddy Kovvuri [Thu, 18 Apr 2013 09:34:20 +0000]
video: tegra: dsi: Enable MIPI auto calibration

Implementation of DSI MIPI auto calibration

Bug 1166307

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

5 years agoARM: tegra: T14x: fix t14x pinmux resource
Ashwini Ghuge [Wed, 13 Mar 2013 10:42:47 +0000]
ARM: tegra: T14x: fix t14x pinmux resource

For T14 last mux register extends till 0x3514

Change-Id: Ic420d0bb19b1566a581f1202b48d282ed9842e64
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/208687
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agousb: xhci: tegra: fix unreliable hs disconnect
Ajay Gupta [Wed, 17 Apr 2013 21:46:44 +0000]
usb: xhci: tegra: fix unreliable hs disconnect

Changes:
- Don't service FW increase/decrease mbox message from fw.

Bug 1250832

Change-Id: Iaaa4428209e2d592ee737f773b8a6a56070bf9c5
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/220355
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit eb6247e041dd629b4df999374e2a02c013c31d9e)
Reviewed-on: http://git-master/r/221215
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: xusb: fix ss port mapping
Ajay Gupta [Mon, 15 Apr 2013 17:14:43 +0000]
ARM: tegra: xusb: fix ss port mapping

Bug 1271698

Change-Id: I1f2cc7ec4a8c38ac14f43caff4bb931af7acb297
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/219460
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit 660536a885dfe134db71a0780a6760b46962b4bd)
Reviewed-on: http://git-master/r/221214
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agousb: xhci: tegra: Add resume recovery delay of 10ms
Ajay Gupta [Thu, 11 Apr 2013 21:49:02 +0000]
usb: xhci: tegra: Add resume recovery delay of 10ms

This is needed as per usb2.0 spec section 9.2.6.2

Bug 1261769
Bug 1267127

Change-Id: I009f837d62cfa9b677f68c643a36f179689fdcb6
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/218672
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit f6c10e266f624c5859a8334eb4e516c66e3a5830)
Reviewed-on: http://git-master/r/221213
GVS: Gerrit_Virtual_Submit

5 years agousb: xhci: tegra: save restore dfe_cntl and ctle
Ajay Gupta [Sat, 9 Mar 2013 01:19:34 +0000]
usb: xhci: tegra: save restore dfe_cntl and ctle

This is needed as per updated PG.

Bug 1247235

Change-Id: I2b61422b5ce4aa047b72691584dcb90167ab1fd1
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/217015
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-on: http://git-master/r/221212
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoARM: tegra: usb: fix compile error with modular build
Ajay Gupta [Wed, 10 Apr 2013 17:06:52 +0000]
ARM: tegra: usb: fix compile error with modular build

Fixes below error while building xusb as module.
ERROR: "utmi_phy_iddq_override" [drivers/usb/host/xhci-hcd.ko] undefined!

Change-Id: Ice1a8ab21f0e16ab8a663c53c47bf5c8388f7f4a
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/218605
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit bd4bec18bef236d729e9498d6830512f3bfeb521)
Reviewed-on: http://git-master/r/221211
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agousb: xhci: enable pad power down in os idle
Joy Wang [Thu, 4 Apr 2013 09:29:59 +0000]
usb: xhci: enable pad power down in os idle

power down usb2 pads when usb bus is idle using
common api provided for utmip bias pads and iddq

Change-Id: I38829366ff6a1007f262bb8670252f8637f595b7
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/216516
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
(cherry picked from commit cd005cab0e85e5937b89bd35817b92cc7004c66c)
Reviewed-on: http://git-master/r/221209
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoUSB: xhci: use common api for iddq override
Krishna Yarlagadda [Thu, 4 Apr 2013 06:13:14 +0000]
USB: xhci: use common api for iddq override

IDDQ override in common pad control space to
be used for avoiding conflicts with usb2.0 code

Bug 1225060
Bug 1259851

Change-Id: I5dfa4ee014a107e09c72a3cb9341f6c0da0288bc
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/216409
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
(cherry picked from commit e525b81963f1c613c1e47fd3285b7acd4b3bc1c0)
Reviewed-on: http://git-master/r/221208
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agoarm: tegra: isomgr: add sysfs attr for sleep and margin bw
Krishna Reddy [Fri, 19 Apr 2013 00:36:48 +0000]
arm: tegra: isomgr: add sysfs attr for sleep and margin bw

Change-Id: Iee330ac4c26f0d04143ce8ee53032965cb5a9824
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/220790
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: isomgr: remove unnecessary debug code.
Krishna Reddy [Fri, 19 Apr 2013 00:27:16 +0000]
arm: tegra: isomgr: remove unnecessary debug code.

Change-Id: I95af431046de5fc8776a467643b716fcad6a12f9
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/220780
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: isomgr: add trace messages
Krishna Reddy [Fri, 19 Apr 2013 00:23:20 +0000]
arm: tegra: isomgr: add trace messages

Change-Id: I8a8ffd2cee971602b60c55de83ce4418de182f93
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/220779
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: isomgr: remove unnecessary prints
Krishna Reddy [Fri, 19 Apr 2013 00:13:06 +0000]
arm: tegra: isomgr: remove unnecessary prints

clean up error handling code.

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

5 years agohwmon: ina230: fix kernel warning
Deepak Nibade [Thu, 18 Apr 2013 13:21:03 +0000]
hwmon: ina230: fix kernel warning

fix warning of function initialization
from incompatible pointer type

Bug 949219

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

5 years agoARM: tegra: tegra-tzram needs to use ASID[0]
Chris Johnson [Thu, 18 Apr 2013 07:47:42 +0000]
ARM: tegra: tegra-tzram needs to use ASID[0]

The TZ DRAM range is accessed by VDE for WV, so should be setup
to use the same system ASID (ASID[0]) as the HW engine will use.

Change-Id: I515989e5b1ef7bef074098bfeea18ce54b34b437
Signed-off-by: Chris Johnson <cwj@nvidia.com>
Reviewed-on: http://git-master/r/220506
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agomedia: tegra: max77387: i2c and power off conflict
Charlie Huang [Wed, 17 Apr 2013 23:36:52 +0000]
media: tegra: max77387: i2c and power off conflict

Add mutex protection on both i2c access and power on/off operations.
Otherwise conflicts may happen when shuting down the system and
kernel warning are shown.

bug 1256006

Change-Id: Ia6560e81746f26957f25c53282bfd3a91bc755e6
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/220388
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Wei Chen (Camera) <wechen@nvidia.com>
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoARM: tegra: dalmore: Do not enable smps10 boost
Mallikarjun Kasoju [Wed, 17 Apr 2013 14:47:56 +0000]
ARM: tegra: dalmore: Do not enable smps10 boost

Bug 1053406

Change-Id: Iecc7df2d0b6276f00c8f4b404deecb3349fcce09
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/191667
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
(cherry picked from commit 3e71e2240391af9dc1a683afef990abbc26eafdc)

Conflicts:

arch/arm/mach-tegra/board-dalmore-power.c

Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Change-Id: I100961d3385d5b643e443882789dfb4138caac4e
Reviewed-on: http://git-master/r/220238
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: clock: ignore timeout warnings on pll_d/d2
Kevin Huang [Wed, 17 Apr 2013 01:44:25 +0000]
ARM: tegra: clock: ignore timeout warnings on pll_d/d2

Due to a hardware bug, plld/d2 lock bit cannot be asserted
during DSI unpower-gating. The lock bit can only be locked
after clamping of DSI is removed. It triggers false alarm
when plld/d2 is enabled. Ignore these warnigs when DIS
partition is still clamped.

Bug 1257086
Bug 1258312

Change-Id: I499efa0086dd677df70295efab26f7f8b3045a60
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/220017
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoARM: tegra: add clamping status read.
Kevin Huang [Mon, 15 Apr 2013 22:59:15 +0000]
ARM: tegra: add clamping status read.

Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Change-Id: I2bf7b0d4cd88583295183347ed6a4bc1c0e450f1
Reviewed-on: http://git-master/r/219959
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoarm: tegra: macallan: fix camera power rails on E1569
Kerwin Wan [Wed, 10 Apr 2013 05:23:35 +0000]
arm: tegra: macallan: fix camera power rails on E1569

The focuser power rail has been moved from ldo7 to ldo5
on macallan E1569.

Reviewed-on: http://git-master/r/218094
(cherry picked from commit 127b9caa2121bb553a388bfa7dbb448c6399e9c1)

Change-Id: I83b48c6b68699c108cbfe626cdbd299575d6c426
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/219840
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agovideo: tegra: host: fix Coverity issue
Deepak Nibade [Tue, 16 Apr 2013 06:41:08 +0000]
video: tegra: host: fix Coverity issue

fix issue of dereference before null check
Coverity id : 22918

Bug 1046331

Change-Id: I86c451209916a289fc0395c20c9950e2be7bc63c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/219686
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: build edp table with volt-temp constraints
Diwakar Tundlam [Fri, 12 Apr 2013 00:28:54 +0000]
ARM: tegra: build edp table with volt-temp constraints

Some chips must be constrained to run at a reduced maximum voltage
above certain temperature threshold. Added code for this constraint be
configured on a per SKU basis.

Bug 1270003
Bug 1270570

Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>

Change-Id: Ic2e6f9406712d276ab9af92f89e98bd92972a5f6
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/218723
(cherry picked from commit 38d3ebb18f43d47584d7cca829a831457afd24f5)
Reviewed-on: http://git-master/r/219076
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: fix missing new table for pluto
Hyungwoo Yang [Wed, 20 Mar 2013 21:26:22 +0000]
arm: tegra: fix missing new table for pluto

New table for pluto is missing. This change apples new table for pluto.

Reviewed-on: http://git-master/r/211352
(cherry picked from commit 0f548dfe36283ca3504336f3b67b15ef63e8c241)
Change-Id: I00e70b8629ec66ddf8cef49c4e0d80a0a7eb7cac
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/216258
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoarm: tegra: soctherm: fix hyteresis bug
Hyungwoo Yang [Wed, 13 Mar 2013 07:03:16 +0000]
arm: tegra: soctherm: fix hyteresis bug

Fixed hyteresis bug which generates unexpected interrupts

Reviewed-on: http://git-master/r/208910
(cherry picked from commit a642a4528025dd489121a0e1ad4c7f7d287ccaaa)
Change-Id: Ib27943103f10bdf716d73a264a1d561fa04ef10e
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/216255
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: bbc: margin for max bbc iso bw
Neil Patel [Mon, 1 Apr 2013 20:42:44 +0000]
ARM: tegra: bbc: margin for max bbc iso bw

Bug 1264187

Change-Id: I099af845c3a0a81a1f79f1a3de769d2670bd8b06
Signed-off-by: Neil Patel <neilp@nvidia.com>
Reviewed-on: http://git-master/r/215174
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: pluto: Pass nominal core voltage
Pavan Kunapuli [Wed, 17 Apr 2013 08:10:50 +0000]
ARM: tegra: pluto: Pass nominal core voltage

Pass nominal core voltage value through mmc platform data to be used
for setting core voltage constraints during tuning.
Set sdmmc4 clk limit to 156MHz for HS200 mode.

Bug 1167519
Bug 1225343

Reviewed-on: http://git-master/r/200410
(cherry picked from commit 48a5e1f211d72a067507291407dfaa9686669b64)
Change-Id: Ibb93345bee9407ed12cfa2b2202016d9908b00d4
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/212414
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agopower: max77665: Unregister power supply if extcon device is absent
Sumit Sharma [Wed, 10 Apr 2013 06:44:04 +0000]
power: max77665: Unregister power supply if extcon device is absent

Unregister power supply if extcon device is not found

Change-Id: I060bfdc42eb5472da12a734eafbd78a2d8d392a5
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/218115
(cherry picked from commit 46e9e2f1123fc9f9866f5a2f5a87df73d8b14000)
Reviewed-on: http://git-master/r/219267
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit d2b0a66fa8a97b5c966fb1850c7f63a24ce6bf86)
Reviewed-on: http://git-master/r/221019

5 years agoasoc: tegra: aic326x: Don't disable clock if call is active
Rahul Mittal [Wed, 17 Apr 2013 07:00:37 +0000]
asoc: tegra: aic326x: Don't disable clock if call is active

Don't disable codec clock if voice call is going on
Bug 1272679

Reviewed-on: http://git-master/r/220089
(cherry picked from commit 2e513d9d0197f3c5b17c252700b12abea74f7f6b)

Change-Id: I80fc8abf4ad7d71c2fab9061a9e28539d667c1ec
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/220977
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

5 years agostaging: iio: light: enable warning as error flag
Sri Krishna chowdary [Fri, 19 Apr 2013 09:06:03 +0000]
staging: iio: light: enable warning as error flag

Enable warnings as errors compilation flag

Bug 1274533

Change-Id: I8dccfa363d626b6f90d29659db43a2c261f57114
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/220972
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: Fix memory leak in MSENC & TSEC
Terje Bergstrom [Thu, 18 Apr 2013 11:39:06 +0000]
video: tegra: host: Fix memory leak in MSENC & TSEC

MSENC and TSEC leaked their structures. Fix that by freeing in deinit.

Change-Id: Ida5710ada724cfc1f7a762d7118f5937c592403e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/220573
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agostaging: iio: light: Remove compilation warnings
Sri Krishna chowdary [Fri, 19 Apr 2013 07:53:52 +0000]
staging: iio: light: Remove compilation warnings

Bug 1274533

Change-Id: I91635010ecfbb28153244229bd3ac162e24d6c24
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/220478
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: configs: tegra11: remove unused camera and ALS
Sachin Nikam [Wed, 17 Apr 2013 13:08:52 +0000]
arm: configs: tegra11: remove unused camera and ALS

LTR_558ALS is only for cardhu, so removed from t114 defconfig.

Below camera sensors are not for t114 platforms:
-CONFIG_VIDEO_OV5650=y
-CONFIG_VIDEO_OV9726=y
-CONFIG_VIDEO_OV2710=y

Also removed below which are not for T114 platforms:
-CONFIG_VIDEO_AR0832=y : sensor for enterprise
-CONFIG_TORCH_TPS61050=y : flash for cardhu
-CONFIG_VIDEO_SH532U=y : focuser for enterprise

Change-Id: I0120830782124195be87ec5ee34828aff10591f6
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/220207
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agousb: otg: tegra: Initialize id det gpio properly
Rakesh Bodla [Wed, 17 Apr 2013 12:51:25 +0000]
usb: otg: tegra: Initialize id det gpio properly

Initialize id det gpio value properly.

Bug 1273534

Change-Id: Id1946dd69a6f9a6cdb9139f455b5d18526587ab0
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/220204
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agommc: tegra: Write xfer_mode, CMD regs in together
Pavan Kunapuli [Mon, 1 Apr 2013 13:04:20 +0000]
mmc: tegra: Write xfer_mode, CMD regs in together

If there is a gap between xfer mode and command register writes, tegra SDMMC
controller can sometimes issue a spurious command before the CMD register is
written. To avoid this, these two registers need to be written together in a
single write operation.

Bug 1263858

Reviewed-on: http://git-master/r/215050
(cherry picked from commit a4de593f43e9a74fae2308f576d8e26023748ddc)
Change-Id: I78563dd06e3a601fe0574ddd4b9efcb99459af6b
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/220113
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoPASR: add debugfs to print memory info
Prashant Gaikwad [Fri, 12 Apr 2013 08:13:57 +0000]
PASR: add debugfs to print memory info

Prints current status of memory regions, useful for debugging.

Bug 1201663
Bug 1033159

Change-Id: Iae067cc10f4a5fdd4fa9f01bd474c889e57454e1
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/219689
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agommc: sdhci: set "clk" back to zero before configuring clock rate
Vishal Singh [Wed, 10 Apr 2013 09:23:08 +0000]
mmc: sdhci: set "clk" back to zero before configuring clock rate

When we have clock gating disabled, as in the case of SDIO card
being used for WiFi, SDHCI_CLOCK_CONTROL register doesn't get
updated with intended value.
This is because the variable "clk", which is used to store the
register value, contains old value (corresponding to init
frequency of 400 KHz).
Setting this to zero so that clock rates can be configured
correctly.

Bug 1246186.
Bug 1256237.

Change-Id: I3f742afdf8aec76ffdbf3601ec42b66a9b22390a
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/218171
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: Add PASR support for Tegra114
Prashant Gaikwad [Tue, 16 Apr 2013 10:24:03 +0000]
arm: tegra: Add PASR support for Tegra114

Bug 1201663
Bug 1033159

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

5 years agommc: host: sdhci: Add data/cmd error prints
rrajk [Tue, 26 Feb 2013 09:51:23 +0000]
mmc: host: sdhci: Add data/cmd error prints

Added data and cmd error prints to debug the system.

Change-Id: Ia98abecc51373cfe1674b074db413187e460786e
Reviewed-on: http://git-master/r/204140
(cherry picked from commit 556b9738e18e990e14bf22cf5d121af03707502c)

Signed-off-by: rrajk <rrajk@nvidia.com>
Change-Id: Ib940486ccb534b9d13fbefe444e61673d92674ad
Reviewed-on: http://git-master/r/216500
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoPASR: Add Documentation
Maxime Coquelin [Thu, 4 Apr 2013 05:48:19 +0000]
PASR: Add Documentation

Bug 1201663
Bug 1033159

Change-Id: I04274449d55c1f103d977994279462a68324bc2b
Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com>
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/216388
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoPASR: Call PASR initialization
Maxime Coquelin [Thu, 4 Apr 2013 05:47:03 +0000]
PASR: Call PASR initialization

Bug 1201663
Bug 1033159

Change-Id: Ie4a9cfd6632c40a91fed15fd617c0982a130a0af
Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com>
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/216387
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoPASR: mm: Integrate PASR in Buddy allocator
Maxime Coquelin [Thu, 4 Apr 2013 05:45:05 +0000]
PASR: mm: Integrate PASR in Buddy allocator

Any allocators might call the PASR Framework for DDR power savings. Currently,
only Linux Buddy allocator is patched, but HWMEM and PMEM physically
contiguous memory allocators will follow.

Linux Buddy allocator porting uses Buddy specificities to reduce the overhead
induced by the PASR Framework counter updates. Indeed, the PASR Framework is
called only when MAX_ORDER (4MB page blocs by default) buddies are
inserted/removed from the free lists.

To port PASR FW into a new allocator:

* Call pasr_put(phys_addr, size) each time a memory chunk becomes unused.
* Call pasr_get(phys_addr, size) each time a memory chunk becomes used.

Bug 1201663
Bug 1033159

Change-Id: Ib90012d0707cf3c8b0cd9c979298f695cccc563e
Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com>
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/216386
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoPASR: Add core Framework
Maxime Coquelin [Thu, 4 Apr 2013 05:40:41 +0000]
PASR: Add core Framework

This patch introduces the core of the PASR Framework, whose role is to update
sections counters and Self-Refresh masks when sections become free/used.

Bug 1201663
Bug 1033159

Change-Id: I036de0cd45786ab4f2c9edafe1054f23798b502a
Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com>
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/216385
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoPASR: Initialize DDR layout
Maxime Coquelin [Thu, 4 Apr 2013 05:38:24 +0000]
PASR: Initialize DDR layout

Build the DDR layout representation at early init.

To build the PASR MAP, two parameters are provided:

* ddr_die (mandatory): Should be added for every DDR dies present in the system.
   - Usage: ddr_die=xxx[M|G]@yyy[M|G] where xxx represents the size and yyy
     the base address of the die. E.g.: ddr_die=512M@0 ddr_die=512M@512M
* interleaved (optionnal): Should be added for every interleaved dependencies.
   - Usage: interleaved=xxx[M|G]@yyy[M|G]:zzz[M|G] where xxx is the size of
     the interleaved area between the adresses yyy and zzz. E.g
     interleaved=256M@0:512M

Bug 1201663
Bug 1033159

Change-Id: I100c77187dab8e53ca26e37a905ed18c0f209d89
Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com>
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/216384
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agostaging: nvshm: create new communication channel for RPC
Hervé Fache [Tue, 26 Mar 2013 13:13:28 +0000]
staging: nvshm: create new communication channel for RPC

This patch introduces a new NVSHM channel and support code to easily
invoke and manage function calls through this medium.

Possible call types are:
* one-way: no response is sent back
* synchronous: a response is necessary to unblock the caller
* asynchronous: a callback must be specified to get the response

Bug 1248547

Change-Id: Icdc0fca081257c78ae3a000b8bcdcd7e87691637
Signed-off-by: Hervé Fache <hfache@nvidia.com>
Reviewed-on: http://git-master/r/213916
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agommc: tegra: Tuning and tap selection for low freqs
Pavan Kunapuli [Tue, 22 Jan 2013 12:18:45 +0000]
mmc: tegra: Tuning and tap selection for low freqs

Adding frequency tuning solution for frequencies
below 82MHz in SDR104 and HS200 mode.

Bug 1189241
Bug 1181574

Reviewed-on: http://git-master/r/192114
(cherry picked from commit 39cf979cd0a55876b8ceeaa75abbc19dd6527051)
Change-Id: Iec55f36de850060c71a13b5dd42d815e573c1f1b
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/212421
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra: dalmore: Pass nominal core voltage
Pavan Kunapuli [Wed, 17 Apr 2013 08:10:28 +0000]
ARM: tegra: dalmore: Pass nominal core voltage

Pass nominal core voltage data through sdhci platform data to be
used for setting core voltage constraints during frequency tuning.

Bug 1167519
Bug 1225343

Reviewed-on: http://git-master/r/200396
(cherry picked from commit 78b9d1067df6142ddb8de398607e4560081e3e49)
Change-Id: I709b18c163178c24e819fcd940f71656780d94fa
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/212416
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra: dalmore: vdd_core consumers for sdmmc
Pavan Kunapuli [Wed, 13 Feb 2013 10:01:27 +0000]
ARM: tegra: dalmore: vdd_core consumers for sdmmc

Adding vdd_core regulators for sdmmc1 and sdmmc4 to be used to set
core voltage constraints during frequency tuning.

Bug 1189241

Reviewed-on: http://git-master/r/200394
(cherry picked from commit 51d67bb03208c1fc4075298ecae7e0f9f5620d68)
Change-Id: I5708c4023947ece22947d8d97243e51733173aa3
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/212415
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoi2c: tegra: do not suspend i2c interrupts
Laxman Dewangan [Thu, 18 Apr 2013 13:43:51 +0000]
i2c: tegra: do not suspend i2c interrupts

There is possibility of I2C transfer calls even after suspend of
drivers occur.

To have the I2C transfer properly in this case, it should not suspend
interrupt of I2C so that interrupt support should be available.

bug 1272661
bug 1266321
bug 1257433

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

5 years agodrivers: misc: therm_est: Add timer trip support
Jinyoung Park [Fri, 29 Mar 2013 16:48:57 +0000]
drivers: misc: therm_est: Add timer trip support

Timer trip provides a way to change trip temp dynamically based on timestamp
when the trip is enabled.
- Timer trip can be various numbers on a trip.
- If the trip is enabled, then timer will be started with time_after delay
  in the corresponding timer trip. After the timer expires, trip_temp and
  hysteresis in the corresponding timer trip will be used to trip_temp for
  the trip.
- When the timer has expired, index of timer trip will be increased a step
  and then start the timer with time_after delay in newly indexed timer trip.
- When temp is below trip temp, index of timer trip will be decreased a step
  and then stop the timer and start the timer with time_after delay in newly
  indexed timer trip.
- The timer will be stopped if there is no more next timer trip on the trip,
  or the trip is disabled.

This change is based on http://git-master/r/198853 which is the timer
trip on Rel-16. The difference between two changes is that this change
can be used timer trip on multiple trip points, but the previous change
on Rel-16 can be used timer trip on only a trip point.

Bug 1233363
Bug 1236444

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/214612
(cherry picked from commit 1894b17754662f4cdc7a1176a62767fc8a97601c)

Change-Id: I999f496862fe131e4209b25b308f2223ac7cc350
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/220222
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoASoC: Add TDM mode support for max98091
Ravindra Lokhande [Wed, 17 Apr 2013 13:16:00 +0000]
ASoC: Add TDM mode support for max98091

For dual mic capture we need to use TDM mode. This is needed for
NC.

Bug 1234999

Change-Id: I03c91ac3b187f44587a27715edbc2a0a4b9fd7c8
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/220208
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Stefano Sarghini <ssarghini@nvidia.com>