8 years agomisc: nct1008: Power control for nct1008
Laxman Dewangan [Fri, 8 Jul 2011 08:33:14 +0000]
misc: nct1008: Power control for nct1008

Adding the power control support for device nct1008
to make sure that power is enable on device before
accessing the device.

bug 849307

Original-Change-Id: I84d7abc142814014bfc568b3a4b0ae0d5329f41e
Reviewed-on: http://git-master/r/40160
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R49d4709c030086c9596e3a81664b46967de8f029

8 years agomfd: tps80031: Support for 80032 chip
Laxman Dewangan [Wed, 29 Jun 2011 04:40:53 +0000]
mfd: tps80031: Support for 80032 chip

Creating framework so that tps80031 driver can be instantiated with the
name of tps80032 also and it can provide the device/chip info to its
client.

bug 820885

Original-Change-Id: I1c40b7c6bec1f4abbc670aaa4317fad49e5d308a
Reviewed-on: http://git-master/r/38859
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R4953c404fb2af827b53a0173ac6a06806d2f2112

8 years agoarm: tegra: gpio_get_value can read output gpio
Seongho Joo [Wed, 15 Jun 2011 15:09:21 +0000]
arm: tegra: gpio_get_value can read output gpio

gpio_get_value only supports input pin.
extend the usage for output pin.

Bug 839772

Original-Change-Id: I5a8f5572148afde23e082af18f2e37377ae50bd1
Reviewed-on: http://git-master/r/36758
Tested-by: Seongho Joo <sjoo@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R021e8ff272e4cecd855a574b008dbf8663378970

8 years agoarm: tegra: panel: Fix build warnings for Cardhu
Scott Williams [Tue, 14 Jun 2011 20:31:54 +0000]
arm: tegra: panel: Fix build warnings for Cardhu

Fixes "warning: '<variable>' defined but not used" and "warning:
label '<label>' defined but not used" messages.

Original-Change-Id: I6172b3648f824bb315d4a296b034f419d81bc786
Reviewed-on: http://git-master/r/36583
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rfc29454b8f9441237109e5b90a427f0eb8a3be71

8 years agomedia: tegra: video: Fix build warnings
Scott Williams [Tue, 14 Jun 2011 19:27:49 +0000]
media: tegra: video: Fix build warnings

Fixes "warning: '<variable>' defined but not used" messages.

Original-Change-Id: Ia4980d0262174cb8f39f9c0f67a9d94ff4be8b97
Reviewed-on: http://git-master/r/36561
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Ra110459be280f20e326c28abedc9a8ea2c6c8fff

8 years agoarm: tegra: Fix build warnings
Scott Williams [Tue, 14 Jun 2011 19:16:53 +0000]
arm: tegra: Fix build warnings

Fixes "warning: passing argument 1 of 'param_get_uint' discards
qualifiers from pointer target type" and "note: expected 'char *'
but argument is of type 'const char *'" messages.

Original-Change-Id: I7610dc0bde0cf3b9a7597f3892b09f7c31a156d1
Reviewed-on: http://git-master/r/36560
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R87f617932a52d873aa237072e14339627300cf5d

8 years agotegra: clocks: Fix in clock settings
mchourasia [Mon, 27 Jun 2011 06:34:21 +0000]
tegra: clocks: Fix in clock settings

clk_disable_locked should not be called when
clk_enable_locked is failed.

Original-Change-Id: I2524ec0198f62de2487723676ca7657d15757eda
Reviewed-on: http://git-master/r/38273
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1598bf84619449922c599d611a84dec791047837

8 years agotegra: ulpi: Fix for externally driven ULPI
mchourasia [Fri, 24 Jun 2011 12:17:32 +0000]
tegra: ulpi: Fix for externally driven ULPI

ULPI can be driven by external clock. It might be
the config data may not register clock for ULPI.

This patch put a check for phy->clk before acutally
doing any clock operations on it.

Original-Change-Id: Icb4626c0d5f63a6db098a81e9d590ef38f0ba8f6
Reviewed-on: http://git-master/r/38274
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R504792e9bc2a44c98db94ccfd7f6a7457e726cf7

8 years agotegra: dc: set HDMI clock to 0 if HDMI unplugged
Xin Xie [Fri, 27 May 2011 22:58:08 +0000]
tegra: dc: set HDMI clock to 0 if HDMI unplugged

HDMI clock is not auto dvfs, so we need set the clock rate to 0 if HDMI
is disabled. Otherwise the Vdd core voltage will be always 1.2v even
after HDMI cable unplugged.

BUG: 828306
Reviewed-on: http://git-master/r/34379
(cherry picked from commit 58ddd144a6c2dd9bbc9d2f3c8b1e025364d88c22)

Original-Change-Id: I8b26702bc11321649f44b92d0968b3672d902304
Reviewed-on: http://git-master/r/37105
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb92197b1de5edca5c9df314804d5b1eef0bbcc2a

8 years agoarm: tegra: cardhu: Fix the issue of boot screen corruption.
Kevin Huang [Wed, 6 Jul 2011 01:27:43 +0000]
arm: tegra: cardhu: Fix the issue of boot screen corruption.

- The issue is due to the corruption of bootloader fb during kernel
initialization. This change reserves the bootloader fb and then
frees it until bootloader fb is copied to fb for Cardhu, Ventana,
Whistler, Enterprise and Aruba.
- Change color depth of Cardhu and Harmony to 32-bit.

Bug 828271
Bug 832016

Original-Change-Id: I05ef5930ee68dcbd672a5cb59b4568a2c88a2e55
Reviewed-on: http://git-master/r/34966
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb3c9280ea4643ccee661d37d24fb540319470bf7

8 years agoARM: tegra: cardhu: Fix clock-related issues on display.
Kevin Huang [Thu, 30 Jun 2011 22:04:42 +0000]
ARM: tegra: cardhu: Fix clock-related issues on display.

- Set parent clock for lvds and HDMI to avoid clock source conflict.
- Fixed short lvds shutdown during booting.

Bug 847219

Original-Change-Id: Ib32f2047c69c64516d639de247258df001ecd180
Reviewed-on: http://git-master/r/39271
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rba7d9c9d88f95482e0bb3579af1e80b5e2ff65ed

8 years agovideo: tegra: dc: Update the tegra_dc_setup_clk() for HDMI and DSI.
Kevin Huang [Wed, 29 Jun 2011 22:54:20 +0000]
video: tegra: dc: Update the tegra_dc_setup_clk() for HDMI and DSI.

Fix the conflict of clock sources for HDMI & DSI.

Original-Change-Id: I730a39fbfd5fe56eea10c0f2147ceee7c3f03921
Reviewed-on: http://git-master/r/39081
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb7201a0b141f699841f2eeb73faddea3f7983759

8 years agomedia: video: tegra: set_clk_rate for avp
Sachin Nikam [Wed, 6 Jul 2011 08:27:31 +0000]
media: video: tegra: set_clk_rate for avp

set_clk_rate for sclk which is parent of avp clock.

Bug 843725

Original-Change-Id: I51810235a8f820a14afdd8dcf370b55e4d603a68
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/39772
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R61690be56d36c81fa0e283fab760b1d31021110c

8 years agoarm: tegra: tsensor: driver instantiation
Bitan Biswas [Fri, 10 Jun 2011 07:39:00 +0000]
arm: tegra: tsensor: driver instantiation

Tegra internal tsensor driver supported for fuse revision 0.8
and above.

Bug 661228

Original-Change-Id: I820f6b5f20c20bb2d1ba04266148f5969ab84444
Reviewed-on: http://git-master/r/36054
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4725524b5e3f83b4cd3dd7d0020ef2d6e09a87d0

8 years agoarm:tegra:tsensor: device definitions
Bitan Biswas [Tue, 22 Feb 2011 13:13:43 +0000]
arm:tegra:tsensor: device definitions

Tegra internal temperature sensor addresses defined

Bug 661228

Original-Change-Id: I061ac9e7da3115d1e832e645582353f93378d291
Reviewed-on: http://git-master/r/36119
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: R62de8521a55164f582eb2b0f8ad5a83bbc02876c

8 years agohwmon:tegra:tsensor driver added
Bitan Biswas [Tue, 22 Feb 2011 13:32:44 +0000]
hwmon:tegra:tsensor driver added

Tegra integrated temperature sensor(tsensor) driver added
 - TH3 counter < current counter causes hardware reset
 - TH2 counter < current counter causes CPU clock to be halved
 - sysfs interface provided for select operations
 - interrupts TH1 TH2 and TH3 working
 - used recommended N,M and clk source settings
 - tsensor counter to temperature conversion added
   tsensor1 counter being used for temperature computations.

Bug 661228

Original-Change-Id: I0fa405c0f542d1b215162291bd913a9ccd55a0f5
Reviewed-on: http://git-master/r/36083
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R3c910b4fdc630ffee2135d3d649e25015d2b7206

8 years agoarm: tegra: cardhu: Fix warnings when USB_SUPPORT is disabled
Krishna Monian [Thu, 23 Jun 2011 18:26:01 +0000]
arm: tegra: cardhu: Fix warnings when USB_SUPPORT is disabled

Original-Change-Id: Id798fd4c2d3a0484933bd2d1778fe9abb106a20e
Reviewed-on: http://git-master/r/38121
Tested-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Vivek Aseeja <vaseeja@nvidia.com>

Rebase-Id: R1c20a6e7f1f1a29e673839fc8a60860b93adcc35

8 years agoRevert "arm: tegra: disable HDA clocks while not in use"
Sumit Bhattacharya [Tue, 16 Aug 2011 00:49:26 +0000]
Revert "arm: tegra: disable HDA clocks while not in use"

This reverts commit d63d310e78aeb9f5a8dd0b6dc2de7f3f0fa65628.

Bug 820213
Bug 839572

Reviewed-on: http://git-master/r/40031

Rebase-Id: R23c81ec6be844a946ce997387754bdcdf4f94ebb

8 years agomedia: tegra: avp: respond to unsupported service ids
Sachin Nikam [Thu, 30 Jun 2011 15:40:05 +0000]
media: tegra: avp: respond to unsupported service ids

AVP service driver responds error to AVP for invalid or unsupported
service IDs.

Bug 843473

Original-Change-Id: Ic747c7cf0b34b6b30abdb64c4ff005d298fa1530
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/39225
Reviewed-by: Andy Ritger <aritger@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rc2cf57d3643343c6cb59cd5da8c5c8351dd2e95e

8 years agoRevert "i2c: tegra: Remove the synchronization between isr and caller"
Alok Chauhan [Tue, 16 Aug 2011 00:47:40 +0000]
Revert "i2c: tegra: Remove the synchronization between isr and caller"

This reverts commit 738c1a66079ee7db8e4365aa85819ccdef2592a8.
This fixed the video recording system hang bug

Bug 842901

Reviewed-on: http://git-master/r/39912

Rebase-Id: R183a5a9202ec65099503ddad913a25b139bd6d91

8 years agovideo: tegra: refactor for multiple chip support
Ken Adams [Sat, 18 Jun 2011 14:14:42 +0000]
video: tegra: refactor for multiple chip support

Original-Change-Id: Ia203886a3b013612b4159393ff43a25a313d1ece
Reviewed-on: http://git-master/r/35911
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R01b763362c13e09111f60700c3d3a7d2a9a3fc1c

8 years agoarm: tegra: enterprise/ventana: debug console through device
Laxman Dewangan [Sun, 26 Jun 2011 16:22:15 +0000]
arm: tegra: enterprise/ventana: debug console through device

Using the debug port device structure to enabling/configuring the
uart debug console port.

Removing the duplicate local definition of the uart console.

Original-Change-Id: Icbf954e0d02dcc4891169b3c701c72f35f8f29e3
Reviewed-on: http://git-master/r/35711
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R74bd3a179a7ef7327397805f21389f08ac3bceb1

8 years agovideo: tegra: Aligned the stride of fb to 16-byte boundary.
Kevin Huang [Mon, 6 Jun 2011 21:16:54 +0000]
video: tegra: Aligned the stride of fb to 16-byte boundary.

Aligned memory can improve the performance memory access. Also,
since the bootloader fb is aligned, kernel needs to do it to avoid
skew.

Original-Change-Id: Ia5a122539856da9e9c73580929b8ea9c73e86c9d
Reviewed-on: http://git-master/r/35276
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rdc32cc0c095903cb731b47e96b5723b13066b63b

8 years agoARM: tegra: cardhu/enterprise: Binwidth Specific smartdimmer Settings
Matt Wagner [Wed, 22 Jun 2011 18:12:14 +0000]
ARM: tegra: cardhu/enterprise: Binwidth Specific smartdimmer Settings

Added support for Binwidth specific LUT and BLTF

Bug 721258

Original-Change-Id: I1a4eb6a4d32f736101156a7f388ed0699b66c189
Reviewed-on: http://git-master/r/36418
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R777b4195fda082f61678dabef8ccc1211dad9f31

8 years agovideo: tegra: Changes for smartdimmer
Matt Wagner [Tue, 14 Jun 2011 01:56:54 +0000]
video: tegra: Changes for smartdimmer

Added support for binwidth specific settings
for BLTF and LUT.  sysfs support is included.

Bug 721258

Original-Change-Id: I2b76503a51fcbc9ca5cb4ca69fcf722f93878e6d
Reviewed-on: http://git-master/r/36416
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rae8570f5dc97a3798966cf48c402212d1fa8359f

8 years agovideo: tegra: nvmap: fix GART pin lockups
Kirill Artamonov [Wed, 15 Jun 2011 00:40:32 +0000]
video: tegra: nvmap: fix GART pin lockups

Fix GART lockups caused by fragmentation by evicting
mapped areas from iovm space after unsuccessful array
pinning attempt.

Fix double unpin error happening during interrupted
submit.

Fix possible sleep in atomic context in iovmm code
(semaphore inside spinlock) by replacing spinlock
with mutex.

Fix race between handle_unpin and pin_handle.

bug 838579
bug 838073
bug 818058

Original-Change-Id: I420447ffb4e02fb78a7987e22a537eefc16ff524
Reviewed-on: http://git-master/r/36129
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R893c97003f2ec2f69e224f35d99d3488f673d620

8 years agoARM: tegra: cardhu: Update vid_oc pin for pm269
Ray Poudrier [Wed, 6 Jul 2011 16:22:28 +0000]
ARM: tegra: cardhu: Update vid_oc pin for pm269

Correct pingroup is DAP3_DOUT

Bug 825778

Original-Change-Id: I252398c4f1d653c73c5fd26a7b5c12410a962ade
Reviewed-on: http://git-master/r/39822
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rb3bb758d23520c165fa6369bcb16979ec1824b5b

8 years agoarm: tegra: cardhu: add support for TPS61050 flash driver
Danielle Sun [Thu, 26 May 2011 23:52:24 +0000]
arm: tegra: cardhu: add support for TPS61050 flash driver

Bug 794431

Original-Change-Id: I889c224b184d099339ccdb438326a2037f85cdf6
Reviewed-on: http://git-master/r/34214
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R4427050d243067273f1035b4d7f18db3c8c0ee51

8 years agoarm: tegra: enterprise: VIO and SMPS3 to be always on
Laxman Dewangan [Thu, 30 Jun 2011 05:18:20 +0000]
arm: tegra: enterprise: VIO and SMPS3 to be always on

Making VIO and SMP3 to be always on as these are parent to some
other rails.

This is software workaround avoid recursive locking when doing the
regulator disable/enable in notifier_call_chain of regulator
core driver.

bug 845849

Original-Change-Id: I9e1de53e86a0c8aeafd88b6e10d2245283fb7660
Reviewed-on: http://git-master/r/39130
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rd29727335ccac915bb54a9f20b35a995f3775fba

8 years agoserial: 8250: tegra: disabling MSR interrupts
Pradeep Goudagunta [Wed, 6 Jul 2011 10:48:46 +0000]
serial: 8250: tegra: disabling MSR interrupts

-Disabling modem status interrupts for tegra based UART.
-Removed duplicate declaration of PORT_TEGRA.

Bug 840111

Original-Change-Id: I926c200ce66e926186e5295bc1ead8c6ecf70891
Reviewed-on: http://git-master/r/39788
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Jack Zhou <jazhou@nvidia.com>
Tested-by: Jack Zhou <jazhou@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Krishna Monian <kmonian@nvidia.com>

Rebase-Id: Ra34db21ae6dfbffea27b466cb90cfa4eb4717ac2

8 years agoserial: tegra: support auto control of RTS
Pradeep Goudagunta [Fri, 1 Jul 2011 09:06:50 +0000]
serial: tegra: support auto control of RTS

Added support for auto control of RTS.

Bug 825938

Original-Change-Id: Ic5ffde2252ab0f0ffb9001994863f3d4ed5d1173
Reviewed-on: http://git-master/r/39356
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Rb21ef7c26a2f8644ab81171b41ba4275e38023b0

8 years agomedia: video: tegra: avp: Retry to connect to the AVP.
Jubeom Kim [Tue, 14 Jun 2011 06:32:15 +0000]
media: video: tegra: avp: Retry to connect to the AVP.

Sometimes avp_node_try_connect is failed.
It is the timing problem between CPU and AVP.

1) Added the retry routine for avp-connection.
2) Increased the time-out value of msg_wait_ack_locked function
   from 200ms to 400ms.

Bug 822104, 797362

Reviewed-on: http://git-master/r/36439
(cherry picked from commit bdc441e9bebeb893b7e9ec383fd77869dbcefc09)

Original-Change-Id: Ie5b31a50fb61691055ad41f0ac3ce627c08e0ebd
Reviewed-on: http://git-master/r/38450
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R54b77903470a07927d37a220c5865b0ba6ff000d

8 years agomedia: video: tegra: TPS61050 flash driver
Danielle Sun [Thu, 26 May 2011 23:17:44 +0000]
media: video: tegra: TPS61050 flash driver

Kernel driver for TPS61050 flash/torch camera device.

Bug 794431

Original-Change-Id: I760bd086c283076dc7136bd8ccd6b75e6e823ea8
Reviewed-on: http://git-master/r/34208
Tested-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Michael Stewart <mstewart@nvidia.com>
Reviewed-by: John Sasinowski <jsasinowski@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Radb862760f165e40b764b3bb104787427d024c7e

8 years agoARM: tegra: sysfs write permission for user only
Manoj Gangwal [Fri, 1 Jul 2011 10:09:43 +0000]
ARM: tegra: sysfs write permission for user only

Giving read-write permission for user only for sysfs attributes.
Group and other will have only read permission.
-clock: syncevents

Bug 828100

Original-Change-Id: I14affc209e954a58de055e291093e31dc1dbfe16
Reviewed-on: http://git-master/r/39364
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R97f4eadb711717e788be7c4e4e8993d048cf1428

8 years agomfd: tps80031: Support second level of charge_control interrupt
Laxman Dewangan [Tue, 28 Jun 2011 15:04:02 +0000]
mfd: tps80031: Support second level of charge_control interrupt

There is multiple independent case for charge control interrupt and
so exposing each of the case as separate interrupt number.

bug 842072

Original-Change-Id: I500d7e921e07b43de4eefdde2590f045022d8169
Reviewed-on: http://git-master/r/38732
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R2a6a949e0c38731dd28af9c8bc67289f53c0066f

8 years agoARM: tegra: dvfs: Update Tegra3 CPU and core voltage dependencies
Alex Frid [Fri, 24 Jun 2011 00:30:23 +0000]
ARM: tegra: dvfs: Update Tegra3 CPU and core voltage dependencies

Updated implementation of CPU and core voltage dependencies so that
range limits can be changed for different versions of Tegra3 (rather
than use fixed limits across entire Tegra3 architecture). Decoupled
safe VDD step definition from range limit, and changed the step from
300mV to 100mV.

Bug 841286

Original-Change-Id: I63e0bc9751048741a47a40410b54863984f91aca
Reviewed-on: http://git-master/r/38179
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R665a6f859aa744e1b64a19d9ba5aa2f37581103e

8 years agoARM: tegra: power: Refactored kernel powergate code
Karan Jhavar [Tue, 17 May 2011 00:00:43 +0000]
ARM: tegra: power: Refactored kernel powergate code

This change provides a centralized location for powergating modules.
It would take care of switching on/off clocks while un-powergating/
powergating modules respectively.

Bug: 814267
Original-Change-Id: Ic80dc517f634c29085c8e089bdaa32c6fd742710
Reviewed-on: http://git-master/r/31776
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: Rc0aac0edd4e693c15d22d998c882fceeeb85765d

8 years agotegra: power: correct LP0 sequence
Jay Cheng [Tue, 16 Aug 2011 18:57:59 +0000]
tegra: power: correct LP0 sequence

Change-Id: I5f548f11059039cbd830be483ecfa0c6671002e7
Reviewed-on: http://git-master/r/47365
Tested-by: Cho-Che Cheng <jacheng@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rd7ef967c8b40295a04a0447eb8bbc8e2d577a48e

8 years agotegra: power: add wakeup_key method
Jay Cheng [Tue, 16 Aug 2011 02:03:23 +0000]
tegra: power: add wakeup_key method

connect wakeup_key method to KEY_POWER (TEGRA_WAKE_GPIO_PV2)

Change-Id: I13b8f503399989bb06e97343711ed9e7348839ac
Reviewed-on: http://git-master/r/47364
Tested-by: Cho-Che Cheng <jacheng@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rffb10919b9cfa49c975f37d12646a34aeee44375

8 years agoARM: tegra: power: setup TTB0 for cacheable memory
Jin Qian [Tue, 16 Aug 2011 02:32:23 +0000]
ARM: tegra: power: setup TTB0 for cacheable memory

Bug 862494

Change-Id: Ib7875ded150b3e9dc288a9ed90f6ded0a37014a3
Reviewed-on: http://git-master/r/47246
Tested-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R11be58a9cf3a46fadf985e209e26dc00a8d87c58

8 years agoARM: tegra2: power: fix LP2 statistics reporting
Jin Qian [Tue, 16 Aug 2011 01:07:40 +0000]
ARM: tegra2: power: fix LP2 statistics reporting

Bug 863108

Change-Id: I5cc4e3ba58daeaeb527871026c85bdca5f6362f2
Reviewed-on: http://git-master/r/47232
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Tested-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R843a5cf74874bad3999bc55caa0eb8cad04cc555

8 years agoARM: tegra: Fix build error when CONFIG_SMP is not selected
Scott Williams [Wed, 17 Aug 2011 18:47:58 +0000]
ARM: tegra: Fix build error when CONFIG_SMP is not selected

Change-Id: I2420730290c7ecb407e6f30c8a6159ceadfabbbe
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/47589
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rb177b1e8ed9ce89c732319f49525588c5c0dd9d0

8 years agoARM: tegra: Delete obsolete tegra_audio_device declaration
Scott Williams [Wed, 17 Aug 2011 19:19:09 +0000]
ARM: tegra: Delete obsolete tegra_audio_device declaration

Change-Id: I119fdbbc2440f8a7e64e2f3b5cec2ae4b182ee36
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/47592
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R891ed7225b634dc01aaf3f13dbe79fc1eae1c27c

8 years agoARM: tegra: Delete references to obsolete tegra_audio_device
Scott Williams [Wed, 17 Aug 2011 19:18:17 +0000]
ARM: tegra: Delete references to obsolete tegra_audio_device

Change-Id: Id234e2d264d70c2244f4040d74f43b5478043904
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/47591
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Re8ab569df562b66ffa14e589775968238fc4c338

8 years agoARM: tegra: Fix build error when CONFIG_PM_SLEEP is not selected
Scott Williams [Wed, 17 Aug 2011 18:49:57 +0000]
ARM: tegra: Fix build error when CONFIG_PM_SLEEP is not selected

Change-Id: I65e18395eef3a36f6dd537d64d98ab970f166460
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/47590
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R2643d7665780442e71444999f21d96a508c7a062

8 years agoARM: tegra: workqueue: Unify spelling of 'freeze'+'able' to 'freezable'
Gaurav Sarode [Tue, 16 Aug 2011 09:42:41 +0000]
ARM: tegra: workqueue: Unify spelling of 'freeze'+'able' to 'freezable'

In K39 , 'freezeable' is changed to 'freezable'.
Reference Commit Id 58a69cb47ec6991bf006a3e5d202e8571b0327a4.

Change-Id: Ie3f95db453205c05da4cf4e655ba8b12a126255b
Reviewed-on: http://git-master/r/47487
Tested-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R530643b91e8c252eb606ce7e789cfe34101f6edd

8 years agoASoC: Tegra: Tegra3 requires SND_SOC_TEGRA30_AHUB
Sumit Bhattacharya [Fri, 12 Aug 2011 17:04:43 +0000]
ASoC: Tegra: Tegra3 requires SND_SOC_TEGRA30_AHUB

Bug 862023

Change-Id: Ie16d410c7021640898bfbc8fcf451d14e832af6f
Reviewed-on: http://git-master/r/47155
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: Raa466f8f365399c0091a173752dfc9d1c83316f8

8 years agovideo: tegra: Use new Tegra platform types
Yudong Tan [Mon, 27 Jun 2011 21:05:58 +0000]
video: tegra: Use new Tegra platform types

This change is needed to support three platforms, silicon,
fpga and simulation.

Change-Id: I70c6edbab85712b037b1ddf15ce72cf1a2affeba
Reviewed-on: http://git-master/r/36354
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rdd2875e5494a504dc4d2df0393bc798765a9b865

8 years agoarm: tegra: Use new platform types
Yudong Tan [Fri, 1 Jul 2011 18:26:17 +0000]
arm: tegra: Use new platform types

This change is needed to support three different platforms, silicon,
 fpga and simulation.

Change-Id: I407853e1d86accbe3686deb4f34571fe6b10bcce
Reviewed-on: http://git-master/r/36351
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc4b424f1a55ffb71245f3a8330559258124e2a19

8 years agoarm: tegra: Add platform types for Tegra
Yudong Tan [Mon, 13 Jun 2011 20:14:01 +0000]
arm: tegra: Add platform types for Tegra

Change-Id: Ib9ef42efcbc24d1424a1b43e7d4ad46b97255aaa
Reviewed-on: http://git-master/r/36350
Reviewed-by: Yudong Tan <ytan@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R99f25c1b92fe4a9322d83e00c9560fc7ada2b641

8 years agousb: tegra: Use new Tegra platform types
Yudong Tan [Mon, 13 Jun 2011 20:14:53 +0000]
usb: tegra: Use new Tegra platform types

This change is needed to support three platforms, silicon,
fpga and simulation.

Change-Id: Ib34cc90ebd5a5c98c00c17d68d384e0b4f94fab8
Reviewed-on: http://git-master/r/36353
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Yudong Tan <ytan@nvidia.com>

Rebase-Id: Rf4b3e027ded924286724f7b1a8643f810b503f69

8 years agortc: tegra: Use new Tegra platform types.
Yudong Tan [Mon, 13 Jun 2011 20:14:34 +0000]
rtc: tegra: Use new Tegra platform types.

This change is needed to support three platforms, silicon,
fpga and simulation.

Change-Id: I1e132fd744e1fe716c3098b117e38e3c77678b49
Reviewed-on: http://git-master/r/36352
Reviewed-by: Mark Stadler <mastadler@nvidia.com>
Tested-by: Yudong Tan <ytan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: Rb4c122fc6b87240fc5a14f1addb4d22e121a84a7

8 years agoARM: config: tegra3: Enable TPS80031, gpio reg
Dan Willemsen [Mon, 15 Aug 2011 22:03:17 +0000]
ARM: config: tegra3: Enable TPS80031, gpio reg

Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R0a2fb354b3b79058ef435577d44f11d595fe46c3

8 years agoinput: touch: atmel_mxt_ts: Prevent boot and resume hangs.
Robert Collins [Fri, 8 Jul 2011 22:29:30 +0000]
input: touch: atmel_mxt_ts: Prevent boot and resume hangs.

Prevents touchscreen hangs during initial TS boot, and TS resume.

BUG 847725
BUG 845156
BUG 846711

Original-Change-Id: Ia853574e4b2422eb9368fe37eaf7457bd4022df8
Reviewed-on: http://git-master/r/40261
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc1de4685a4e85d761097142b39f2a672846b8c44

8 years agobacklight: tegra_pwm: Add backlight type
Dan Willemsen [Wed, 10 Aug 2011 04:50:03 +0000]
backlight: tegra_pwm: Add backlight type

Original-Change-Id: I43036163f62c33f29c915fd4fe37ea10f71dfb55
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Re7c21b8cced25ed6e4038929a0f80892ec91b9a1

8 years agoregulator: tps80031: Fix build warning
Dan Willemsen [Wed, 10 Aug 2011 04:49:03 +0000]
regulator: tps80031: Fix build warning

Original-Change-Id: I0bcfd38569b9a9a1cc21d0e9d12a0d114d87be9c
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rf1f1609942bd3ca4fae07ab37304cb214ab87774

8 years agomfd: tps80031: Update to new IRQ API
Dan Willemsen [Wed, 10 Aug 2011 04:48:13 +0000]
mfd: tps80031: Update to new IRQ API

Original-Change-Id: Ic68fb22749dae71751c64326e0912d6267f1c886
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rd8742c88232a033d8648443bff0271727e713ff1

8 years agoarm: tegra: cardhu: correct rail_names in ina219_platform_data
Pritesh Raithatha [Mon, 4 Jul 2011 09:00:02 +0000]
arm: tegra: cardhu: correct rail_names in ina219_platform_data

Bug 844743

Original-Change-Id: I7538342b2a267540ee14ddd70e10d0d71618d46e
Reviewed-on: http://git-master/r/39527
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

Rebase-Id: Rc4967909a7a47860073144c11f69b73453e1e897

8 years agovideo: tegra: host: No S_IWGRP permission for sysfs attrbs
Manoj Gangwal [Fri, 1 Jul 2011 10:32:11 +0000]
video: tegra: host: No S_IWGRP permission for sysfs attrbs

Removing write permission for Group and others for sysfs:
"null_kickoff_pid" attribute as CTS test "android.permission
.cts.FileSystemPermissionTest#testAllFilesInSysAreNotWritable"
requires it as non-writable.

Bug 828100

Original-Change-Id: Ifa2ee439a63f0503bf10f10f3cf31cd7c91c2842
Reviewed-on: http://git-master/r/39367
Tested-by: Manoj Gangwal <mgangwal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

Rebase-Id: Rd386df89e37ba55d9157bc71237175d0b6fa6f6b

8 years agoarm: tegra: pm269: Low power mode to unused vddio-gmi pins
Laxman Dewangan [Fri, 1 Jul 2011 15:05:49 +0000]
arm: tegra: pm269: Low power mode to unused vddio-gmi pins

Putting the unused vddio_gmi pins into the low power mode.

bug 833087

Original-Change-Id: I7595d011a61d5993fee167e89ed7eb204d5cb6b6
Reviewed-on: http://git-master/r/37877
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R3fa74a5ebc7720b95f91f8da7b665e634522f210

8 years agoarm: mfd/regulator: tps80031: Adding force_update for status register
Jin Park [Sat, 25 Jun 2011 08:00:03 +0000]
arm: mfd/regulator: tps80031: Adding force_update for status register

The state register is read and write register, if read, it returned
current state, not current written value in register.
So if it want to write the value into state register, it must unconditional
write the value, don't use update(read and compare and then write).

Bug 838189

Original-Change-Id: I2555875a822f159e664b0834af2d00073c859acd
Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/38396
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Ra90d4ccbe0373bbdad44422e8ff6798eea96019a

8 years agomedia: video: update copyright headers
Frank Chen [Thu, 30 Jun 2011 00:28:10 +0000]
media: video: update copyright headers

update headers for camera files

bug 846086

Original-Change-Id: Id53c77ead17b569ad05c0a5b8ec7f2a5d1aef869
Reviewed-on: http://git-master/r/39102
Reviewed-by: Erik M Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Abhinav Sinha <absinha@nvidia.com>
Reviewed-by: Michael Stewart <mstewart@nvidia.com>
Tested-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: R4526cd043ef49dfa4a0c48f5942fca57e81eb4f0

8 years agoARM: tegra: clock: Change default sampling period to 12ms
Tom Cherry [Tue, 5 Jul 2011 22:08:53 +0000]
ARM: tegra: clock: Change default sampling period to 12ms

Bug 845349

Original-Change-Id: I0ce1a5da9a80cea6a4e55bc92490e6ae8508e22f
Reviewed-on: http://git-master/r/39704
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rfc2bfc89082778e43d15406b0b5e53bdf845f08e

8 years agoARM: tegra: power: Restore cpufreq governor target
Alex Frid [Sat, 25 Jun 2011 04:06:22 +0000]
ARM: tegra: power: Restore cpufreq governor target

Restored cpufreq governor target frequency on exit from suspend.
Otherwise, CPU would stay at frequency set underneath the governor
by tegra driver on suspend entry.

Original-Change-Id: Iad96c7771bf89b78cdeb3e8f4e2c40b36e845b57
Reviewed-on: http://git-master/r/38390
Reviewed-by: Alex Courbot <acourbot@nvidia.com>
Tested-by: Alex Courbot <acourbot@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R12135cc7f8f940eac1653432786826bf2affec16

8 years agoARM: tegra: cardhu: Add 408MHz node to EMC DFS table
Alex Frid [Thu, 30 Jun 2011 18:40:52 +0000]
ARM: tegra: cardhu: Add 408MHz node to EMC DFS table

Bug 836260

Original-Change-Id: I4fb8e8eb3610676f89cb29ee0d10487c01200f95
Reviewed-on: http://git-master/r/39244
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R1edb58986433fd6cc95ddecf0ef38e8c41f81fed

8 years agoARM: tegra: clock: Add/convert Tegra3 shared bus users
Alex Frid [Sun, 26 Jun 2011 04:57:58 +0000]
ARM: tegra: clock: Add/convert Tegra3 shared bus users

- Convert display users of emc shared bus from shared floor
users to shared bandwidth users

- Add shared ceiling user to each supported shared bus
(cbus, sbus, emc)

Bug 837005

Original-Change-Id: I526d06a7ddd6072ec8ac750c4ffbfb7aa1890ec8
Reviewed-on: http://git-master/r/39140
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Raaca80423e60ee4c37e16c993641c2a5062bfd69

8 years agoARM: tegra: clock: Expand Tegra3 shared bus modes
Alex Frid [Fri, 24 Jun 2011 23:22:26 +0000]
ARM: tegra: clock: Expand Tegra3 shared bus modes

Implemented 3 different modes of combining rate requests from shared
bus users :
- SHARED_FLOOR: cumulative floor request is determined by maximum rate
among all users in this mode and minimum bus rate
- SHARED_BW: cumulative bandwidth request is determined by adding rates
of all users in this mode together
- SHRED_CEILING: cumulative ceiling request is determined by minimum
rate among all users in this mode and maximum bus rate

Final shared bus rate is determined as minimum rate between cumulative
ceiling request and maximum of floor or bandwidth cumulative requests.

Up to now shared bus clocks supported only SHARED_FLOOR mode, and this
mode is kept as default mode for all users. Hence, no change in actual
shared bus operations.

Bug 837005

Original-Change-Id: I29f8215ba7bab4998fdd23b74c4f96611f5848fe
Reviewed-on: http://git-master/r/39139
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Re9f9f87d58419a6756b7985c59743356c6a634bc

8 years agoarm: tegra: usb_phy: pad power off
Suresh Mangipudi [Tue, 28 Jun 2011 10:55:17 +0000]
arm: tegra: usb_phy: pad power off

Turn off the pad power when hotplug support is not supported.

Bug 829628

Original-Change-Id: Iea61ca9ac387f475e177a1c69a97f323ca37659e
Reviewed-on: http://git-master/r/38696
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rf30be66234d431139f62480dda128ce6bda88bd9

8 years agoARM: tegra: dvfs: Set Tegra3 EMC max rate at 1.0V to 408MHz
Alex Frid [Thu, 30 Jun 2011 19:20:31 +0000]
ARM: tegra: dvfs: Set Tegra3 EMC max rate at 1.0V to 408MHz

Bug 836260

Original-Change-Id: I381619f6084a558f4c16142f8f0dfa3565ca2e94
Reviewed-on: http://git-master/r/39247
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Mandar Potdar <mpotdar@nvidia.com>

Rebase-Id: R0d2d4bd478f526d116a741916de5c2fc2df7a998

8 years agoARM: tegra: enterprise: proper emc table
Sachin Nikam [Thu, 23 Jun 2011 09:28:26 +0000]
ARM: tegra: enterprise: proper emc table

Updated SDRAM emc clock table for below freqs.
25.5 MHz, 51 MHz, 102 MHz, 400 MHz.

Bug 832436

Original-Change-Id: I36e51172e98b20f8f099def3b72b503a68013a63
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/38056
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R86b8a379ea13d6d555aff62aafe744248d62094e

8 years agoARM: tegra: power: Update Tegra3 EMC DFS table
Ray Poudrier [Wed, 22 Jun 2011 01:00:19 +0000]
ARM: tegra: power: Update Tegra3 EMC DFS table

Add EMC table for LP-DDR2 Samsung memory

Original-Change-Id: I931bbb0d2283ad94d130803cef7c08b6da5923a1
Reviewed-on: http://git-master/r/37757
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-by: Karan Jhavar <kjhavar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Racdadadfeb4438faab94ca2bea4d9665da381d18

8 years agomedia: video: tegra: avp: add kfree to error routine.
Jubeom Kim [Wed, 22 Jun 2011 13:03:05 +0000]
media: video: tegra: avp: add kfree to error routine.

Needs kfree function when error occurs.

Reviewed-on: http://git-master/r/37859
(cherry picked from commit 26c98cb216294230f5cc46055c48a0224989df80)

Original-Change-Id: Ic83407628eb6e4c2aad0ba014f5a97b561b3ecf6
Reviewed-on: http://git-master/r/38449
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R56e7aec023b2482e51fa4d79e7945382e49304b6

8 years agoARM: tegra: mcstats: Enable overall bandwidth measurement.
Heechul Yun [Tue, 21 Jun 2011 18:31:33 +0000]
ARM: tegra: mcstats: Enable overall bandwidth measurement.

Allow users to measure overall bandwidth of the system.

Original-Change-Id: I5bb19609451a464c0a2335f05033cd9c87927a40
Reviewed-on: http://git-master/r/37687
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R57b747cb81514336fdc45a3eeff17d6d00e154b1

8 years agoarm: tegra: Add sysfs entries for SMMU debugging
Hiro Sugawara [Thu, 16 Jun 2011 23:30:13 +0000]
arm: tegra: Add sysfs entries for SMMU debugging

CONFIG_TEGRA_SMMU_SYSFS enables /sys/devices/smmu/* entries to update
various SMMU register contents from user's land.
Default is "n" to allow only displaying the current values but not
updating except SMMU TLB/PTC statistics enabling and disabling bits.

Original-Change-Id: Icb4574c08d89006cb09da1d8d60c7ab40fefd1b1
Reviewed-on: http://git-master/r/37118
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R647d1f9a59edbbc8a60b7393cb0572a927bd6d32

8 years agoARM: tegra: dvfs: Update Tegra3 cpufreq table selection
Alex Frid [Sat, 18 Jun 2011 07:35:46 +0000]
ARM: tegra: dvfs: Update Tegra3 cpufreq table selection

- For selection of cpufreq scaling table used top-most rate in G CPU
dvfs table, instead of G CPU max rate. Commonly the above rates are
the same, however, in case when PMU limitations on core voltage
indirectly (VDD_CPU on VDD_CORE dependency) lower cpu max rate, the
top-most dvfs rate should be used for table selection, and the max
rate clipped to table entry.

- Replaced BUGs in table selection implementation with errors. Thus,
when no table is found cpufreq is not installed, but the system boots
with respective error messages.

- Step up suspend frequency index in cpufreq tables to reduce suspend
entry latency (the selected rate is still low enough to work under
Vmin voltage setting).

Original-Change-Id: I45db19dbf5b48cef80db35663db2df3b68473993
Reviewed-on: http://git-master/r/37415
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R59fb213db14d868bec0ca701e1c73dd9d1918e82

8 years agotegra_mediaserver: fix wrong kzalloc param, uninitialized values
Jubeom Kim [Wed, 22 Jun 2011 13:56:21 +0000]
tegra_mediaserver: fix wrong kzalloc param, uninitialized values

- Changed the kzalloc param from node to block.
- 'CHECK_CONDITION((physical_address < 0), ...' is not valid,
  because the physical_address value is unsigned value.
- Fixed uninitialized values

Reviewed-on: http://git-master/r/37862
(cherry picked from commit 06d905e9ed14d28224d5f59acf75b4de503f8796)

Original-Change-Id: Ifad28f75b159356acbc045e5e985a618aa8df81b
Reviewed-on: http://git-master/r/38448
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Stephen Holmes <sholmes@nvidia.com>

Rebase-Id: R645e915813a90b87563a59d667dcb5a046862e8e

8 years agocrypto: tegra-aes: replace dev_err and add NULL checking
Jubeom Kim [Wed, 22 Jun 2011 12:46:42 +0000]
crypto: tegra-aes: replace dev_err and add NULL checking

Changed dev_err to pr_err because 'dd' can be NULL.
Added NULL checking before clock disable of engine->pclk

Reviewed-on: http://git-master/r/37857
(cherry picked from commit 851ffd0a30cbe67a5033a9792825b319f0bcd7ed)

Original-Change-Id: If5a2bbd550f3dc038b42d8a185647d02df9cb593
Reviewed-on: http://git-master/r/38446
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R57fa4ce4a2e95d80813448ad5234fb9bdf74faf1

8 years agoARM: tegra: Fixed the wrong 'if' statement.
Jubeom Kim [Mon, 20 Jun 2011 11:39:30 +0000]
ARM: tegra: Fixed the wrong 'if' statement.

Removed the semicolon after 'if'.

(cherry picked from commit 9a118fd001bfbe23a7b825aa66cb19ebe7c12c7c)

Original-Change-Id: I058d58f6bad2ec08cf5a509361dbc3fc52801ce1
Reviewed-on: http://git-master/r/38228
Tested-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: R1221658aa101f439a88df3cdae8a2d8c9c659cfb

8 years agoarm: tegra3: pinmux: Adding SFIO3 mode for VI_MCLK
Harry Hong [Mon, 20 Jun 2011 04:46:37 +0000]
arm: tegra3: pinmux: Adding SFIO3 mode for VI_MCLK

SFIO3 on VI_MCLK pin is needed to output vi_sensor clk.

bug 839517

Original-Change-Id: Ied7408a8711b0256b8fe98eea67c873a7b168bcb
Reviewed-on: http://git-master/r/37426
Tested-by: Harry Hong <hhong@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>

Rebase-Id: Ra0c9550efc2ff7af8075eaf7962be94f2d299c2b

8 years agoarm: tegra: clock: clock fix for lp0
Luke Huang [Sat, 25 Jun 2011 03:13:09 +0000]
arm: tegra: clock: clock fix for lp0

Since clock is required when resetting devices, always enable pllc and plla at
the beginning of clock restore routine. The actual value will be restored back
after reset.

Original-Change-Id: Ic141ddb8cde5958d4e0f8b1154b8204a68c0ca50
Reviewed-on: http://git-master/r/38388
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R254cf377d4cde1863f560867fafc10b4f37a87c9

8 years agoARM: tegra: clock: Add shared bus users rate printout
Alex Frid [Sun, 26 Jun 2011 02:15:28 +0000]
ARM: tegra: clock: Add shared bus users rate printout

Original-Change-Id: Icb1a5028d575155427f1fd7fa5b3ee2a145934f4
Reviewed-on: http://git-master/r/38421
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Gerrit_Virtual_Submit
Reviewed-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>

Rebase-Id: Rf473061330e8b6d63948c9a0ed247e37e3534a52

8 years agoARM: tegra: power: trace C states and CPU mode switches
Peter De Schrijver [Wed, 18 May 2011 08:10:08 +0000]
ARM: tegra: power: trace C states and CPU mode switches

Original-Change-Id: I7915d356f18ac830c93b736463406b907d8c1cef
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-on: http://git-master/r/31958
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R341f7619d11f81fd7dfbab2ceb1c6fdaab6ead78

8 years agoARM: tegra: power: Overlap Tegra3 cpu off delay
Alex Frid [Sat, 14 May 2011 07:11:31 +0000]
ARM: tegra: power: Overlap Tegra3 cpu off delay

Overlap cpu off delay during G-to-LP mode switch with LP mode
residency.

Original-Change-Id: I8e93a5af3983e7daad46ae026fc510ce6c2fef99
Reviewed-on: http://git-master/r/31641
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>

Rebase-Id: R9260cc70b0fd5cf5266c7331a7b37d045f87fbfd

8 years agoARM: tegra: power: Use CPU LP mode for Tegra3 deep sleep
Alex Frid [Fri, 13 May 2011 05:51:34 +0000]
ARM: tegra: power: Use CPU LP mode for Tegra3 deep sleep

Original-Change-Id: If23b48fb414332f5dd25307a098569a5474283c6
Reviewed-on: http://git-master/r/31471
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R6ba9ce7c7b355da4148ce0ebc9bc357bf5fc0b13

8 years agoARM: tegra: power: Idle Tegra3 auto-hoplug on suspend entry
Alex Frid [Fri, 13 May 2011 04:08:34 +0000]
ARM: tegra: power: Idle Tegra3 auto-hoplug on suspend entry

Original-Change-Id: I7f4fb6447c882a54d95ee3fb4c6149f4e0357d69
Reviewed-on: http://git-master/r/31457
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: Rbe2ac5f11065109d34a04793f93c873441e261be

8 years agoarm: tegra: usb_phy: update BIAS and XCVR registers
Rakesh Bodla [Tue, 28 Jun 2011 06:10:48 +0000]
arm: tegra: usb_phy: update BIAS and XCVR registers

Modifing the UTMIP_BIAS_CFG0 and UTMIP_XCVR_CFG0
register settings to pass HS eye-diagram and receiver
sensitivity tests.

Bug 842700

Original-Change-Id: I4660fc3bd4d620408b52ed274232762fe50abee2
Reviewed-on: http://git-master/r/38510
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R3dec3d6e8699a6202482946ea49d0d98fe2cf48c

8 years agovideo: tegra: dc: fix DSI pclk calculation
Xin Xie [Tue, 28 Jun 2011 20:12:48 +0000]
video: tegra: dc: fix DSI pclk calculation

BUG 844499
Original-Change-Id: Ib99a921456f4a6e8e3e2d40907a91d492daf4bc0
Reviewed-on: http://git-master/r/38773
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R6dccc88053c055d9e4828d6f4d4e18932f0502f2

8 years agoarm:tegra:tsensor: tsensor clock table update
Bitan Biswas [Fri, 10 Jun 2011 13:46:38 +0000]
arm:tegra:tsensor: tsensor clock table update

tegra3 clock table updated with tsensor information

Bug 661228

Original-Change-Id: I7ba9bd8f24f98e8108198e0ad0453d3a22648fe1
Reviewed-on: http://git-master/r/36120
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R9270c8323a5af2db19ebc400bbf6afb919388ee8

8 years agoregulator: tps80031: Controls regulator output by PREQ
Laxman Dewangan [Thu, 30 Jun 2011 03:38:33 +0000]
regulator: tps80031: Controls regulator output by PREQ

Based on platform, it is require to control the regulator
output through the peripheral power request signal to pmu.
Supporting this type of platform configuration to control
output voltage by sw as well as through PREQ input line.

bug 839809
bug 829405

Original-Change-Id: Ifa19b9062ca2a2c5cae84de1f311a33cec094ad0
Reviewed-on: http://git-master/r/38936
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: R396800524fcea5c74711aec305c29229d32a0908

8 years agoarm: tegra: enterprise: SMPS1 controlled by PREQ2 input
Laxman Dewangan [Thu, 30 Jun 2011 03:45:24 +0000]
arm: tegra: enterprise: SMPS1 controlled by PREQ2 input

Configuring the regulator SMPS1 output such that output of
regulator SMPS1 is controlled by the input peripheral power
request signal PREQ2.

bug 839809
bug 829405

Original-Change-Id: I352feb47444077af4a3da2d0a321feb1f3d8a9a0
Reviewed-on: http://git-master/r/39118
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Re0019fef9cc5789b184c2f5704e8a93abc56b5e5

8 years agoarm: tegra: enterprise: Enabling vbus regulator
Kasoju Mallikarjun [Thu, 30 Jun 2011 06:26:00 +0000]
arm: tegra: enterprise: Enabling vbus regulator

Enable vbus regulator for USB1 on Enterprise

Bug 833736

Original-Change-Id: I2c1fdf829b55103b544c7319bac272f5a1912bc9
Reviewed-on: http://git-master/r/39154
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

Rebase-Id: R8f67ea6b6a274529d7e0cdb5d56686fbce191081

8 years agomedia: tegra: avp: Clean avp_svc_thread shutdown
Kaz Fukuoka [Mon, 27 Jun 2011 23:57:31 +0000]
media: tegra: avp: Clean avp_svc_thread shutdown

- Avoid exiting from avp_svc_thread in error case.
- Add nicer messages.

bug 840262
bug 836806

Original-Change-Id: I28fe1de9451b10a810f61db94ad3a7770703fd09
Reviewed-on: http://git-master/r/38581
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R74283b26e4d63ca7d7777844a4ee5703b0473fb1

8 years agoarm: tegra: enterprise: Add VBUS regulator information
Laxman Dewangan [Mon, 27 Jun 2011 10:26:01 +0000]
arm: tegra: enterprise: Add VBUS regulator information

Adding VBUS regulator information to activate the VBUS.

bug 833736

Original-Change-Id: I1cf4c2eb112a6ea26b74c3d1a2754019a47533fd
Reviewed-on: http://git-master/r/38500
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R1bf2e329910d76bde5f0897f1f84147d1db1952a

8 years agoregulator: tps80031: Add VBUS as regulator
Laxman Dewangan [Mon, 27 Jun 2011 10:23:12 +0000]
regulator: tps80031: Add VBUS as regulator

Providing the control of VBUS through regulator api.

bug 833736

Original-Change-Id: Id79f64dfb0ab30a5f0663521defb60a76681c767
Reviewed-on: http://git-master/r/38499
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

Rebase-Id: R218327eaf38a09215ca2fe4f6e7e90c8e961d21f

8 years agovideo: dsi: tegra: Improve suspend code
Animesh Kishore [Mon, 27 Jun 2011 06:56:59 +0000]
video: dsi: tegra: Improve suspend code

Add check to prevent control enter into suspend function
once dsi has already been disabled

Bug 841104

Original-Change-Id: I09b5547ea619bfa8fcfecf6ba570c65163d7eca1
Reviewed-on: http://git-master/r/38467
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Min-wuk Lee <mlee@nvidia.com>
Tested-by: Min-wuk Lee <mlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>

Rebase-Id: R4db2f0f8e1d723d54658f4bfde3701aba25f47f1

8 years agotegra: usb: fix ehci suspend in host mode
Alexandre Courbot [Tue, 7 Jun 2011 06:24:49 +0000]
tegra: usb: fix ehci suspend in host mode

When suspend is called and usb1 is in host mode, tegra_hci_remove is
invoked to remove the device. However, at this time it is likely that
runtime PM will have powered off usb1. This patch ensures usb1 is
powered on if necessary within tegra_hci_remove so that ehci controller
registers can be manipulated.

Bug 835677.

Reviewed-on: http://git-master/r/35592
(cherry picked from commit 88d6c27b5fb6122cfe21aa360c417f675f5f2797)

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Original-Change-Id: Ifc98ba9cf42a6b09671bb722ff4bdf23798cf1f8
Reviewed-on: http://git-master/r/37985
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: R36465ebfda53c2289623259b2202975a2d7522c8

8 years agoarm: tegra: pinmux: Handling unfitted RSVD pinmux option.
Jin Park [Fri, 17 Jun 2011 06:17:19 +0000]
arm: tegra: pinmux: Handling unfitted RSVD pinmux option.

When call tegra_pinmux_set_func with unfitted RSVD pinmux option,
to prevent unexpected potential problem, handle to finding more
preferred value.

Bug 839423

Signed-off-by: Jin Park <jinyoungp@nvidia.com>
Original-Change-Id: Idf8a1ece4317d14e94a69df0d1c8d450d7762c14
Reviewed-on: http://git-master/r/37185
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com>

Rebase-Id: Rfb625aa025048c88c44fd96da1e8b0a3db8d013d

8 years agoARM: tegra: clock: Add Tegra3 AVP activity monitor support
Alex Frid [Thu, 16 Jun 2011 02:03:22 +0000]
ARM: tegra: clock: Add Tegra3 AVP activity monitor support

Added AVP clock control using Tegra3 activity monitoring device.
The target AVP frequency floor is set based on average load and
short term boost. Average AVP load time (time when AVP is not
halted by flow controller) is determined by fixed frequency count
provided by monitoring h/w featuring 1st order IIR activity filter.
The boost frequency is calculated by s/w - exponentially increasing/
decreasing when sampled AVP activity has crossed upper/lower boost
watermarks.

The implementation is interrupt driven - periodic sampling is hidden
by h/w. The tune-able debugfs parameters are:

/sys/kernel/debug/tegra_actmon/avp/boost_step - boost rate increase
step (% of max AVP frequency)
/sys/kernel/debug/tegra_actmon/avp/boost_rate_inc - boost rate
increase factor (%)
/sys/kernel/debug/tegra_actmon/avp/boost_rate_dec - boost rate
decrease factor (%)

/sys/kernel/debug/tegra_actmon/avp/boost_threshold_up - upper
activity watermark for boost increase (AVP active time in %)
/sys/kernel/debug/tegra_actmon/avp/boost_threshold_dn - lower
activity watermark for boost decrease (AVP active time in %)

Original-Change-Id: Ia82247176531f2fb67acfc277e63b9f16916a488
Reviewed-on: http://git-master/r/37175
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R995949fe30f188c16c3fa39e292a2ca56256f2a3

8 years agoARM: tegra: clock: Add Tegra3 EMC activity monitor support
Alex Frid [Sun, 12 Jun 2011 06:29:55 +0000]
ARM: tegra: clock: Add Tegra3 EMC activity monitor support

Added EMC clock control using Tegra3 activity monitoring device.
The target EMC frequency floor is set based on average activity
and short term boost. Average EMC activity is obtained directly
from monitoring h/w featuring 1st order IIR activity filter. The
boost frequency is calculated by s/w - exponentially increasing/
decreasing when sampled EMC activity has crossed upper/lower boost
watermarks.

The implementation is interrupt driven - periodic sampling is hidden
by h/w. The tune-able debugfs parameters are:

/sys/kernel/debug/tegra_actmon/emc/boost_step - boost rate increase
step (% of max EMC frequency)
/sys/kernel/debug/tegra_actmon/emc/boost_rate_inc - boost rate
increase factor (%)
/sys/kernel/debug/tegra_actmon/emc/boost_rate_dec - boost rate
decrease factor (%)

/sys/kernel/debug/tegra_actmon/emc/boost_threshold_up - upper
activity watermark for boost increase (% of current EMC frequency)
/sys/kernel/debug/tegra_actmon/emc/boost_threshold_dn - lower
activity watermark for boost decrease (% of current EMC frequency)

Original-Change-Id: I385c6e0a75da42dada792db6b4018b68fea8f23b
Reviewed-on: http://git-master/r/36790
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R0ac50b162b8e86237986885e115996f755b1e00a

8 years agotegra: dc: set EMC clock dynamically
Xin Xie [Sat, 4 Jun 2011 03:47:14 +0000]
tegra: dc: set EMC clock dynamically

If the screen is idle (no POST for some time), reduce the DC EMC clock
according the windows size. If external display connected, the EMC clock
will not be reduced.

BUG 828306

Original-Change-Id: I6fb62ce6baf3380737c76b71f16e38ad6465a667
Reviewed-on: http://git-master/r/37106
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: Re2b2c8b1a57c2a04b61c338b0b50e41d8c11ad65