5 years agomedia: video: tegra: Fix kernel warning for DW9718
Frank Chen [Tue, 11 Jun 2013 19:33:13 +0000]
media: video: tegra: Fix kernel warning for DW9718

Fix unbalanced reference count for power regulator to
prevent kernel from generating warning messages.

bug 1342770

Change-Id: Ie2505ea399ecd7865b69c00f7f51752fdc03c4f7
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/258905
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomedia: video: tegra: Fix kernel warning for AD5816
Frank Chen [Tue, 11 Jun 2013 19:22:45 +0000]
media: video: tegra: Fix kernel warning for AD5816

Fix unbalanced reference count for power regulator to
prevent kernel from generating warning messages.

bug 1342770

Change-Id: I2e165a205ba58b0478c5f4db3c4b3bb74fa69e07
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/258900
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "ARM: tegra: pm: turn off VDEC partition in LP1"
Deepak Nibade [Fri, 13 Sep 2013 06:57:41 +0000]
Revert "ARM: tegra: pm: turn off VDEC partition in LP1"

- This essentially disables power gating of VDE partition
  during LP1

- Power gating VDE partition during LP1 was causing below warning
  with CONFIG_DEBUG_ATOMIC_SLEEP enabled
BUG: sleeping function called from invalid context at
/kernel/include/linux/clk.h:164

- fix this warning by reverting commit

Bug 1355279

This reverts commit 8825199f91361961eadf95a977294bf6611310cc.

Change-Id: Ibe997c2e33c3807dbad3e9a38771ff8342b20144
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/274153
Reviewed-by: Rick Song <ricks@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agotegra11: config: enable selinux to permissive mode
James Zhao [Thu, 12 Sep 2013 23:31:56 +0000]
tegra11: config: enable selinux to permissive mode

- Enable SELinux for JB MR2
- Set config option AUDIT, SECURITY, SECURITY_NETWORK,
  SECURITY_SELINUX, EXT4_FS_SECURITY
- All other defconfig changes are side effect of using
  menuconfig

bug 1365452

Change-Id: Icb02b594dc82246c61a0e2d981d794e42b61838e
Signed-off-by: James Zhao <jamesz@nvidia.com>
Reviewed-on: http://git-master/r/274007
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

5 years agoARM: tegra: fix warning during LP0
Deepak Nibade [Wed, 11 Sep 2013 09:38:17 +0000]
ARM: tegra: fix warning during LP0

- with CONFIG_DEBUG_ATOMIC_SLEEP enabled, below warning was seen
BUG: sleeping function called from invalid context at
/kernel/kernel/mutex.c:85

- function 'tegra_get_clock_by_name()' was being called from
  atomic context in 'tegra_lp0_cpu_mode()'

- move function tegra_get_clock_by_name("cclk_lp")
  to separate init function and call it through subsys_initcall()
  to avoid this warning during LP0

Bug 1355279

Change-Id: I42df042051938d75366884946e7f660522f3c26c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/273034
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: usb: Set TXFILLTUNING after CMD_RESET
Suresh Mangipudi [Tue, 10 Sep 2013 06:06:49 +0000]
ARM: tegra: usb: Set TXFILLTUNING after CMD_RESET

Program the TXFILLTUNING value after CMD_RESET. CMD_RESET clears
the value of TXFILLTUNING, this needs to be reprogrammed again.

Bug 1318125

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

5 years agoarm: tegra: ardbeg: Fix sharp 25x16 panel timings
Animesh Kishore [Fri, 6 Sep 2013 08:59:32 +0000]
arm: tegra: ardbeg: Fix sharp 25x16 panel timings

Bug 1357180

Change-Id: If21ef99eb89e34b76ad8d22bd6c1bfb0003bc5e4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/271397
(cherry picked from commit 9032a7524fb4f4fc54583be0ec15acab3e494f89)
Reviewed-on: http://git-master/r/273018
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agovideo: tegra: dsi: Make phy warning verbose
Animesh Kishore [Fri, 6 Sep 2013 09:00:17 +0000]
video: tegra: dsi: Make phy warning verbose

Increase verboseness of phy timing warnings.

Bug 1357180

Change-Id: I58577cf4cbab765f23a9edae793e031fbec38a55
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/271398
(cherry picked from commit 661a4a1e1966e79616c89ad18845eef5245c41bb)
Reviewed-on: http://git-master/r/273017
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agonetfilter: xt_qtaguid: Allow tracking loopback
JP Abgrall [Thu, 7 Feb 2013 01:40:07 +0000]
netfilter: xt_qtaguid: Allow tracking loopback

In the past it would always ignore interfaces with loopback addresses.
Now we just treat them like any other.
This also helps with writing tests that check for the presence
of the qtaguid module.

Bug 1343922

Change-Id: I55d31277056d24172d22d32ad26c47dc8c55250a
Signed-off-by: JP Abgrall <jpa@google.com>
Reviewed-on: http://git-master/r/270087
(cherry picked from commit 5d927cc305aa8d0c2e6af9fedda9f5b10d378e16)
Reviewed-on: http://git-master/r/272968
Reviewed-by: Jun Su <juns@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>

5 years agopower: max17048: fix OCV property unit
Hyongbin Kim [Tue, 10 Sep 2013 12:25:30 +0000]
power: max17048: fix OCV property unit

max17048_get_ocv() return unit is already uV.
Remove duplicate multiply.

Bug 1355391

Change-Id: I99adacf9af7f3c043ca043b2a00ce3713b4d40e1
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/272569
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoi2c: tegra: Add debug prints for i2c timed out case
Chaitanya Bandi [Mon, 26 Aug 2013 11:22:28 +0000]
i2c: tegra: Add debug prints for i2c timed out case

Added debug prints for i2c timed out case to
help debug.

Change-Id: Ib0696b8237b90cd511ac224a476dede8fae60ceb
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/266050
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomedia: video: tegra: IMX135: 640x480 120fps mode
Frank Chen [Fri, 30 Aug 2013 17:52:27 +0000]
media: video: tegra: IMX135: 640x480 120fps mode

Add 640x480 120fps slow motion mode for IMX135

bug 1302356

Change-Id: Ia5a4006e66ddb93e1c4fda76ee246594604ea35c
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/268632
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Breczinski <pbreczinski@nvidia.com>
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Tested-by: David Wang (SW-TEGRA) <davidw@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agopower: max17048: correct voltage unit to uV
Hyongbin Kim [Mon, 26 Aug 2013 10:50:37 +0000]
power: max17048: correct voltage unit to uV

In framework, voltage unit is uV.

Bug 1355391

Change-Id: I8a8af62850365b298857289c5a6f0d89bf45d47b
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/266048
(cherry picked from commit b5e18de3eebebf8a66bcdaa44b842ac9b1935b45)
Reviewed-on: http://git-master/r/271359
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: max17048: fix bug in version check func
Hyongbin Kim [Wed, 24 Jul 2013 12:03:43 +0000]
power: max17048: fix bug in version check func

1. Add 0x12 version value in max17048_check_battery().
2. remove duplicate call swab16 in max17048_get_version().
3. call max17048_get_version() in probe fuction instead of
max17048_check_battery().

max17048_check_battery() doesn't return version.
using max17048_get_version() is right.

Change-Id: Ie039e1bcffd5b2fb8080f6b3f25bbfc51d52990e
Signed-off-by: Hyongbin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/252892
(cherry picked from commit 4d914a5bee3f2327fac46db7d49e23e56d9e1991)
Reviewed-on: http://git-master/r/271358
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agommc: tegra: Set timeouts for all wait conditions
Pavan Kunapuli [Wed, 4 Sep 2013 11:52:00 +0000]
mmc: tegra: Set timeouts for all wait conditions

Setting timeout conditions for all waits on mutexes or HW status updates.

Bug 1354967

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

5 years agovideo: fbmon: added HDMI_Video_Format condition checking
Emma Yan [Tue, 3 Sep 2013 11:38:59 +0000]
video: fbmon: added HDMI_Video_Format condition checking

Bug 1357380

Change-Id: I4b10c31b1c5124539b648764cfae8b17b5764f0a
Signed-off-by: Emma Yan <eyan@nvidia.com>
Reviewed-on: http://git-master/r/269512
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agommc: tegra: Handle retuning if host is powered off
Pavan Kunapuli [Mon, 2 Sep 2013 08:51:20 +0000]
mmc: tegra: Handle retuning if host is powered off

If the host is powered off, cancel any pending tuning timers and clear
any previously set override voltage requests.

Bug 1353926

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

5 years agommc: sdhci: Platform hooks for handling power off
Pavan Kunapuli [Mon, 2 Sep 2013 08:49:30 +0000]
mmc: sdhci: Platform hooks for handling power off

Added platform specific callback to allow for any special handling of
MMC_POWER_OFF.
Bug 1353926

Change-Id: I0918984461746ff28824b7dd2873b652225e3d1a
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/267312
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: dvfs: Restrict vdd core override
Alex Frid [Sun, 21 Jul 2013 03:06:24 +0000]
ARM: tegra: dvfs: Restrict vdd core override

Restricted vdd core override to clocks with dvfs override property.

Bug 1307369

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

5 years agoARM: tegra11: dvfs: Set override property for sdmmc
Alex Frid [Sun, 21 Jul 2013 05:09:18 +0000]
ARM: tegra11: dvfs: Set override property for sdmmc

Bug 1307369

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

5 years agoARM: tegra: dvfs: Add override property
Alex Frid [Sun, 21 Jul 2013 02:07:32 +0000]
ARM: tegra: dvfs: Add override property

Bug 1307369

Added "can override" property to dvfs structure. Skipped dvfs tables
with this property when evaluating available rail override range.

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

5 years agoARM: tegra11: dvfs: Update sdmmc dvfs tables
Alex Frid [Mon, 1 Jul 2013 21:43:14 +0000]
ARM: tegra11: dvfs: Update sdmmc dvfs tables

Splitted sdmmc dvfs tables between different Tegra11 skus/bins. Allowed
sdmmc maximum rates at the appropriate nominal voltage for each bin.

Bug 1161126
Bug 1307369

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

5 years agoarm: tegra: Improve LP1 Low voltage core
Karthik Ramakrishnan [Tue, 20 Aug 2013 22:39:47 +0000]
arm: tegra: Improve LP1 Low voltage core

Enables the Core voltage to be lowered during voice call(LP1)
state. Rearranges code so that the variables are accessible
to code in IRAM. Move the voltage decrease after lp cpu clock
decrease & mselect clock source swith.

Bug 1344148

Change-Id: Ia0c72c83a80f970ec58f5fa754ab9bd69449b65e
Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com>
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/264411
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoarm: tegra: bootloader fb free in late_initcall
Min-wuk Lee [Thu, 29 Aug 2013 11:42:47 +0000]
arm: tegra: bootloader fb free in late_initcall

At this moment, bootloader framebuffer memory is freed
in arch_initcall, whereas, kernel framebuffer begins to
be used in dc device register with device_initcall.
It has potential bug to display garbage screen in device
booting. bootloader framebuffer memory should be freed
after dc device register, so move it to late_initcall
frame.

Bug 1346172

Change-Id: I8038d32fcf710295d387f58641f48a9beeb823b9
Signed-off-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-on: http://git-master/r/269401
(cherry picked from commit 15c081176787d8470663c6c00699dfe948a436f4)
Reviewed-on: http://git-master/r/270547
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agommc: core: Enable secure sanitize for eMMC4.5
R Raj Kumar [Wed, 4 Sep 2013 13:18:36 +0000]
mmc: core: Enable secure sanitize for eMMC4.5

Enabled secure sanitize operation for eMMC4.5 devices.

Bug 1360376

Change-Id: I54d7de1c1ec7ba0fb2cce3be3fe98e59de73f2b1
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/270115
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra: phy:Do not enable pmc during id unplug
Rakesh Bodla [Mon, 2 Sep 2013 05:40:03 +0000]
ARM: tegra: phy:Do not enable pmc during id unplug

Do not enable pmc when id cable is unplugged
from the system.

Bug 1357517

Change-Id: I6e8adae9da6b15ac44987f8169d7607194983a50
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/268916
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoinput: touch: raydium: v60.5 code drop
Xiaohui Tao [Wed, 4 Sep 2013 17:19:48 +0000]
input: touch: raydium: v60.5 code drop

[1] Add check mechanism for adding timer in case resume and watchdog add the same timer at the same time
[2] Fix Slow scan function
[3] Add check mechanism for initialization during resume phase
[4] Modify some code for Kernel 3.8
[5] Improve idle mode stability
[6] Fix idle mode stability issue
[7] Fix LP0 power consumption issue
[8] Turn off touch when display off

Bug 1348628
Bug 1345677
Bug 1311609
Bug 1288233
Bug 1262448
Bug 1246020
Bug 1293127

Change-Id: If4575accb77ea6f6ce6732dd86329f1052f77239
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/270179
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agopower: max17042: Report full status only when charger plugged
Darbha Sriharsha [Tue, 3 Sep 2013 07:04:14 +0000]
power: max17042: Report full status only when charger plugged

The battery gauge should report "100% Full" status only when the
battery is charged to full capacity and the charger is still
connected. When the battery is fully charged but the charger
cable is unplugged, we should report "100% Not Charging" as the
status

Bug 1358884

Change-Id: Ibfc7d30fdaab8c37fc99ccb5032719807780709a
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/269379
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agopower: max17042: Use upper roundoff of soc
Darbha Sriharsha [Tue, 3 Sep 2013 05:55:49 +0000]
power: max17042: Use upper roundoff of soc

Use upper roundoff of soc instead of lower roundoff to
report the final soc value on UI.

Bug 1358884

Change-Id: I52c79b41ef6140bf1ff8d2f97277cfa855828ab0
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/269342
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X
Alex Frid [Wed, 21 Aug 2013 19:09:13 +0000]
ARM: tegra11: dvfs: Increase DFLL Vmin for AP40/AP40X

Increased DFLL Vmin for AP40/AP40X to 1.0V (from 0.9V).

Bug 1355044

Change-Id: Ifd95d34f21cc81877e350e287a5481ee28ea9d60
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/264513
Tested-by: Venkata (Muni) Anda <vanda@nvidia.com>
Reviewed-by: Venkata (Muni) Anda <vanda@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

5 years agousb: xhci: tegra: change hs_slew to 0xC
Ajay Gupta [Mon, 19 Aug 2013 16:35:37 +0000]
usb: xhci: tegra: change hs_slew to 0xC

Bug 1254391

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

5 years agoarm: tegra11: fuse: correct JTAG_START_BIT as 8
Haley Teng [Fri, 30 Aug 2013 09:37:47 +0000]
arm: tegra11: fuse: correct JTAG_START_BIT as 8

The start bit of ARM_DEBUG_DIS in fuse programming array for T114 is 8

Bug 1354656

Signed-off-by: Haley Teng <hteng@nvidia.com>
Change-Id: Ie669e2f3a1bb84863f61d4e3d730c2a63639b9a0
Reviewed-on: http://git-master/r/268454
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: macallan:update INI data for max17048
Venkat Reddy Talla [Wed, 28 Aug 2013 09:58:07 +0000]
ARM: tegra: macallan:update INI data for max17048

 update battery characterization data for yoku
 battery 4100mAh.

 battery: yoku
 capacity: 4100mAh
 model: macallan

 Bug 1357802

Change-Id: Ice4dfc5a56a90e07e8bf69d5a1c1af7702e31b6d
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/267228
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: tegratab: Add min/max temperature for Tdiode
Jinyoung Park [Wed, 17 Jul 2013 10:08:25 +0000]
ARM: tegra: tegratab: Add min/max temperature for Tdiode

Added min/max temperature for Tdiode.

Bug 1287901

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

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

5 years agommc: host: Fix soft lockup issue
Pavan Kunapuli [Tue, 27 Aug 2013 16:34:21 +0000]
mmc: host: Fix soft lockup issue

This patch fixes the soft lockup that could occur as a result of commit
8c226304. The mutex_unlock call from interrupt context could cause a
deadlock.

This patch partially reverts the commit 8c226304 by removing the mutex
lock/unlock calls before and after data transfers. mutex locks in
tuning implementation are still present.

This patch ensures that data transfers on all controllers triggered
while running tuning will be stopped until tuning is done inorder to
avoid the risk of any failures due to core voltage changes in tuning.

Locking needs to be extended for the transfer that is already in progress.
This will be done in subsequent patches after thorough testing.

Bug 1354967

Change-Id: Ic6bfd22ec84f24e8782d7da6e3267a7300cb267e
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/266802
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra tegratab: Fix wrong calculation in ADC to temp for NTC thermistor
Jinyoung Park [Mon, 24 Jun 2013 10:54:51 +0000]
ARM: tegra tegratab: Fix wrong calculation in ADC to temp for NTC thermistor

Fixed wrong calculation in ADC to temp for NTC thermistor.

Bug 1287901

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

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

5 years agoARM: tegra: tegratab: Add ADC temperature conversion for thermal diode
Jinyoung Park [Fri, 21 Jun 2013 07:54:01 +0000]
ARM: tegra: tegratab: Add ADC temperature conversion for thermal diode

Added ADC temperature conversion for thermal diode.

Bug 1287901

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

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

5 years agostaging: iio: adc: palmas: Add ADC reading with dual-current source for CH3
Jinyoung Park [Fri, 21 Jun 2013 07:24:00 +0000]
staging: iio: adc: palmas: Add ADC reading with dual-current source for CH3

Added ADC reading with dual-current source for Channel3 in order to do series
resistance cancellation for thermal diode.

Bug 1287901

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

Change-Id: Ifaf6ae6e293d66955f5c55d9c739af94a692a30e
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252883
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoThermal: generic_adc_thermal: Add second value read back on read channel raw
Jinyoung Park [Fri, 21 Jun 2013 06:53:20 +0000]
Thermal: generic_adc_thermal: Add second value read back on read channel raw

Added second value read back on read channel raw.

Bug 1287901

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

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

5 years agostaging: iio: Support second value read back on iio_st_read_channel_raw
Jinyoung Park [Thu, 20 Jun 2013 08:55:41 +0000]
staging: iio: Support second value read back on iio_st_read_channel_raw

Support second value read back on iio_st_read_channel_raw.

Bug 1287901

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

Change-Id: I2d5eb06ae3434fbca8a92591e8b498340371c771
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/252879
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agovideo: tegra: camera: VI clock changes
Bhushan Rayrikar [Wed, 21 Aug 2013 18:19:02 +0000]
video: tegra: camera: VI clock changes

Use pll_c and pll_p both as parents for VI. Needed to select the
lowest clock rate greater than the required clock to improve power.

Bug 1350635

Change-Id: Ia684f9c2bcbf6342d7d02343f42a22f33940c4a3
Signed-off-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-on: http://git-master/r/266214
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sean Pieper <spieper@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agoCpufreq: Serialize policy update across hotplug
Puneet Saxena [Sat, 24 Aug 2013 11:35:14 +0000]
Cpufreq: Serialize policy update across hotplug

It serialise policy parameters update when hot-unplug
happens.

Bug 1327428

Change-Id: I0be6523add2866e45e413c79ef7c86605a359f44
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/265844
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agomisc: tegra-profiler: Do not expose kernel IPs
Igor Nabirushkin [Mon, 19 Aug 2013 12:32:24 +0000]
misc: tegra-profiler: Do not expose kernel IPs

In Tegra Profiler misc driver, do not expose kernel-space IPs
for security purposes (for non-root users).

Bug 1312406
Bug 1349673

Change-Id: Ie3b89a555296359c8578ec39a00161d3e63a34ad
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/263320
(cherry picked from commit 935daea80d24f621a9328642d025762af26ffb55)
Reviewed-on: http://git-master/r/264803
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: tegra-profiler: fix backtracing
Igor Nabirushkin [Mon, 5 Aug 2013 16:34:13 +0000]
misc: tegra-profiler: fix backtracing

check_vma_address function:
sometimes (rarely): address value may be overflowed.

Bug 1312406

Change-Id: Ibf268000dfcba4046c499f734c368a0854d0f942
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/258236
(cherry picked from commit 6d41daab2b4d6ede2e16a0b0354631e8a6648d8b)
Reviewed-on: http://git-master/r/264760
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Daniel Horowitz <dhorowitz@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agomisc: tegra-profiler: allocate memory on demand
Igor Nabirushkin [Wed, 31 Jul 2013 11:17:47 +0000]
misc: tegra-profiler: allocate memory on demand

Tegra Profiler misc driver:
allocate memory on demand from the user space, not on boot.

Bug 1312406

Change-Id: Idc5e8365e38b7faca236e011d9e665f53ac992e6
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/256309
(cherry picked from commit 65234ad36d4c8eeef7753643d6cb2cf0c7f77976)
Reviewed-on: http://git-master/r/264754
GVS: Gerrit_Virtual_Submit
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

5 years agoCpufreq: protect policy & module refcount
Puneet Saxena [Wed, 14 Aug 2013 15:34:00 +0000]
Cpufreq: protect policy & module refcount

percpu policy pointer needs to be updated with "cpufreq_cpu_data"
synchronously.

This will avoid different virtue of policy pointer of an
online cpu.

It protects ref counting while releasing policy object

Bug 1327428

Change-Id: I817a78c2ead921546f97e4af8943fb5c4ffcfcc6
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/261609
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: dalmore: set startup delay of LDO6 to 600us
Laxman Dewangan [Thu, 29 Aug 2013 08:47:54 +0000]
ARM: tegra: dalmore: set startup delay of LDO6 to 600us

As per observation, the startup delay of LDO6 is more than the
delay defined in datasheet.
Hence setting startup delay explicitly through constraints.

nct external thermal sensor on dalmore (using palmas regulator)
is on this power rail.

bug 1317941
bug 1348506

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

5 years agoregulator: core: add support to set startup delay from platform
Laxman Dewangan [Wed, 7 Aug 2013 09:24:25 +0000]
regulator: core: add support to set startup delay from platform

The startup delay of rail depends on the PMIC design and the platform
design. The startup delay is provided based on PMIC datasheet through
regulator callback.

Add support to provide the platform specific startup delay during
regulator registration through regulator constraints.

The actual delay will be taken from constraints and if it is zero
then based on datasheet.

bug 1317941

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/259122
(cherry picked from commit 0a1b6e2ca9955cf07a2c08654151480ef0a6fac3)

bug 1348506

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

5 years agoRevert "Cpufreq: interactive: Add fresh google interactive gov, etc."
Puneet Saxena [Thu, 22 Aug 2013 13:04:58 +0000]
Revert "Cpufreq: interactive: Add fresh google interactive gov, etc."

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit 640399b2b583f3f66113bdfba2d7d89f1a517979.

Bug 1352880

Change-Id: I155116fc320852ef0bc2095f5591ed74ea994b37
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264929
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "cpufreq: interactive: handle errors from cpufreq_frequency_table_target"
Puneet Saxena [Thu, 22 Aug 2013 13:04:23 +0000]
Revert "cpufreq: interactive: handle errors from cpufreq_frequency_table_target"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit dc63163bf144ff464c11ea723b3c29b7d301b09a.

Bug 1352880

Change-Id: I1527827c0f75137c1162c25cb86174d821376c19
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264928
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "cpufreq: interactive: reduce chance of zero time delta on load eval"
Puneet Saxena [Thu, 22 Aug 2013 13:03:50 +0000]
Revert "cpufreq: interactive: reduce chance of zero time delta on load eval"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit e2aeacdc6ac500b0b3e48b5be754ed17d1fc9094.

Bug 1352880

Change-Id: I365fd2d29841d5b5c2fde4bf7b93b13e746682d1
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264927
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "cpufreq: interactive: avoid underflow on active time calculation"
Puneet Saxena [Thu, 22 Aug 2013 13:02:55 +0000]
Revert "cpufreq: interactive: avoid underflow on active time calculation"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit 3e6b9d8fb4de1c4353af6e4f69dd00f84f9b98b9.

Bug 1352880

Change-Id: Ide505633dee53dcc3d799c875aca409f7f76d71f
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264926
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoRevert "Cpufreq: interactive: Check actual freq before setting new freq"
Puneet Saxena [Thu, 22 Aug 2013 12:52:39 +0000]
Revert "Cpufreq: interactive: Check actual freq before setting new freq"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit b89c138498dfa8db157c9b23172f9da98ea9e583.

Bug 1352880

Change-Id: I8548f5cef8557a26e110dd75ca739bf4c95287fe
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264925
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoRevert "cpufreq: interactive: fix race on cpufreq TRANSITION notifier"
Puneet Saxena [Thu, 22 Aug 2013 13:01:40 +0000]
Revert "cpufreq: interactive: fix race on cpufreq TRANSITION notifier"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit fb20d6e49a0987169abac109d689de4c9d829fbf.

Bug 1352880

Change-Id: Ife8f1f2a8395f232355d0434656c882e574e1cff
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264901
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agoRevert "cpufreq: interactive: resched timer if max freq raised"
Puneet Saxena [Thu, 22 Aug 2013 13:00:13 +0000]
Revert "cpufreq: interactive: resched timer if max freq raised"

Browser P0 Benchmarks such as Sunspider, Panning
are regressed drastically by switching to new interactive
governor.
The score didn’t meet with the score achieved via older governor
though tweaked new governor knobs extremely.
Hence reverting new governor and bugfixes on it.

This reverts commit ba483d38dd783c45118cf66dcd9a23008d68571c.

Bug 1352880

Change-Id: I92500a1d7bfd88867eda1fd4cada51dcf9eb103a
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/264900
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

5 years agomach-tegra: Make benign warning as info
pdabade [Thu, 29 Aug 2013 06:14:41 +0000]
mach-tegra: Make benign warning as info

A request to set brightness to zero is valid irrespective
of what previous brightness of backlight was. A request of
zero brightness disables PWM; so a re-request can be made
to disable a already disabled PWM.

Bug 1256079

Change-Id: Ib1390db9de8358457750789ffee010a229031f55
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/267743
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Tested-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agoARM: tegra: usb: reinit hw fixes upon phy_on
Suresh Mangipudi [Thu, 22 Aug 2013 05:36:02 +0000]
ARM: tegra: usb: reinit hw fixes upon phy_on

H/W fixes have to be reinitialized after the tegra resumes from LP0.
Set TXFILLTUNING for UTMI after resuming from LP0.

Bug 1318125

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

5 years agoarm: tegra: la: hack LA value for VI
Srikanth Nori [Thu, 22 Aug 2013 01:00:16 +0000]
arm: tegra: la: hack LA value for VI

With current LA setting VI FIFO can overflow when VI/EMC clock
changes. This fix pretends the FIFO is smaller and reduces the
latency allowance for VI, which ensures the FIFO drains in time.

Bug 1323454

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

5 years agoARM: tegra: tegratab: apply DVT3 mpu mount orientation
David Yu [Tue, 23 Jul 2013 10:52:54 +0000]
ARM: tegra: tegratab: apply DVT3 mpu mount orientation

Bug 1330733

Change-Id: I77b13de86be87ab0b768bb6eb0ca5792a8bddc63
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/252378
(cherry picked from commit 2f7375070142f33d00bc97fc47d2c8ba5f5f3d77)
Reviewed-on: http://git-master/r/263709
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoregulator: core: Do not set voltage if already set
Philip Rakity [Tue, 13 Aug 2013 11:07:49 +0000]
regulator: core: Do not set voltage if already set

if we choose the same value for the voltage selector
as we had previously do not set the voltage.

bug 1330022

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

5 years agoarm: Enable IRQs before attempting to read user space in __und_usr
Catalin Marinas [Tue, 20 Aug 2013 17:37:02 +0000]
arm: Enable IRQs before attempting to read user space in __und_usr

The Undef abort handler in the kernel reads the undefined instruction
from user space. If the page table was modified from another CPU, the
user access could fail and do_page_fault() will be executed with
interrupts disabled. This can potentially deadlock on ARM11MPCore or on
Cortex-A15 with erratum 798181 workaround enabled (both implying IPI for
TLB maintenance with page table lock held).

This patch enables the IRQs in __und_usr before attempting to read the
instruction from user space.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Change-Id: Ie5164d8ada9646d723b2b6ef65797e9307718292
Reviewed-on: http://git-master/r/264300
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoarm: tegra: Add emc_timing_update to lp1_reset self-ref exit
Elaine K. Tam [Wed, 21 Aug 2013 01:12:36 +0000]
arm: tegra: Add emc_timing_update to lp1_reset self-ref exit

LP1 resume path is missing emc_timing_update to latch in
shadow value for DSR/ACPD update, so that DSR could accidentally
be enabled during DVFS.

Bug 1328397

Change-Id: Iede689a0e042b1a91e38da192dc2b931dbc18020
Signed-off-by: Elaine K. Tam <etam@nvidia.com>
Reviewed-on: http://git-master/r/264132
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra: config: Enabled USB-OTG Wake Support
Jeetesh Burman [Tue, 20 Aug 2013 09:46:06 +0000]
ARM: tegra: config: Enabled USB-OTG Wake Support

Enabled TEGRA_INTERNAL_USB_CABLE_WAKE_SUPPORT in l4t defconfig to
support usb-otg wake-up.

Bug 1343686

Change-Id: Iadc3d0f0de0f04869c8131b35546a8fe258ea40d
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/263827
Reviewed-by: Kiran Adduri <kadduri@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

5 years agopower: bq2419x-charger: short vbus enable time
Martin Chi [Wed, 14 Aug 2013 07:15:53 +0000]
power: bq2419x-charger: short vbus enable time

Per the scope of vbus regulator when plug-in otg
device cable, the vbus ring time is only about 2ms,
so short enable time from 500ms to 8ms

Bug 1344478

Change-Id: Ief7573281d427940af2af3b0365bac1389ae7862
Signed-off-by: Martin Chi <mchi@nvidia.com>
Reviewed-on: http://git-master/r/261358
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

5 years agousb: xhci: tegra: do not enable MSI interrupts
joyw [Wed, 3 Jul 2013 11:07:47 +0000]
usb: xhci: tegra: do not enable MSI interrupts

Tegra xhc isn't a PCI device, so there is no MSI interrupts.
 (CONFIG_PCI=y) doesn't necessarily mean Tegra xhc is a PCI
device. Instead, it means arch has PCI bus support.

Bug 1316579
Bug 1353393

Change-Id: Ib88e9a16399b45aa43bf2ac6c534d67108144858
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/244718
(cherry picked from commit 95681a725e96dcdfc6b7b46fd43e6a2ac7b61c69)
Signed-off-by: joyw <joyw@nvidia.com>
Reviewed-on: http://git-master/r/265374
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

5 years agousb: ehci: tegra: avoid NULL pointer access
Bo Yan [Tue, 20 Aug 2013 19:42:12 +0000]
usb: ehci: tegra: avoid NULL pointer access

there is a race between hcd shutdown and ehci init. If ehci init is
not completed, the tegra->ehci may be NULL, we will have a crash if
tgra_ehci_hcd_shutdown is called in the process of warm reboot or
shutdown.

Change-Id: Ibc151b5d718228f11cc53549e45b32b20ab14c30
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/264015
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Rick Song <ricks@nvidia.com>

5 years agoCreating a cooling device for camera.
Mahesh Lagadapati [Thu, 1 Aug 2013 01:43:31 +0000]
Creating a cooling device for camera.

Created a cooling device when camera is started.
Registered this cooling device to CPU,GPU thermal zones.

Bug 1318077

Change-Id: I1fb68d9c49751deb0542054abefae3dcfa4ded41
Signed-off-by: Mahesh Lagadapati <mlagadapati@nvidia.com>
Reviewed-on: http://git-master/r/256588
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

5 years agoARM: tegra11: power: Specify PMU undershoot gaurd-band
Alex Frid [Sun, 12 May 2013 07:06:36 +0000]
ARM: tegra11: power: Specify PMU undershoot gaurd-band

Specified PMU undershoot gaurd-band 100mV for tegratab, macallan, and
pluto boards.

Bug 1285525

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

5 years agoinput: misc: mpu: change self test criteria
Xiaohui Tao [Tue, 20 Aug 2013 17:38:52 +0000]
input: misc: mpu: change self test criteria

1) Increasing the at rest (Test #3) Threshold from 10dps to 40dps
Invensense claims this was a programming error from their side and
was updated in their code base over a year ago.  They say all their
customers are using (or should be) using the new code (with the
relaxed threshold).

2) Increasing the ST compare (Test #1) Threshold from 14% to 50%
Their response was 14% was set based on their factory results.
However, over time, they had several customer investigations and
found that their customer environments are a lot nosier than their
factory.  Based on more collected samples from the customer site,
they increased this limit from 14% to 50%.  They claim a major
tablet manufacturer with 100.s of thousands of units has taken
the new 50% threshold over a year ago and currently no reported
test escapes with the new threshold.

Bug 1343976

Change-Id: I684f186134db3717d4d1304c14f97dd310843cab
Reviewed-on: http://git-master/r/263972
(cherry picked from commit 949749fdd3be199823c188a8993016bd63ab12e6)
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/264455
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

5 years agovideo: tegra: dsi: Fix DCS video for ganged mode
Animesh Kishore [Thu, 22 Aug 2013 13:18:30 +0000]
video: tegra: dsi: Fix DCS video for ganged mode

Change-Id: I96a56c275a9a9e941cc41bef28f6c46f5ee2ac3f
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/245625
(cherry picked from commit 1bc67a921a49297262d70ac8f71e2a9a5078e1ab)
Reviewed-on: http://git-master/r/265492
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dsi: Convert TE gpio to spio
Animesh Kishore [Fri, 23 Aug 2013 10:10:57 +0000]
video: tegra: dsi: Convert TE gpio to spio

- TE pin should always be spio
- Remove one-shot hacks

Bug 1232203

Change-Id: Ie19cb6ec4e1bd0768338b1e6fe24005fc4b24e50
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/199456
(cherry picked from commit 7f2f7d7c20d8084cd39173efeeb6101f5f9ed68f)
Reviewed-on: http://git-master/r/265491
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: dalmore: Pass TE gpio to driver
Animesh Kishore [Fri, 23 Aug 2013 10:21:43 +0000]
arm: tegra: dalmore: Pass TE gpio to driver

Add TE gpio field in platform data.

Bug 1232203

Change-Id: Iadef91a9408ef4fdf85c01de14929f6f398142d4
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/199455
(cherry picked from commit f76e05e0caf0eb4d85e533bca834b5d09cc4f114)
Reviewed-on: http://git-master/r/265490
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: dalmore: Enable one-shot sharp 25x16
Animesh Kishore [Thu, 22 Aug 2013 12:01:42 +0000]
arm: tegra: dalmore: Enable one-shot sharp 25x16

Bug 1347805

Change-Id: I5e7bda240e07ab1e6e92de5061ba5031b273752b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/261060
(cherry picked from commit 28271dac436ab11378248ee54b09c16951c2613c)
Reviewed-on: http://git-master/r/265489
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dsi: Fix ganged mode packet sequence
Animesh Kishore [Thu, 22 Aug 2013 11:58:25 +0000]
video: tegra: dsi: Fix ganged mode packet sequence

Config lp transition after each line of dcs video.

Bug 1347805

Change-Id: Ic299c7ed5300ecf1d063a259d63435b4a51db7d2
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/261059
(cherry picked from commit 2fdf6df68bd651c22e45fc95e1cd70fe3dc07f9a)
Reviewed-on: http://git-master/r/265488
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dsi: Fix OS idle suspend/resume
Animesh Kishore [Thu, 22 Aug 2013 07:27:32 +0000]
video: tegra: dsi: Fix OS idle suspend/resume

- Acquire all required locks atomically.
- Fix lock sequence

Bug 1334200

Change-Id: I00839d61d72373d748217313d26eab19768e5865
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/261058
(cherry picked from commit b6e3b7a07cfbd741469d592b35a178bfc9dfde67)
Reviewed-on: http://git-master/r/265487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dc: Implement OSidle clock gate
Animesh Kishore [Thu, 22 Aug 2013 07:22:45 +0000]
video: tegra: dc: Implement OSidle clock gate

Bug 1268656

Change-Id: I8e190eaf4a98d3344f2ae6b9af646c1f748dd37a
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/229328
(cherry picked from commit d3ed8dba2c14766a9101446e26a60d4e23a454c0)
Reviewed-on: http://git-master/r/265486
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dc: Optimize OS idle display wakeup
Animesh Kishore [Thu, 22 Aug 2013 07:12:24 +0000]
video: tegra: dc: Optimize OS idle display wakeup

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

Bug 1268656

Change-Id: I7a933bfec302771cfce02aa81893e997e58af986
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/219755
(cherry picked from commit a6e330c6a4b5c06db88d4436eaeb1981ca74fe00)
Reviewed-on: http://git-master/r/265485
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: kai: Fix post power on api
Animesh Kishore [Mon, 5 Aug 2013 10:51:34 +0000]
arm: tegra: kai: Fix post power on api

Bug 1341152

Change-Id: I7a1a734de118d0c6aa46e9923676ee94f03da444
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/258167
(cherry picked from commit 1951a975ffb57fc166287397f813e9b7715531b4)
Reviewed-on: http://git-master/r/265484
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: dalmore: Fix sharp 25x16 power on/off
Animesh Kishore [Mon, 5 Aug 2013 10:48:53 +0000]
arm: tegra: dalmore: Fix sharp 25x16 power on/off

- lp-00 before wake-up
- disable ulpm.
- add stabilization delays.

Bug 1341152

Change-Id: I821fad7d77f7e20b06fbed87bf7b7c3f6a4e728c
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/258166
(cherry picked from commit 965c53400efcdb71eaaee560f99d117f5690d826)
Reviewed-on: http://git-master/r/265483
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dsi: Fix dsi resume
Animesh Kishore [Mon, 5 Aug 2013 10:44:29 +0000]
video: tegra: dsi: Fix dsi resume

- Support lp-00/lp-11 before panel wakeup.
- Platform flag to enable/disable ulpm.

Bug 1341152

Change-Id: Icff3fe7caf52585374a4a9002f87700be5dfe330
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/258165
(cherry picked from commit abbe8deae875b6c2ea59a2bdf639ef37507bae54)
Reviewed-on: http://git-master/r/265482
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoarm: tegra: dalmore: Add sharp 25x16 suspend seq
Animesh Kishore [Thu, 1 Aug 2013 12:59:38 +0000]
arm: tegra: dalmore: Add sharp 25x16 suspend seq

Bug 1341152

Change-Id: I0103d63bce9c3445366700de4c010c178dfc602b
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/256836
(cherry picked from commit 14ce0620f472b52a3134665c02497540718de715)
Reviewed-on: http://git-master/r/265481
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dsi: Fix dsi suspend sequence
Animesh Kishore [Thu, 1 Aug 2013 12:44:43 +0000]
video: tegra: dsi: Fix dsi suspend sequence

- explicitly disable backlight before suspend
- power gate pad after panel power gate

Bug 1341152

Change-Id: If51f3043ca9eca205399421ede7a7cfe79f5517c
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/256835
(cherry picked from commit 24f6923af72928f493c15885374c6e4666a857b8)
Reviewed-on: http://git-master/r/265480
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agovideo: tegra: dsi: Interleave dsi controllers init
Animesh Kishore [Fri, 26 Jul 2013 14:21:51 +0000]
video: tegra: dsi: Interleave dsi controllers init

With panels operating in ganged mode, initialization of both
DSI controllers happens one after the other sequentially.
Due to this some of panels are showing abnormal behaviour.

Enabling interleaved initialization of both dsi controllers.

Bug 1341152

Change-Id: If7b2c6cd8c4c2fd206f675d1b015d90aeff3e660
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/254359
(cherry picked from commit e7445005ed48c0f9be9cb5e186a4db2a97fe2a69)
Reviewed-on: http://git-master/r/265479
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit

5 years agoEDP: fix deadlock
Sivaram Nair [Fri, 5 Jul 2013 10:40:41 +0000]
EDP: fix deadlock

cancel_work_sync is called with mutex held. This can cause deadlock if
there is a pending work while switching governors or while unregistering
managers (because the worker function tries to take the same lock).

Fix this by:

- getting rid of cancel_work_sync during governor switching (if there is
  no governor, the scheduled work will do nothing)
- call cancel_work_sync after the manager unregistration is complete and
  outside the locked code.

Bug 1313928

Change-Id: I64b270898bffc9b961cb70ca9c181c1c6e6c0118
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/247648
(cherry picked from commit 981bf6768f2ed99127550ba5554e433716586eaa)
Reviewed-on: http://git-master/r/265340
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoEDP: fix run time warnings
Sivaram Nair [Thu, 4 Jul 2013 07:31:11 +0000]
EDP: fix run time warnings

Fixing warnings issued by EDP governors due to incorrect power budget
math.

Bug 1313928

Change-Id: If1c9cf5c6df66ed4f2cc8a1b9399d4c57b2c7a64
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/245106
(cherry picked from commit 6870474b775573f8a060afff99fca3bb171ec12c)
Reviewed-on: http://git-master/r/265339
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>

5 years agoARM: tegra: macallan sys EDP can lowered to 19W
Sivaram Nair [Fri, 23 Aug 2013 06:17:31 +0000]
ARM: tegra: macallan sys EDP can lowered to 19W

Needed for stability fixes.

Bug 1306298
Bug 1353057

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

5 years agommc: tegra: Clear tuning overrides if not required
Pavan Kunapuli [Thu, 22 Aug 2013 15:22:06 +0000]
mmc: tegra: Clear tuning overrides if not required

If there is no need to maintain boot voltage, clear tuning
override voltages set.

Bug 1353926

Change-Id: Ie36fd98b6245839ea8ec4b6fd9a2afb4cd56ff3b
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/264940
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agoARM: tegra: dalmore: Enable max freq for SDIO
Pavan Kunapuli [Tue, 20 Aug 2013 09:21:57 +0000]
ARM: tegra: dalmore: Enable max freq for SDIO

Enabling max freq support for SDIO on Dalmore A05 platform.

Bug 1330567

Change-Id: If177b605e6db5034eb7e33eaf51b26446274a5dc
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/263813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years agoARM: tegra: dalmore/pluto: Enable max freq for SD
Pavan Kunapuli [Tue, 20 Aug 2013 09:20:52 +0000]
ARM: tegra: dalmore/pluto: Enable max freq for SD

Enabling max frequency support for SD cards on Dalmore A05 and
pluto platforms.

Bug 1330567

Change-Id: Ia27604fa2745f6b045ec20d0882f7b196be9f876
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/263812
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

5 years ago power: max17048: set wakeup capability
Venkat Reddy Talla [Thu, 22 Aug 2013 08:51:34 +0000]
 power: max17048: set wakeup capability

 set the device as wakeup capable and let the user space enable
 to wakeup the system from LP0/Suspend state.

 Bug 1342974

Change-Id: I00946d40a45837a64d2d4b59e3852e2213736cfa
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/264782
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

5 years agomedia: video: tegra: IMX135: add non-AOHDR modes
Frank Chen [Fri, 16 Aug 2013 23:42:27 +0000]
media: video: tegra: IMX135: add non-AOHDR modes

Add the following non-AOHDR modes
4208x3120
2104x1560
1920x1080

Bug 1345012

Change-Id: I0d888de90e6147d95c18206bcf81f4db70c26bb1
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/263567
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yin-Chia Yeh <yyeh@nvidia.com>
Reviewed-by: Sean Pieper <spieper@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

5 years agoarm: pluto: power: update core cap table
Rick Song [Wed, 14 Aug 2013 12:46:51 +0000]
arm: pluto: power: update core cap table

  - update the table of normal profile.
  - keep gpu throttle at 672 MHZ during using cpu priority,
    for high core profile.
  - move power from cpu to gpu as possible during using
    gpu priority, for high core profile.

Bug 1329643

Change-Id: I01876867823dc92944044aa6974cd35bf8a94e89
Signed-off-by: Rick Song <ricks@nvidia.com>
Reviewed-on: http://git-master/r/261565
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vandana Bansal <vandanab@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

5 years agoinput: touch: maxim: get firmware name from board file
David Yu [Mon, 19 Aug 2013 10:20:08 +0000]
input: touch: maxim: get firmware name from board file

Change-Id: Iab848bb8176d6003d45a8e8650a99de02f9d50b3
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/263260
Reviewed-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

5 years agoarm: tegratab: load touch fw according to board revision
David Yu [Thu, 4 Jul 2013 02:31:16 +0000]
arm: tegratab: load touch fw according to board revision

Change-Id: Ica93560f8eba67d5ba9975c42e0c7431f1b10ce8
Signed-off-by: David Yu <davyu@nvidia.com>
Reviewed-on: http://git-master/r/244945
Reviewed-by: Gabby Lee <galee@nvidia.com>
(cherry picked from commit 167bb899063afd987bd05f19d57da8a1fd377de9)
Reviewed-on: http://git-master/r/247723
Reviewed-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>

5 years agovideo:tegra:ad5823 support physical/working range
Karl Kim [Fri, 9 Aug 2013 02:20:23 +0000]
video:tegra:ad5823 support physical/working range

NVCS can't set the full range because the ad5823 driver is
clipping position value as working range.
This is separated physical and working range

Bug 1340766

Change-Id: I61f4dbdc8572fd6b1725a9e0803656b9d0bc1ec4
Reviewed-on: http://git-master/r/259886
(cherry picked from commit fd4453a8ffb35dcca59a079d6e7b5599f7ab4e48)
Signed-off-by: Karl Kim <kkim@nvidia.com>
Reviewed-on: http://git-master/r/261018
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

5 years agoARM: tegra: sdhci: Pass boot vcore in plat data
Pavan Kunapuli [Fri, 16 Aug 2013 09:25:46 +0000]
ARM: tegra: sdhci: Pass boot vcore in plat data

Pass boot core voltage limit through platform data.
Enable nominal voltage tuning support for pluto.

Bug 1330567

Change-Id: Ia1c349bcf22cb80423d0dd782209fd94dc35b507
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/260569
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agommc: tegra: Refactor frequency tuning code
Pavan Kunapuli [Fri, 16 Aug 2013 14:07:38 +0000]
mmc: tegra: Refactor frequency tuning code

Chip specific tuning frequency list.
Support low, high and max frequencies for each chip.
Generic tuning constraints update procedure for better scalability.

Synchronization between multiple devices for setting core voltage
constraints during tuning.
When tuning is being run for any interface, avoid data transfers on all
interfaces that are yet to finish tuning. This would avoid data errors
due to core voltage fluctuations as a result of tuning vcore constraints.

Fixed tuning status update as per the core voltage set status and tuning
window status.

If the verification of an already tuned best tap value fails, force
retuning.

Option to easily configure support for any two frequencies when DFS is
enabled. Simplified procedure to support higher tuning frequency count.

Modularize tuning code for better scalability, maintainability and
readability.

Bug 1330567

Change-Id: I98533a3ceb661b5b54c8903341181ad0009f4dfb
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/260568
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agommc: tegra: Single function for regulator ops
Pavan Kunapuli [Tue, 6 Aug 2013 16:23:07 +0000]
mmc: tegra: Single function for regulator ops

Use single function for SDMMC related regulator enable, disable and
set voltage operations to avoid repetitive code.

Bug 1330567

Change-Id: Ie93067692090a43c0ac76f5689517bced2aeae58
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/260567
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agommc: tegra: Clean up chip specific defines
Pavan Kunapuli [Wed, 14 Aug 2013 10:07:27 +0000]
mmc: tegra: Clean up chip specific defines

Cleaned all chip specific defines.
Separate SOC data for SDMMC controllers in each chip.
Pass parent clock sources list through soc data. Skip parent selection
if only one parent is available.

Bug 1330567

Change-Id: I6dae169ab69330b22ca3c87658a2f75c53f32a81
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/260566
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

5 years agommc: tegra: Remove chip specific hw_ops
Pavan Kunapuli [Fri, 16 Aug 2013 13:52:24 +0000]
mmc: tegra: Remove chip specific hw_ops

Removed chip specific hw_ops. There really is only one callback being
used currently to handle T30 clock stabilization bug.
Added a quirk2 to handle clock stabilization WAR for T30.
Added nvquirk to selectively enable HS200 capability.

Bug 1330567

Change-Id: I2c2e7a07677c4c4fc7262643ae94537c786110fe
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/260565
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>