6 years agoARM: tegra: cpuquiet: augment no_lp to force both LP and G
Simo Melenius [Fri, 8 Mar 2013 09:24:12 +0000]
ARM: tegra: cpuquiet: augment no_lp to force both LP and G

- tegra_cpuquiet 'no_lp' node now accepts '-1' to force LP cluster on
- when a cluster is forced the switches take place immediately without
  any delay

Bug 1247636

Change-Id: I1ec07acc3cf51419a4770542c6a1c90b92e0bf66
Signed-off-by: Simo Melenius <smelenius@nvidia.com>
Reviewed-on: http://git-master/r/208772
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

6 years agoarm: tegra: soctherm: Return trend STABLE if temp within hysteresis
Diwakar Tundlam [Wed, 13 Mar 2013 00:48:50 +0000]
arm: tegra: soctherm: Return trend STABLE if temp within hysteresis

Bug 1250096

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

6 years agovideo: tegra: dsi: need clear indication to track LP0 resuming latency
Li Li [Tue, 12 Mar 2013 23:51:15 +0000]
video: tegra: dsi: need clear indication to track LP0 resuming latency

To better measure how long the device actually resumes back to a usable
state, we need to know when the display is turned on.

Bug 1252226

Change-Id: I85e1662eb1a169d22195c45e4e75198ba49caca5
Signed-off-by: Li Li <lli5@nvidia.com>
Reviewed-on: http://git-master/r/208600
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

6 years agoARM: tegra: add more E-states to depletion client
Sivaram Nair [Fri, 8 Mar 2013 23:10:20 +0000]
ARM: tegra: add more E-states to depletion client

More E-states are added to the battery depletion client by increasing
the resolution.

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

6 years agoarm: tegra: soctherm: decouple update for CPU and GPU zones
Diwakar Tundlam [Sat, 9 Mar 2013 00:34:28 +0000]
arm: tegra: soctherm: decouple update for CPU and GPU zones

Bug 1250096

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

6 years agoARM: tegra: cpuquiet: make userspace governor actions synchronous
Peter De Schrijver [Tue, 12 Feb 2013 15:51:26 +0000]
ARM: tegra: cpuquiet: make userspace governor actions synchronous

Userspace expects changes to happen synchronously. Implement this by waiting
with a (configureable) timeout for the action to happen.

Bug 1220065

Change-Id: I81301719707e4baf2b3aea62c38fc771ffe1205d
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
(cherry picked from commit 9de8f56142e64ebf388b5427ef7fd142078dfa87)
Reviewed-on: http://git-master/r/#change,200013
Reviewed-on: http://git-master/r/206802
Tested-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agommc: tegra: Enable MMC_CAP_CMD23
Naveen Kumar Arepalli [Tue, 5 Mar 2013 08:38:12 +0000]
mmc: tegra: Enable MMC_CAP_CMD23

Enable MMC_CAP_CMD23 for SDMMC

Bug 1242730

Change-Id: Idda40647870dc198ce7105e32d60406404674437
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/206245
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: tegra11: dvfs: Re-arrange DFLL clock initialization
Alex Frid [Wed, 27 Feb 2013 22:59:31 +0000]
ARM: tegra11: dvfs: Re-arrange DFLL clock initialization

- Re-assigned DFLL clock init operation to late init function inside
init operation itslef (instead of external assignment during global
tegra11x clocks initialization)

- Included into DFLL clock initialization call to Cl-DVFS debug init,
so that DFLL clock pointer can be passed as an argument, rather than
retrieved in CL-DVFS debug init from hard coded DFLL clock name.

- Added write attribute to tune_high_mv debugfs entry

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

6 years agousb: gadget: composite: Fix USB CV compliance testing
Petlozu Pravareshwar [Fri, 8 Feb 2013 11:10:04 +0000]
usb: gadget: composite: Fix USB CV compliance testing

Enable USB_CONFIG_ATT_SELFPOWER in bmAttributes when the
device is self-powered. Also fixing the GET_CONFIGURATION
when the config field is set to NULL.

Bug 965634

Change-Id: I069da940b1473d5c0b49b2ce2abc7f8862956534
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/197438
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

6 years agoARM: Tegra: nct1008: I2C client registration error
Naveen Kumar S [Mon, 31 Dec 2012 13:17:20 +0000]
ARM: Tegra: nct1008: I2C client registration error

Removed duplicate device registration of nct1008.

Bug 1178324

Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Change-Id: I53d4f2575b9104b43f10c82d31a6bca5f7b1f873
Reviewed-on: http://git-master/r/187798
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Reviewed-on: http://git-master/r/195443

6 years agoRevert "mmc: block: Ignore mmc_blk_abort for out_of_range"
Naveen Kumar Arepalli [Mon, 28 Jan 2013 12:55:59 +0000]
Revert "mmc: block: Ignore mmc_blk_abort for out_of_range"

This reverts commit 24312e84e15f2ead4d372b8678b56349fab27988.

Bug 947965
Bug 1194300

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

6 years agoARM: tegra: usb_phy: Fix IDDQ_OVERRIDE programming
Rakesh Bodla [Thu, 14 Mar 2013 11:31:40 +0000]
ARM: tegra: usb_phy: Fix IDDQ_OVERRIDE programming

Put UTMIPLL to IDDQ if all UTMIP USB2 controllers
are in reset or suspend states. Also, bring UTMIPLL
out of to IDDQ while controllers exiting reset or
suspend states.

Bug 1201974

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

6 years agoarm: tegra: macallan: Enable pid_thermal_gov as default for Tj throttling
Jinyoung Park [Thu, 14 Mar 2013 05:12:10 +0000]
arm: tegra: macallan: Enable pid_thermal_gov as default for Tj throttling

Enable pid_thermal_gov as default thermal governor for Tj throttling.

Bug 1200111

Change-Id: Id0970f69b35f59372da24fb2aa60d79cbcc0f6eb
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/209415
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: apply new balanced throttling table
Hyungwoo Yang [Thu, 7 Mar 2013 00:10:05 +0000]
arm: tegra: apply new balanced throttling table

apply new balanced throttling table.

Change-Id: I3d04f0e425721a9a2536e4f60a347bd659c803cc
Signed-off-by: Hyungwoo Yang <hyungwooy@nvidia.com>
Reviewed-on: http://git-master/r/206862
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agocpuquiet: Make stats optional
Peter De Schrijver [Wed, 5 Dec 2012 14:13:09 +0000]
cpuquiet: Make stats optional

Make the per CPU statistics a configureable option.

bug 1049625

Change-Id: I28b248bbbad89a19e8d8d69400733dfd4a2cf052
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
(cherry picked from commit 94ade9be87aeda9353808d0f9331acf3e3639d3a)
Reviewed-on: http://git-master/r/#change,168749
Reviewed-on: http://git-master/r/206801
Tested-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

6 years agoregulator: bq2419x: Fix hot-plug functionality
Sumit Sharma [Fri, 1 Mar 2013 12:33:32 +0000]
regulator: bq2419x: Fix hot-plug functionality

Fix hot-plug functionality in bq2419x regulator driver

Bug 1245272

Change-Id: I5877310bb346666d97ead811d00683aa8e243db6
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/205552
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agomfd: bq2419x: Fix hot-plug functionality
Sumit Sharma [Fri, 1 Mar 2013 11:51:35 +0000]
mfd: bq2419x: Fix hot-plug functionality

Fix hot-plug funtionality in bq2419x mfd driver

Bug 1245272

Change-Id: I8ba74f77215f8d69e494856d9599d714653d1d67
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/205551
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

6 years agoARM: Tegra: Pluto: Update emc dvfs table
Gaurav Batra [Sat, 23 Feb 2013 01:41:43 +0000]
ARM: Tegra: Pluto: Update emc dvfs table

Change-Id: I96c91fa81abf44cb1a4a71714922a2822be3cfdb
Signed-off-by: Gaurav Batra <gbatra@nvidia.com>
Reviewed-on: http://git-master/r/203514
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

6 years agomfd: palma: enable cache of SMPS regulator register.
Laxman Dewangan [Tue, 19 Feb 2013 07:36:46 +0000]
mfd: palma: enable cache of SMPS regulator register.

Enable caching of SMPS regulator registers. This reduces
the number of i2c transaction from 7 to 1 when changing
voltage of rail.

bug 1238267

Change-Id: Ida1d1c3a634c1e3c1bf8a8b008aea17aeaa5ced3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/201949
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoblock: prevent race/cleanup
Derek Basehore [Tue, 18 Dec 2012 20:27:20 +0000]
block: prevent race/cleanup

Remove a race condition which causes a warning in disk_clear_events.  This
is a race between disk_clear_events() and disk_flush_events().
ev->clearing will be altered by disk_flush_events() even though we are
blocking event checking through disk_flush_events().  If this happens
after ev->clearing was cleared for disk_clear_events(), this can cause the
WARN_ON_ONCE() in that function to be triggered.

This change also has disk_clear_events() not go through a workqueue.
Since we have to wait for the work to complete, we should just call the
function directly.  Also, since this work cannot be put on a freezable
workqueue, it will have to contend with increased demand, so calling the
function directly avoids this.

Bug 1234886

Change-Id: Iad761c120d85971589b0282b6067c48ee1b7800f

[akpm@linux-foundation.org: fix spello in comment]
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Cc: Mandeep Singh Baines <msb@chromium.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Change-Id: Iab90b73bee677911f77ca50ff368b95d52e8d3b9
Reviewed-on: http://git-master/r/208469
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit 75a5e8ba186728b7310341d7df6ed4e2991f0357)
Reviewed-on: http://git-master/r/208866
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agoblock: remove deadlock in disk_clear_events
Derek Basehore [Tue, 18 Dec 2012 20:27:18 +0000]
block: remove deadlock in disk_clear_events

In disk_clear_events, do not put work on system_nrt_freezable_wq.
Instead, put it on system_nrt_wq.

There is a race between probing a usb and suspending the device.  Since
probing a usb calls disk_clear_events, which puts work on a frozen
workqueue, probing cannot finish after the workqueue is frozen.  However,
suspending cannot finish until the usb probe is finished, so we get a
deadlock, causing the system to reboot.

The way to reproduce this bug is to wake up from suspend with a usb
storage device plugged in, or plugging in a usb storage device right
before suspend.  The window of time is on the order of time it takes to
probe the usb device.  As long as the workqueues are frozen before the
call to add_disk within sd_probe_async finishes, there will be a deadlock
(which calls blkdev_get, sd_open, check_disk_change, then
disk_clear_events).  This is not difficult to reproduce after figuring out
the timings.

Bug 1234886

Change-Id: I326339a5ba7011b46a2e8b80a3dbd4fe383096a7
[akpm@linux-foundation.org: fix up comment]
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Reviewed-on: http://git-master/r/208468
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit 80daddb927db9f4b24276147a17eba220e85bdcc)
Reviewed-on: http://git-master/r/208865
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: remove sw WAR for hs_curr_level
Ajay Gupta [Mon, 4 Mar 2013 22:39:31 +0000]
usb: xhci: tegra: remove sw WAR for hs_curr_level

We had seen SS/HS/FS hub re-enumerating in LP0 path with hs_curr_level
value read from usb_calib0 fuse and so had overwritten it to working value
of 0x30. This is no more needed so removing the sw WAR

Bug 1211445

Change-Id: Ib5c7039f76b75d0e40e6fa0221036e72b58454ab
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/206463
Reviewed-by: Joy Wang <joyw@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit d046ffa5903d04212be44159b778ed78321c1ac3)
Reviewed-on: http://git-master/r/208864
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: set ss_clk at 120MHz before fw loading
Ajay Gupta [Mon, 4 Mar 2013 20:26:16 +0000]
usb: xhci: tegra: set ss_clk at 120MHz before fw loading

This is needed to avoid SS device getting in compliance.

Bug 1246619

Change-Id: I3cbb95f318aae70573d392729f5b8bf069b484db
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/206462
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit 892f2022442f45b58109de3f304829e7a2c43907)
Reviewed-on: http://git-master/r/208863
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: enable MC FLUSH of partition before ELPG
Ajay Gupta [Sat, 2 Mar 2013 01:02:58 +0000]
usb: xhci: tegra: enable MC FLUSH of partition before ELPG

The partition client maintains credits for requests to MC. At the time of
ELPG entry, if there are any outstanding requests before the partition reset
is asserted, the credits are returned from MC at the time of ELPG exit after
the reset is released. This will result in overflow of credits and either cause
deadlock/lead to undesirable side effects in all future transactions.

In order to avoid this, SW needs to assert a hot reset to the PC which will
send out a FLUSH_DONE signal at a clean boundary after which all future
transactions are blocked. Only then partition reset can be asserted followed
by ELPG entry.

Bug 1237267

Change-Id: Ide45db658a327b1d663d0293817c7526b7068e74
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/205738
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit 782cecfe449e08fec201c0ebf011bc57b7545fbd)
Reviewed-on: http://git-master/r/208862
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: set rxidle mode override
Ajay Gupta [Sat, 2 Mar 2013 00:19:15 +0000]
usb: xhci: tegra: set rxidle mode override

This is need to save power leakage when usb3 link is in
suspend/disconnect state and so SS clock frequency is being
decreased.

Bug 1241968

Change-Id: I354b86643151755ea0517ff1cf0d29be8ef50c94
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/205737
Reviewed-by: Henry Lin <henryl@nvidia.com>
Reviewed-by: Jui Chang Kuo <jckuo@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
(cherry picked from commit cdd32a2f416772974a264be0b4e24cb82bf5d7fb)
Reviewed-on: http://git-master/r/208861
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: disable regulators in lp0 path
Ajay Gupta [Fri, 1 Mar 2013 19:40:56 +0000]
usb: xhci: tegra: disable regulators in lp0 path

We should be disabling all xusb regulators except vbus to
save power. Vbus regualtor is needed for xusb LP0 wakeup
capability.

Also changes the sequence of regualtor enable and disable
as listed below. The older sequence is causing kernel
panic during LP0 exit path.

Enable sequence:
regulator_enable(tegra->xusb_vddio_hsic_reg);
regulator_enable(tegra->xusb_hvdd_usb3_reg);
regulator_enable(tegra->xusb_vbus_reg);
regulator_enable(tegra->xusb_avddio_usb3_reg);
regulator_enable(tegra->xusb_avdd_usb3_pll_reg);

Disable sequence:
regulator_disable(tegra->xusb_avdd_usb3_pll_reg);
regulator_disable(tegra->xusb_avddio_usb3_reg);
regulator_disable(tegra->xusb_vbus_reg);
regulator_disable(tegra->xusb_hvdd_usb3_reg);
regulator_disable(tegra->xusb_vddio_hsic_reg);

Bug 1245553

Change-Id: I39b2c5437f39306965e49d7247347a0e91241f0f
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/205735
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit ebcf579b7d2450691a2d9e377b796477ddedcc77)
Reviewed-on: http://git-master/r/208860
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agousb: xhci: tegra: fix padctl intr handler
Bharath Yadav [Thu, 28 Feb 2013 09:51:53 +0000]
usb: xhci: tegra: fix padctl intr handler

This fixes the hang issue seen when SS link training fails,
causing constant padctl intr triggering elpg entry/exit.

We should not be doing ss elpg exit without host elpg exit.

Bug 1238452

Change-Id: I340b4556b22b2c729ea121966b29f013b935e532
Signed-off-by: Bharath Yadav <byadav@nvidia.com>
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/205729
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
(cherry picked from commit 86b318e7fe2142942be432223326ce8830c0f358)
Reviewed-on: http://git-master/r/205060
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

6 years agoxhci: tegra: firmware load to deal with Tegra SMMU
JC Kuo [Tue, 19 Feb 2013 10:41:52 +0000]
xhci: tegra: firmware load to deal with Tegra SMMU

Tegra SMMU was enabled (CONFIG_PLATFORM_ENABLE_IOMMU=y) and driver
needs to create a dma mapping in SMMU so that dma request from
controller can be accepted by Tegra SMMU.

This patch fixes the following error.
SMMU: nr-nw-s (0x6000004a) [......] xusb_host (non-secure read MC_DECERR)

Bug 1222494

Change-Id: I2db1baee7f37dc81b9f8215e02d312ee183085b8
Signed-off-by: JC Kuo <jckuo@nvidia.com>
Reviewed-on: http://git-master/r/202017
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
(cherry picked from commit 5832f2affcb8b5cb5806698fec53d15af0486665)
Reviewed-on: http://git-master/r/208859
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Tested-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit

6 years agostaging: iio: adc: Add Palma gpadc support
Pradeep Goudagunta [Wed, 13 Mar 2013 10:57:55 +0000]
staging: iio: adc: Add Palma gpadc support

TI Palma series pmic chips have a 16-channel general
purpose adc module, add support for it.

Bug 1242265

Change-Id: I3133aed7ac8781161665b7e8f5125d40bbc3a17a
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/208790
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agovideo: tegra: dsi: Fix h_blank too small warning
Animesh Kishore [Wed, 6 Mar 2013 09:42:13 +0000]
video: tegra: dsi: Fix h_blank too small warning

Add changes for video/command mode case and
continuous/tx_only clock mode case.

Bug 1239034

Change-Id: I8c6c4b55bf212debcd2d124035a17fa8cae5f668
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/206635
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit f7828775fd4466d4009162425f43b44d01705784)
Reviewed-on: http://git-master/r/208366
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agovideo: tegra: dsi: Remove spurious warnings
Animesh Kishore [Tue, 26 Feb 2013 12:07:06 +0000]
video: tegra: dsi: Remove spurious warnings

Change-Id: I40b55d66258f06c1eb19dddc2815153b4f8346ec
Signed-off-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-on: http://git-master/r/204178
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
(cherry picked from commit 95861c68d23f881985cc139ce6f8dcb8ebfcdf4a)
Reviewed-on: http://git-master/r/208365
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agomfd: palmas: Implement irq chip for driver locally
Laxman Dewangan [Tue, 12 Mar 2013 09:26:54 +0000]
mfd: palmas: Implement irq chip for driver locally

In place of using regmap irq for the plamas interrupt support,
implement the same in locally. This gives the oportunity to
implement irq_set_type() which is needed for the gpio edge
trigger level.

bug 1251695

Change-Id: I16879a29003176ce7ba34b2e16880a07e0d3e32e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/208360
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>

6 years agogpio: palmas: use palmas API for getting irq
Laxman Dewangan [Tue, 12 Mar 2013 08:32:39 +0000]
gpio: palmas: use palmas API for getting irq

To get the irq number for given gpio, use the palmas API
palmas_irq_get_virq() in place of directly using regmap API.

Change-Id: I2305b6c6c852a914efd08c4e020dba4301bd83fc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/208339
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>

6 years agortc: palmas: get irq number through platform_get_irq()
Laxman Dewangan [Tue, 12 Mar 2013 08:30:29 +0000]
rtc: palmas: get irq number through platform_get_irq()

The palmas mfd driver pass the RTC interrupt through the IRQ_RESOURCE
and hence RTC driver can get the irq by calling platform_get_irq().

Change-Id: Ib6e4afd0511ab6cf80df43defe29ffe50480f27c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/208338
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>

6 years agousb: otg: tegra: Remove duplicated irq_work call.
Harry Hong [Tue, 12 Mar 2013 05:10:10 +0000]
usb: otg: tegra: Remove duplicated irq_work call.

Even vbus is floating state, sometimes vbus is recognized
as high.
To prevent it, do not set USB_VBUS_INT_STATUS
if support_pmu_vbus is set to true.
It'll not call irq_work by vbus status of USB_PHY_WAKEUP.

bug 1242710

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

6 years agoARM: tegra: usb_phy:remove unnecessary phy api
Rakesh Bodla [Fri, 8 Mar 2013 17:45:13 +0000]
ARM: tegra: usb_phy:remove unnecessary phy api

Removing unnecessary phy apis.

Bug 1242710

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

6 years agousb: host: tegra:remove unnecessary phy api calls
Rakesh Bodla [Fri, 8 Mar 2013 17:42:14 +0000]
usb: host: tegra:remove unnecessary phy api calls

Some of the variables are passed through platform data,
no need to call phy callbacks for initialization.

Bug 1242710

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

6 years agousb: gadget: tegra:remove unnecessary phy api calls
Rakesh Bodla [Fri, 8 Mar 2013 17:41:46 +0000]
usb: gadget: tegra:remove unnecessary phy api calls

Some of the variables are passed through platform data,
no need to call phy callbacks for initialization.

Bug 1242710

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

6 years agoARM: tegra: usb: Increase CPU frequency range
Rakesh Bodla [Fri, 8 Mar 2013 12:17:02 +0000]
ARM: tegra: usb: Increase CPU frequency range

Now tegra chips cpu frequency has increased and updating
the range accordingly.

Bug 1216779

Change-Id: I57d530bcc5f4b8d5969ed7b5ffc21987e23809e8
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/207587
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agovideo: tegra: camera: increase max iso BW
Jihoon Bang [Tue, 5 Mar 2013 19:43:06 +0000]
video: tegra: camera: increase max iso BW

Change max iso BW from 540MBps to calculated peak BW.
Peak BW is calculated using max VI clock and total
byte per pixel of VI output.

Bug 1245734

Change-Id: I40516c2416e504fd8b7098e2aae40326bac5b0a3
Reviewed-on: http://git-master/r/206391
(cherry picked from commit ddb3591f0270ba6e0f43a91c29c69518b565785f)
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/207391
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

6 years agosoc: tegra: fix coverity errors
Dara Ramesh [Tue, 5 Mar 2013 10:44:53 +0000]
soc: tegra: fix coverity errors

fix memory cleanup and array comparison with null.

Change-Id: Ib27b0814c2744024f36fa3f3f510927eceb490a1
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/206284
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoarm: tegra: pluto: fix coverity error
Dara Ramesh [Tue, 5 Mar 2013 10:36:08 +0000]
arm: tegra: pluto: fix coverity error

added new variable to check edp support.

Change-Id: Ia5d63c8e6ddfb98c7218efa53103aaa286c67298
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/206282
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agoARM: tegra: usb_phy: Reset Controller during open
Suresh Mangipudi [Wed, 27 Feb 2013 08:57:29 +0000]
ARM: tegra: usb_phy: Reset Controller during open

The USB(HSIC) controller is reset during the open of the driver.

Bug 1237224

Change-Id: Ic881689752b7c89b8c8b3342ad870bc1b90be5f0

Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Change-Id: I0fe674086711ae1788ed42d4708eee92ffd0f9e4
Reviewed-on: http://git-master/r/204501
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

6 years agommc: tegra: Enable cache control for eMMC4.5 device
Naveen Kumar Arepalli [Fri, 22 Feb 2013 15:01:00 +0000]
mmc: tegra: Enable cache control for eMMC4.5 device

Enable cache control for eMMC4.5 devices.

Bug 1247699
Bug 1238635

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

6 years agovideo: tegra: dc: Fix display blink during boot
Vineel Kumar Reddy Kovvuri [Mon, 18 Feb 2013 05:35:23 +0000]
video: tegra: dc: Fix display blink during boot

Fix for display flashing multiple times when jumping from bootloader
to kernel during boot

Bug 1229530

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

6 years agoarm: tegra: dalmore: Fix display blink during boot
Vineel Kumar Reddy Kovvuri [Mon, 18 Feb 2013 05:34:19 +0000]
arm: tegra: dalmore: Fix display blink during boot

Fix for display flashing multiple times when jumping from bootloader
to kernel during boot

Bug 1229530

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

6 years agoARM: tegra: dvfs: Add dvfs rails thermal profiles
Alex Frid [Wed, 6 Mar 2013 07:34:16 +0000]
ARM: tegra: dvfs: Add dvfs rails thermal profiles

Added thermal profiles for dvfs rails: vdd_cpu and vdd_core. Thermal
profile for each rail specifies a set of temperature trip-points and
matching minimum voltage levels (thermal floors) that limit voltage
down scaling within the respective temperature ranges. For now, only
monotonically descending profiles are supported.

Converted Tegra11 implementation of cold temperature minimum voltage
limit into single-trip-point profile.

Bug 1248374

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

6 years agowatchdog: tegra: Only support one wdt device
Bo Yan [Fri, 8 Mar 2013 02:12:01 +0000]
watchdog: tegra: Only support one wdt device

Change-Id: I91dd3214092ab5b450e74bc5bf772ee02f6b432e
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/207770
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

6 years agoARM: tegra: TMR8/TMR9 not to be used for watchdog
Bo Yan [Fri, 8 Mar 2013 02:02:32 +0000]
ARM: tegra: TMR8/TMR9 not to be used for watchdog

TMR7 is used for watchdog. TMR10 is used for suspend/resume
recovery only.

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

6 years agovideo: tegra: camera: change unit of emc clock
Jihoon Bang [Wed, 20 Feb 2013 04:17:40 +0000]
video: tegra: camera: change unit of emc clock

Change unit of emc clock from Hz to Byte/sec.
Camera SW in userspce submits required peak
memory BW to camera driver.

Bug 1237491

Change-Id: Idb425509af33acb92c84379efd07f0d6fe5dd165
Reviewed-on: http://git-master/r/202315
(cherry picked from commit ac1c8164a72900d86c66559e960b4eeb42191295)
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/207390
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>

6 years agoarm: tegra: macallan: add regulator for gyro sensor
Kerwin Wan [Mon, 4 Mar 2013 02:41:39 +0000]
arm: tegra: macallan: add regulator for gyro sensor

Bug 1245415

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

6 years agoARM: tegra: clock: Fix spelling in function names
Alex Frid [Sun, 3 Mar 2013 04:01:10 +0000]
ARM: tegra: clock: Fix spelling in function names

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

6 years agommc: Tegra: Fix calculation for partial_win_tap
Graziano Misuraca [Thu, 28 Feb 2013 23:02:50 +0000]
mmc: Tegra: Fix calculation for partial_win_tap

Bug 1241780

Change-Id: I1dd88a0a463fa90908a4a4bfe749fa526eba3689
Signed-off-by: Graziano Misuraca <gmisuraca@nvidia.com>
Reviewed-on: http://git-master/r/205283
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

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>