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>

5 years agoARM: tegra: Make MC domains configurable
Terje Bergstrom [Wed, 17 Apr 2013 11:17:01 +0000]
ARM: tegra: Make MC domains configurable

Add a configration variable CONFIG_TEGRA_MC_DOMAINS. It controls if
MC power domains are enabled or not. Also disables MC domains by
default.

Bug 1272223

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

5 years agovideo: tegra: dc: Optimize OS idle display client wakeup
Animesh Kishore [Tue, 16 Apr 2013 09:28:45 +0000]
video: tegra: dc: Optimize OS idle display client wakeup

-Granularize MSF interrupt mask/unmask zone.
-Fix host not entering OS idle suspend.
-Remove unnessary display client wakeup.

Bug 1268656

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

5 years agoARM: tegra: macallan: enable OTG ID pin detect through PMIC
Yunfan Zhang [Thu, 28 Mar 2013 07:58:26 +0000]
ARM: tegra: macallan: enable OTG ID pin detect through PMIC

Bug 1256755

Change-Id: I86fabdd6da4481cf7365aa0e47fd086817cb9d35
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/213874
(cherry picked from commit 82cc526af10d41fdea45867ca35e4c91f6668e78)
Reviewed-on: http://git-master/r/219355
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoarm: tegra: macallan: correct pinmux of vddio_hv bank
Hunk Lin [Mon, 25 Mar 2013 14:39:49 +0000]
arm: tegra: macallan: correct pinmux of vddio_hv bank

1) USB_VBUS_EN0 is unused in macallan.
2) SPDIF_IN should be an open drain enable of the regulator.
3) Set sleep pinmux to save power in LP0.

Bug 1255023

Change-Id: I0286cfb56e222c41f9c8ed8632d49be95b390d65
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/212673
(cherry picked from commit 9772e56c4235d3c100fbee45ba3ce113a920be98)
Reviewed-on: http://git-master/r/218090
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoArm: tegra: usb: reset IDDQ upon resume
Krishna Yarlagadda [Mon, 25 Mar 2013 07:04:36 +0000]
Arm: tegra: usb: reset IDDQ upon resume

IDDQ mode has to be reset when resuming from lp0
or bus resume

Bug 1225060

Change-Id: I31b775d6778f9ab4646c65820e558606097a1b34
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/212532
(cherry picked from commit 4ef3cbc51a27146f7d3e749c3b2178d843b136ba)
Reviewed-on: http://git-master/r/217871
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoiommu/tegra: smmu: Unmap multiple pages at once
Hiroshi Doyu [Fri, 22 Mar 2013 09:30:59 +0000]
iommu/tegra: smmu: Unmap multiple pages at once

Implement to unmap multiple pages at once for performance.

bug 1254010
bug 1226176
bug 999937

Change-Id: Ifa4671a8d784f46f3cb5feed21e433240f1634ed
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/216852
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoiommu/tegra: smmu: Add flush_ptc_and_tlb_range()
Hiroshi Doyu [Wed, 3 Apr 2013 08:49:20 +0000]
iommu/tegra: smmu: Add flush_ptc_and_tlb_range()

Add flush_ptc_and_tlb_range() to handle multiple entries at once.

bug 1254010
bug 1226176
bug 999937

Change-Id: Ib1e9e2e7131345bb422787633eb8d1a4c549dda0
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/216851
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoiommu/tegra: smmu: Add flush_ptc_and_tlb_all()
Hiroshi Doyu [Wed, 3 Apr 2013 07:10:32 +0000]
iommu/tegra: smmu: Add flush_ptc_and_tlb_all()

A version of flush_ptc_and_tlb() against all entries within the same
address space.

bug 1254010
bug 1226176
bug 999937

Change-Id: I73dfdb0f1249a89313edd89dc5a51b8229648a32
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/216850
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoiommu/tegra: smmu: Mask pagetable index correctly
Hiroshi Doyu [Wed, 3 Apr 2013 08:55:28 +0000]
iommu/tegra: smmu: Mask pagetable index correctly

Mask pagetable index to avoid overrun by removing unnecessary bit at
first place.

bug 1254010
bug 1226176
bug 999937

Change-Id: I1bccd4d4b1c8510b540d7c0c60e1997ba63f952b
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/216849
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoARM: defconfig: Enable OTG wakelock for T114, T148
Rakesh Bodla [Mon, 15 Apr 2013 05:26:09 +0000]
ARM: defconfig: Enable OTG wakelock for T114, T148

Enabling otg wakelock for T114, T148 platforms.

Bug 1262358

Change-Id: Ic7e2fb0702598f770bd46eec78624b94aaab4e8d
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/216794
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoARM: tegra14: Set core_process_id
Prashant Malani [Wed, 3 Apr 2013 23:01:02 +0000]
ARM: tegra14: Set core_process_id

Set core_proces_id based on core speedo
value read from fuse register.

Bug 1246952

Change-Id: I639f5847bf34530adb28dd1154fd6294c1b3c3e9
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/216354
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agoarm: tegra: macallan: add power detect rails
Hunk Lin [Fri, 29 Mar 2013 08:29:49 +0000]
arm: tegra: macallan: add power detect rails

Add full power detect rails to fix high power in many IO power rails.

Bug 1255023
Bug 1254991
Bug 1254993
Bug 1255002
Bug 1255008
Bug 1255016
Bug 1255020

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

5 years agoARM: tegra: pluto: vdd_core consumers for sdmmc
Pavan Kunapuli [Wed, 13 Feb 2013 10:50:40 +0000]
ARM: tegra: pluto: vdd_core consumers for sdmmc

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

Bug 1167519
Bug 1225343

Reviewed-on: http://git-master/r/200409
(cherry picked from commit 596e268dc185f2f4545dbd425b94e9823d70d702)
Change-Id: I6708256280a9aeeb0f174e4cdafcc67f7ed5ec17
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/212413
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

5 years agoASoC: tegra: AIC3033: add TPA2054D4A amplifier
Dara Ramesh [Thu, 18 Apr 2013 11:30:13 +0000]
ASoC: tegra:  AIC3033: add TPA2054D4A amplifier

1) added TPA2054D4A driver for headphone and speaker amplifier.
2) enabled automatic Headset detection logic for MIC detection.
3) updated alsa controls for TPA2054D4A driver.
4) Fix headset detection code.

 bug 1266219
 bug 1262352

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

5 years agoarm: tegra: isomgr: enable clock
Krishna Reddy [Mon, 8 Apr 2013 21:37:54 +0000]
arm: tegra: isomgr: enable clock

check for clock source get errors as well

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

5 years agopinctrl: palmas: Add support for Gpio14
fred zhou [Fri, 12 Apr 2013 05:41:43 +0000]
pinctrl: palmas: Add support for Gpio14

Gpio14 is used for hdmi hot plug and config it as gpio.

Bug 1259587

Change-Id: Ie63101a52659318d2aaecc937847b805678c482c
Signed-off-by: fred zhou <fzhou@nvidia.com>
Reviewed-on: http://git-master/r/218815
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Louis Li <louli@nvidia.com>
Reviewed-by: Sumit Sharma <sumsharma@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: tegra: pluto: use extcon for battery
Xin Xie [Wed, 6 Mar 2013 00:06:18 +0000]
ARM: tegra: pluto: use extcon for battery

Add extcon dev name.

Bug 1261951

Change-Id: If59bce0d0fee87f93ac6fb01000e7d5227bb714b
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/207221
(cherry picked from commit e60c4fe8e8a323e21544123a53a0e156938b14ae)

5 years agopower: max77665: add extcon support
Xin Xie [Fri, 1 Mar 2013 22:31:16 +0000]
power: max77665: add extcon support

Add extcon support to get notifications for different usb cables and
notify UI to show different icons depending on the cable.

Bug 1261951

Change-Id: Ie0d6e7f1e6fb2db843b11f1a75374a267fe6bfbb
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/207220
(cherry picked from commit 47ec34d9ac9912c125519e22a49667cc02c64b1a)

5 years agousb: gadget: tegra: add extcon device notification
Xin Xie [Tue, 26 Feb 2013 02:53:34 +0000]
usb: gadget: tegra: add extcon device notification

Add extcon device notification in usb gadget driver
to notify different types of usb cable connections.

Bug 1261946

Change-Id: I833461ab70adb3d7e84a9c2d9f199a3d76753dee
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/207219
(cherry picked from commit b0d8a1b159dc578f5b651f9fe61826efc2cbda4b)

5 years agopower: max77665: add watchdog timer for charging
Xin Xie [Thu, 28 Mar 2013 07:12:21 +0000]
power: max77665: add watchdog timer for charging

Bug 1242272

Change-Id: Ie09fccea64c0953be0120b505557bc791ed150ca
Signed-off-by: Xin Xie <xxie@nvidia.com>
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207405
(cherry picked from commit cad7b411b5ab4b5f2ca31a3d0c35fea6ea01f0d5)

5 years agoinput: misc: Add EDP support for DRV2603 driver
Sumit Sharma [Mon, 15 Apr 2013 11:42:18 +0000]
input: misc: Add EDP support for DRV2603 driver

- Add EDP support for DRV2603 haptics driver
- Add regulator support in the driver
- Free resources in remove function

Bug 1266734

Change-Id: I502a7cdd8c63a4e16d9343c88aa2ceaf4870c3f7
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>

5 years agovideo: tegra: dc: fix PREMULT serial blending
Michael I. Gold [Thu, 11 Apr 2013 16:50:53 +0000]
video: tegra: dc: fix PREMULT serial blending

Change-Id: I7ca03ef97b483d4a02155eec21995f67c99a8835
Signed-off-by: Michael I. Gold <gold@nvidia.com>

5 years agommc: sdhci: fix DDR50 mode of eMMC for low max clock rate limit
Vishal Singh [Wed, 10 Apr 2013 13:05:53 +0000]
mmc: sdhci: fix DDR50 mode of eMMC for low max clock rate limit

For eMMC, for the case when max controller clock rate is less than
52 MHz, the divisor is being set to 1. But in DDR50 mode, the
controller needs to run at at least twice the card clock rate.
Hence setting divisor to 2 for this case.

Bug 1270978.

Change-Id: I79345d9e8a0a6a2d8d5e47bfdaf54312bbcf89ae
Signed-off-by: Vishal Singh <vissingh@nvidia.com>

5 years agotrace: events: isomgr: add trace event for isomgr
Krishna Reddy [Tue, 9 Apr 2013 23:06:11 +0000]
trace: events: isomgr: add trace event for isomgr

Change-Id: I18bd72510b84f0d5c2aef6900ada7b588c67d292
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>

5 years agopower: max17048: modify header file
Darbha Sriharsha [Mon, 15 Apr 2013 19:40:26 +0000]
power: max17048: modify header file

This change is intended to modify the
max17048_battery header file to
include certain function declarations only
if the max17048_battery defconfig option
is defined

Bug 1178638

Change-Id: Ifd28cacd6584edd52b2827798137862c818064d7
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/219506
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: host: Initialize table before using
Arto Merilainen [Tue, 9 Apr 2013 10:54:50 +0000]
video: tegra: host: Initialize table before using

This patch adds a missing initialization of syncpoint table. This
may lead to calling kfree() with invalid memory addresses.

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

5 years agopower: max77660: Add battery charger driver
Darbha Sriharsha [Wed, 10 Apr 2013 03:54:40 +0000]
power: max77660: Add battery charger driver

Addition of battery charger driver for max77660 chipset

Change-Id: I5b4525941316994e8054d98942a899d9d76ca965
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/216973
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoARM: tegra14: dvfs: add Bin0 pll DVFS entries
Prashant Malani [Wed, 3 Apr 2013 23:25:33 +0000]
ARM: tegra14: dvfs: add Bin0 pll DVFS entries

Add entries for pll_m/c/c2/c3

Bug 1246952

Change-Id: Ief45e396805ff2b0614e009394d112614df72c38
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/216355
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agoARM: Tegra: Sample uS timer to measure LP resume
Kamal Kannan Balagopalan [Tue, 9 Apr 2013 18:35:56 +0000]
ARM: Tegra: Sample uS timer to measure LP resume

Add framework to log microsecond timer for measuring suspend/deep-sleep
resume times from power-on to display-on

Bug 1252226

Change-Id: Icbf890f3766d38093eea485a7261303ae73d2567
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/217939
(cherry picked from commit 4b495256ae27012f12d1b334ef5b965bf3dae8d0)
Reviewed-on: http://git-master/r/219448
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agovideo: tegra: host: add dt support for t14x
Mayuresh Kulkarni [Fri, 12 Apr 2013 14:00:32 +0000]
video: tegra: host: add dt support for t14x

this commit adds the compatible properties for t148
the real dt will be enabled in a different commit

Change-Id: I9238897eafea968bff3527f0a769dd4a9e315300
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/218949
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoASoC: codecs: max98090: add missing break statement
Ravindra Lokhande [Tue, 16 Apr 2013 16:55:50 +0000]
ASoC: codecs: max98090: add missing break statement

Change-Id: I1219ae95575ae9c627ee83a72a820a92f4ac89ec
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/219880
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoarm: tegra: add macallan E1569 support
Kerwin Wan [Tue, 16 Apr 2013 13:06:52 +0000]
arm: tegra: add macallan E1569 support

Change-Id: I42917f76efee8c6b41c7a8f58e20ec9e2d4feea4
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/219839
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agomfd: max77665: use regmap irq for interrupt support
Laxman Dewangan [Wed, 3 Apr 2013 12:39:55 +0000]
mfd: max77665: use regmap irq for interrupt support

Add regmap irq framework for interrupt support. This will
reduce the code size in mfd driver for implementing the
interrupt support and duplicating code.

(Cherrypicked commit
aabb7673ce63234bd119f12f8113983fcb530ca8)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/216136

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

5 years agomfd: max77665: Pass interrupt number for muic as platform irq resource
Laxman Dewangan [Mon, 1 Apr 2013 12:01:11 +0000]
mfd: max77665: Pass interrupt number for muic as platform irq resource

bug 1227226

(Cherrypicked from commit
5dae541026ea18c48f447df841d5cdbdb4c07ab8)

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

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

5 years agovideo: tegra: dc: Log display-on time via uS timer
Kamal Kannan Balagopalan [Wed, 10 Apr 2013 00:39:15 +0000]
video: tegra: dc: Log display-on time via uS timer

Bug 1252226

Change-Id: I2c7b89a964c5237cf4021fa9ad57fe1e02b729c2
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/217940
(cherry picked from commit 28199be1263b88070718bac2725e8d5b26c6a0f6)
Reviewed-on: http://git-master/r/219449
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>

5 years agoARM: Tegra: clock: Clock set latency tracing
Antti P Miettinen [Mon, 15 Apr 2013 12:46:56 +0000]
ARM: Tegra: clock: Clock set latency tracing

Add traces for clock set latency measurements.

Change-Id: I5bdd00145f32da59ed294c8414d44fba8f3a81ca
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/219386
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agodrivers: staging: nvshm: fix panic and loop in net driver
Martin Chabot [Fri, 12 Apr 2013 13:41:48 +0000]
drivers: staging: nvshm: fix panic and loop in net driver

skbuff failed alloc not checked fixed
loop when non IP packet detected fixed

Bug 1270335
Bug 1270386

Change-Id: I71c1a032b5673ef5ad629ecce22db9f92949ce95
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/218944
Reviewed-by: Herve Fache <hfache@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Julien Vuillaumier <jvuillaumier@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agousb: gadget: tegra: Add mutex for sync
Krishna Yarlagadda [Thu, 4 Apr 2013 13:47:18 +0000]
usb: gadget: tegra: Add mutex for sync

vbus session is being called from different threads and
this can result in sync issues.
Added mutex lock to avoid this

Bug 1266998

Change-Id: I41384be63cfafed127c67e4a4ea0be69a0d98c49
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/216518
(cherry picked from commit 025a8139867abe2eef3fe85e52a5891518849f5b)
Reviewed-on: http://git-master/r/218124
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agovideo: tegra: host: Enable Tegra14 3D DVFS
Terje Bergstrom [Tue, 5 Feb 2013 02:44:54 +0000]
video: tegra: host: Enable Tegra14 3D DVFS

Enable 3D clock scaling for Tegra14.

Bug 1179425

Change-Id: Id6f16d70a0f3771db405571cfa5b92deb005208d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/216397
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Samuel Russell <samuelr@nvidia.com>

5 years agoARM: mm: Save and restore event counters
Antti P Miettinen [Thu, 10 Jan 2013 13:29:53 +0000]
ARM: mm: Save and restore event counters

Save and restore event counter selections and counter
values over power gating.

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

5 years agoARM: tegra14: pm: Clear BB_MEM_REQ wake status
Prashant Malani [Sat, 13 Apr 2013 00:51:08 +0000]
ARM: tegra14: pm: Clear BB_MEM_REQ wake status

Despite clearing BB_MEM_REQ wake mask, it is
necessary to clear the corresponding bit from
wake status register to ensure that the
interrupt is cleared.

Bug 1257433

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

5 years agodrivers: staging: nvshm: fix spinlock deadlock
Martin Chabot [Fri, 12 Apr 2013 12:09:44 +0000]
drivers: staging: nvshm: fix spinlock deadlock

Change to spinlock_irq to spinlock_irqsave/restore
This avoid re-enabling interrupt in critical section
resulting in a deadlock (seen in 3G transfert)

Bug 1270310

Change-Id: I3f0600ad7bf0bbdea44d0234e64fe5cceca9d577
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/218914
Reviewed-by: Jean-Marc Guiraudet <jguiraudet@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Greg Heinrich <gheinrich@nvidia.com>
Reviewed-by: Julien Vuillaumier <jvuillaumier@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

5 years agoarm: dts: tegra114: add TEGRA_DSIB region
Min-wuk Lee [Wed, 10 Apr 2013 04:56:41 +0000]
arm: dts: tegra114: add TEGRA_DSIB region

Bug 1240921

Change-Id: I27c6bfc3c08c35899789f79c110881cd92ee5b1b
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/218089
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Alex Courbot <acourbot@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

5 years agoARM: Tegra: issue smc to wakeup secure world only for TF's OS
Varun Wadekar [Mon, 8 Apr 2013 09:47:29 +0000]
ARM: Tegra: issue smc to wakeup secure world only for TF's OS

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

5 years agoARM: tegra14: dvfs: Update bin0 big block entries
Prashant Malani [Wed, 3 Apr 2013 01:46:29 +0000]
ARM: tegra14: dvfs: Update bin0 big block entries

Update bin0 big block core dvfs entries based on
SiVal data released on 4/1/2013.

Bug 1246952

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

5 years agomfd: max77660: add haptic support
Bitan Biswas [Fri, 12 Apr 2013 16:38:39 +0000]
mfd: max77660: add haptic support

bug 1252775

Change-Id: I9ba33feaeb3c3ff206f5cd3c3822aae0d82a6cee
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/218991
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agovideo: tegra: host: change slope to fixed point
Jihoon Bang [Thu, 28 Mar 2013 01:07:28 +0000]
video: tegra: host: change slope to fixed point

In 3D dvfs, slope and dip_slope is small number and
it can become less than zero. To prevent slope from being zero,
change slope type from int to fixed point.

Bug 1246180

Change-Id: I86186cf0516cddac38e88c1c95b27be967061726
Reviewed-on: http://git-master/r/213768
(cherry picked from commit d7f947d59aee835a68b6fc6c14f8b5980a63c029)
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/218979
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

5 years agoarm: tegra: bbc: fix xxx_store_state() method
Julien Vuillaumier [Fri, 12 Apr 2013 13:50:34 +0000]
arm: tegra: bbc: fix xxx_store_state() method

Function expects to receives a string that contains either keyword
or numerical value.
Remove unused integer conversion that returns with error code when
keyword is passed as argument ('enabled' or 'disabled').

bug 1271082

Change-Id: I704a5e65073251aaf9657a9e4d57907845cd80e6
Signed-off-by: Julien Vuillaumier <jvuillaumier@nvidia.com>
Reviewed-on: http://git-master/r/218951
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoinput: misc: max77660: haptic driver
Bitan Biswas [Fri, 12 Apr 2013 14:59:01 +0000]
input: misc: max77660: haptic driver

MAX77660 PMIC has integrated haptic driver. The haptic driver
is implemented as an input driver.

bug 1252775

Change-Id: Ib76e311b3c7dbea555d538052b0b7aa79785d298
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/210074
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agoARM: tegra: config: enable PM_AUTOSLEEP
Shridhar Rasal [Fri, 12 Apr 2013 07:11:23 +0000]
ARM: tegra: config: enable PM_AUTOSLEEP

Opportunistic_suspend/Autosleep is mechanism by which
the kernel can trigger global transitions to a sleep state
chosen by user space if there are no active wakeup sources. Google
recommends autosleep to put device into suspend for android kernel.

bug 1045715

Change-Id: Ia2626e4ffd0c790d994625ad5cceb7d0bde362a8
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/218830
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>