6 years agoThermal: pid_thermal_gov: Separate compensation into up and down compensations
Jinyoung Park [Fri, 22 Mar 2013 11:49:33 +0000]
Thermal: pid_thermal_gov: Separate compensation into up and down compensations

Separated compensation into up and down compensations in order to apply
different compensation rate to each cases.

Bug 1200111

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

6 years agoThermal: pid_thermal_gov: Apply compenstaion even if sum_err is 0 or max
Jinyoung Park [Fri, 22 Mar 2013 04:41:05 +0000]
Thermal: pid_thermal_gov: Apply compenstaion even if sum_err is 0 or max

Applied compensation even if sum_err is 0 or max to prevent determining
target state to 0 in short time.

Bug 1200111

Change-Id: I52a8bbeb4ae8553f14401cd0eaa4508337111955
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/211960
GVS: Gerrit_Virtual_Submit
Reviewed-by: Edward Riegelsberger <eriegels@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agousb: xhci: tegra: clock code cleanups
Ajay Gupta [Wed, 20 Mar 2013 23:10:59 +0000]
usb: xhci: tegra: clock code cleanups

Changes:
- no need to enable ss_src clock
- clean uneeded clk uses such as pllu_clk, utmip_clk, plle_re_vco_clk
- killed clk wash .probe()
- don't enable dev clocks
- change ss_clk to ss_src_clk
- change ss/host_partition_clk to ss/host_clk

Bug 1249124

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

6 years agoARM: tegra: mipi-cal aperture
Charlie Huang [Sat, 2 Mar 2013 03:20:09 +0000]
ARM: tegra: mipi-cal aperture

add mipi-cal register mapping feature, so user space can access.

bug 1168468

Change-Id: I71faf09e7b41be4e6eb5a25c2e2d17e24545d719
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/205741
(cherry picked from commit ae6e2b831e0fea0f9b7db718886182ea7cb2b3e9)
Reviewed-on: http://git-master/r/211740
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra114: Change of_platform_populate call order for DT
Jinyoung Park [Fri, 15 Mar 2013 08:19:44 +0000]
ARM: tegra114: Change of_platform_populate call order for DT

The of_platform_populate function should be called before
platform_driver_register function call to create a platform_device
for the provided device nodes.

Bug 1243373

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

6 years agoARM: tegra: Atomics support
Bo Yan [Wed, 13 Mar 2013 20:55:05 +0000]
ARM: tegra: Atomics support

This can be used if spin lock type of synchronization is needed
between two different processors. The two different processors
can be ARM7 and Cortex-A9/A15, or any two cores in CPU complex.

If cache and MMU are disabled, the APIs provided by this change
can't be used directly since they require virtual addresses. So
user has to access atomics hardware differently.

Change-Id: I6498415ab206d6032d54125fe680c614c7360dc1
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/209009
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: new EDP power cap levels
Sivaram Nair [Fri, 22 Mar 2013 09:25:58 +0000]
ARM: tegra: new EDP power cap levels

Adjusting the power cap levels to have closer match with the AP+DRAM CPU
power budget

Bug 1252116

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

6 years agoasoc: tegra: aic326x: Use avdd_audio regulator
Vijay Mali [Thu, 21 Mar 2013 15:09:05 +0000]
asoc: tegra: aic326x: Use avdd_audio regulator

- Enable avdd_audio regulator during playback on Headphone and Speaker.
- This prevent leakage current in codec.
- Improve codec power numbers.

Bug 1238662

Change-Id: Ie9fa31b6291c06ad4f83138c4e595fb4da29a7f9
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/211670
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM errata: Writing ACTLR.SMP when the L2 cache has been idle for an extended period...
Bo Yan [Mon, 25 Mar 2013 20:27:41 +0000]
ARM errata: Writing ACTLR.SMP when the L2 cache has been idle for an extended period may not work correctly

This workaround is for ARM errata 799270 which is applicable to
Cortex-A15 up to revision R2P4. The workaround is to read from
a device register and create a data dependency between this read
and the modification of ACTLR.

Change-Id: I26813f17a8a9c6a90446ddeb943ef318e3c69770
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/212770
Reviewed-by: Bobby Meeker <bmeeker@nvidia.com>

6 years agoARM: tegra114: Enable ARM errata 799270
Bo Yan [Mon, 25 Mar 2013 20:20:55 +0000]
ARM: tegra114: Enable ARM errata 799270

bug 1195192

Change-Id: Ib5b0c73f42f73610ec78464dcf789e38d8cab927
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/212769
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bobby Meeker <bmeeker@nvidia.com>

6 years agoARM: tegra114: Implement ARM errata 799270 properly
Bo Yan [Thu, 21 Mar 2013 22:15:32 +0000]
ARM: tegra114: Implement ARM errata 799270 properly

The ARM errata 799270 requires a data dependency between the returning
device load data and MCR instruction that sets ACTLR.SMP bit. Fix the
current workaround so it confirms to errata document.

bug 1195192

Change-Id: Ideeb3dd3d865323d59ae4bc7a2d40889acfe379d
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/211812
Reviewed-by: Bobby Meeker <bmeeker@nvidia.com>

6 years agoARM: tegra11: clock: Disable secondary dividers
Alex Frid [Sat, 23 Mar 2013 06:45:02 +0000]
ARM: tegra11: clock: Disable secondary dividers

During clock initialization disabled secondary dividers of disabled
PLLs (just in case if such divider is left enabled by boot-loader).

Change-Id: I69d510213b82c8860f040a786386489ac4dcf720
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/212384
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>

6 years agoARM: tegra: clock: Change clock table initialization order
Alex Frid [Sun, 24 Mar 2013 04:18:46 +0000]
ARM: tegra: clock: Change clock table initialization order

When initializing clocks from table, enable the clock (if requested)
before changing clock parent and/or setting the rate. The latter two
operations would do balanced enable/disable of the target clock anyway.
So, if the clock is to be enabled eventually, better to do it first,
and avoid further unnecessary switching.

Change-Id: I70912f2d318ea5926e94c494726cff3bc16787d4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/212383
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoARM: tegra: dvfs: Always apply dvfs rail thermal floors
Alex Frid [Fri, 22 Mar 2013 04:32:10 +0000]
ARM: tegra: dvfs: Always apply dvfs rail thermal floors

Re-factored dvfs rail thermal control so that thermal floors are
applied even when cooling devices are not present or not supported.
Maximum (cold) floor will be set in such case to be safe at any
temperature. Added warnings on different thermal floors and cooling
devices configuration missmatches.

Bug 1248374

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

6 years agoARM: tegra: dvfs: Don't duplicate cpu rail trip-points
Alex Frid [Sat, 23 Mar 2013 01:30:24 +0000]
ARM: tegra: dvfs: Don't duplicate cpu rail trip-points

Enforced common set of cpu rail trip-points in dfll and pll modes by
pointing to the same cooling device structure (instead of allocating
two identical structures).

Skipped registration of cpu rail dfll mode trip-points, when they are
the same as in pll mode

Bug 1248374

Change-Id: I94df1ca80ac5aeb672c15ff185f7c2c30f1c66ba
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/212322
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agonohz: stat: Fix CPU idle time accounting
Bo Yan [Fri, 22 Mar 2013 21:03:26 +0000]
nohz: stat: Fix CPU idle time accounting

Since cpustat[CPUTIME_IDLE] is never connected to ts->idle_sleeptime,
never read from cpustat[CPUTIME_IDLE] when reporting stats in
/proc/stat.

Note this was rejected by Michal Hocko when it was initially proposed
by Martin Schwidefsky in LKML, so if you want to upstream it, better
find an alternative (either completely disable cpustat[CPUTIME_IDLE]
for CONFIG_NO_HZ or somehow connect them to keep them in sync.)

bug 1190321

Change-Id: Idc92488910b826aff850a010016d8326c7ab9e6c
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/212224
Reviewed-by: Liang Cheng (SW) <licheng@nvidia.com>
Tested-by: Liang Cheng (SW) <licheng@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>

6 years agovideo: tegra: camera: hold disa when ve is powered.
Kevin Huang [Fri, 22 Mar 2013 01:44:53 +0000]
video: tegra: camera: hold disa when ve is powered.

Bug 1256678

Change-Id: I44d153eb2ccc6dbd761dc16e8647455c639a6dae
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/211922
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: clock: Verify initial cbus pll descendants
Alex Frid [Sun, 17 Mar 2013 06:45:19 +0000]
ARM: tegra: clock: Verify initial cbus pll descendants

During clock initialization verified that children of cbus plls are
either disabled or known cbus clients (the latter will be backed up
on different pll while cbus pll is re-locked).

Change-Id: Ic03caf204e6d96b2ece0dbb8d80c44836c42590b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/210236
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Prashant Malani <pmalani@nvidia.com>

6 years agoARM: tegra: pluto: set sleep-time pinmux settings for VDDIO_GMI_AP
Eric Miao [Fri, 15 Mar 2013 08:11:17 +0000]
ARM: tegra: pluto: set sleep-time pinmux settings for VDDIO_GMI_AP

Reconfigure GMI pins to save additional power on rail VDDIO_GMI_AP
during sleep time.

Bug 1247754

Change-Id: I79559c75b800d3b208a4677b83974fb71d615ce2
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/212014
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoRevert "ARM: tegra: pluto: reduce power on VDDIO_GMI_AP"
Eric Miao [Fri, 15 Mar 2013 08:04:37 +0000]
Revert "ARM: tegra: pluto: reduce power on VDDIO_GMI_AP"

To save power on rail VDDIO_GMI_AP, the pinmux settings for the
relevant pins have been modified, yet this makes touch unstable.
Revert this patch firstly, and we will add support for sleep-time
pinmux settings.

Bug 1247754

This reverts commit ccaffae0763f6575421b91ab4c20d4344d48a53b.

Change-Id: I164be76924740141c13c3c8ebc987382cd1eff1b
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/212012
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: pinmux: t114: correct pingroup func
Sachin Nikam [Thu, 21 Mar 2013 12:03:48 +0000]
arm: tegra: pinmux: t114: correct pingroup func

Correcting pingroup func for GPIO_PU4, GPIO_PU5,
GPIO_PU6 and KBC_ROW6.

This fixes warning in pinmux.c tegra_pinmux_set_func()

Bug 1256153

Change-Id: I9293ff515b532c75bc7ca70eeb29de3004491fa9
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/211617
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: macallan: set LDO8's voltage to 0.9V in LP0
Hunk Lin [Wed, 20 Mar 2013 06:32:21 +0000]
arm: tegra: macallan: set LDO8's voltage to 0.9V in LP0

LDO8 is used for VD_AP_RTC. It is tracking to VDD_CORE in non-LP0 case.
In LP0 case, set it to 0.9V as other T114 platforms to save power.

Bug 1254970

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

6 years agousb: gadget: tegra: fix NV-charger detection
Xin Xie [Tue, 26 Feb 2013 01:35:22 +0000]
usb: gadget: tegra: fix NV-charger detection

NV charger is using resistor network to set 2.8v/2.0v for D+/D-. Doing
so, we cannot detect SDP and NV-charger reliably. Instead we need:
 * Implement Data Contact Detection mechanism, so SDP and NV-charger can
   be detected reliably.
 * We also need make difference between NV-charger and non-standard
   charger based on D+/D- line status (non-standard charger D+/D- lines
   can be pulled high or low individually, NV-charger D+/D- line is
   always high)

bug 1236790
bug 1234552

Change-Id: I69789f4f66a16bb82dacb428914ecad37942314a
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/207217
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: new edp tables for pluto
Sivaram Nair [Fri, 22 Mar 2013 09:25:33 +0000]
ARM: tegra: new edp tables for pluto

Updating the AP+DRAM EDP tables for pluto

Bug 1252116

Change-Id: I8efe8cd0061e935c455282fbbaf4916bc18d675c
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/212141
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agopower: max17042: fix fluctuating rbat
Sivaram Nair [Mon, 18 Mar 2013 18:56:38 +0000]
power: max17042: fix fluctuating rbat

RBAT is calculated based on average current. If there is sudden change
in the average current value, it reflects in the calculated RBAT causing
the ibat_possible to jump up/down, leading to a sudden change in battery
depletion value.

Fixed by using moving average of last 5 rbat values to reduce this
fluctuation.

Bug 1252120

Change-Id: Id1bb99993c1077097474dbeebf6529ee9a679ae1
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/212140
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: add null pointer check
Sivaram Nair [Thu, 21 Mar 2013 10:53:20 +0000]
ARM: tegra: add null pointer check

Added null pointer check before calling regulator_disable

Change-Id: I9090aadb32ac86544821e5715aefd3d5b6ac88b8
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/212139
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra11: pinmux: add tegra11x_set_sleep_pinmux()
Eric Miao [Fri, 15 Mar 2013 08:07:16 +0000]
ARM: tegra11: pinmux: add tegra11x_set_sleep_pinmux()

To save power during sleep mode, we may need pinmux settings other
than run-time's. Introduce an function for tegra11x at this moment
to solve this problem.

Bug 1247754

Change-Id: I2348518df51e9b7e4c7d056a34637dda4688bccb
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/212013
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dc: Update flags of the window being operated
Raghavendra VK [Wed, 20 Mar 2013 02:53:45 +0000]
video: tegra: dc: Update flags of the window being operated

bug 1233914

Change-Id: If4414708f046217f8e7959e6b21c868ce951fd39
Signed-off-by: Raghavendra VK <rvk@nvidia.com>
Reviewed-on: http://git-master/r/211022
(cherry picked from commit e38dcd5efba397347b70708c0b0386533f639f94)
Reviewed-on: http://git-master/r/211969
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Nikhil Parab <nparab@nvidia.com>

6 years agousb: xhci: tegra: don't disable clks in .remove() if in elpg
Ajay Gupta [Thu, 21 Mar 2013 00:07:44 +0000]
usb: xhci: tegra: don't disable clks in .remove() if in elpg

This is needed for xusb modular support.

Bug 1173778

Change-Id: I87433f9345f703b84da899e082d672a77881c46f
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/211836
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: config: tegra3/tegra11: disable NFC
Preetham Chandru R [Thu, 21 Mar 2013 14:21:21 +0000]
ARM: config: tegra3/tegra11: disable NFC

Disable NFC as there is no user space libraries in L4T

Bug 1238477

Change-Id: I3e3251da2ed57080b2c2ea4e518df10f11092219
Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/211659
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agonvavp: Set sclk to SCLK_BOOST_RATE if boost is enabled
Mandar Potdar [Thu, 21 Mar 2013 11:58:33 +0000]
nvavp: Set sclk to SCLK_BOOST_RATE if boost is enabled

When disabling all other clocks, do not set sclk to 0
if boost is enabled.

bug 1258031

Change-Id: I021648464e4693e1bc2fb31d5e3e6a53af6e6c37
Signed-off-by: Mandar Potdar <mpotdar@nvidia.com>
Reviewed-on: http://git-master/r/211627
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Tested-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

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

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

Change-Id: I083a52ad9af88049d61249c090a145024fcbb306
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/211352
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: usb: disable USB_WAKE_ON_CNNT_EN_DEV bit
Petlozu Pravareshwar [Wed, 20 Mar 2013 14:39:27 +0000]
ARM: tegra: usb: disable USB_WAKE_ON_CNNT_EN_DEV bit

Disable USB_WAKE_ON_CNNT_EN_DEV bit during phy_power_off.

Bug 1251685
Bug 1223856

Change-Id: I6c2fa9fce74c4ad9ad6c42afbb7d268f09f77577
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/211244
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: Set trim value of 10 for all eMMC modes
Naveen Kumar Arepalli [Wed, 20 Mar 2013 11:04:01 +0000]
ARM: tegra: Set trim value of 10 for all eMMC modes

With current trim of 3, CRC errors are seen from eMMC
Set trim value of 10 for all eMMC modes on t114

Bug 1054859
Bug 1254246

Change-Id: Ife0e09f4aded43ce00a08b92b873c4c130629465
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/211170
GVS: Gerrit_Virtual_Submit
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: xhci: tegra: do elpg_exit before xhci_shutdown()
Ajay Gupta [Tue, 19 Mar 2013 21:39:51 +0000]
usb: xhci: tegra: do elpg_exit before xhci_shutdown()

Also fixed below compile warning on rel17 branch
"warning: label 'error_iounmap' defined but not used"

Bug 1254337

Change-Id: I8ea409b0450aa5b0ba47fb31a746561ee74327a6
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/210909
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: xhci: tegra: set port ownership to snps during elpg
Ajay Gupta [Tue, 19 Mar 2013 17:33:19 +0000]
usb: xhci: tegra: set port ownership to snps during elpg

Also fixed a bug by clearing all bits D[0:3] of USB2_PAD_MUX_0
register.

Bug 1255052

Change-Id: I63d12c7aedacada06ecbb0e50fd94afff0415681
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/210867
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: xhci: tegra: update low speed rise and fall slew rate
Ajay Gupta [Tue, 19 Mar 2013 16:31:54 +0000]
usb: xhci: tegra: update low speed rise and fall slew rate

Bug 1256238

Change-Id: I81dc9baad99728ca52608a41578b094c8e07fe28
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/210852
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: beaver: updated DVFS table
Bibek Basu [Tue, 19 Mar 2013 08:43:34 +0000]
ARM: tegra: beaver: updated DVFS table

DVFS entry is fixed for Hynix_2GB_H5TC4G83MFR-PBA
to support all emc frequencies.

Bug 1218885

Change-Id: Id9d578499e495f43db1a072cbcee25a353fa78f5
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/210653
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agopower: bq2419x: disable charging function if charger fails to probe
Kerwin Wan [Tue, 19 Mar 2013 08:27:29 +0000]
power: bq2419x: disable charging function if charger fails to probe

Bug 1238542

Change-Id: I24d5e1407049af508799fac504b74681b73a2069
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/210648
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra: pluto: Use PULL_UP for GMI_CS1_N
Chaitanya Bandi [Mon, 18 Mar 2013 11:52:17 +0000]
ARM: tegra: pluto: Use PULL_UP for GMI_CS1_N

Bug 1238671

Change-Id: I7862aa355c0bd03453703d39a5425e1fdcc6bafa
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/210378
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoinput: touch: raydium: Add missing compile time NV_ENABLE_CPU_BOOST define
Vikas Jain [Fri, 15 Mar 2013 13:36:31 +0000]
input: touch: raydium: Add missing compile time NV_ENABLE_CPU_BOOST define

Reporting input capability for MSC_ACTIVITY should be covered under
NV_ENABLE_CPU_BOOST.

Bug 1229219

Change-Id: Id8ac0ea04cb33016680386d40f38745f685f08d3
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/210021
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoinput: touch: synaptic: report MSC_ACTIVITY event in IRQ
Vikas Jain [Fri, 15 Mar 2013 06:08:23 +0000]
input: touch: synaptic: report MSC_ACTIVITY event in IRQ

Report MSC_ACTIVITY event while entering IRQ handler so that
CPU frequency governor can act.
This improves direct touch processing latencies.

Bug 1254080

Change-Id: Ic8c622045185977d88423d94b2604ec6648798ba
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/209873
Reviewed-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agommc: tegra: Fix SDR50 mode clk rate
rrajk [Thu, 14 Mar 2013 12:17:04 +0000]
mmc: tegra: Fix SDR50 mode clk rate

In SDR50 mode, it is not required to set the
controller clk to double the requested clk for the platforms
other than T30.
Bug 1249696

Change-Id: I8fc8ec31c3bf99ff604cbcc4eb24f14525c9f6b0
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/209578
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agommc: host: tegra: Set clk rate to default clk
rrajk [Mon, 11 Mar 2013 12:36:53 +0000]
mmc: host: tegra: Set clk rate to default clk

Set clk rate to default clk rate before selecting pll_c
as a clk parent in order to avoid the dvfs failures triggered
during the set parent process.

Change-Id: I9e2af72820689b9e0ea64a612f287ac67f3e5a73
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/208067
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: updating pluto battery depl EDP client
Sivaram Nair [Wed, 20 Mar 2013 13:41:45 +0000]
ARM: tegra: updating pluto battery depl EDP client

Adding negative E-states to battery depletion client.

Change-Id: Ia917bf0628e13ebefbbe9f6e87738d8b9b03db62
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/211237
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agopower: max17042: adding EDP throttle callback
Sivaram Nair [Wed, 20 Mar 2013 13:39:50 +0000]
power: max17042: adding EDP throttle callback

Preparing the battery depletion client for supporting negative
E-states.

Change-Id: Ib023a36cf059b4a490e76c11c47ee70776b4f307
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/211236
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agopower: max17042: fix depletion timer interval
Sivaram Nair [Mon, 18 Mar 2013 17:08:21 +0000]
power: max17042: fix depletion timer interval

Added missing timer conversion

Change-Id: I8ff7a8f4e2f103ec775c371b566e95ab62826f21
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/211235
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoEDP: fixing return value
Sivaram Nair [Tue, 19 Mar 2013 07:10:27 +0000]
EDP: fixing return value

sysfs store functions should return the number of byte count on success.

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

6 years agoEDP: add notify sysfs
Sivaram Nair [Tue, 12 Mar 2013 01:20:54 +0000]
EDP: add notify sysfs

A new sysfs attribute is added to specify whether the throttling and
promotion of an EDP client should be notified to the user level. The
field can be set/modified either by the client driver or an init script.

Bug 1244972

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

6 years agoEDP: add sysfs_notify on throttles and promotions
Sivaram Nair [Wed, 6 Mar 2013 23:47:22 +0000]
EDP: add sysfs_notify on throttles and promotions

sysfs_notify is issued on a newly added <manager>/denied attribute
whenever one or more client is throttled or promoted.  This is needed so
that any user level process can wait on such events via poll/select.

Bug 1244972

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

6 years agobacklight: max8831: lowering E0 state
Sivaram Nair [Tue, 19 Mar 2013 06:55:57 +0000]
backlight: max8831: lowering E0 state

Backlight EDP client's E0 state is lowered in order to make room for
other higher priority clients.

Bug 1252116

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

6 years agobacklight: max8831: adding error return
Sivaram Nair [Tue, 19 Mar 2013 06:54:15 +0000]
backlight: max8831: adding error return

The driver does not return error when its E-state request is not
successful - fixing this.

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

6 years agobacklight: max8831: fixing types
Sivaram Nair [Tue, 19 Mar 2013 06:51:28 +0000]
backlight: max8831: fixing types

Using correct types for variables

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

6 years agoARM: tegra: pluto: fixing camera E0 state
Sivaram Nair [Tue, 19 Mar 2013 06:45:29 +0000]
ARM: tegra: pluto: fixing camera E0 state

Camera EDP client has set its E0 incorrectly high - fixing it.

Bug 1252177

Change-Id: I50c5306550b80024a9c4e0284df262c3947f6b11
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/211230
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agomedia: video: tegra: adding EDP throttle callback
Sivaram Nair [Tue, 19 Mar 2013 06:40:15 +0000]
media: video: tegra: adding EDP throttle callback

Camera driver needs to support EDP throttle callback since it should
support negative E-states

Bug 1252177

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

6 years agoARM: tegra: pluto: fixing flash EDP states
Sivaram Nair [Tue, 19 Mar 2013 06:29:34 +0000]
ARM: tegra: pluto: fixing flash EDP states

Flash driver is setting its E0 state incorrectly too high - fixing this.

Bug 1252180

Change-Id: Ibd5fbba7349d13c32b7f71f66084ec27ede9cc57
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/211228
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoEDP: add E0 sum to manager/status debug attrib
Sivaram Nair [Mon, 18 Mar 2013 17:06:30 +0000]
EDP: add E0 sum to manager/status debug attrib

The sum of E0 from all clients is added to the <manager>/status
debug attribute.

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

6 years agoarm: tegra: board support for sensors
Erik Lilliebjerg [Wed, 20 Mar 2013 07:29:32 +0000]
arm: tegra: board support for sensors

Added support for BMP180 pressure sensor and auto-detection of AKM89XX compass.

Change-Id: I3e45250e7b4e2887d79bd62a402ddcdc0d057b92
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/211081
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: dvfs: Add CL-DVFS calibration delay to debugfs
Alex Frid [Wed, 20 Mar 2013 06:12:33 +0000]
ARM: tegra: dvfs: Add CL-DVFS calibration delay to debugfs

Change-Id: I423659742523c5a641c656352b9a9e75e3f20c51
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/211054
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agoARM: tegra: t114: increase camera i2c speed
Charlie Huang [Mon, 25 Feb 2013 20:42:11 +0000]
ARM: tegra: t114: increase camera i2c speed

to 400K on camera i2c bus on these platforms:
dalmore
pluto
macallan

bug 1234944

Change-Id: I6ac5369d03e5f7a8ac95ecdc7bfea33ef9c16f95
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/203928
(cherry picked from commit b57815f06d7c28b8621bc58e0f9a8a03e634e49c)
Reviewed-on: http://git-master/r/210988
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: dvfs: Calibrate DFLL rate with temperature
Alex Frid [Sun, 17 Mar 2013 00:46:06 +0000]
ARM: tegra: dvfs: Calibrate DFLL rate with temperature

Expanded calibration of DVCO minimum rate for DFLL operations in all
temperature ranges. So far, calibration was supported only in the top
temperature range, with no (zero) thermal voltage floor. This commit
added setting and calibration of DVCO minimum rate for all thermal
floors.

Change-Id: I77d4bbf6aadea9f99bcfd27c86115ed3fb03c0c0
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/210982
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>

6 years agoarm: tegra: configs: Add BMP180 module
Erik Lilliebjerg [Tue, 19 Mar 2013 16:51:00 +0000]
arm: tegra: configs: Add BMP180 module

Add BMP180 pressure sensor driver as module.

Bug 1253718
Bug 1242566

Change-Id: Ia2de59ccbe833b9f444fb56234954729edf7b5a3
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/210854
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoinput: misc: sensor drivers
Erik Lilliebjerg [Tue, 19 Mar 2013 04:41:13 +0000]
input: misc: sensor drivers

Sensor drivers for MPU, compass, and pressure.
New features include:
- Improved power management
- Completely powers off when not in use.
- Individual axis power control.
- Auto low power accelerometer.
- HW motion detection that gets an IRQ only when orientation changes.
- Improved performance
- Auto detect POR readiness.
- Auto detect reset/error completion.
- HW access only when needed.
- Streamlined execution path.
- Separate reset control.
- Runtime changes only affect the device being changed (removed carpet
          bombing global resets and disable/enables).
- Separate sample rate for each device.  A device not enabled doesn't inhibit
  a faster rate for an enabled device.
- Multiple MPU slave devices.
- Auto detection of MPU slave devices and allowing an external driver for a
  slave device to use or not use the MPU.
- External bypass mode.  Any external driver can control and lock the MPU
  I2C master bypass mode.
- Improved FIFO control.  Support for all devices to use the FIFO.
- Separate reporting rate for each device.
- Improved timestamping by taking a timestamp before and after the sample and
  using the average.
- Allows generic class driver for slave devices.  All drivers conform to a
  standard API.
- Automatically handle configuration steps to enable a device and make run-time
  changes.
- Improved debug support and added a debug API.
- Add BMP180 pressure driver.
- Added compass high speed feature where compass doesn't prevent the MPU
  devices from going faster than 100Hz.  Needed for camera.
- Added support for 8kHz Gyro and 1kHz accelerometer.  Needed for camera.
- Added support to populate Android sensor_t structure from kernel data.

Bug 1212893
Bug 1161345
Bug 930909
Bug 1224709
Bug 1058689
Bug 1030747
Bug 980723

Change-Id: Ic0a38f015691cfaca1bc3e72422d5980eddc1265
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/210592
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra11: Add voltage capping trip points
Amit Kamath [Mon, 11 Mar 2013 09:58:56 +0000]
ARM: tegra11: Add voltage capping trip points

Trip points to detect thermal state changes over a range of
temperatures added by calling board independent function.

bug 1042409

Change-Id: Ifb139ae676f07c74a6dae5599fe7232ed601ebe2
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/208015
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoarm: tegra: add voltage capping thermals
Amit Kamath [Mon, 11 Mar 2013 09:52:56 +0000]
arm: tegra: add voltage capping thermals

Voltage capping needs to use soc therm sensors to accurately measure
temperatures. This change adds voltage capping related trip points
before registering to the soc_therm driver.

bug 1042409

Change-Id: I9bebaa39f88f0142c3b8ba7e07a70d86fdbc675e
Signed-off-by: Amit Kamath <akamath@nvidia.com>
Reviewed-on: http://git-master/r/208014
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoRevert "Revert "ARM: tegra: pluto: reduce power on VDDIO_GMI_AP""
Mrutyunjay Sawant [Fri, 22 Mar 2013 04:54:25 +0000]
Revert "Revert "ARM: tegra: pluto: reduce power on VDDIO_GMI_AP""

This reverts commit c8e3387bb9f890a3af26da53b1b35b89670782b8.

Change-Id: I98c506d091335bf54eef24cb0f30f30070f9141a
Reviewed-on: http://git-master/r/211952
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoRevert "ARM: tegra: pluto: set sleep-time pinmux settings for VDDIO_GMI_AP"
Mrutyunjay Sawant [Fri, 22 Mar 2013 04:51:02 +0000]
Revert "ARM: tegra: pluto: set sleep-time pinmux settings for VDDIO_GMI_AP"

This reverts commit d5de0a592a36bd04235901f6983ee40ae8eb2df8.

Change-Id: I740349f9228e9f0821394373e2e22b04b2d6f9a8
Reviewed-on: http://git-master/r/211950
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoARM: tegra: pluto: set sleep-time pinmux settings for VDDIO_GMI_AP
Eric Miao [Fri, 15 Mar 2013 08:11:17 +0000]
ARM: tegra: pluto: set sleep-time pinmux settings for VDDIO_GMI_AP

Bug 1247754

Change-Id: I00aa66efe43ae0cd51fab1750b875c0a9831e417
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/209911
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoRevert "ARM: tegra: pluto: reduce power on VDDIO_GMI_AP"
Eric Miao [Fri, 15 Mar 2013 08:04:37 +0000]
Revert "ARM: tegra: pluto: reduce power on VDDIO_GMI_AP"

To save power on rail VDDIO_GMI_AP, the pinmux settings for the
relevant pins have been modified, yet this makes touch unstable.
Revert this patch firstly, and we will add support for sleep-time
pinmux settings.

Bug 1247754

This reverts commit ccaffae0763f6575421b91ab4c20d4344d48a53b.

Change-Id: I898e7831d337e82ab506e0e44754eacc7416b003
Signed-off-by: Eric Miao <emiao@nvidia.com>
Reviewed-on: http://git-master/r/209920
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agommc: tegra: Forcing feed back clock as default
Naveen Kumar Arepalli [Mon, 11 Mar 2013 06:26:26 +0000]
mmc: tegra: Forcing feed back clock as default

Explicitly Enable FEEDBACK INPUT_IO_CLk for sdmmc

Bug 1239457
Bug 1252268

Change-Id: Ib8de546b6630c7a12c31a90fd9a2465ea604c564
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/202921
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>

6 years agousb: udc: tegra: skip vbus status checkup.
Harry Hong [Mon, 18 Mar 2013 01:43:58 +0000]
usb: udc: tegra: skip vbus status checkup.

Skipping vbus status if pmu vbus detection
is used.

bug 1254946

Change-Id: I01f54bd127cd4d7d021816899c1ecd29b139701d
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/210260
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

6 years agoconfig: tegra11: add EDP kconfig option
Matt Pedro [Mon, 28 Jan 2013 17:05:32 +0000]
config: tegra11: add EDP kconfig option

Add the 'CONFIG_TEGRA_EDP_LIMITS' kconfig option to the
tegra11_defconfig file.

bug 1198562

Change-Id: I68bed35bd6c19c5138c4c8230396f59731a53ab2
Signed-off-by: Matt Pedro <mapedro@nvidia.com>
Reviewed-on: http://git-master/r/194739
(cherry picked from commit fed8883c7e9a3137857e7800f5fe3bbe11357dd3)
Reviewed-on: http://git-master/r/211278
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

6 years agoARM: tegra: macallan: update extcon dev name for otg
Yunfan Zhang [Wed, 20 Mar 2013 03:11:01 +0000]
ARM: tegra: macallan: update extcon dev name for otg

Bug 1256594

Change-Id: Ic6a50ca10b6c5d00b309946ebe6f5d92134fae24
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/211020
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>

6 years agoextcon: palmas: use pdev->name for extcon name
Yunfan Zhang [Wed, 20 Mar 2013 03:05:03 +0000]
extcon: palmas: use pdev->name for extcon name

Using pdev->name for extcon name instead of dev_name(&pdev->dev) to get
a constant name same as mfd sub-device name registered, Or the name will
vary w/ the device id(such as "extcon-palmas.xxx", where xxx is the id).

Bug 1256594

Change-Id: I3597aa5aa7aca7bb6a431238ca3ddf52d3ddbc8c
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/211019
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Hayden Du <haydend@nvidia.com>

6 years agoarm: tegra: macallan: set initial mode of some smps to NORMAL
Kerwin Wan [Mon, 18 Mar 2013 08:54:00 +0000]
arm: tegra: macallan: set initial mode of some smps to NORMAL

Set the initial mode smps6, smps7, smps8, smps9 to NORMAL
to reduce the power consumption on these rails.

Bug 1255098

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

6 years agoARM: config: tegra11: enable PALMAS-WATCDOG timer
Laxman Dewangan [Sun, 24 Feb 2013 17:24:14 +0000]
ARM: config: tegra11: enable PALMAS-WATCDOG timer

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

6 years agoARM: tegra: dalmore: add support for rotation lock key
Laxman Dewangan [Tue, 19 Mar 2013 13:41:55 +0000]
ARM: tegra: dalmore: add support for rotation lock key

Post event as EV_SW and SW_ROTATE_LOCK when it is slide.

bug  1157355

Change-Id: I02f9eb65d4bd5731026020bf1d0ff2c067255693
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/210814
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>

6 years agousb: xhci: tegra: let roothub devices as wakeup capable
Ajay Gupta [Thu, 14 Mar 2013 23:20:06 +0000]
usb: xhci: tegra: let roothub devices as wakeup capable

This is needed so that wakeup flag is enabled for both usb2 abd
usb3 host controller.

Bug 1248027

Change-Id: Ia63c18d14fd6f443f3c18ecf7bb4872927de2e22
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/210427
Reviewed-by: Bharath Yadav <byadav@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

6 years agoARM: tegra11: clock: Allow EMC backup if scaling disabled
Alex Frid [Fri, 15 Mar 2013 01:47:18 +0000]
ARM: tegra11: clock: Allow EMC backup if scaling disabled

Re-arranged EMC backup procedure so that backup is allowed even if
EMC scaling is disabled. This is necessary to re-lock main EMC pll
at maximum rate. Without backup, EMC may stuck at rates lower than
maximum while scaling is disabled.

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

6 years agoARM: tegra: macallan: Pass nominal core voltage
Kerwin Wan [Thu, 14 Mar 2013 02:34:52 +0000]
ARM: tegra: macallan: Pass nominal core voltage

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

Bug 1167519
Bug 1225343

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

6 years agoarm: tegra: macallan: using soc_them as cooling devices for DVFS.
Hayden Du [Tue, 19 Mar 2013 02:09:32 +0000]
arm: tegra: macallan: using soc_them as cooling devices for DVFS.

As macallan don't have ext NCT installed, need using onchip therm as
cooling devices for DVFS.

bug 1254951

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

6 years agoarm: tegra: soctherm: reduce soctherm clock speed to save power
Diwakar Tundlam [Fri, 15 Mar 2013 17:47:11 +0000]
arm: tegra: soctherm: reduce soctherm clock speed to save power

Reduce soctherm clock from 136MHz to 51MHz to save power

Bug 1197568

Change-Id: I3d409a97068e9f14de7b8d1d5b83ecdb91e0bcff
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/210448
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: soctherm: soctherm suspended till nct temp target reached
Diwakar Tundlam [Mon, 18 Mar 2013 08:40:11 +0000]
arm: tegra: soctherm: soctherm suspended till nct temp target reached

Implemented a cooling device tied to a trip point using the nct_ext zone
which brings soctherm out of suspend at higher temperatures. Until then,
socherm remains suspended saving power.

Bug 1197568

Change-Id: Ic4053c1a7e07a34adc8d6c413984f7e37d412df3
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/210347
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agousb: otg: tegra:support for id detection using gpio
Rakesh Bodla [Sun, 17 Mar 2013 08:16:23 +0000]
usb: otg: tegra:support for id detection using gpio

Adding the support for id detection using GPIO.

Bug 1227226

Change-Id: I6ad790b87b41fe6f567fff84f425997a1f4a09a8
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/210239
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra11: clock: Remove PLLC2/C3 from Host1x Mux
Alex Frid [Sun, 17 Mar 2013 04:04:50 +0000]
ARM: tegra11: clock: Remove PLLC2/C3 from Host1x Mux

Since on Tegra11 Host1x is no longer belong to cbus, removed PLLC2/C3
inputs from Host1x clock source multiplexer definition.

Change-Id: Ib0656c922f8a938d71a81f328b01c76a368164c2
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/210235
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomfd: palmas: remove unused platform data
Laxman Dewangan [Fri, 15 Mar 2013 11:36:37 +0000]
mfd: palmas: remove unused platform data

The pad configuration platform data pad1, pad2, pad3 is no more used
in driver and hence removing this.

bug 1242260

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

6 years agoARM: tegra114: remove palmas pad configuration from platform data
Laxman Dewangan [Fri, 15 Mar 2013 11:33:48 +0000]
ARM: tegra114: remove palmas pad configuration from platform data

Palmas pad configuration can be done from the palma pincontrol driver
and hence it is not require to explicitly set the pad setting.

Remove this duplicate configuration.

bug 1242260

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

6 years agomfd: palmas: register pincontrol driver submfd device
Laxman Dewangan [Fri, 15 Mar 2013 11:25:01 +0000]
mfd: palmas: register pincontrol driver submfd device

Enable pincontrol driver as submfd devices.

bug 1242260

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

6 years agoARM: config: tegra11: enable PINCNTRL_PALMAS
Laxman Dewangan [Fri, 15 Mar 2013 11:22:02 +0000]
ARM: config: tegra11: enable PINCNTRL_PALMAS

Enable pincontrol driver for palmas to enable configuration
of pads.

bug 1242260

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

6 years agoARM: tegra11: use palmas pincontrol for pad configuration
Laxman Dewangan [Fri, 15 Mar 2013 11:18:46 +0000]
ARM: tegra11: use palmas pincontrol for pad configuration

Use palmas pinccontrol for pad control on Tegra114 platform i.e.
Dalmore/Pluto/Macallan/thor.

bug 1242260

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

6 years agopinctrl: palmas: add pincontrol driver support
Laxman Dewangan [Fri, 15 Mar 2013 13:41:06 +0000]
pinctrl: palmas: add pincontrol driver support

Palmas series PMIC has the pins which can work on multiple mode.
Also the pull up/down, open drain can be configured on this pins.

Add pin control driver to configure the different pads.

bug 1242260

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

6 years agoARM: tegra: update board with id detection type
Rakesh Bodla [Fri, 15 Mar 2013 10:37:47 +0000]
ARM: tegra: update board with id detection type

Update the id detection type for different
platforms.

Bug 1227226

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

6 years agoARM: tegra: macallan: enable vbus power off on suspend
Yunfan Zhang [Thu, 14 Mar 2013 04:01:16 +0000]
ARM: tegra: macallan: enable vbus power off on suspend

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

6 years agoregulator: bq2419x: add power off on suspend support
Yunfan Zhang [Thu, 14 Mar 2013 03:55:37 +0000]
regulator: bq2419x: add power off on suspend support

Add flag power_off_on_suspend to support shutdown output
unconditionally when suspend.

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

6 years agoARM: tegra11: pluto: add more E-states to core
Sivaram Nair [Tue, 12 Mar 2013 18:18:58 +0000]
ARM: tegra11: pluto: add more E-states to core

For pluto, the sum of all E0s is ~23W. Since our default battery cap is
at 20W, this is preventing some of the EDP clients from registering to
the framework (which is obliged to guarantee that it can meet E0s from
all clients at any given time). This patch adds more E-states and lowers
the E0 of the core client in order to resolve the above conflict.

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

6 years agousb: otg: tegra: support for id detection using pmu
Rakesh Bodla [Sun, 17 Mar 2013 12:13:37 +0000]
usb: otg: tegra: support for id detection using pmu

Adding the support for id detection using
PMU ID interrupt.

Bug 1227226

Change-Id: Ie53ece815d6512cca14d5d9d50831630af548ec0
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/208406
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: phy: Power off USB AO pads
Rakesh Bodla [Tue, 12 Mar 2013 12:04:06 +0000]
ARM: tegra: phy: Power off USB AO pads

Disable USB AO pads if gpio/pmu based id
detection is supported.

Bug 1227226

Change-Id: Idede651f9396a20f21009329c53a58e84b65d818
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/208405
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: tegra: add different id detection types
Rakesh Bodla [Tue, 12 Mar 2013 11:59:43 +0000]
usb: tegra: add different id detection types

Add different ID detection methods. Now id cable
can be detected through controller id, pmu id, gpio
or virtual id.

Bug 1227226

Change-Id: I9a3fc5e1fa2f34e0d7973a36f0302cdae64c3ce2
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/208404
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: change hs_slew to 0xE
Ajay Gupta [Sat, 16 Mar 2013 00:15:10 +0000]
ARM: tegra: change hs_slew to 0xE

This is needed as per hardware team's recommendation

Bug 1254391

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

6 years agovideo: tegra: dc: fix the logic for dis ref-count.
Kevin Huang [Thu, 14 Mar 2013 05:25:37 +0000]
video: tegra: dc: fix the logic for dis ref-count.

Use simple logic to meet the requirement of use cases.
All logic is implemented in powergate module. Dependency
of dis partitions are transparent to client.

Change-Id: I3ad900c80a1b12e8397643c078d1269ae9f3dac1
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/210088
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>