6 years agoARM: config: tegra11: enable EXTCON_PALMAS
Laxman Dewangan [Sun, 24 Feb 2013 15:37:40 +0000]
ARM: config: tegra11: enable EXTCON_PALMAS

bug 1229629

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

6 years agoarm: tegra: calibrate cmu for sharp 25x16 panel
Mitch Luban [Fri, 21 Dec 2012 03:48:40 +0000]
arm: tegra: calibrate cmu for sharp 25x16 panel

Calibrate color management unit for sharp 25x16 panel.

Bug 1040841

Reviewed-on: http://git-master/r/173315
(cherry picked from commit baa03a3fe74e3c85b3dc601e9f6aa25cfaaa923e)

Change-Id: I5473a4c5f8b248f0befb4d600bb806c719e707ce
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/197595
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agomedia: tegra: add ov5693 with ad5823 focuser
Lihui Cui [Fri, 18 Jan 2013 01:12:53 +0000]
media: tegra: add ov5693 with ad5823 focuser

bug 1218661

Change-Id: Id6c8d697c8a9fa8f0d4414802ad866783c00d695
Signed-off-by: Lihui Cui <lcui@nvidia.com>
Reviewed-on: http://git-master/r/192227
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoARM: Tegra: Macallan: Add Wakeup callback for gpio-keys
Kerwin Wan [Wed, 6 Mar 2013 10:09:39 +0000]
ARM: Tegra: Macallan: Add Wakeup callback for gpio-keys

Add callback to determine GPIO that woke system

Bug 1245323

Change-Id: I46e7c644513cbbcde860ec9e76ce5e6b90107bc7
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/206642
(cherry picked from commit 7b4c5030a158ffdbe1cfad04daed776d0aab934e)
Reviewed-on: http://git-master/r/208036
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: host: Merge job allocs
Terje Bergstrom [Wed, 27 Feb 2013 07:09:35 +0000]
video: tegra: host: Merge job allocs

In nvhost_job, we allocate the job structure via vzalloc, and pin_ids
via kmalloc. Merge the latter to the former so that we do only one
allocation.

As memory ids received from user space are u32, change the types of
functions to match. Also call the validating version of
nvmap_duplicate_handle_id().

Bug 1231756

Change-Id: Ic47a595a1411f97e9a097728a4b3475564bdf557
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/204463
(cherry picked from commit 51f84a7423c9820b4192d8450eaa996aa8b5fd25)
Reviewed-on: http://git-master/r/207041
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agodrivers: make tegra-throughput driver always post fps
Simo Melenius [Tue, 19 Feb 2013 09:28:50 +0000]
drivers: make tegra-throughput driver always post fps

- number of active clients only controls delivering throughput hints
- unified scaling needs fps rate regardless

Bug 1161410
Bug 1171636

Change-Id: I63b4fc2e93eac00d2702f154f6b2d73b7941af86
Signed-off-by: Simo Melenius <smelenius@nvidia.com>
Reviewed-on: http://git-master/r/#change,201996
Reviewed-on: http://git-master/r/206448
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agommc: support packed write command for eMMC4.5 devices
Seungwon Jeon [Wed, 6 Feb 2013 08:02:46 +0000]
mmc: support packed write command for eMMC4.5 devices

This patch supports packed write command of eMMC4.5 devices.  Several
writes can be grouped in packed command and all data of the individual
commands can be sent in a single transfer on the bus. Large amounts of
data in one transfer rather than several data of small size are
effective for eMMC write internally.  As a result, packed command help
write throughput be improved.  The following tables show the results
of packed write.

Type A:
test     none |  packed
iozone   25.8 |  31
tiotest  27.6 |  31.2
lmdd     31.2 |  35.4

Type B:
test     none |  packed
iozone   44.1 |  51.1
tiotest  47.9 |  52.5
lmdd     51.6 |  59.2

Type C:
test     none |  packed
iozone   19.5 |  32
tiotest  19.9 |  34.5
lmdd     22.8 |  40.7

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit ce39f9d17c14e56ea6772aa84393e6e0cc8499c4)

Bug 1242730

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

6 years agommc: add packed command feature of eMMC4.5
Seungwon Jeon [Wed, 6 Feb 2013 08:01:43 +0000]
mmc: add packed command feature of eMMC4.5

This patch adds packed command feature of eMMC4.5.  The maximum number
for packing read (or write) is offered and exception event relevant to
packed command which is used for error handling is enabled. If host
wants to use this feature, MMC_CAP2_PACKED_CMD should be set.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit abd9ac144947d9a604beb763339e2f77ce8bec79)

Bug 1242730

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

6 years agoARM: tegra: Simplify sched_clock read function
Bo Yan [Mon, 4 Mar 2013 23:49:58 +0000]
ARM: tegra: Simplify sched_clock read function

ARM common code now supports suspend of sched_clock, the
corresponding implementation in timer.c can be simplified.

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

6 years agoi2c: tegra: Use ALL_PACKETS_XFER_COMPLETE interrupt
Chaitanya Bandi [Wed, 27 Feb 2013 09:43:35 +0000]
i2c: tegra: Use ALL_PACKETS_XFER_COMPLETE interrupt

The issue is that some clock stretching is observed
in case of coupled Write-Read transaction after the write
transaction because we wait for PACKET_XFER_COMPLETE.
Using ALL_PACKETS_XFER_COMPLETE will prevent that clock
stretching. In case of non-coupled transactions,
PACKET_XFER_COMPLETE is used.

Bug 1234504

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

6 years agovideo: tegra: host: add 3dfs user space control
Ilan Aelion [Tue, 23 Oct 2012 18:43:53 +0000]
video: tegra: host: add 3dfs user space control

Additional sysfs nodes user and freq_request may be used to control
gpu frequency. If user is set to non-zero, the value of freq_request
is used for setting the gpu frequency. freq_request is initialized to
the max gpu frequency.

Bug 1161410

Change-Id: I4065397450fd8774fbe7715145ab481698d41929
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/#change,165100
(cherry picked from commit 3668de9c7b71634a8f2afdada1b8c381c07a9bc4)
Reviewed-on: http://git-master/r/199922
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agovideo: tegra: dc: new T11x bandwidth calculation
Jon Mayo [Sat, 9 Mar 2013 02:29:47 +0000]
video: tegra: dc: new T11x bandwidth calculation

Use 35% iso margin for display.
Do not add 2X to the bandwidth for tiled surfaces on T11x.

Bug 1231863
Bug 1246180
Bug 1226015

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

6 years agoARM: tegra: pluto: enable MAXFLASH
Charlie Huang [Tue, 26 Feb 2013 21:36:59 +0000]
ARM: tegra: pluto: enable MAXFLASH

Program MAXFLASH_TH: The voltage of VDD_SYS that will trigger a MAXFLASH
system lock up prevention control sequence. Set this to 3.4V, the most
conservative setting. This value may perhaps be lowered once the behavior
of the MAXFLASH system is characterized.

Program LB_TMR_F: This is a timer that will trigger a re-evaluation of the
MAX-FLASH conditions after the FLASH current has been reduced. Set this to
256usecs.
Program LB_TMR_R: This is a timer that will trigger a re-evaluation of the
MAX-FLASH conditions after the FLASH current has been reduced. Set this to
256usecs.

Program MAXFLASH_HYS: set this to 200mV

Program the MAXFLASH_EN: Enable the system once it is programmed correctly.

bug 1239750

Change-Id: I437692069c15f962ca3e98ce564bf04e36f7c538
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/207662
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Greg Ward <grward@nvidia.com>
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoxusb: Use pmc and pad ctrl apis
Krishna Yarlagadda [Thu, 28 Feb 2013 05:11:31 +0000]
xusb: Use pmc and pad ctrl apis

Changes to use common pmc and pad ctrl apis provided
to avoid code ovelap and conflicts between
USB2.0 and USB3.0

Bug 1225060

Reviewed-on: http://git-master/r/205106
(cherry picked from commit 1d89a9adb7c87811fb29a9d5b1ba06f79e36ee48)

Change-Id: Iea5f2503159ff51f8cdef0fbca78565de452e157
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/207538
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoARM: tegra: phy:Disable PMC when driver unregister
Rakesh Bodla [Tue, 5 Mar 2013 15:27:51 +0000]
ARM: tegra: phy:Disable PMC when driver unregister

PMC should be disabled while unregistering
the driver.

Bug 1246325

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

6 years agoARM: tegra11: Improve accuracy of persistent clock
Bo Yan [Thu, 28 Feb 2013 07:23:21 +0000]
ARM: tegra11: Improve accuracy of persistent clock

The 56b mask passed into clocks_calc_mult_shift makes sure there
is no 64b overflow in cycles to time units conversion. However,
we pay the cost of accuracy. With 12M clock in nano-second
conversion, the mult is 333, the shift is 2, so we loss 1s for
every 1000s.

Fix the arithmatic to improve accuracy. Now we will run overflow
risk when the number of cycles is huge and clock frequency is low.
With 56b width of clock source, if multiplier is set to the maximum
"0xFFFFFFFF", overflow will happen if clock rate is below 3.9Mhz.
This risk can be ingored since it implies a long time period of
more than 500 years. Higher clock rate only makes this risk lower.

Change-Id: If449d866372d33e878c2c17e024e514c95030c72
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/205600
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoArm: tegra: pmc: fix regression issues
Krishna Yarlagadda [Thu, 7 Feb 2013 14:45:52 +0000]
Arm: tegra: pmc: fix regression issues

Fixed regression created by pmc separation by
adding recent pending changes

Bug 1232698

Change-Id: I061009453c650555784ec075b59c72b85004bf7d
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/198423
(cherry picked from commit f98e711b5054903e2874321d7e8b10de8dec483a)
Reviewed-on: http://git-master/r/205533
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

6 years agoArm: tegra: Separating access to USB pad controls
Krishna Yarlagadda [Thu, 31 Jan 2013 10:44:21 +0000]
Arm: tegra: Separating access to USB pad controls

Pad control programming has been taken out from USB2.0 code
and added as seperate module so that USB3.0 code can access them

Change-Id: I2a6169fc6aeb3e3973746ecba2c3183daab6ea1b
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/195468
(cherry picked from commit a7ee33871e23e9e9861680b024f7a6bf5bf92134)
Reviewed-on: http://git-master/r/205532
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarm: tegra: Separating out pmc from usb phy.
Krishna Yarlagadda [Mon, 28 Jan 2013 06:02:40 +0000]
arm: tegra: Separating out pmc from usb phy.

Taking out PMC from Tegra11x USB phy driver.
This would facilitate in having common PMC interface between XUSB and USB.

Change-Id: If2c4bdbd22f72f35fe94ffb120f3dc9acea14d22
Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/171290
(cherry picked from commit f0446b0c11efa128ac82934ea638646e5c974bf1)
Reviewed-on: http://git-master/r/205531
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: Support i500 Nemo in MDM2
Steve Lin [Wed, 27 Feb 2013 17:44:32 +0000]
ARM: tegra: Support i500 Nemo in MDM2

Support i500 Nemo in the MDM2 slot on pluto.

Bug 1249542

Change-Id: I14993814e0a4477df78b36b934eef9c6235fdc12
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/204711
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoarch: arm: tegra: update t11x mux function table
Andy Park [Tue, 26 Feb 2013 00:56:40 +0000]
arch: arm: tegra: update t11x mux function table

Update t11x pinmux function table according to t11x design

Bug 1232862

Change-Id: I530ecb3b5e2b0c8613451644ba116cfccd405e60
Signed-off-by: Andy Park <andyp@nvidia.com>
Reviewed-on: http://git-master/r/204009
Tested-by: Hayden Du <haydend@nvidia.com>
Reviewed-by: Ashwini Ghuge <aghuge@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarch: arm: tegra11: enable autosleep
Shridhar Rasal [Mon, 25 Feb 2013 05:03:53 +0000]
arch: arm: tegra11: enable autosleep

bug 1045715

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

6 years agoARM: tegra: pluto: Use battery rail for vdd_vbrtr regulator
Chaitanya Bandi [Thu, 7 Mar 2013 14:10:54 +0000]
ARM: tegra: pluto: Use battery rail for vdd_vbrtr regulator

vdd_vbrtr is from the always_on smps10_out2 rail.
Moving vdd_vbrtr to battery rail.

Bug 1239331

Change-Id: I093ba098574350aa98e3f685e8c686dbc7bb980c
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/207163
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agomedia: tegra: max77665-flash: flash not turned on
Charlie Huang [Fri, 8 Feb 2013 01:36:56 +0000]
media: tegra: max77665-flash: flash not turned on

The default mode of register CHG_CNFG_00 is 0x04 which will disable
the flash function.

Update the default mode to 0x0C.

bug 1242531

Change-Id: Icb8952817c8078e702b6764f5e398458f0078850
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/198594
(cherry picked from commit cb0d4c861d276e4c26b0d0efe038372f5cb6546b)
Reviewed-on: http://git-master/r/206879
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoThermal: pid_thermal_gov: Fix wrong comparison when temp is negative
Jinyoung Park [Wed, 27 Feb 2013 06:05:03 +0000]
Thermal: pid_thermal_gov: Fix wrong comparison when temp is negative

Corrected variable type of trip_temp from unsigned long to signed long,
to prevent a wrong comparison issue when the temperature is below zero.
And changed order of temp and trip_temp comparison to reduce unnecessary
target calculation.

Bug 1233407

Change-Id: I95cdd67c08239c45115c66d9cfc93c68b59fd529
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/204935
(cherry picked from commit 8e1d798187c653c0802e9462fc3ed8d6d59b4c77)
Reviewed-on: http://git-master/r/206811
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoPM / Runtime: Do not increment device usage counts before probing
Rafael J. Wysocki [Thu, 12 Jul 2012 09:51:48 +0000]
PM / Runtime: Do not increment device usage counts before probing

The pm_runtime_get_noresume() calls before really_probe() and
before executing __device_attach() for each driver on the
device's bus cause problems to happen if probing fails and if the
driver has enabled runtime PM for the device in its .probe()
callback.  Namely, in that case, if the device has been resumed
by the driver after enabling its runtime PM and if it turns out that
.probe() should return an error, the driver is supposed to suspend
the device and disable its runtime PM before exiting .probe().
However, because the device's runtime PM usage counter was
incremented by the core before calling .probe(), the driver's attempt
to suspend the device will not succeed and the device will remain in
the full-power state after the failing .probe() has returned.

To fix this issue, remove the pm_runtime_get_noresume() calls from
driver_probe_device() and from device_attach() and replace the
corresponding pm_runtime_put_sync() calls with pm_runtime_idle()
to preserve the existing behavior (which is to check if the device
is idle and to suspend it eventually in that case after probing).

Reported-and-tested-by: Kevin Hilman <khilman@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Eric Miao <emiao@nvidia.com>
Change-Id: Idde55471031f4d99275b11fa05ae9de6950a68ae
Reviewed-on: http://git-master/r/206657
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: power: Restrict entry to Fmin@Vmin
Alex Frid [Wed, 6 Mar 2013 01:22:08 +0000]
ARM: tegra11: power: Restrict entry to Fmin@Vmin

Don't use Fmin@Vmin idle state while VDD_CPU rail is updating.

Change-Id: I34443fd48668db68343a74acff1c9c514e8269cc
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/206482
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra: dvfs: Fix CL-DVFS scale calculation
Alex Frid [Wed, 6 Mar 2013 00:54:25 +0000]
ARM: tegra: dvfs: Fix CL-DVFS scale calculation

Change-Id: I8e17fdf1e9d197d56d49963a526c0fe474b14a45
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/206481
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agopower: max17042: use room temperature value
Sivaram Nair [Tue, 5 Mar 2013 18:57:59 +0000]
power: max17042: use room temperature value

The battery temperature reading is not working as expected. So use the
room temperature value for now.

Bug 1246715

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

6 years agoARM: tegra114: Roth: Increase cpu_timer
Bo Yan [Tue, 5 Mar 2013 01:03:58 +0000]
ARM: tegra114: Roth: Increase cpu_timer

Thor and Dalmore use the same PMIC, so CPUPWRGOOD_TIMER should also
be the same

bug 1243411

Change-Id: Id4a20d2a5b1ff25e35add1574aba371a49bc9e6e
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/206131
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: Tegra: Dalmore: Add wakeup callback
Graziano Misuraca [Thu, 7 Mar 2013 18:41:47 +0000]
ARM: Tegra: Dalmore: Add wakeup callback

Add dalmore_wakeup_key callback to send
proper event on wake.

Bug 1216920

Change-Id: I40a8a3abb5d5f239f86fffb9ec5e3c6e3c147732
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/206094
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoinput: gpio_keys: send event for wakeup key
Matt Wagner [Mon, 4 Mar 2013 22:55:58 +0000]
input: gpio_keys: send event for wakeup key

Send event for the key that wakes up the system on resume

Add wakeup callback for system to determine which GPIO woke it

Bug 1245323

Change-Id: Id803eb34228bd9707e86f23cdafce21c585fb4c2
Signed-off-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-on: http://git-master/r/206100
(cherry picked from commit 235f71a4d2c86eade9c374777bbd487a9fba6936)
Reviewed-on: http://git-master/r/206093
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: defconfig: Log suspend time, remove ARM errata
Bo Yan [Mon, 4 Mar 2013 23:32:46 +0000]
ARM: tegra11: defconfig: Log suspend time, remove ARM errata

The ARM errata defined so far don't apply to Cortex-A15.

Also enable support for suspend time logging.

Change-Id: I6e79c309c8ebdb0de82580f1c2d70968dbfd62a5
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/206082
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

6 years agoARM: 7565/1: sched: stop sched_clock() during suspend
Felipe Balbi 2 [Tue, 23 Oct 2012 18:00:03 +0000]
ARM: 7565/1: sched: stop sched_clock() during suspend

The scheduler imposes a requirement to sched_clock()
which is to stop the clock during suspend, if we don't
do that any RT thread will be rescheduled in the future
which might cause any sort of problems.

This became an issue on OMAP when we converted omap-i2c.c
to use threaded IRQs, it turned out that depending on how
much time we spent on suspend, the I2C IRQ thread would
end up being rescheduled so far in the future that I2C
transfers would timeout and, because omap_hsmmc depends
on an I2C-connected device to detect if an MMC card is
inserted in the slot, our rootfs would just vanish.

arch/arm/kernel/sched_clock.c already had an optional
implementation (sched_clock_needs_suspend()) which would
handle scheduler's requirement properly, what this patch
does is simply to make that implementation non-optional.

Note that this has the side-effect that printk timings
won't reflect the actual time spent on suspend so other
methods to measure that will have to be used.

This has been tested with beagleboard XM (OMAP3630) and
pandaboard rev A3 (OMAP4430). Suspend to RAM is now working
after this patch.

Thanks to Kevin Hilman for helping out with debugging.

Acked-by: Kevin Hilman <khilman@ti.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
(cherry picked from commit 6a4dae5e138a32b45ca5218cc2b81802f9d378c3)
Change-Id: I7c8d1c69de3d6427e8ef632144501182981dcb7e
Reviewed-on: http://git-master/r/206073
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: clock: Preset EMC monitor rate
Alex Frid [Sun, 3 Mar 2013 03:37:42 +0000]
ARM: tegra11: clock: Preset EMC monitor rate

Use EMC boot rate as EMC monitor output reading during initialization
until actual monitoring starts.

Bug 1239168

Change-Id: I85376d06292412fb89570fd09fa4c1f4e506fb4e
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/205781
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>

6 years agoRevert "ARM: tegra11: clock: Change initial parent for XUSB clocks"
Alex Frid [Sat, 2 Mar 2013 05:50:43 +0000]
Revert "ARM: tegra11: clock: Change initial parent for XUSB clocks"

This reverts commit c4dfb9c33b26490230025faee3c5f3133bd36473.

Since common XUSB gate is now always enabled, XUSB clock parents
selection can be changed from default settings without interference
with h/w sequencers.

Bug 1227562

Change-Id: I6b5076794ec396cd6980b322211634a9d3557e90
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/205749
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>

6 years agoARM: tegra11: clock: Always enable common XUSB gate
Alex Frid [Sat, 2 Mar 2013 07:16:51 +0000]
ARM: tegra11: clock: Always enable common XUSB gate

Added separate common XUSB gate clock. It has to be always enabled,
so that h/w sequencers that automatically control XUSB operations can
properly work.

Bug 1227562

Change-Id: Iaa02b4c3d95b288eb3c47d00fd2054f96dc6dfe7
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/205748
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra114: Dalmore: Increase cpu_timer
Bo Yan [Sat, 2 Mar 2013 00:30:12 +0000]
ARM: tegra114: Dalmore: Increase cpu_timer

CPUPWRGOOD_TIMER for Dalmore board needs to be increased to 500us.

The scope shot shows 420us from assertion of CPU_PWR_REQ to the point
when VDD_CPU is fully ramped up and stable. Add 80us as safe margin.

bug 1243411

Change-Id: I7e01f6e697224ca5ca65b79ba34a46da647b4303
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/205706
Reviewed-by: Automatic_Commit_Validation_User

6 years agonvhdcp: return v_prime in get_nvhdcp_state ioctl.
Marvin Zhang [Fri, 1 Mar 2013 18:30:38 +0000]
nvhdcp: return v_prime in get_nvhdcp_state ioctl.

hdcp upstream library needs to get v_prime from kernel and pass
it to tsec to do v_prime verification.

Bug 1197884

Change-Id: I9a6783e115751426bcbb97feaba999812091aa90
Reviewed-on: http://git-master/r/205639
(cherry picked from commit 932c91861cb5f71a52cdc6a62cd22648c86653cc)
Signed-off-by: Marvin Zhang <mzhang@nvidia.com>
Reviewed-on: http://git-master/r/205632
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoARM: tegra: config: enable TEGRA_USB_MODEM_POWER support
Steve Lin [Fri, 1 Mar 2013 03:10:02 +0000]
ARM: tegra: config: enable TEGRA_USB_MODEM_POWER support

Update the kernel config due to the relocation of the USB modem
power driver.

Bug 1215877

Change-Id: Ib1bbbdfe68408c60adfc76409215edd975fbaa90
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/205363
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agomisc: tegra-baseband: move modem power driver to /driver/misc/tegra-baseband
Steve Lin [Fri, 1 Mar 2013 02:47:34 +0000]
misc: tegra-baseband: move modem power driver to /driver/misc/tegra-baseband

Bug 1215877

Change-Id: I3f9e4f3486ba10667fc8258a78a1f756fd922387
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/205358
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: dvfs: Re-named dvfs cooling devices
Alex Frid [Sun, 17 Feb 2013 07:44:12 +0000]
ARM: tegra11: dvfs: Re-named dvfs cooling devices

Change-Id: I6580f2fa952c623555c4f782774e3b279d597b3c
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201832
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoARM: tegra: dvfs: Update CPU thermal control in dfll mode
Alex Frid [Sun, 17 Feb 2013 06:22:34 +0000]
ARM: tegra: dvfs: Update CPU thermal control in dfll mode

During CPU cluster switch set CPU rail cold temperature limit in dfll
mode before switching to G CPU. Thus, the limit may be set only if
temperature is already low (before this commit the limit was set when
switching to LP CPU, and as such must be set unconditionally for the
worst case of cold temperature).

Made sure dfll and pll mode cooling devices have the same trip-points,
and dfll cooling device is enabled only when cold temperature voltage
limit is below DFLL minimum voltage.

Change-Id: Ia26b6caf3fbbd56f723661513474babad64b5d97
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201831
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agousb: otg: tegra: Avoid spurious interrupts
Rakesh Bodla [Fri, 8 Mar 2013 09:25:55 +0000]
usb: otg: tegra: Avoid spurious interrupts

Disable vbus interrupt if cable is detected through PMU.
This is to avoid spurious interrupts.

Bug 1242710

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

6 years agommc: block: Allow disabling 512B sector size emulation
Saugata Das [Thu, 17 May 2012 11:02:21 +0000]
mmc: block: Allow disabling 512B sector size emulation

This patch adds support for large sector size of 4KB by disabling
emulation.  This patch passes eMMC DATA_SECTOR_SIZE as the logical
block size during mmc_blk_alloc_req.

In order to use this patch for 4KB sector size, ensure that
USE_NATIVE_SECTOR is enabled, partition table is 4KB sector size
aligned and file system block and sector size are 4KB multiples.

Signed-off-by: Saugata Das <saugata.das@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit a5075eb94837edde6833fd5e0277fc2370cf8b39)

Bug 1242730

Change-Id: Ie99b9c44dcdd84238e1d518caeac0800e697d2ce
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/206931
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agommc: block: don't start new request when the card is removed
Seungwon Jeon [Tue, 22 Jan 2013 10:48:07 +0000]
mmc: block: don't start new request when the card is removed

It's not necessary to start a new request while error handling if
the card was removed.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit 7a81902fa52f2b6f5037e167f74ebb5a41cfc7d1)

Bug 1242730

Change-Id: Ia585664bc4125af9b0f121237f79ed3e5d45c910
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/206930
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoasoc: alc5640: Mic noise gate
Scott Peterson [Wed, 6 Mar 2013 23:53:03 +0000]
asoc: alc5640: Mic noise gate

Enabled noise gate and high pass wind filter
to improve recording performance.

Bug 1234255

Change-Id: I57f4580b979356ec800500d1879e825655058a20
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/206858
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Tested-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Niranjan Wartikar <nwartikar@nvidia.com>
Reviewed-by: Vijay Mali <vmali@nvidia.com>

6 years agoasoc: alc5640 Heaphone gain boost
Scott Peterson [Mon, 25 Feb 2013 22:24:16 +0000]
asoc: alc5640 Heaphone gain boost

Modified rt5640.c to enable greater output swing
by enabling dynamic control of charge pump as well
as adding headphone DC calibration and power
management changes.

bug 1211589

Change-Id: Icc3a6253c1456d8d66da9c8a04e05a54ae211391
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/206851
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rahul Mittal <rmittal@nvidia.com>
Tested-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-by: Vijay Mali <vmali@nvidia.com>

6 years agoRevert "mmc: core: Support packed command for eMMC4.5 device"
Naveen Kumar Arepalli [Mon, 4 Mar 2013 10:48:00 +0000]
Revert "mmc: core: Support packed command for eMMC4.5 device"

Packed command implementation is available in Upstream.
Use Upstream Packed comamnd code.

Bug 1242730

This reverts commit fa3a748000b65ad4854a95761b6067f89f1c4c61.

Change-Id: I807d6911aa20e9fe1664686bf43811bec7d274f5
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/206215
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agovideo: tegra: host: Debug dump to use trylock
Terje Bergstrom [Tue, 19 Feb 2013 08:34:34 +0000]
video: tegra: host: Debug dump to use trylock

Use mutex_trylock() instead of mutex_lock() in debug dump. Debug dump
is not safety critical, so it's ok to sometimes dump state of a
channel that has been torn down.

This fixes a deadlock when channel close waits on queue to clear up
with reflock acquired, submit in queue times out, and timeout code
tries to acquire reflock at debug dump.

Bug 1240952

Change-Id: Ice9bd3c617808d0b3178912358d7c90f30765be4
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/201974
(cherry picked from commit 886f8fd9372f3f612ab8c1a9fc6eb3cc118c1732)
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/206162
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra: Roth: Set SD clock to 156 MHZ
Naveen Kumar Arepalli [Thu, 28 Feb 2013 11:27:12 +0000]
ARM: tegra: Roth: Set SD clock to 156 MHZ

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

2. Pass nominal core voltage value through mmc platform data to be used
for setting core voltage constraints during tuning.

3. Setting SD clock to 156MHz in SDR104 mode.

Change-Id: Ie48df23c051b0251f037dd4ba942cec570eefd90
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/205101
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: Pluto: Set SD clock to 156 MHZ
Naveen Kumar Arepalli [Thu, 28 Feb 2013 11:10:20 +0000]
ARM: tegra: Pluto: Set SD clock to 156 MHZ

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

2. Pass nominal core voltage value through mmc platform data to be used
for setting core voltage constraints during tuning.

3. Setting SD clock to 156MHz in SDR104 mode.

Change-Id: I5d1dcb8df95da3ef848414ab723dd8a39fabc32b
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/205097
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agowatchdog: tegra: fix reboot reason
Xin Xie [Wed, 20 Feb 2013 21:52:59 +0000]
watchdog: tegra: fix reboot reason

bug 1239765

Change-Id: Ia2c5c83c0489b21d3fb5dcc005a9b7c07fb9b98c
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/202662
(cherry picked from commit 81ca50a9905bd2740b905d3861d0bc6b078c68b1)
Reviewed-on: http://git-master/r/205286
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoarm: tegra: pluto: add CPU watchdog device
Xin Xie [Tue, 19 Feb 2013 20:43:33 +0000]
arm: tegra: pluto: add CPU watchdog device

bug 1239979

Change-Id: I0920f645f34bb22e3c8e4925a294252b1774605b
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/202151
(cherry picked from commit dc82319dbbfb7a7a2ae6a9026b9cb3180588bed0)
Reviewed-on: http://git-master/r/205285
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agowatchdog: tegra: add tegra11x support
Xin Xie [Tue, 19 Feb 2013 19:21:37 +0000]
watchdog: tegra: add tegra11x support

bug 1239979

Change-Id: I4ca7e4682bf2b27254024f9e8236c7e8868b4e73
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/202740
(cherry picked from commit ddeeb47d676652dacfba7edf79fb423e48513a31)
Reviewed-on: http://git-master/r/205284
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agommc: tegra: move postreset code to reset exit
Naveen Kumar Arepalli [Thu, 7 Mar 2013 09:01:19 +0000]
mmc: tegra: move postreset code to reset exit

move postreset code to reset exit.

Bug 1239457

Change-Id: Icb5f2f3f0dbf8c7d89c3eca7e7df13b71d2db1ce
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/207014
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: macallan:Enable vbus detect through PMU
Rakesh Bodla [Thu, 7 Mar 2013 07:22:13 +0000]
ARM: tegra: macallan:Enable vbus detect through PMU

Enable vbus detect through PMU on macallan.

Bug 1242710

Change-Id: I998e5976d7e1baa861b596fd195a8150430d68fa
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/206994
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: tegra: usb_phy: add vbus detect through PMU
Rakesh Bodla [Thu, 7 Mar 2013 07:20:53 +0000]
ARM: tegra: usb_phy: add vbus detect through PMU

Adding the support to detect usb device cable
using PMU.

Bug 1242710

Change-Id: Iba7aee329c1e1e714dd4eb71d655c8307e7626c4
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/206993
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agousb: udc: tegra: add vbus detect through PMU
Rakesh Bodla [Thu, 7 Mar 2013 07:19:14 +0000]
usb: udc: tegra: add vbus detect through PMU

Adding the support to detect usb device cable
using PMU.

Bug 1242710

Change-Id: I02b21df4e03d15e032a1c5b467fa1bfbd0ac68ac
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/206992
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agovideo: tegra: dc fix bw overflow issue
Jihoon Bang [Thu, 7 Mar 2013 02:17:23 +0000]
video: tegra: dc fix bw overflow issue

There is a corner case where bw is larger than ULONG_MAX,
but freq is smaller than ULONG_MAX.
Apply clipping condition to frequency instead of bandwidth.

Bug 1248607

Change-Id: I936d1de3152738cf33f2dfddfc818c394cb82612
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/206904
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoasoc: tegra: aic326x: Add support for BT voice call recording
Rahul Mittal [Wed, 6 Mar 2013 14:27:29 +0000]
asoc: tegra: aic326x: Add support for BT voice call recording

Added BT voice call recording support
Call recording works fine on BT and normal call switching

Bug 1247059

Change-Id: Ide4e0ed0b69485dd9d7f0a2877970b3fe04b1f38
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/206692
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: macallan: update power sequence for camera
Kerwin Wan [Wed, 6 Mar 2013 05:16:25 +0000]
arm: tegra: macallan: update power sequence for camera

Add vdd_af_cam1 regulator control to avoid the i2c bus
to be hooked up

Bug 1241115
Bug 1241085

Change-Id: Ie908ff3d8883af5563c294d787c01e15f0c6d9b9
Signed-off-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-on: http://git-master/r/206593
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoARM: tegra11: clock: Don't report PLLC2/C3 lock timeout
Alex Frid [Tue, 5 Mar 2013 00:32:02 +0000]
ARM: tegra11: clock: Don't report PLLC2/C3 lock timeout

- Since PLLC2/C3 lock bits may fluctuate after pll is locked, don't
report timeout in this case.
- Expanded lock timeout message with the state of lock register

Bug 1057353
Bug 1213649
Bug 1232950

Change-Id: I33666bccba098733f29b01ffb3518e79603e3abf
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/206173
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: Turn on hw phase in for PRISM on Macallan
Mitch Luban [Mon, 4 Mar 2013 18:20:57 +0000]
arm: tegra: Turn on hw phase in for PRISM on Macallan

HW phase in is needed for extreme cases where flicker is
observed.

Bug 1246154

Change-Id: Ia8b37495ea2be9aa88c11ebdec5cb2523dc505f6
Signed-off-by: Mitch Luban <mluban@nvidia.com>
Reviewed-on: http://git-master/r/205970
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agoinput: touch: raydium: update touch response
David Jung [Wed, 27 Feb 2013 02:22:43 +0000]
input: touch: raydium: update touch response

Nvidia updates to allow touch to work
after resume.

Bug 1241633

Change-Id: If07272550b9c7892e5c02c3e242f219b0a2f68e9
Signed-off-by: David Jung <djung@nvidia.com>
Reviewed-on: http://git-master/r/204809
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Robert Collins <rcollins@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agousb: otg: tegra: add vbus detect through PMU
Rakesh Bodla [Thu, 7 Mar 2013 07:18:16 +0000]
usb: otg: tegra: add vbus detect through PMU

Adding the support to detect usb device cable
using PMU.

Bug 1242710

Change-Id: Icfb185db094809dfe7f06e1aeddd60245793332b
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/204592
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agommc: host: Add support for EDP
rrajk [Wed, 20 Feb 2013 15:27:25 +0000]
mmc: host: Add support for EDP

Added EDP support for eMMC/micro SD
Bug 1160688

Change-Id: Ia333cfb59b555526344bf884c14797f899d02558
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/202566
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: sdhci: Add EDP support platform data
rrajk [Wed, 20 Feb 2013 14:54:30 +0000]
arm: tegra: sdhci: Add EDP support platform data

Added platform data for eMMC/microSD to support EDP
Bug 1160688

Change-Id: I77c92da13941ef4966d9b7fa390d6ba9fa1df3c1
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/202559
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agodrivers: misc: publish fps, cpu load, thread count
Ilan Aelion [Fri, 26 Oct 2012 16:44:58 +0000]
drivers: misc: publish fps, cpu load, thread count

adapted cpufreq_interactive load estimation and averaging of the
number of runnable threads to a misc device that will write the
current cpu id, load and nr_runnable_threads for each cpu to a sysfs
node at /sys/devices/system/cpu/cpufreq/cpuload/cpu_load. Intended to
provide an accurate cpu load reading to user space scaling
controllers. In addition the momentary frame rate is written to /d/fps.

Bug 1161410
Bug 1164121

Change-Id: I041e230463fa7d4a3c83e4a2ab2ce199f9a5d8ba
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/#change,165089
(cherry picked from commit 66d64ab41904d2c5ec6167bd067d8e4c7170d125)
Reviewed-on: http://git-master/r/199921
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoarm: tegra: usb_phy: add delay on wait loop of ack
Shawn Joo [Thu, 27 Dec 2012 11:09:03 +0000]
arm: tegra: usb_phy: add delay on wait loop of ack

There is no delay while reading gpio of modem ack.
it will be a bad influence on system.
put 1ms delay on the loop.

Bug 1191026

Change-Id: I1b3fa50cabbe002cd6a0ec4c66099dc694a5a6e5
Signed-off-by: Shawn Joo <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/174469
(cherry picked from commit 85a0380eccd1ab1dbad49b42df4049fdadc7df05)
Reviewed-on: http://git-master/r/199080
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>

6 years agoarm: tegra: pinmux: pluto pinmux usb_vbus_en0
Jay Cheng [Tue, 5 Feb 2013 00:17:53 +0000]
arm: tegra: pinmux: pluto pinmux usb_vbus_en0

USB_VBUS_EN0 is used as GPIO OUTPUT pin, OD (open drain) need to be disabled,
otherwise GPIO can't drive it HIGH/LOW.

bug 1228172

Change-Id: I099e1ac8e26fdc474a3ec2bbef48a7d9e83a6bef
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
Reviewed-on: http://git-master/r/197201
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: roth/pluto: Validate GPIO before using
Harshavardhan Nalajala [Mon, 4 Feb 2013 05:53:05 +0000]
ARM: tegra: roth/pluto: Validate GPIO before using

Check the return values of gpio apis and return if
encountered with errors.

bug  1222992

Change-Id: I42fc671ccb8d8c0fe6ad2ff28c223130926e0228
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/196845
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoMerge remote-tracking branch 'remotes/origin/dev/snikam/merge-k3.4.35-to-rel-17'...
Mandar Padmawar [Thu, 7 Mar 2013 06:30:19 +0000]
Merge remote-tracking branch 'remotes/origin/dev/snikam/merge-k3.4.35-to-rel-17' into promotion_build

merging Sachin Nikam's dev branch "remotes/origin/dev/snikam/merge-k3.4.35-to-rel-17" to kernel repo of rel-17

6 years agoMerge branch 'linux-3.4.35' into rel-17
Sachin Nikam [Wed, 6 Mar 2013 13:42:15 +0000]
Merge branch 'linux-3.4.35' into rel-17

Bug 1243631

Change-Id: I915826047b2e20f0ad0a7d75df295c6cbf6e5b0a

6 years agoedp: tegra: adding gain factor debug knob
Sivaram Nair [Mon, 4 Mar 2013 23:57:52 +0000]
edp: tegra: adding gain factor debug knob

Added a gain factor debugfs node to scale the EDP budget that is
allocated to the core client.

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

6 years agoARM: tegra: pluto: Change orientation vector for compass
Xiaohui Tao [Fri, 22 Feb 2013 19:56:11 +0000]
ARM: tegra: pluto: Change orientation vector for compass

Set the correct compass orientation

Change-Id: I26c171107baeee4229fc9fe1e91beefa0620cea5
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/205218
(cherry picked from commit 48a0b8fe54f76cded44f33044598fb1d052263bf)
Reviewed-on: http://git-master/r/205984
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoARM: tegra: dalmore: Change orientation vector for compass
Xiaohui Tao [Mon, 25 Feb 2013 18:55:13 +0000]
ARM: tegra: dalmore: Change orientation vector for compass

Set the correct compass orientation

Change-Id: I986c3d3cb4bf69b456232f1438f3394cd7e847b9
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/205217
(cherry picked from commit ee5fbce58dd28d6867fd0ccc67eb42f77c36e44c)
Reviewed-on: http://git-master/r/205983
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

6 years agoarm: tegra: soctherm: correct programming of tsample register
Diwakar Tundlam [Mon, 4 Mar 2013 19:23:34 +0000]
arm: tegra: soctherm: correct programming of tsample register

Bug 1243563

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

6 years agoARM: tegra: macallan: Unset sd_detect_in_suspend
Naveen Kumar Arepalli [Mon, 4 Mar 2013 08:16:48 +0000]
ARM: tegra: macallan: Unset sd_detect_in_suspend

Unset sd_detect_in_suspend flag for SDMMC3

Bug 1243695

Change-Id: I3e519446f6300bd7abb6bd1eecbb0def8aed1755
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/205844
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>

6 years agoARM: tegra: dalmore: Unset sd_detect_in_suspend
Naveen Kumar Arepalli [Mon, 4 Mar 2013 07:04:23 +0000]
ARM: tegra: dalmore: Unset sd_detect_in_suspend

Unset sd_detect_in_suspend flag for SDMMC3

Bug 1243695

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

6 years agoARM: tegra: change wakeup irq to gpio
Naveen Kumar Arepalli [Mon, 4 Mar 2013 06:57:11 +0000]
ARM: tegra: change wakeup irq to gpio

Change sdmmc3 cd wakeup irq to gpio instead of sdmmc3 interrupt

Bug 1243695

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

6 years agoarm: tegra: macallan: Update macallan DVFS table.
Hayden Du [Mon, 4 Mar 2013 04:35:40 +0000]
arm: tegra: macallan: Update macallan DVFS table.

Macallan copy Dalmore's DVFS table, and Macallan don't have
h5tc4g63afr_rda, remove h5tc4g63afr_rda from Macallan.

Change-Id: I744d65ec8fafb99bbd417f7424cb9953fa72aef2
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/205813
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: clock: Move duplicate clocks initialization
Alex Frid [Sun, 3 Mar 2013 05:47:30 +0000]
ARM: tegra11: clock: Move duplicate clocks initialization

Moved duplicate clocks initialization after specially handled clocks:
audio, external, and xusb clocks - so that these special clocks can
be duplicated if necessary.

Bug 1243423

Change-Id: Id57318837cdf3c12dfb1b7d671668b2368109ccf
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/205786
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: dvfs: Update GPU and media bus dvfs tables
Alex Frid [Sun, 3 Mar 2013 05:12:51 +0000]
ARM: tegra11: dvfs: Update GPU and media bus dvfs tables

Bug 116126

Change-Id: I0acc2520494ad753918412427696b68a71a548ae
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/205784
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agovideo: tegra: camera: enable sclk in camera
Jihoon Bang [Fri, 1 Mar 2013 17:53:54 +0000]
video: tegra: camera: enable sclk in camera

Enable sclk in camera and set 80MHz when
camera is opened. It helps boost KPI.

Bug 1234580

Change-Id: Id4bcddb31bcbad68f9bd8956124cfd4325b6cfc1
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/205603
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agovideo: tegra: dsi: set dsib PLLD_CSI_OUT_ENB only in T3x platforms
Hunk Lin [Mon, 4 Mar 2013 09:50:47 +0000]
video: tegra: dsi: set dsib PLLD_CSI_OUT_ENB only in T3x platforms

Only set dsib PLLD_CSI_OUT_ENB in T3x platform because from T11x dsib and
csi pads are no more shared.
Set PLLD_DSI_OUT_ENB for both dsia and dsib from T11x.

Bug 1237618

Change-Id: Id2402a4a280ecaea71f30068d729caf857cd64d6
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/205407
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoarm: tegra: dalmore: Increase display wakeup time
Vineel Kumar Reddy Kovvuri [Thu, 28 Feb 2013 10:28:14 +0000]
arm: tegra: dalmore: Increase display wakeup time

Fixes the issue of display failing to wakeup from LP0

Change-Id: Idf2fb149076500acb5e8b0ceda43adc2b61ded1d
Signed-off-by: Vineel Kumar Reddy Kovvuri <vineelkumarr@nvidia.com>
Reviewed-on: http://git-master/r/205081
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

6 years agonet: wireless: bcmdhd: wifi edp registration check
Harshavardhan Nalajala [Wed, 27 Feb 2013 14:23:29 +0000]
net: wireless: bcmdhd: wifi edp registration check

Check if bcmdhd driver is registered to edp manager
before calling edp state update request.

Bug 1160685

Change-Id: Ic7f4526275f026419ec460940c33c8a3118c7cff
Signed-off-by: Harshavardhan Nalajala <hnalajala@nvidia.com>
Reviewed-on: http://git-master/r/204643
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agoasoc: tegra: aic326x: Fix DAM allocation for BT voice call
Rahul Mittal [Wed, 27 Feb 2013 09:55:30 +0000]
asoc: tegra: aic326x: Fix DAM allocation for BT voice call

Added a check to not allocate call record DAMs if it is a BT call
BT call requires 2 DAMs, and since we have only 3 DAMs,
we can't allocate the 2 DAMs that are needed for call recording

Fixed system sound mixing during BT call

Bug 1242683

Change-Id: I515ac5627c9221ada5a6d4491d6a37ad38c3196f
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/204524
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijay Mali <vmali@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>

6 years agoextcon: palmas: add support for ID pin detection
Laxman Dewangan [Wed, 27 Feb 2013 09:05:00 +0000]
extcon: palmas: add support for ID pin detection

Add support for the ID pin detection through interrupt and
notification through extcon framework.

bug 1242273

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

6 years agoARM: tegra: clock: Check if parent is allowed
Alex Frid [Wed, 27 Feb 2013 05:19:42 +0000]
ARM: tegra: clock: Check if parent is allowed

Checked if parent is allowed when listing possible parents in debugfs.

Change-Id: Ie7ea8e5c0eeb895526bacf96798f49a96f4a6b83
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/204416
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: clock: Don't allow PLLM/C as super clock source
Alex Frid [Wed, 27 Feb 2013 04:16:10 +0000]
ARM: tegra11: clock: Don't allow PLLM/C as super clock source

Updated parent selection policy to prevent PLLM and PLLC from being
selected as super clock sources (explicit check just to enforce policy
already in place).

Change-Id: If27c813b071081c93dd511b2bb3e54bc600819f4
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/204414
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: power: Rename CPU idle rate control APIs
Alex Frid [Fri, 22 Feb 2013 06:27:44 +0000]
ARM: tegra: power: Rename CPU idle rate control APIs

Change-Id: Id9bc9deabf8573a0743c5aafd1dc42f654b6f842
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/204413
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agodalmore: Cancel the init of GMI_AD13
Shaoming Feng [Wed, 27 Feb 2013 02:45:56 +0000]
dalmore: Cancel the init of GMI_AD13

Cancel the initialization of GMI_AD13 which puts it into
non-tristate mode. The corresponding rail is TS_SHDN which
is never been used. The non-tristate caused power regression.

Bug 1238555

Change-Id: I5bc782887f3c1aff796cc2addb6264b3c0311636
Signed-off-by: Shaoming Feng <shaomingf@nvidia.com>
Reviewed-on: http://git-master/r/204387
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

6 years agoCHROMIUM: tcp: Avoid merging segments on the OOO queue into a cloned SKB
Steve Lin [Tue, 4 Dec 2012 19:53:47 +0000]
CHROMIUM: tcp: Avoid merging segments on the OOO queue into a cloned SKB

TCP tries to merge socket buffers in the out-of-order queue when they
are sequential. This is generally a good thing to save memory and speed
up processing, but can lead to problems when it expands a buffer that
has previously been cloned.

We have encountered a bug with a confused/broken receive queue, that we
think might have been caused by this problem, as the smsc95xx driver
uses cloned buffers in its receive path. Thanks to edumazet for
pointing that out and suggesting this fix.

This patch makes sure that this code path only expands socket buffers
that have not been cloned and just enqueues them normally in the other
case. In upstream kernels starting with 3.5, the affected code has been
refactored into tcp_try_coalesce with commit 1402d36, which has later
been patched to fix this issue in commit 923dd34. The fix has not been
backported into the upstream 3.4 kernel.

BUG=chromium-os:35827
TEST=None

Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-author: Julius Werner

Bug 1206597
Bug 1232607

Change-Id: I08fdf47b42d903b5079ad0985edd491b421ac7ca
Signed-off-by: Steve Lin <stlin@nvidia.com>
Reviewed-on: http://git-master/r/203898
Reviewed-by: Brandon Casey <bcasey@nvidia.com>
Reviewed-by: Mark Kuo <mkuo@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoARM: tegra11: clock: Update PLLE spread spectrum setting
Alex Frid [Sat, 23 Feb 2013 04:42:41 +0000]
ARM: tegra11: clock: Update PLLE spread spectrum setting

Bug 1167739

Change-Id: Ica7632fc4dafffad5004c9c76b68a325f18cef49
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/203567
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra11: pm: disable overriding pinmux
Harry Hong [Thu, 21 Feb 2013 07:29:12 +0000]
ARM: tegra11: pm: disable overriding pinmux

By POR, sys_clk_req pad is enabled to override
pinmux setting. this pin can be set to gpio.
to avoid overriding for gpio usage, adding
sysclkreq_gpio flag. Overriding pinmux will not
 works if this flag is set to true.

bug 1236315

Change-Id: If6f30a8bfbfc272a4e303d26e2d9553e2b353bd7
Signed-off-by: Harry Hong <hhong@nvidia.com>
Reviewed-on: http://git-master/r/202855
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoRevert "ARM: tegra11: dvfs: Update DFLL minimum voltage"
Alex Frid [Tue, 19 Feb 2013 20:14:50 +0000]
Revert "ARM: tegra11: dvfs: Update DFLL minimum voltage"

This reverts commit bc6088418f78a1bf9eda10d49081fcbc0bed5e54.

Bug 1161126

Change-Id: Ib079fad0decfb9a1ff4f70deb2449b64b4abe85b
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/202124
Reviewed-by: Bo Yan <byan@nvidia.com>

6 years agoARM: tegra: clock: Update CPU cluster switch clock control
Alex Frid [Wed, 13 Feb 2013 23:55:56 +0000]
ARM: tegra: clock: Update CPU cluster switch clock control

Updated clock control when cluster round trip changes CPU clock
source from PLL to DFLL: G CPU (PLL) => LP CPU (PLL) => G CPU (DFLL).

- made sure that PLL used as G CPU clock source during the last
residency is enabled across LP-to-G switch
- made sure that initial G CPU voltage is preset before cluster
switch to maximum of voltage levels required for G CPU running on
last residency PLL and next residency DFLL
- changed G CPU rail control from s/w dvfs to h/w cl-dvfs after the
switch to G CPU is completed

Change-Id: I7720cda544ef16a4691534b52315e9128b2b27c3
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/201830
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoThermal: pid_thermal_gov: Add max_dout
Jinyoung Park [Mon, 18 Feb 2013 12:05:27 +0000]
Thermal: pid_thermal_gov: Add max_dout

Added max_dout to limit derivative output to avoid extreme response
if delta temperature gets too large and added its sysfs node.
The max_dout is percentage of max_err.

Bug 1200111

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