6 years agoARM: tegra114: register excon power supply driver
Laxman Dewangan [Mon, 3 Jun 2013 15:51:30 +0000]
ARM: tegra114: register excon power supply driver

Register extcon power supply driver for generating AC/USB online
power source status event for Macallan, Tegratab and roth platform.
The driver receive the extcon notification generated by USB driver
for charging cable type.

bug 1286396

Change-Id: Id6c94ea581a5aa57507eec81bd7b44f608f008a9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/234758
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: tegratab: add lid and pen detect switch support
Youngjin Kim [Thu, 2 May 2013 12:41:57 +0000]
ARM: tegra: tegratab: add lid and pen detect switch support

Add GPIOs for lid and stylus pen hall sensors to gpio key
platform data as switch.

Bug 1279288

Change-Id: Idd0bc903354970352b0f451595249d1209569924
Signed-off-by: Youngjin Kim <nkim@nvidia.com>
Reviewed-on: http://git-master/r/224883
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Jake Park <jakep@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: tegratab: Initialize LDO4 for touch
Victor(Weiguo) Pan [Wed, 22 May 2013 22:19:07 +0000]
arm: tegra: tegratab: Initialize LDO4 for touch

Initialize LDO to 3.0v for Maxim touch driver.

Bug 1291058

Change-Id: Ie8a40a122f58299bba14a240652e2880a5e79283
Signed-off-by: Victor(Weiguo) Pan <wpan@nvidia.com>
Reviewed-on: http://git-master/r/231770
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

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

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

Bug 1255452

Change-Id: I19d0194fc411df4da73d2f6dc5abc0c5ab7937a9
Signed-off-by: Tony Liu <tonliu@nvidia.com>
Reviewed-on: http://git-master/r/225550
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: reduce write permission of pinmux debugfs
Simon Je [Fri, 31 May 2013 14:37:46 +0000]
ARM: tegra: reduce write permission of pinmux debugfs

Pinmux debugfs don't need to allow every user to write,
which causes failure of
android.permission.cts.FileSystemPermissionTest

Bug 1298831

Change-Id: I9fbb909573c013633e37600626298914f550bb6c
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/234566
Reviewed-by: Jake Park <jakep@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agomedia: video: tegra: OV7695: Rotate 180 degree
Jinyoung Park [Fri, 17 May 2013 05:04:48 +0000]
media: video: tegra: OV7695: Rotate 180 degree

Fix issue that image is rotated 180 degree.

Bug 1290264

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

6 years agoARM: tegra: tegratab: Update trim delay for eMMC DDR
David Yu [Thu, 16 May 2013 16:23:44 +0000]
ARM: tegra: tegratab: Update trim delay for eMMC DDR

Set trim delay of 0 for eMMC DDR mode on tegratab.

Bug 1156152
Bug 1289113

Change-Id: Ic153de218f9095e76873908696c4fdbdc4d69c31
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/229404
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agovideo: tegra: dsi: Enable panel read functionality
Vineel Kumar Reddy Kovvuri [Thu, 16 May 2013 11:34:03 +0000]
video: tegra: dsi: Enable panel read functionality

Enables panel read functionality

Bug 1287880
Bug 1057091

Change-Id: I79e15284f014039ebb0378f8a562050031ca6f61
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
(cherry picked from commit b58422d61f3dfa55d352429b0b149597d58ca4a4)
Reviewed-on: http://git-master/r/232863
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: pluto: move battery model data to common INI file
Laxman Dewangan [Sat, 1 Jun 2013 12:56:45 +0000]
ARM: tegra: pluto: move battery model data to common INI file

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

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

Change-Id: Ie874effd679ddf6a5f24c10e2f11a4623866047d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/234769
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agopower: max77665-charger: rearrange init sequence for simplification
Laxman Dewangan [Fri, 31 May 2013 19:40:06 +0000]
power: max77665-charger: rearrange init sequence for simplification

Rearrange init sequence in probe such that initialisation independent of
battery is done first and then do the battery specific initialisation
if battery present.

This simplified the initialisation sequence.

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

6 years agoARM: tegra: macallan: move battery model data to common INI file
Laxman Dewangan [Fri, 31 May 2013 15:40:49 +0000]
ARM: tegra: macallan: move battery model data to common INI file

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

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

Change-Id: I33aa45b1fbed48b6ad15512398949f390c3bbabe
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/234571
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>

6 years agopower: max77665-charger: remove extcon support from charger driver
Laxman Dewangan [Fri, 31 May 2013 19:25:21 +0000]
power: max77665-charger: remove extcon support from charger driver

Remove extcon support from charger driver and register power-supply
extcon driver for the power supply update.

The charging current is now configured through the charging regulator
through regulator framework.

Change the driver initialisation sequence so that the charger driver
get initialised before usb-udc driver.

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

6 years agoARM: tegra: pluto: add max77665 charging regulator consumer
Laxman Dewangan [Thu, 30 May 2013 19:51:22 +0000]
ARM: tegra: pluto: add max77665 charging regulator consumer

MAX77665 charger driver expose the charging functionality through
regulator framework. Add the consumer of this regulator.

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

6 years agopower: max77665-charger: add charging regulator
Laxman Dewangan [Thu, 30 May 2013 14:56:14 +0000]
power: max77665-charger: add charging regulator

Add charging regulator to set the charging current.
The client driver call regulator API to set the charging
current.

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

6 years agopower: max17042-battery: initialise fuel gauge driver before charger
Laxman Dewangan [Thu, 30 May 2013 19:31:00 +0000]
power: max17042-battery: initialise fuel gauge driver before charger

As charger driver uses the API from fuel gauge driver, register/initailise
the fuel gauge driver before charger driver.

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

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

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

Also fixed a locking related issue in enable_fw_message()

Bug 1297966

Change-Id: Ia4c9ccf0316240b0e966a6510d665a549c8ba711
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/234723
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

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

Saves power when no HS devices are connected.

Bug 1275290

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

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

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

Bug 1268244

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

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

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

Bug 1268244

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

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

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

Bug 1268244

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

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

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

Bug 1268244

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

6 years agousb: xhci: tegra: refactor padctl programming
Ajay Gupta [Thu, 16 May 2013 00:52:57 +0000]
usb: xhci: tegra: refactor padctl programming

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

Bug 1268244

Change-Id: I782768eddbb2a1e240fa798982eb64a3459ba617
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/229987
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

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

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

Bug 1046331

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

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

Bug 1268244

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

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

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

Bug 1268244

Change-Id: I1188499da7138c5b02c8d26d298646ad179226e1
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228501
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

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

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

Bug 1268244

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

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

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

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

Bug 1268244

Change-Id: I6fc08e9c762e93c68172be58b187add6f62171cb
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/228499
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoalsa:hda: add alsa control for eac3 cap. of a dev.
Sayak Ghosh Choudhury [Tue, 28 May 2013 14:37:07 +0000]
alsa:hda: add alsa control for eac3 cap. of a dev.

The EAC3 capability of the device is collected from the eld buffer
and it is tranfered to the framework layer through hda capability
control.

Bug 1295255

Change-Id: Ib0f0aa04aab4515a58ac0761c69f080961013159
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/234093
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: David Clark <dclark@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dc: Set WIN_OPTIONS with valid phys addr
Min-wuk Lee [Thu, 30 May 2013 10:12:56 +0000]
video: tegra: dc: Set WIN_OPTIONS with valid phys addr

Do not set WIN_OPTIONS until window physical address is valid.
After suspend, window handle becomes not valid, but UNBLANK
in resume tries to set window enabled and update for Window A,
before its new physical address is set. This makes DECERR_EMEM
error and glitches in resume.

Bug 1294791

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

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

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

Bug 1289935

Change-Id: I13b9eb84edf4c2a9fed27905f245f0be5d7da365
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/234054
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: tegratab: enable regulator_full constraints
Laxman Dewangan [Wed, 29 May 2013 12:44:22 +0000]
ARM: tegra: tegratab: enable regulator_full constraints

To disable the unused rails, enable the full constraints
so that rail can be disable if there is no user of the rails.
This help to reduce the power in LP0.

bug 1285809

Change-Id: Ica9cefc9de6f42a125a59372344de5c3335d1dc2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/233734
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agovideo: tegra: dc: global alpha on 1 layer blend
Donghan Ryu [Wed, 15 May 2013 14:16:01 +0000]
video: tegra: dc: global alpha on 1 layer blend

global alpha on 1 layer blending showed incorrect
blending because FIX_WEIGHT on B_BLEND_CONTROL_1WIN
is not per-pixel. This change programs premult and
coverage blending mode to produce following output.

premult case
    color.rgba = color.rgba * global_alpha;
    blended_color = previous_color * (1 - color.a) +
                    color;

coverage case
    color.a = color.a * global_alpha;
    blended_color = previous_color * (1 - color.a) +
                    vec4(color.rgb, 1) * color.a;

Bug 1276814

Change-Id: Ibb65fed58603e86ac8af4e4fd32f6c621eb57e7a
Signed-off-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-on: http://git-master/r/228908
(cherry picked from commit 8f877cd48594945d0cca4e970755285f9b74ef2e)
Signed-off-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-on: http://git-master/r/233375
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agomisc: nct: error handling for no regulator
Bitan Biswas [Fri, 24 May 2013 14:49:03 +0000]
misc: nct: error handling for no regulator

bug 1291015

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

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

addition of battery chracterization data to max71048
fuel-gauge driver

Bug 1283683

Change-Id: I6cf37a3d3720f98de0e58f1027bb88e712641e92
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/232077
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra: tegratab: Update emc dvfs table
Yong Goo Yi [Thu, 23 May 2013 12:26:26 +0000]
ARM: Tegra: tegratab: Update emc dvfs table

Update emc dvfs table for P1640

Bug 1280381

Change-Id: I53bbde6d3edda42b7b625dba8545c040439fd590
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/232146
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoarm: tegra: pluto: use PMIC vbus detection
Xin Xie [Tue, 14 May 2013 20:01:03 +0000]
arm: tegra: pluto: use PMIC vbus detection

Currently we are using the charging IC max77665 for the VBUS detection.
but max77665 has a HW bug which cause VBUS detection failure during the
high current charging.

Using PMIC vbus detection will seperate the VBUS detection and charging
on Pluto platform.

bug 1281009

Change-Id: Iaa91621e9fc83238698466078f5f05e41133b0d7
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/229134
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: pluto: fix charging parameters
Xin Xie [Thu, 2 May 2013 22:43:39 +0000]
arm: tegra: pluto: fix charging parameters

Pluto now has voltage regulation loop in the charging current, so we can
safely set the maximum charging current from any charger now.

Also change the maximum charging voltage to 4.2v, so we can charge the
battery to full capacity.

bug 1281009

Change-Id: I30514acc0e2310df1113fc94c436dca4d8729474
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/228076
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agopower: max77665: add charging state status display
Xin Xie [Wed, 24 Apr 2013 00:28:54 +0000]
power: max77665: add charging state status display

bug 1281009

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

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

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

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

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

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

Change-Id: I1f6bf578af2309d1070034e57ca9b6b6e9575568
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/233652
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: tegratab: modify pinmux value following ERS
Simon Je [Mon, 20 May 2013 22:45:27 +0000]
arm: tegra: tegratab: modify pinmux value following ERS

Some pinmux value needs to be set as same as ERS,
because these are not changed in terms of hardware between two boards,
and have been proved since ERS.

Change-Id: Iae3d4a0706f42b139c93a39f982251e182b3f2bf
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/228634
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jake Park <jakep@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: tegratab: add FFD pinmux
Simon Je [Tue, 14 May 2013 23:16:26 +0000]
arm: tegra: tegratab: add FFD pinmux

To manage pinmux separately between ERS adn FFD,
add FFD pinmux and they are distinguished by board id.

Change-Id: Ia2f9ac859397b842c831a6b392848a434af1d1cb
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/228633
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomisc: nct1008: add id for nct218
Roger Hsieh [Mon, 27 May 2013 10:45:34 +0000]
misc: nct1008: add id for nct218

Add id for nct218 which is compatible with nct1008.

Bug 1289749

Change-Id: Ieb50d9119126aa3558ce5809f49970d45a0144fe
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/232943
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: Tegra3: PCIE: Change clock rate to match PCIE
Naveen Kumar S [Mon, 27 May 2013 16:50:16 +0000]
ARM: Tegra3: PCIE: Change clock rate to match PCIE

If PCIE is enabled, increase clock rates of spdif_in, csite and
vi_sensor to utilize improved PCIE X4 bandwidth.

Bug 1293381

Change-Id: I5d85f1472418a1aa6ece5b25a22942ba6774dae5
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/233029
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra: pcie: set mselect to 204MHz for Tegra3
Peter Daifuku [Mon, 29 Apr 2013 20:20:29 +0000]
ARM: tegra: pcie: set mselect to 204MHz for Tegra3

When PCI is enabled, increase mselect from 102MHz to 204MHz for improved PCIE x4 bandwidth

In tegra_update_mselect_rate, when PCI is enabled, set mselect to CPU rate up to 204MHz.

Bug 1014125
Bug 1035617
Bug 1293381

Change-Id: Ia23f26a82276638bd1d414f4a0c6456fe282f906
Signed-off-by: Naveen Kumar S<nkumars@nvidia.com>
Reviewed-on: http://git-master/r/225327
(cherry picked from commit 559aed0bbe3fd859c48464fa7289c1d82256bfb5)
Reviewed-on: http://git-master/r/232971
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agommc: sdhci: Remove command time out print statement
Naveen Kumar Arepalli [Thu, 23 May 2013 11:46:52 +0000]
mmc: sdhci: Remove command time out print statement

1. Remove command time out print statement, huge number of
these prints will cause device hang.
2. There is a sys fs interface to identify the number of
time out errors occured for an sdmmc device

Bug 1274359

Reviewed-on: http://git-master/r/232125
(cherry picked from commit 5d3ecf92c7ff03dca180776e245a94d2c3ee5e6c)
Change-Id: I428f4fc60b99142e782514f2f06f66759082de5b
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/233696
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

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

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

bug 1285809

Change-Id: I7a7c551543a9cbecf83bf10ef783e72aaa8c2173
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Venkat Reddy <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/233346
Reviewed-by: Yong Goo Yi <yyi@nvidia.com>
Tested-by: Yong Goo Yi <yyi@nvidia.com>

6 years agoARM: tegra: Adjust temperature margin for CPU EDP
Diwakar Tundlam [Fri, 24 May 2013 22:13:24 +0000]
ARM: tegra: Adjust temperature margin for CPU EDP

From updated tegra11x margining spreadsheet.

Bug 1293224
Bug 1233302

Change-Id: I424bb5f82df1affe0fc1105de96517f5be3a31a3
Reviewed-on: http://git-master/r/232715
(cherry picked from commit b9aacfcd3be287eee59708040603636596faf3d1)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/233392
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: tegratab: enable nct1008 for P1640
David Yu [Sat, 25 May 2013 05:06:47 +0000]
arm: tegra: tegratab: enable nct1008 for P1640

Change-Id: I93cce08ebe2d303072d4473e80ecfe81276568c8
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/232788
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoMerge remote-tracking branch 'origin/dev/svenkatarama/AOHDR_Merge' into promotion_build
Riham Haidar [Thu, 30 May 2013 17:36:16 +0000]
Merge remote-tracking branch 'origin/dev/svenkatarama/AOHDR_Merge' into promotion_build

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

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

Bug 1238045

Change-Id: Id4bde8d93c89b9e0188948fba37402f3251ff578
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/233344
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

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

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

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

Bug 1238045

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

6 years agoARM: tegra: tegratab: Add touch power rail for P1640
Jinyoung Park [Tue, 21 May 2013 08:43:39 +0000]
ARM: tegra: tegratab: Add touch power rail for P1640

Added touch power rail for P1640.
And separated fixed regulator device table into E1569 and P1640.

Bug 1270691
Bug 1289438
Bug 1291850

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

6 years agoinput: touch: maxim: Add regulator controls
Jinyoung Park [Thu, 16 May 2013 00:40:48 +0000]
input: touch: maxim: Add regulator controls

Added regulator controls for suspend and resume.

Bug 1270691
Bug 1289438
Bug 1291850

Change-Id: I3806b50b1335eaf02169f7d0b6362abbae6ba7ea
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/229145
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max17048: Add 18-bit model SOC calculate.
Hyongbin Kim [Fri, 24 May 2013 06:48:11 +0000]
power: max17048: Add 18-bit model SOC calculate.

When model data is 18-bit, 1LSb=1%SOC.

Bug 1293141

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

6 years agovideo:tegra:nvavp: Add sync point increment support
Soumen Kumar Dey [Tue, 21 May 2013 10:10:16 +0000]
video:tegra:nvavp: Add sync point increment support

Move sync point increment to CPU side for T11X.

bug 1279729

Change-Id: I3ff5efc2300635411aaa5b71a3455e0b27808460
Signed-off-by: Soumen Kumar Dey <sdey@nvidia.com>
Reviewed-on: http://git-master/r/232770
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Gajanan Bhat <gbhat@nvidia.com>

6 years agomisc: nct1008: Correct names of thermal zone devices
Jinyoung Park [Tue, 28 May 2013 04:50:13 +0000]
misc: nct1008: Correct names of thermal zone devices

Names of thermal zone devices are reversed between Tdiode and Tboard.

Bug 1261182
Bug 1296228

Change-Id: I4d318df4af73086172199528869a3136f889868a
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/233216
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: ahb: enable WR_WAIT_COMMIT_ON_1K bit
Ashwini Ghuge [Tue, 28 May 2013 08:06:03 +0000]
ARM: tegra: ahb: enable WR_WAIT_COMMIT_ON_1K bit

Enable WR_WAIT_COMMIT_ON_1K bit in AHB_GIZMO_AHB_MEM
for T114 A02 chip on Dalmore

Bug 1286714

Change-Id: I3934b1ea14e30ec7b53eae0f617940538544187f
Signed-off-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-on: http://git-master/r/229368
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoarm: tegra: tegratab: Add regulator consumer
Yong Goo Yi [Wed, 22 May 2013 05:38:14 +0000]
arm: tegra: tegratab: Add regulator consumer

Add regulator consumer for BMP180 barometer and TMP451 Temp sensor

Change-Id: I6bce9b22f82644b3ffd0dbcefa2ba71acb34f1f2
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/231424
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: config: enable POWER_SUPPLY_EXTCON
Laxman Dewangan [Tue, 28 May 2013 10:56:05 +0000]
ARM: tegra: config: enable POWER_SUPPLY_EXTCON

Enable power supply detection through extcon notification.

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

6 years agopower: extcon: detection of power supply through extcon
Laxman Dewangan [Tue, 28 May 2013 10:47:04 +0000]
power: extcon: detection of power supply through extcon

The power supply is detected through the extcon notification
from the driver which identify the supply cable type.

Add power supply driver to generate power supply type based
on identified cable through extcon.

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

6 years agoarm: tegra: tegratab: correct ldo controls
Yong Goo Yi [Wed, 22 May 2013 05:29:18 +0000]
arm: tegra: tegratab: correct ldo controls

1. Set roof_floor of ldo2/ldo3/ldo4/ldo5/ldo7/ldo9/ldoln to 0.
These 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.

2. Disable always on for ldo6 so that it can be turn off when lp0.

3. Set apply_uV for ldo has min_uV = max_uV

Bug 1285809

Change-Id: Icf434890cc387b102845fff83e9a5722d10bcd0d
Signed-off-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-on: http://git-master/r/231422
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

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

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

Bug 1293039

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

6 years agoARM: tegra: tegratab: Set wp gpio for sdmmc3
Naveen Kumar Arepalli [Sun, 26 May 2013 02:58:42 +0000]
ARM: tegra: tegratab: Set wp gpio for sdmmc3

Set wp gpio for sdmmc3 on tegratab

Bug 1293752

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

6 years agommc: tegra: Enable tegra_sdhci_get_ro for t114
Naveen Kumar Arepalli [Wed, 22 May 2013 06:34:17 +0000]
mmc: tegra: Enable tegra_sdhci_get_ro for t114

Enable tegra_sdhci_get_ro for t114, because we are using
wp gpio for sdmmc

Bug 1288218

Change-Id: I1e0922da98071cd1ec4d03e35c550c472ac60621
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/231443
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: sdhci: Set wp gpio for sdmmc3
Naveen Kumar Arepalli [Fri, 24 May 2013 03:38:36 +0000]
ARM: tegra: sdhci: Set wp gpio for sdmmc3

Set wp gpio for sdmmc3 on dalmore and macallan

Bug 1288218

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

6 years agoasoc: tegra: rt5640: Register audio map based on micbias_gpio support
Rahul Mittal [Thu, 23 May 2013 10:36:54 +0000]
asoc: tegra: rt5640: Register audio map based on micbias_gpio support

Register proper audio map based on micbias_gpio support
Tegratab gets the different audio map as it requires
Fixes dalmore recording as correct audio map will register for it
Remove usage of board names in the driver

Bug 1290577

Change-Id: Ie2be3620327e030534b0045ba7b06a3aeb553966
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/232088
Reviewed-by: Vijay Mali <vmali@nvidia.com>
Tested-by: Vijay Mali <vmali@nvidia.com>
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: Add flag in pdata for micbias_gpio support on platform
Rahul Mittal [Thu, 23 May 2013 10:33:41 +0000]
ARM: tegra: Add flag in pdata for micbias_gpio support on platform

Add micbias_gpio_absent field to audio platform data
Set micbias_gpio_absent for tegratab to true
Codec machine driver can know if micbias_gpio is present or not

Bug 1290577

Change-Id: I5cf18184caa9feb9fb8d55c489df6048e33e74ff
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/232087
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoarm: tegra : pluto: Remove 53Hz mode from 1080p Sharp panel
Peter Liu [Thu, 16 May 2013 02:14:21 +0000]
arm: tegra : pluto: Remove 53Hz mode from 1080p Sharp panel

53Hz mode causes panel flickering on resume.

Bug 1273146

Change-Id: I454c81ebbf84172f9170a7fc2da245bce72e4076
Signed-off-by: Peter Liu <petliu@nvidia.com>
Reviewed-on: http://git-master/r/229158
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Rui Zhuo <rzhuo@nvidia.com>

6 years agoarm: tegratab: Update platform data of max17048
Hyongbin Kim [Tue, 21 May 2013 10:30:54 +0000]
arm: tegratab: Update platform data of max17048

Update 4100mA battery Model file.
Add gpio irq for detect ALRT of max17048.
use 1% SOC change alert.
use SOC low alert.
Not use voltage high/low alert.
Disable voltage reset alert.
Update board file of not-using DT for reference.

Bug 1293141
Bug 1245249

Change-Id: I5664664ba482d158ab083b8f66b8589a45fc064d
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/231138
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max17048: correct parsing DT platform data order.
Hyongbin Kim [Tue, 21 May 2013 08:55:49 +0000]
power: max17048: correct parsing DT platform data order.

Correct parsing vleart and alert_threshold value.

Bug 1293141
Bug 1245249

Change-Id: I062a25d6877f0d3a154b7b7e313b86be1d655c41
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/231100
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agopower: max17048: Add alert interrupt handler
Hyongbin Kim [Tue, 21 May 2013 08:34:41 +0000]
power: max17048: Add alert interrupt handler

Use irq handler for wakeup from LP0 when low soc.

Bug 1293141

Change-Id: I8369fcef5d3e22cc9e36e26e4bf94ae67ac90d9f
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/231090
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoRevert "ARM: tegra: usb: powerdown OTG circuit if not needed"
Rohith Seelaboyina [Fri, 24 May 2013 10:46:24 +0000]
Revert "ARM: tegra: usb: powerdown OTG circuit if not needed"

This reverts commit fc4f513adba751c4726b8bc5fadac5407354788d.

Change-Id: I5208d56f89df2a0f479540c9b5afc0c6826b575a
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/232567
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agommc: tegra: Boost sclk and emc clk's for sdmmc
Naveen Kumar Arepalli [Sun, 19 May 2013 03:42:27 +0000]
mmc: tegra: Boost sclk and emc clk's for sdmmc

Boost emc, sclk clock to 150 MHz for sdmmc
Boosting emc and sclk helps in sdmmc kpi.

Bug 1276208
Bug 1294076

Reviewed-on: http://git-master/r/230090
(cherry picked from commit d916c03439b91bd68c5ad7f4ac2a0c64a29d417c)
Change-Id: I472e009b369fcaa87b3c44e2c49a86bf1d857b18
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/232083
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra11: clock: add sdmmc3 to sclk and emc
Naveen Kumar Arepalli [Thu, 23 May 2013 10:31:13 +0000]
ARM: tegra11: clock: add sdmmc3 to sclk and emc

Add sdmmc3 to sclk, emc as a client.
Increasing sclk freq helps sdmmc3 KPI.

Bug 1294076

Change-Id: Ia42d66d36b6d738b7e0415b40b3b675265c4fac3
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/232081
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: power: remove all sd dpd entries
rrajk [Thu, 9 May 2013 12:29:09 +0000]
ARM: tegra: power: remove all sd dpd entries

Bug 1191332

Change-Id: I270e808b8d561afee304550c9cd3564af924085b
Reviewed-on: http://git-master/r/227046
(cherry picked from commit 04baa285083febd444c2bfbe69409044ec735ed1)
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/231645
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: dvfs: Set CPU Vmin in DFLL mode 1.0V
Alex Frid [Sat, 18 May 2013 01:26:16 +0000]
ARM: tegra11: dvfs: Set CPU Vmin in DFLL mode 1.0V

Bug 1291764

Change-Id: I84a6854b0d7c85e602a6bc21d3fcb497613e5cae
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/230034
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agomedia:video:tegra: delete ov7695 debug message
kkim [Wed, 22 May 2013 11:44:06 +0000]
media:video:tegra: delete ov7695 debug message

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

6 years agoarm: tegra: tegratab: Use maxim touch driver on P1640 DVT
Joshua Cha [Thu, 23 May 2013 04:41:49 +0000]
arm: tegra: tegratab: Use maxim touch driver on P1640 DVT

Maxim touch driver should be enabled only on P1640 DVT board.
There is no touch device on TegraTab ERS board.

Bug 1291015

Change-Id: Ide236d521c6abc6e4cc7a90f1fd19e6ed5c0f618
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/231933
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomedia: tegra: ad5823: add missed reglator_disable
Jake Park [Wed, 22 May 2013 10:30:44 +0000]
media: tegra: ad5823: add missed reglator_disable

Adding missed regulator_disable() into probe().
While probing ad5823 focuser, regulator vdd should be turned on
before i2c operations and should be turned off after i2c oeprations.

Bug 1293915

Change-Id: Ie9936e699ad3e3b08eb1dad55182e33dc89244a3
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/231547
Reviewed-by: Karl Kim <kkim@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agoarm: tegra: tegratab: Set PULL_DOWN for KB_COL4
Harry Hong [Wed, 22 May 2013 02:13:28 +0000]
arm: tegra: tegratab: Set PULL_DOWN for KB_COL4

TegraTab doesn't have WP pin connected.
and in case of T114, only using SFIO WP pin input.
So set sdmmc3_wp to pull_down to get always WP disabled.

bug 1287151
bug 1293752

Change-Id: Id9ea39f04921f19f7c63fe9d61defdcf47e88b46
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/231375
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Simon Je <sje@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

6 years agoARM: tegra11: dvfs: Update CPU dvfs tables
Alex Frid [Sat, 18 May 2013 01:24:19 +0000]
ARM: tegra11: dvfs: Update CPU dvfs tables

Bug 1291764

Change-Id: I92c652e9ecbec366c017ab2eda0e51b1dd42cb17
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/230033
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

6 years agoARM: tegra: dvfs: Enable DFLL/PLL auto-switch by default
Alex Frid [Sat, 18 May 2013 00:55:38 +0000]
ARM: tegra: dvfs: Enable DFLL/PLL auto-switch by default

Bug 1291764

Change-Id: Idab2e02b60fee56a2af2b11c9121af2ca6b15dda
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/230032
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agonet: wireless: bcm43241: enable P2P_DISCOVERY_WAR
bibhayr [Tue, 21 May 2013 10:32:36 +0000]
net: wireless: bcm43241: enable P2P_DISCOVERY_WAR

Add P2P_DISCOVERY_WAR in bcm43241/Makefile which
is used to compile driver for bcm43241

Bug 1282833
Bug 1282700

Change-Id: Ia975e4765038feeedd53580eb4275c5e34c50d38
Signed-off-by: bibhayr <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/231137
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agomedia: video: tegra: update focuser working range
Sudhir Vyas [Thu, 16 May 2013 08:58:09 +0000]
media: video: tegra: update focuser working range

Update ad5816 focuser calibrated working range.
Current settings do not give better results for
macro mode specifically.

Bug 1238213

Change-Id: Ic8b60081bda75ecf3158d98796c979528767dfcd
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/229267
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 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 1278481

Change-Id: Ic37a19655fe200c2632279e00dbcf08ad00a9d73
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/220599
(cherry picked from commit fad2b7a813dd1a6628ad0918297ea22014b6d4e6)
Reviewed-on: http://git-master/r/228973
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: Tegra11: Enable hard shutdown in 8 seconds
Naveen Kumar S [Tue, 30 Apr 2013 20:16:01 +0000]
ARM: Tegra11: Enable hard shutdown in 8 seconds

Specifying value for Palmas LONG_PRESS_KEY (LPK) register to
enable hard shutdown upon holding onkey pressed for 8 second
sin non-android platforms. Retaining default of 12 seconds for
android platforms.

Bug 1241832

Change-Id: I7f076eb0fd7619ab192a2df362c938f2326427b5
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/224211
(cherry picked from commit 288d0caf7b0067b355fe927485c02e5f6214097b)
Reviewed-on: http://git-master/r/228800
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: Tegra: Programming Palmas LongPress register
Naveen Kumar S [Tue, 30 Apr 2013 18:12:40 +0000]
ARM: Tegra: Programming Palmas LongPress register

Programming the Palmas (TPS65913) LONG_PRESS_KEY
register (LPK) used for system hard shutdown.

Bug 1241832

Change-Id: Icb3fef877d3b9093572464725c672d2957566e4e
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/222465
(cherry picked from commit a2245c93317401a8c0ca1def6617448ea5cfc07b)
Reviewed-on: http://git-master/r/228797
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agommc: host: tegra: Remove runtime DPD support in SD
rrajk [Thu, 9 May 2013 12:27:21 +0000]
mmc: host: tegra: Remove runtime DPD support in SD

Removed runtime DPD configuration support from SD driver.

Bug 1191332

Change-Id: I389ca46a302e30556d2823709a46816a582c26e4
Reviewed-on: http://git-master/r/227045
(cherry picked from commit 9ab1ae335d969eeffe5fc6c7f57e4b0a383ce20c)
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/231644
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agoARM: tegra: usb: disable pmc after disabling vbus
Rohith Seelaboyina [Mon, 20 May 2013 04:22:05 +0000]
ARM: tegra: usb: disable pmc after disabling vbus

disable pmc after disabling vbus

Bug 1279228
Bug 1279501

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

6 years agousb: host: tegra: disable pmc before going to LP0
Rohith Seelaboyina [Thu, 16 May 2013 06:43:49 +0000]
usb: host: tegra: disable pmc before going to LP0

disable pmc before going to LP0

Bug 1279228
Bug 1279501

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

6 years agoarm: tegra: sata: Fix LP0 resume problem
Yen Lin [Thu, 3 Jan 2013 23:01:56 +0000]
arm: tegra: sata: Fix LP0 resume problem

- Fix a bug in ahci-tegra.c when checking if SATA is on when resuming
- Add codes to support PM315 which uses LDO1 regulator for SATA rails

bug 1206518

Change-Id: Iaa910b1948fbcf5e45491977fd8ed0b313d2e0ae
Signed-off-by: Yen Lin <yelin@nvidia.com>
Reviewed-on: http://git-master/r/188441
(cherry picked from commit c319d0e904e6bff6e6c89d3c8cf651949c379925)

Signed-off-by: Bryan Wu <pengw@nvidia.com>
Change-Id: Ib1ec166c1140a5162e0bca163c1e2857c734d587
Reviewed-on: http://git-master/r/226765
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoARM: tegra11: clock: Re-init PLLM when resume from LP0
Renn Wu [Mon, 20 May 2013 06:26:55 +0000]
ARM: tegra11: clock: Re-init PLLM when resume from LP0

PLLM is kept the same as on entry to LP0, need S/W re-init when resume.

Bug 1288643

Change-Id: I211fd758b1fb38c11a3ef901dfd79a698bcc8cfb
Signed-off-by: Renn Wu <rewu@nvidia.com>
Reviewed-on: http://git-master/r/231287
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>

6 years agoARM: tegra: usb: powerdown OTG circuit if not needed
Ajay Gupta [Tue, 21 May 2013 16:31:42 +0000]
ARM: tegra: usb: powerdown OTG circuit if not needed

Bug 1275290

Change-Id: I03e1a38d69adcd6b20e82aec84fdce0874254bca
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/231226
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: tegra3_defconfig: Add WFD support
Sameer Gumaste [Mon, 4 Feb 2013 10:03:37 +0000]
arm: tegra: tegra3_defconfig: Add WFD support

Adding config flags for Wi-fi Direct T30 support
for bcmdhd 4330. For example support for 80211,P2P scan
This is needed for wifi direct sink use case on cardhu.

Bug 1220912
Signed-off-by: Sameer Gumaste <sgumaste@nvidia.com>
Change-Id: I40c545750d11bf5e787ad0d00d7c2661beb3421f
Reviewed-on: http://git-master/r/231121
Tested-by: Jitendra Kumar <jitendrak@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mursalin Akon <makon@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agousb: gadget: tegra: set cpu normal in work context
Rakesh Bodla [Tue, 21 May 2013 06:54:41 +0000]
usb: gadget: tegra: set cpu normal in work context

Once USB transfers are completed, set cpu frequency
to normal in work context.

Bug 1292315

Change-Id: I34e6f6d85f3be8be31e5d87a742894d0ca10f8bc
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/231064
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Yan <byan@nvidia.com>

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

This is needed to save 4mW power.

Bug 1275290

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

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

Bug 1266234

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

6 years agomedia: video: tegra: apply ov7695 quality tune
Jake Park [Mon, 20 May 2013 07:01:18 +0000]
media: video: tegra: apply ov7695 quality tune

Bug 1278482

Change-Id: Ib74a3a8d018a5082f3098fa058609d634bfb2010
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/230186
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Karl Kim <kkim@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

6 years agomisc: nct1008: change names of zone devices
Hyungwoo Yang [Mon, 13 May 2013 21:22:21 +0000]
misc: nct1008: change names of zone devices

Changed names of zone devices this driver creates.
New names are based on where the device probe.

nct_ext -> Tdiode
nct_int -> Tboard

Bug 1261182

Change-Id: I92101299b1998925f00e8ce379bbd0aea1c3764b
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/228129
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>
Reviewed-by: Anshul Jain (SW) <anshulj@nvidia.com>
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>