6 years agohwmon: ina230: support inverted polarity for shunt voltage
Hyungwoo Yang [Sat, 27 Apr 2013 21:39:16 +0000]
hwmon: ina230: support inverted polarity for shunt voltage

This change supports the case for polarity of shunt voltage is inverted.

Bug 1240043

Change-Id: Idfb87fd80694b61f1ec66be9aa815d7aedc95324
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/223682
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agogps_drv: remove error print
Rakesh Goyal [Wed, 24 Apr 2013 13:04:45 +0000]
gps_drv: remove error print

Remove error print as devproxy is now running in polling
mode and call this function frequently.

Bug 1250980

Change-Id: I5a41f205d18646ccc861a60c4ab3df0e7119d10e
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/222504
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegratab: enable OV7695 config
kkim [Tue, 23 Apr 2013 05:37:19 +0000]
ARM: tegratab: enable OV7695 config

Bug 1269275

Change-Id: I5b7aa09385a4a1d1e0c1ede6809e0cf70ca9e505
Signed-off-by: kkim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/222045
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agovideo: tegra: host: improve FXDIV implementation
Ilan Aelion [Fri, 19 Apr 2013 22:41:04 +0000]
video: tegra: host: improve FXDIV implementation

Fixed point arithmetic is used in calculating 3d.emc clock rate
requests. Improve FXDIV implementation by using fls() rather than a
loop to derive count of leading zeros.

Bug 1268909

Change-Id: I26532bebe17d2233130d33d43b1b1ae707bd5876
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/221265
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: tegratab: Update emc dvfs table
Yong Goo Yi [Tue, 30 Apr 2013 04:38:29 +0000]
ARM: Tegra: tegratab: Update emc dvfs table

Bug 1241146

Change-Id: I15637f4d31313015cb63d8b25cf76b998665a018
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/224119
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agodriver: sensor: change compass value from int to short
Robert Collins [Mon, 8 Apr 2013 17:35:11 +0000]
driver: sensor: change compass value from int to short

Bug 1266211

Change-Id: Ib4a9f9cd58bd526c0afd3d815b29f0a72defac79
Signed-off-by: Robert Collins <rcollins@nvidia.com>
Reviewed-on: http://git-master/r/217421
(cherry picked from commit 984398033a9f4c26454e2018ab025f52a115cf91)
Reviewed-on: http://git-master/r/216731
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Tested-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agotegratab: edit default LCD brightness to 60.
Hyongbin Kim [Wed, 24 Apr 2013 06:44:33 +0000]
tegratab: edit default LCD brightness to 60.

Reduce LCD brightness for power saving when charging and booting.

Change-Id: Icd00c5d3d2b1cfd2b0879580edc9e4d3d269cfee
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/222340
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: macallan: add HDMI electrical settings
Hayden Du [Wed, 1 May 2013 00:31:53 +0000]
ARM: tegra: macallan: add HDMI electrical settings

bug 1157049
bug 1259746

Change-Id: I0e19f104995e444bb12daef754c57d4f50f41c0f
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/224409
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agousb: xhci: tegra: Fix SS device detection as HS
Ajay Gupta [Tue, 30 Apr 2013 21:33:09 +0000]
usb: xhci: tegra: Fix SS device detection as HS

commit "usb: xhci: tegra: save leakage power if SS link suspended"
has broken SS device enumeration where we see some SS device gets
detected as HS initially and then later detected as SS.

If ELPG exit happens due to main hcd bus_suspebd call first then
RX_IDLE_OVRD would not be cleared causing SS device getting
detected as HS. Fixing this by making sure RD_IDLE_OVRD is cleared
before loading firmware

Bug 1279725

Change-Id: I0f8c62735bff2ed6afddc7b4ed31f6ff618301d2
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/224357
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: dalmore: correct bad include
Ray Poudrier [Sat, 27 Apr 2013 19:30:19 +0000]
ARM: tegra: dalmore: correct bad include

From T30 interposer we were including
t30 pinmux file. This never got corrected
to t114 header.

Same instance in macallan and tegratab

Change-Id: I9c316334acddfb5bc9737dcc1f5998fd336a9352
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/223676
(cherry picked from commit f7dc40e37e769a43c5f1b5f99c07d891fd849ee1)
Reviewed-on: http://git-master/r/223981
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max17042: Add Technology property
Pradeep Goudagunta [Mon, 29 Apr 2013 09:00:20 +0000]
power: max17042: Add Technology property

Bug 1253306

Change-Id: I93f1113804b9778e299b158c30dcc330b9296dc7
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/223817
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: usb: Fix utmi phy resume
Petlozu Pravareshwar [Thu, 25 Apr 2013 12:49:19 +0000]
ARM: tegra: usb: Fix utmi phy resume

Fix utmi_phy_resume based on the port speed value,
port connect status along with handling the lp0 resume case.

Bug 1251685
Bug 1276248

Change-Id: Ie7f2b5d52e7000e898df4fdaeea5c19e8b37b842
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/222930
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: macallan: register fuel gauge for E1569
Kerwin Wan [Thu, 25 Apr 2013 12:07:54 +0000]
arm: tegra: macallan: register fuel gauge for E1569

Remove the unused fuel gauge and register fuel gauge for E1569.
Fuel gauge on macallan E1545 will not be supported.

Bug 1278416

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

6 years agoARM: SMP: disable preempt before SMP cross call
Bo Yan [Wed, 24 Apr 2013 20:50:12 +0000]
ARM: SMP: disable preempt before SMP cross call

preemption should be disabled when smp_call_function_many is called.

bug 1224910

Change-Id: I4c23e6fe77354d50230b8e46bcc4128a9888f201
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/222644
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoarm: tegra: panel-lgd-wxga-70: Tx only video clk mode
Min-wuk Lee [Mon, 22 Apr 2013 01:36:36 +0000]
arm: tegra: panel-lgd-wxga-70: Tx only video clk mode

Set video clk mode to Tx only. Different timings
are required between continuous and Tx only setting
for target panel. VIDEO_CLK_MODE_TX_ONLY is set to
1 in default. If it is set to 0, video clk mode
will be changed to continuous.

Bug 1234973

Change-Id: Icfe07f722f93eb79cd2f39bf4b67c8f9923a092e
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/223799
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: usb_phy: Update RTUNEP value
Suresh Mangipudi [Mon, 29 Apr 2013 06:25:43 +0000]
arm: tegra: usb_phy: Update RTUNEP value

Update the TX_RTUNEP value to 1100 for HSIC.
Do not clear the TX_RTUNEN value.
By default UHSIC_AUTO_RTERM_EN should be enabled.

Bug 1211875

Change-Id: I1f44380d2e42a0aee9812fb522cc82be705f55a6
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/223772
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoregulator:palmas increase delay when ES2.1 or lower
Philip Rakity [Fri, 26 Apr 2013 10:57:42 +0000]
regulator:palmas increase delay when ES2.1 or lower

code needs to decrease ramp delay so we get a longer
delay.  numerator and divisor need to be reversed

Change-Id: I84ec995e0235e482bb0fe42cadb1864353ff7655
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/223332
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: soctherm: Update soctherm zones after boot
Alex Frid [Thu, 25 Apr 2013 06:53:41 +0000]
ARM: tegra: soctherm: Update soctherm zones after boot

Made sure all thermal zones controlled by soctherm are updated at the
end of kernel initialization at late_initcall_sync phase. Hence, all
cooling deices including those that have been registered when soctherm
was suspended are synchronized with chip initial state.

Change-Id: I86b631cb08607adeb13e0ba6e173f5caa1421554
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/223153
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra11: dvfs: Add CPU Vmax thermal profile
Alex Frid [Wed, 24 Apr 2013 04:04:45 +0000]
ARM: tegra11: dvfs: Add CPU Vmax thermal profile

Added a single-point Tegra11 Vmax thermal profile:
Vmax <= 1.24V if T >= 70C.

Bug 1270003

Change-Id: I5070951f6f2dfd5f9ebd061264ccc18df539d088
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/223152
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: dvfs: Add CL-DVFS Vmax cooling device
Alex Frid [Wed, 24 Apr 2013 00:15:19 +0000]
ARM: tegra: dvfs: Add CL-DVFS Vmax cooling device

Added CL-DVFS Vmax cooling device to keep operational voltage below
target rail thermal profile in any temperature range.

The thermal profile - temperature trip-points, and voltage caps is
specified by safe dvfs for the target rail. Profile represents Vmax(T)
dependency as descending function based on chip characterization. Each
cap is applied at temperatures above the respective threshold.

When CL-DVFS is running in the closed loop mode, thermal caps are
compared with expected safe dvfs voltage limits and the most aggressive
(minimum) one is set. In case of conflict between voltage floors and
caps, floor setting wins.

During boot the highest temperature is assumed, and the lowest Vmax
limit is applied until SoC Tj thermal zone sensor updates actual
cooling device state. Similarly during suspend entry/exit the lowest
Vmax limit is applied. Cooling device update on resume is enforced by
directly clearing update flag (otherwise thermal framework may skip
update if temperature has not changed across suspend).

Bug 1270003

Change-Id: I6753ef8efd5b0e6a15c56803d0ea5fb3b2df67af
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/223151
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agoARM: tegra: dvfs: Add entries for rail Vmax thermal control
Alex Frid [Tue, 23 Apr 2013 23:03:16 +0000]
ARM: tegra: dvfs: Add entries for rail Vmax thermal control

- Expanded dvfs rail structure with Vmax thermal profile entries: Vmax
cooling device, and  list of thermal trip-points and thermal caps.
Added check for entries consistency.

- Added API to register Vmax cooling device trip-points in Tj thermal
zone.

Bug 1270003

Change-Id: I2066f4f6fcc0867ee05af01db6c70dc7feedd8fb
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/223150
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agoRevert "smp: Fix SMP function call empty cpu mask race"
Bo Yan [Thu, 25 Apr 2013 00:39:02 +0000]
Revert "smp: Fix SMP function call empty cpu mask race"

This reverts commit 846c314fd6124b5bd3a3db2624818f29616874a1.

Change-Id: Id0e9d586dfba4eb5743a6b07975d8d6667a478a6
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/222732
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoRevert "Revert "arm: errata: Workaround for Cortex-A15 erratum 798181 (TLBI/DSB opera...
Bo Yan [Mon, 22 Apr 2013 23:02:07 +0000]
Revert "Revert "arm: errata: Workaround for Cortex-A15 erratum 798181 (TLBI/DSB operations)""

This reverts commit c7cc6aa56f184389203f380df1e39e94e2e2d6f5.

Change-Id: Ia481c2f0d9f49e7f05eb2b3fe9a65d7cb4302326
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/222643
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoRevert "Revert "Revert "ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on ASID-capable...
Bo Yan [Mon, 22 Apr 2013 23:02:00 +0000]
Revert "Revert "Revert "ARM: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW on ASID-capable CPUs"""

This reverts commit 450e0659ea22b0122c8f48acd2f058a46486b826.

Change-Id: I88a1148a0293d7c95b2af18ae4f42e97e7572f02
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/222642
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: Tegra: Tegratab: Toggle DDC pull down with hpd
Gabby Lee [Tue, 23 Apr 2013 08:48:05 +0000]
ARM: Tegra: Tegratab: Toggle DDC pull down with hpd

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

Bug 1270244

Change-Id: Ia2a8f9268eddb827753d995dc69995c9ef754aa0
Signed-off-by: Gabby Lee <galee@nvidia.com>
Reviewed-on: http://git-master/r/221996
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: pluto: update TGAIN and TOFF values
Syed Rafiuddin [Mon, 29 Apr 2013 05:35:24 +0000]
arm: tegra: pluto: update TGAIN and TOFF values

Update TGAIN and TOFF values for ceres battery

Change-Id: I256a8d43d9091a1d340a4571a488d323e2edd558
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/223754
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Tested-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agortc: palmas: reduce message from rtc driver
Laxman Dewangan [Fri, 26 Apr 2013 10:13:25 +0000]
rtc: palmas: reduce message from rtc driver

Change the message level from dev_info to dev_dbg on callback API.
Only keep the prints of alarm time in suspend and current time
on resume for help on debugging.

Change-Id: Ia82d9f11b910c06c4aee8ecd88db9c71f7e592c1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/223317
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Rakity <prakity@nvidia.com>
Tested-by: Philip Rakity <prakity@nvidia.com>

6 years agoARM: tegra: tegratab: add support for P1640
Harry Hong [Fri, 26 Apr 2013 07:53:15 +0000]
ARM: tegra: tegratab: add support for P1640

P1640 is FFD version of tegratab.

bug 1278403

Change-Id: I009da8f69ac8912c0d935f261bcd658e125660b4
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/223251
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>

6 years agoARM: tegra: dalmore: add HDMI electrical settings
Jon Mayo [Sat, 6 Apr 2013 02:12:15 +0000]
ARM: tegra: dalmore: add HDMI electrical settings

Bug 1157049

Change-Id: I04af72ed408cec5a53034d5d97212c5c818f0d28
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/221279
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dc: fix typo in tmds_config names
Jon Mayo [Tue, 2 Apr 2013 20:51:40 +0000]
video: tegra: dc: fix typo in tmds_config names

Updates interfaces for providing alternate TMDS to remove typos.
Combine loop through board tmds_config and fallback tmds_config.

Change-Id: Ia9987b6d84d586e1fbfb9d6b0f84b4bd6800122d
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/215681
(cherry picked from 095378cb8dab6e914cf577f9c6b4b6e4dd5be10c)
Reviewed-on: http://git-master/r/221278
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoarm: config: tegratab: remove unused LTR_558ALS config
David Yu [Fri, 26 Apr 2013 08:05:37 +0000]
arm: config: tegratab: remove unused LTR_558ALS config

Change-Id: I2f07686f672be20f0458fc84769aae99a30ab850
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/223269
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra: dvfs: Rename MAX_THERMAL_FLOORS macro
Alex Frid [Sun, 21 Apr 2013 01:24:13 +0000]
ARM: tegra: dvfs: Rename MAX_THERMAL_FLOORS macro

Renamed MAX_THERMAL_FLOORS to MAX_THERMAL_LIMITS so the macro can be
applied to thermal caps as well (yet, to be added).

Change-Id: I1613ff5ab1be6dd302bcfc1f0e01f6208eceea0e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/223149
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agobacklight: max8831: Change brightness setting under System EDP constraints
Daniel Solomon [Wed, 24 Apr 2013 22:59:23 +0000]
backlight: max8831: Change brightness setting under System EDP constraints

Change backlight setting behavior to the following:
1) Compare requested brightness with available EDP states
2) Request the next higher EDP state from EDP manager
3) Set brightness to min(requested brightness, approved brightness)

Bug 1276795

Change-Id: I77ddc2f74bcd3e848bb8d4df59f524f871db7557
Signed-off-by: Daniel Solomon <daniels@nvidia.com>
Reviewed-on: http://git-master/r/222671
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra11: clock: Keep PLL_REFE enabled during init
Alex Frid [Wed, 24 Apr 2013 21:06:40 +0000]
ARM: tegra11: clock: Keep PLL_REFE enabled during init

Enabled PLL_REFE in early kernel initialization, to provide clock for
h/w sequencers initialization. PLL is disabled in late init.

Bug 1275799

Change-Id: Ie79a3f0989fb3a40714659c7ed082dce2d004d5c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/222651
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoextcon:max77765 Make resume faster - do debug messages
Philip Rakity [Wed, 24 Apr 2013 14:43:35 +0000]
extcon:max77765 Make resume faster - do debug messages

do not print out debug messages. use dev_dbg rather
then dev_info

Change-Id: I041a74fa6306eb7c72e65525c88c474d5d08c61d
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/222529
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agovideo: tegra: hdmi: support custom tmds config.
Kevin Huang [Sat, 29 Dec 2012 01:11:52 +0000]
video: tegra: hdmi: support custom tmds config.

provide the support to set the tmds config according to board file.

Bug 1204008

Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/187553
(cherry picked from 70206460df252616577b0a0a69884becb66c999d)
Change-Id: I1952fab46f60ef740a49786605390b9bb4772704
Reviewed-on: http://git-master/r/221315
Tested-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agovideo: tegra: dc: remove colorbar test sysfs node
Jon Mayo [Thu, 17 Jan 2013 16:22:50 +0000]
video: tegra: dc: remove colorbar test sysfs node

Remove sysfs node only used for debug/development.
fix merge conflicts at pluto TOT

Bug 1219338

Change-Id: I62ccb08badba01cee6f889b818074358f7d8953f
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/221206
Reviewed-by: Automatic_Commit_Validation_User

6 years agoASoC: Tegra: Improve capture stopping logic
Sumit Bhattacharya [Wed, 17 Apr 2013 12:43:04 +0000]
ASoC: Tegra: Improve capture stopping logic

During stopping capture session when I2s RX port is disabled I2S
FIFO may contain 2 bytes of data. In case of stereo capture done
in I2S mode I2S CIF will be configured for stereo and it will not
transmit residual 2 byte I2S FIFO data. As a result when next
capture session starts audio channel will get reversed due to
residual 2 bytes of data.

To solve this issue do a SOFT_RESET of I2S channel if after
disabling of I2S RX port I2S FIFO does not get empty. Also disable
APBIF FIFO after I2S RX port is disabled to follow source to
destination disabling sequence.

As a precaution similar check is also added form playback stop path.

Bug 1255915

Change-Id: I8ab74c96ca00e2a1fda0abfeb73244a83b847005
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/220203
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoregulator: palmas: fix the ramp delay logic comparison
Laxman Dewangan [Fri, 26 Apr 2013 09:45:53 +0000]
regulator: palmas: fix the ramp delay logic comparison

Change-Id: I4eb8a1f5262c8fc5fbc42f504bc44bebad2a5719
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/223305
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Philip Rakity <prakity@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: otg: tegra: update interrupt status properly
Rohith Seelaboyina [Thu, 25 Apr 2013 07:10:21 +0000]
usb: otg: tegra: update interrupt status properly

Interrupt status is being overridden,
fix this accordingly

Bug 1275428

Change-Id: I0812cbda3fd75a7d33dc180db31ad2ee1699d3bf
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/222812
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: tegratab: do not enable DC1 in DC probe
Youngjin Kim [Thu, 25 Apr 2013 07:12:47 +0000]
ARM: tegra: tegratab: do not enable DC1 in DC probe

Remove TEGRA_DC_FLAG_ENABLED flag from disp2 platform data
not to enable DC1 in DC probe.

Bug 1270114

Change-Id: Idc2c294d9c48b2d0004aed277dcfac3b1cfd32d6
Signed-off-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-on: http://git-master/r/222809
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: add base address & size for 2d and 3d
Mayuresh Kulkarni [Fri, 7 Dec 2012 10:01:19 +0000]
arm: tegra: add base address & size for 2d and 3d

bug 1041377

Change-Id: I2f3d0eb0b2e92a70ec641be2920ae61a57cd4417
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/169347
(cherry picked from commit d7d37a1fe4f6a62f1bb10dd760bfc60538b78ffb)
Reviewed-on: http://git-master/r/221834
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoArm: tegra: tegratab: change utmi host phy config
Shawn Joo [Fri, 19 Apr 2013 07:05:18 +0000]
Arm: tegra: tegratab: change utmi host phy config

change usb host mode phy config for tegratab.
xcvr setup and hs slew LSB is modified.

Bug 1272371

Change-Id: Iec3d2954d7fd154def01cf01d570acbac33d910c
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/220919
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: macallan: correct the roof_floors of ldos
Hunk Lin [Thu, 25 Apr 2013 12:55:31 +0000]
arm: tegra: macallan: correct the roof_floors of ldos

Set roof_floor of ldo2/ldo3/ldo9/ldoln to be 0. These three rails' ON/OFF
should be controlled by drivers.
External control(roof_floor) should be only used for the power rails which
require to be on during system idle/active and do not require to be on when
it is in sleep/lp0.

Bug 1278668
Bug 1278671
Bug 1278672
Bug 1279327

Change-Id: Ia5114538a7bdf9b8d3ae39f2a26d0cbf7ec70c95
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/222923
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: pluto: remove external control from LDO9
Laxman Dewangan [Thu, 25 Apr 2013 07:15:50 +0000]
ARM: tegra: pluto: remove external control from LDO9

The Palmas-LDO9 is used for supplyign the voltage to sdmmc3-ap rail
and sdmmc driver already take care of rail to be enable/disable and
hence it is not require to configure it as external control.

bug 1278358

Change-Id: Ie825d79d516ec9d9e1f1336822f67845aaf1269e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/222840
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: usb: disable USB_WAKE_ON_CNNT_EN_DEV bit
Petlozu Pravareshwar [Wed, 3 Apr 2013 10:13:35 +0000]
ARM: tegra: usb: disable USB_WAKE_ON_CNNT_EN_DEV bit

Disable USB_WAKE_ON_CNNT_EN_DEV bit during phy_power_off.

Bug 1251685
Bug 1223856

Change-Id: Ifbe24badcada19472d47fe92117f5a4b0e28eda7
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/216068
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 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>
(cherry picked from commit 56469c85646b8fb859f2f30325d53de989d554f4)
Reviewed-on: http://git-master/r/221740
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 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>
(cherry picked from commit 853cf1d4e235ffcc64a27b0b602799aee6906e12)
Reviewed-on: http://git-master/r/221741
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoRevert "ARM: tegra: usb: increase line debounce count"
Ajay Gupta [Thu, 25 Apr 2013 23:26:02 +0000]
Revert "ARM: tegra: usb: increase line debounce count"

This reverts commit 1fb66376c0f5add2ed09e839e04fd1377f828db3.

Bug 1275437

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

6 years agoARM: tegra: fix comparison in enforcing volt-temp constraint
Diwakar Tundlam [Tue, 23 Apr 2013 23:05:47 +0000]
ARM: tegra: fix comparison in enforcing volt-temp constraint

Bug 1270003

Change-Id: I345a7dc58cd65e0167525bbd8182bbc8d5753c05
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/222198
(cherry picked from commit d509ba241fd0eb1266994b68e16c13e9afec5961)
Reviewed-on: http://git-master/r/222633
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: Dalmore: Use config2 power tree for A02 and A05
Graziano Misuraca [Tue, 23 Apr 2013 17:14:33 +0000]
ARM: Tegra: Dalmore: Use config2 power tree for A02 and A05

Change-Id: Ibd74ca9f63de80b6e27c6c5835857ba277d64cb8
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/222128
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: Tegra: Roth: Toggle DDC pull down with hpd
Graziano Misuraca [Thu, 4 Apr 2013 00:23:06 +0000]
ARM: Tegra: Roth: Toggle DDC pull down with hpd

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

Bug 1237421

Change-Id: I57bb7209ac79762f90c88e999a75133d8125c453
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/216317
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: dts: Tegra114: Remove host1x DT nodes in default
Min-wuk Lee [Wed, 24 Apr 2013 01:37:30 +0000]
ARM: dts: Tegra114: Remove host1x DT nodes in default

Remove host1x DT nodes in tegra114.dtsi, since it is
not used in default. These nodes need to be moved
to the place where they are required.

Bug 1240921

Change-Id: I0b6a503880e06d47c478a88b4de4b1c8874d5caf
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/222228
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agonet: wireless: bcmdhd: Fix Warning F1 Signature
Jeetesh Burman [Tue, 23 Apr 2013 07:06:33 +0000]
net: wireless: bcmdhd: Fix Warning F1 Signature

The priority level of Warning message F1 Signature is
reduced from DHD_ERROR to DHD_INFO.

Bug 1249615

Change-Id: I0e976c0741bc3794268f31b0e874465c94173c6e
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/221939
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: macallan: disable vbus while going to lp0
Hayden Du [Tue, 23 Apr 2013 04:44:57 +0000]
ARM: tegra: macallan: disable vbus while going to lp0

disable vbus while going to lp0

bug 1276088

Change-Id: I03dce42f52eaa64b7c65f35374dd750260a9c36a
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/221882
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoArm: tegra: usb_phy: add config for HSSLEW LSB.
Shawn Joo [Fri, 19 Apr 2013 04:17:07 +0000]
Arm: tegra: usb_phy: add config for HSSLEW LSB.

while tuning usb characterization HS slew LSB is required to be adjusted.
add a code in usb phy.

Bug 1272371

Change-Id: If1b4507e326c25aeac7acdd4817509b9536181af
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/220843
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: dts: tegra114: Add max17048_battery DT support for TegraTab
Jinyoung Park [Wed, 17 Apr 2013 14:41:09 +0000]
arm: dts: tegra114: Add max17048_battery DT support for TegraTab

Added max17048 device tree and wrapped I2C and platform data for max17048
in #ifndef CONFIG_OF to prevent duplicate registration.

Bug 1240935

Change-Id: I920d6dc30522f296083a3a79d66884a5869686c4
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/220236
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agopower: max17048: Add DT support
Jinyoung Park [Wed, 17 Apr 2013 14:37:42 +0000]
power: max17048: Add DT support

Added DT support and documentation for max17048_battery.

Bug 1240935

Change-Id: I9536e81d0a55625bd6a53f70feb03160acaeeba6
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/220235
Reviewed-by: Alex Courbot <acourbot@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11: allow disabling HDMI through DT
Alexandre Courbot [Tue, 12 Mar 2013 06:42:40 +0000]
ARM: tegra11: allow disabling HDMI through DT

HDMI output can be disabled by setting the "host1x/hdmi" node's status
to disabled. Also factorizes the common HDMI initialization code to one
place.

Bug 1239870

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Change-Id: I4202b5832c77e265dae2c3bcb7d92c509cffd606
Reviewed-on: http://git-master/r/208311
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agopower: max17042: new depletion equations
Sivaram Nair [Wed, 24 Apr 2013 13:05:00 +0000]
power: max17042: new depletion equations

Existing depletion calculation is too slow to react. The depletion does
not kick in until we are way too low in the SOC. Applying new equations.

Bug 1264825

Change-Id: I0bfc3ee3a61c7dfb4987bcb20b54677285941dba
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222575
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
Tested-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: add entries to RBAT mapping LUT
Sivaram Nair [Tue, 9 Apr 2013 08:42:34 +0000]
ARM: tegra: pluto: add entries to RBAT mapping LUT

Data from Yoku 2000 mAh battery data sheet.

Bug 1264825

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

6 years agopower: max17042: interpolate RBAT values
Sivaram Nair [Tue, 9 Apr 2013 08:35:15 +0000]
power: max17042: interpolate RBAT values

Patch to interpolate RBAT values from discrete steps.

Bug 1264825

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

6 years agoARM: tegra: pluto: change battery cap to 15W
Sivaram Nair [Wed, 24 Apr 2013 09:04:01 +0000]
ARM: tegra: pluto: change battery cap to 15W

Bug 1264825

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

6 years agoEDP: tegra: change AP+DRAM gain factor to 130
Sivaram Nair [Wed, 24 Apr 2013 08:36:55 +0000]
EDP: tegra: change AP+DRAM gain factor to 130

Bug 1264825

Change-Id: Ic05558d2dd733682a65c31cc5fc9ca35e1d7664f
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222571
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
Tested-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoARM: tegra: pluto: new AP+DRAM tables
Sivaram Nair [Wed, 24 Apr 2013 08:35:57 +0000]
ARM: tegra: pluto: new AP+DRAM tables

Bug 1264825

Change-Id: I99acca553bd11f9d9db1481fc6099cc3c2eebf32
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222570
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
Tested-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoEDP: tegra: remove loan from tegra_sysedp_corecap
Sivaram Nair [Wed, 24 Apr 2013 08:33:11 +0000]
EDP: tegra: remove loan from tegra_sysedp_corecap

loan is exclusively used for the CPU power right now - no need to
include it in the tables. This reduces the table length.

Bug 1264825

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

6 years agoARM: tegra: pluto: empty AP+DRAM capping table
Sivaram Nair [Wed, 24 Apr 2013 08:32:03 +0000]
ARM: tegra: pluto: empty AP+DRAM capping table

Preparing for the next change that includes struct changes.

Bug 1264825

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

6 years agoARM: tegra: pluto: set AP+DRAM E-state req to 20W
Sivaram Nair [Wed, 24 Apr 2013 15:17:28 +0000]
ARM: tegra: pluto: set AP+DRAM E-state req to 20W

Bug 1264825

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

6 years agoEDP: tegra: add initial request to core client
Sivaram Nair [Wed, 24 Apr 2013 08:01:12 +0000]
EDP: tegra: add initial request to core client

This patch contains changes to let the core client specify an initial
E-state (rather than assuming the highest possible state).

Bug 1264825

Change-Id: If3b44c0f411d8c2b69762c26761f807b073b6345
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/222566
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishnan Geeyarpuram <kgeeyarpuram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoarm: tegratab: remove unused camera configs
Jake Park [Wed, 24 Apr 2013 07:21:24 +0000]
arm: tegratab: remove unused camera configs

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

Refer to http://git-master/r/219299

Change-Id: I90e25bf9b8c4b1c121fd4cce38abe07c32506096
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/222362
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: pluto: add battery characterization data
Syed Rafiuddin [Mon, 15 Apr 2013 07:58:26 +0000]
arm: tegra: pluto: add battery characterization data

addition of battery characterization data for pluto
platform

Bug 1261346

Change-Id: Ia98ebaa1a6dc96d0d39c60e6383f1144833e1a60
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/221925
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Tested-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

6 years agoinput: misc: compass: akm89xx: fix memory leak and race on accessing inf
David Yu [Tue, 23 Apr 2013 06:41:08 +0000]
input: misc: compass: akm89xx: fix memory leak and race on accessing inf

Bug 1276763

Change-Id: Ia16541ac45642c4758b55f041a6c3bc89dc6a00f
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/221920
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Kim <bok@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: tegratab: add DT data for ov5693
Jake Park [Mon, 15 Apr 2013 06:36:56 +0000]
arm: tegra: tegratab: add DT data for ov5693

Add DT support data for ov5693 bayer sensor

Bug 1255103

Change-Id: I14f34704c24ec0a2986effc19d14c7af5c31a9cd
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/220001
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: add DT data for ad5823
Jake Park [Mon, 15 Apr 2013 06:16:21 +0000]
arm: tegra: tegratab: add DT data for ad5823

Add DT support data for ad5823 focuser

Bug 1255103

Change-Id: Ifcece67dfbbd79bcee72bb180112bf8192e6a8e1
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/220000
Reviewed-by: Peter Kim <pekim@nvidia.com>
Reviewed-by: Karl Kim <kkim@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoARM: tegra: phy: set line debounce count to 1
Preetham Chandru R [Fri, 19 Apr 2013 12:27:02 +0000]
ARM: tegra: phy: set line debounce count to 1

Set UTMI line debounce count to 1.
With this change the system wakes from LP0 when we disconnect USB-MSD.

Bug 1255249

Change-Id: I1560ddebba2b6859dbeea3c245cc6c52c6219708
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/212674
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: dvfs: Specify CL-DVFS tuning margin in mV
Alex Frid [Fri, 5 Apr 2013 06:09:34 +0000]
ARM: tegra: dvfs: Specify CL-DVFS tuning margin in mV

Changed CL-DVFS tuning threshold margin specification from LUT steps
to mV. This change made margin independent of LUT granularity.

Change-Id: Id25d419a4f32eaf6767cd966a78c9a372de3c1f2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/216790
(cherry picked from commit 2d7a60b73bdea741061d21f28d747511715f3095)
Reviewed-on: http://git-master/r/222328
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: tegratab: Change slew rate of vdd_cpu to 2.5mV/us
Jinyoung Park [Tue, 23 Apr 2013 06:13:19 +0000]
ARM: tegra: tegratab: Change slew rate of vdd_cpu to 2.5mV/us

Changed rate of vdd_cpu to 2.5mV/us from 5.0mV/us due to undershoot
issue when voltage down scaling.
And adjusted sample rate of cl-dvfs to 11.5kHz according to slew rate.

Bug 1268516

Change-Id: I0a613d99628361e04628682d165e1456b9635b66
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/221908
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: usb: increase line debounce count
Rohith Seelaboyina [Wed, 24 Apr 2013 04:33:46 +0000]
ARM: tegra: usb: increase line debounce count

increasing line debounce count as system is not
resuming from LP0 on connecting low-speed devices.

Bug 1275437

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

6 years agousb: gadget: tegra: Turn off vbus sensors
Suresh Mangipudi [Tue, 23 Apr 2013 11:49:42 +0000]
usb: gadget: tegra: Turn off vbus sensors

The USB vbus sensors are supposed to be cleared. For proper functioning
of USB in device mode.

Bug 1274241

Change-Id: I5342f311b1987f0d1fdac6ed63ba591d61f9cba2
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-on: http://git-master/r/222071
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: host: tegra: disble vbus while going to lp0
Rohith Seelaboyina [Tue, 23 Apr 2013 13:15:49 +0000]
usb: host: tegra: disble vbus while going to lp0

disable vbus while going to lp0

Bug 1274508

Change-Id: If0fc94193e17a797e3e76e01b9863141c46248f8
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/221579
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: usb: disable vbus while going to lp0
Rohith Seelaboyina [Tue, 23 Apr 2013 13:14:57 +0000]
ARM: tegra: usb: disable vbus while going to lp0

disable vbus while going to lp0

Bug 1274508

Change-Id: I1abed5ad250083aab1f06b26ddfbea37e5f0aec4
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/221578
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: tegratab: disable vbus while going to lp0
Rohith Seelaboyina [Mon, 22 Apr 2013 12:02:57 +0000]
ARM: tegra: tegratab: disable vbus while going to lp0

disable vbus while going to lp0

Bug 1274508

Change-Id: Id8fc118dffafdeac2117b1788c575ec3f966efee
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/221577
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: dalmore: increase fb2_size
Ramalingam C [Tue, 23 Apr 2013 13:36:35 +0000]
arm: tegra: dalmore: increase fb2_size

Increase fb2_size to accommodate 1920x1200 mode on HDMI monitors

Bug 1277083

Change-Id: Ieec3dc4f93972e7935598468ecfc62f10642ce08
Signed-off-by: Ramalingam C <ramalingamc@nvidia.com>
Reviewed-on: http://git-master/r/222098
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: macallan: correct the roof_floor for some rails
Kerwin Wan [Tue, 23 Apr 2013 12:37:52 +0000]
arm: tegra: macallan: correct the roof_floor for some rails

Set roof_floor of ldo4, ldo5 and ldo7 to be 0.
External control(roof_floor) should be only used for the
power rails which require to be on during system idle/active
and do not require to be on when it is in sleep/lp0.

Bug 1241085

Change-Id: I80fbba27040e45a05e771bcf734184941cb451c9
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/222094
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarch: arm: tegratab: remove BMP180 config
David Yu [Tue, 23 Apr 2013 07:54:12 +0000]
arch: arm: tegratab: remove BMP180 config

Remove BMP180 pressure sensor which is not neccessary.

Change-Id: I8fa3f36d59f92e30482e35d6b6160d563596def0
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/221979
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agopower: max77665: fix temperature reading
Xin Xie [Wed, 17 Apr 2013 21:33:17 +0000]
power: max77665: fix temperature reading

We are using 0xFF as error code for temperature reading, but 0xFF is also
25.5c which is a legal temperature reading.

Fix this issue by using dedicated error code return value.

bug 1236790

Change-Id: Ic0be2909ec10ce5763f77dc6ec30a7c6bc5d9d03
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/220786
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max77665: enable high current charging
Xin Xie [Fri, 12 Apr 2013 00:16:44 +0000]
power: max77665: enable high current charging

This patch enables the high power charging (>500mA) on max77665.

Not all of wall charger or CDP port can support 1.5A charging. We need
dynamically detect the charger current capability in order to have the
maximum output efficiency. This can be done by detect max77665 is in the
'regulation loop' mode.

During the high power charging, VBUS out can get cut off if input VBUS
is below VCHIN_UVLO, and AP wll turn off the charging. We will detect
this condition and only turn off the charging when USB cable is indeed
unplugged.

bug 1236790
bug 1272664

Change-Id: I1a23d3e2bba066a48dc392055d7347bab956dda0
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/220785
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: soctherm: fix scheduling in atomic
Xin Xie [Thu, 18 Apr 2013 19:27:47 +0000]
arm: tegra: soctherm: fix scheduling in atomic

disable_irq() can sleep which should not be called with spinlock locked.

bug 1236790

Change-Id: Iff0ee96ceffa2fd7ab587267b96569fe21f61fe6
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/220784
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: fix gyro orientation.
Hyongbin Kim [Tue, 16 Apr 2013 07:11:27 +0000]
arm: tegra: tegratab: fix gyro orientation.

Bug 1273475

Change-Id: I04d6c89131edbb222a43353680a66326c819f750
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/219701
Reviewed-by: Joshua Cha <joshuac@nvidia.com>
Tested-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agousb: xhci: tegra: save leakage power if SS link suspended
Ajay Gupta [Tue, 23 Apr 2013 17:33:21 +0000]
usb: xhci: tegra: save leakage power if SS link suspended

Bug 1275290

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

6 years agoARM: tegra: dvfs: Rename dvfs cooling device operations
Alex Frid [Tue, 23 Apr 2013 06:30:29 +0000]
ARM: tegra: dvfs: Rename dvfs cooling device operations

Renamed dvfs cooling device operations to match updated device name
vmin_cdev (for both legacy and cl_dvfs cooling devices).

Change-Id: I24a3ee3d2c2e9cf738395a5d9788345b0e3ab732
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/221922
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoasoc: tegra: Disable MIC_BIAS route
Simon Je [Mon, 22 Apr 2013 12:06:29 +0000]
asoc: tegra: Disable MIC_BIAS route

Tegratab doesn't have circuit to control MIC_BIAS by GPIO.
Diable MIC_BIAS route in codec when built-in MIC(DMIC) is used
to prevent noise.

Bug 1273574

Change-Id: Iecc1f0e6a0f9b508d14acdf1c7dac9107c8748d9
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/221580
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoARM: tegra: macallan: enable dma based transfer
Hunk Lin [Mon, 22 Apr 2013 06:00:38 +0000]
ARM: tegra: macallan: enable dma based transfer

enable dma based transfer for T114 A02 SOC based board.

Bug 1233632

Change-Id: I3f91c1921d9373b0d81635d617204c349005fd52
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221448
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: set SPDIF_IN to open drain enable signal
Hunk Lin [Sun, 21 Apr 2013 09:32:16 +0000]
arm: tegra: tegratab: set SPDIF_IN to open drain enable signal

If this pin is drived to high and there is the over-current condition in HDMI
5V regulator. It will create a power-to-ground short. So we need change
this pin to open drain and enable pull-up.

Bug 1255023

Change-Id: I63bf18ad9fda984f641f26801053be129c09b881
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221388
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: tegratab: add power detect rails
Hunk Lin [Sun, 21 Apr 2013 09:08:05 +0000]
arm: tegra: tegratab: add power detect rails

Add full power detect rails to fix high power in IO power rails and prevent
potential PAD broken.

Bug 1255023

Change-Id: Ib9b2f8ba64e3b5a1a6db0d8ec01626e9447f3a53
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221387
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: macallan/tegratab: Clear fb2 if unspecified
Hunk Lin [Sun, 21 Apr 2013 08:28:57 +0000]
ARM: tegra: macallan/tegratab: Clear fb2 if unspecified

Clear framebuffer2 if and only if framebuffer2 is not specified by the
bootloader. If the bootloader framebuffer2 is specified, then copy the
contents to kernel framebuffer2.

Bug 1229981

Change-Id: I7eb6fc121e2f1e3d81394e3a8620ac5d370d76f2
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221385
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: macallan: update torch level limit
Hunk Lin [Sun, 21 Apr 2013 08:08:35 +0000]
ARM: tegra: macallan: update torch level limit

Macallan use the same camera module as Dalmore, so we need to limit the
torch level to 150mA to resolve the torch level too high issue.

Bug 1242531

Change-Id: I086c49978194954e123345d969ca52fbf38d591e
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221382
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: dc: Fix for typo when setting cursor image
Vikram Fugro [Mon, 15 Apr 2013 13:22:43 +0000]
ARM: tegra: dc: Fix for typo when setting cursor image

Bitwise AND (&) was mistakenly typed as conditional
AND (&&) resulting the condition to always evaluate
to TRUE, resulting in ERROR. Fixed the typo.

Bug 1219374
Bug 1244900

Signed-off-by: Vikram Fugro <vfugro@nvidia.com>
Change-Id: I107271edfda97d21793afa324d54e7c5164d8853
Reviewed-on: http://git-master/r/219680
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoarm: tegra: properly handle CPU leakage model failure
Diwakar Tundlam [Wed, 6 Mar 2013 21:08:08 +0000]
arm: tegra: properly handle CPU leakage model failure

Actual CPU leakage current is computed is based on IDDQ, temperature
using a set of parameters based on the leakage model. For high IDDQ
values the model breaks down and the computed leakage current returns
a negative value, which is wrong. We revert to default minimum CPU
frequency limits and emit an error message to alert user.

Bug 1251570

Change-Id: Ic51be65061a22659523bd03048e5af35ac3d3ab7
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/206808
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agobcmdhd: Add 300 msec delay during chip power-off
Nitin Bindal [Wed, 10 Apr 2013 12:00:41 +0000]
bcmdhd: Add 300 msec delay during chip power-off

Add 300 msec delay during power-off to complete
leftover commands.

Bug 1267427

Change-Id: Id5a8a514bc64cd4d6717c71afb35e3dc44b14b62
Signed-off-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-on: http://git-master/r/218243
(cherry picked from commit 26fdc55fc2a213002a491866f266d355b047386a)
Reviewed-on: http://git-master/r/219663
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>