7 years agovideo: tegra: Skip syncpoint increments if disabled
Yu-Huan Hsu [Wed, 2 Mar 2011 07:57:41 +0000]
video: tegra: Skip syncpoint increments if disabled

Avoid Display Controller (DC) syncpoint increments if that instance of DC is
not enabled.
Bug 793874

Original-Change-Id: I602b5399da8738824ae2e2c6ad3fa0d83a539567
Reviewed-on: http://git-master/r/21347
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Tested-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I9ca8ebe373f96470a535199e2c89fc6a605489d9

Rebase-Id: R50565adaf483633ddaa58dd4e44bb608edbaeead

7 years agoarm: tegra: hdmi:audio freq and source selection.
mohit singh [Mon, 21 Feb 2011 15:11:40 +0000]
arm: tegra: hdmi:audio freq and source selection.

- provided an API for selecting source and
  audio freq.

- bug 790232.

Original-Change-Id: I693e7291085c7c7a3c26ef4daa9490c0b80d51df
Reviewed-on: http://git-master/r/20312
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: Ibf2b5a7bd298a550f0d8490a9386cd5f8c10bdc0

Rebase-Id: R6f54f7b337c7ee744c8054a8e37bc5cc73fdcdc6

7 years agoarm: tegra: hdmi:added support for edid like data
mohit singh [Tue, 15 Feb 2011 04:34:24 +0000]
arm: tegra: hdmi:added support for edid like data

- added support for eld extraction from edid.

- added support for propogation of eld to HDA.

- bug 790232.

Original-Change-Id: Ic94560c3bbef61e19fc901895052a892c5b7661f
Reviewed-on: http://git-master/r/19547
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: Ib331531ad735ea44f7c123610f7829573eb40623

Rebase-Id: R7ba53a66b41eb9aa87cf2842414f18d8f25d98c7

7 years agoarm: tegra: nvhost: Workaround for 3D hardware bug
Andrew Howe [Sun, 6 Feb 2011 03:30:22 +0000]
arm: tegra: nvhost: Workaround for 3D hardware bug

Send a RD_DONE syncpoint increment to GSHIM before switching
between broadcast and unicast (unless a non-immediate syncpt
was already sent).

Bug 789194

Original-Change-Id: I47630c08ecc065c0a7f3270809a85d0a9982c01b
Reviewed-on: http://git-master/r/18501
Tested-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I030baf7fa8aa2a0df97a2727bdf214c09bb8ecd2

Rebase-Id: Ra2cf2cf0dc260779f8d145fa3c619236155e500a

7 years agoarm: tegra: hdmi: conditionalized the source path
mohit singh [Thu, 3 Feb 2011 13:32:47 +0000]
arm: tegra: hdmi: conditionalized the source path

This change enables support for selecting source
reg based on verion of SOC.

Bug 783375

Original-Change-Id: Ib0fd6c7a772c1b2e94e986fad5bea942a2f2f4aa
Reviewed-on: http://git-master/r/18190
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ibf5823e84810daef6dfb6b8e553115050e84d059

Rebase-Id: R3772f0aaf696af8298d13cb2e909f8a827ce20e4

7 years agoarm: tegra: nvhost: Fix TEGRA_2x_SOC build
Robert Morell [Tue, 1 Feb 2011 22:46:53 +0000]
arm: tegra: nvhost: Fix TEGRA_2x_SOC build

Preprocessor config options are either defined or not defined, not
always defined to logical true or false.  Use #ifdef instead of #if to
get the desired behavior and avoid the warning:
nvhost_3dctx.c:28:5: warning: "CONFIG_ARCH_TEGRA_3x_SOC" is not defined

Originally broken by commit 7959045ff7b177a09350df882c4bba78d93cac5f.

Original-Change-Id: I165aab164f4ed4d1c4a7e2b64357384c170aa009
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/17945
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Iec522ad1cbc4dfddc17386a5125c31ad95a4b753

Rebase-Id: R03fbafdec73e8fcab12ba0b70b41fe37f3a410a6

7 years agoARM: tegra: nvhost: Add the 2nd 3D clock control
Alex Frid [Thu, 27 Jan 2011 02:45:21 +0000]
ARM: tegra: nvhost: Add the 2nd 3D clock control

Original-Change-Id: Icfc816638b6010b46b2e587827322ef41a7e08d6
Reviewed-on: http://git-master/r/17141
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I7b792509dd5c99f86bb4a85ba5b092a80022ed78

Rebase-Id: Rd45d9892a5343664f77ffef3f541682e86e54b5d

7 years ago[arm:tegra] Limiting function visibility/scope to static
Hiro Sugawara [Thu, 20 Jan 2011 21:06:32 +0000]
[arm:tegra] Limiting function visibility/scope to static

Limiting an intra-file local function's visibility/scope to static.

Reviewed-on: http://git-master/r/16448
(cherry picked from commit 77ba728673bde431af2eb0cdb0050b91c3f8b647)

Original-Change-Id: I560fa431c81205513701f1e8263dd79ae371c813
Reviewed-on: http://git-master/r/16591
Tested-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I2981d976885b7c734a2c3000e41d9602ab04ce95

Rebase-Id: R8368b938b9854d300ca873cee2f38d28a2b927ae

7 years ago[ARM/tegra] nvhost: Tegra3 support
Andrew Howe [Fri, 10 Dec 2010 14:18:33 +0000]
[ARM/tegra] nvhost: Tegra3 support

Adding support for Tegra3:
* auto context save (without FIFO reading in interrupt)
* new registers
* SLI

Note: currently hardcoded to Tegra3, SLIx2. Need query function.

Original-Change-Id: I7daff768540ac0f0af12a655a664428a3ae55665
Reviewed-on: http://git-master/r/12564
Tested-by: Andrew Howe <ahowe@nvidia.com>
Tested-by: Jussi Rasanen <jrasanen@nvidia.com>
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I42bfa94856676bfd82b4c11cc8cf523ca2c0dbe6

Rebase-Id: R9b1f81b7a0323f87a4c13804e483383595971550

7 years agoMerge remote branch 'git-master/android-tegra-2.6.36' into merge-android
Jin Qian [Thu, 30 Dec 2010 01:35:51 +0000]
Merge remote branch 'git-master/android-tegra-2.6.36' into merge-android

Conflicts:
arch/arm/configs/tegra_defconfig
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/board-ventana-power.c
arch/arm/mach-tegra/board-ventana-sensors.c
arch/arm/mach-tegra/board-ventana.c
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/cpu-tegra.c
arch/arm/mach-tegra/fuse.c
arch/arm/mach-tegra/headsmp.S
arch/arm/mach-tegra/tegra2_dvfs.c
arch/arm/tools/mach-types
drivers/rtc/rtc-tegra.c
drivers/usb/gadget/fsl_udc_core.c
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/nvhost_channel.c
drivers/video/tegra/host/nvhost_intr.c

Original-Change-Id: I1e9b6d0e761cf1e95cf90b78b5932b53fcb9bb5e
(cherry picked from commit 2f331e046f7c4cfc6ab54fca3193035b3bf3a14f)
Reviewed-on: http://git-master/r/14572
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I29db8796b2e27a8d218c332de36f880a7cf4bcb2

Rebase-Id: R94fc2c47ca70926d668d8bf09b77c4843d2a5b47

7 years ago[ARM/tegra] nvhost: Merge NVIDIA changes into Google's nvhost
Andrew Howe [Thu, 9 Dec 2010 15:09:50 +0000]
[ARM/tegra] nvhost: Merge NVIDIA changes into Google's nvhost

Google's 2.6.36 nvhost driver branched from NVIDIA's 2.6.32 nvhost at some
point before it was actually committed to 2.6.32, but the former's
original commit included some fixes that were added to the latter after
that. Confusing... Also Google's version has some changes that we like
so they will remain, but that makes merging difficult.

Anyway, this commit brings the rest of our 2.6.32 changes into 2.6.36
and cleans it up a bit. It might be nicer to break this up into a load
of smaller commits but it turned out to be very difficult to do that.

Original-Change-Id: I828b624b089b811d6130173e55258da8f52a5cc2
Reviewed-on: http://git-master/r/12563
Tested-by: Jussi Rasanen <jrasanen@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Wei Sun <wsun@nvidia.com>
Original-Change-Id: I72fbcff16ec6df62cc7299052a84b91db252c8d1

Rebase-Id: Rb3aa29f2ecbecf889bbc6ccf7d0b26925f7b94fb

7 years agoARM: tegra: dc: Set fixed dc rate on FPGA.
Alex Frid [Fri, 17 Dec 2010 01:05:42 +0000]
ARM: tegra: dc: Set fixed dc rate on FPGA.

Original-Change-Id: I4c21dcfbcb59aef14656e91badaf9760b5aed498
Reviewed-on: http://git-master/r/13550
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Id6eee40265de4e21f269ab12d320152b1a40f8d7

Rebase-Id: R81f450360f01be1eb6dd282fa7b7168eafec09fc

7 years ago[ARM/tegra] Add initial Tegra3 driver support
Scott Williams [Tue, 7 Dec 2010 19:13:31 +0000]
[ARM/tegra] Add initial Tegra3 driver support

Bug 764354

Original-Change-Id: I807433ff825bed1fe91ce0cf50a2b3691c64ef0a
Reviewed-on: http://git-master/r/12227
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I3da91a438f98f2f51618446ce024f3fefd726a19

Rebase-Id: Rb1717b1f80aaf0242f4da555ce16c06946b7d072

7 years agovideo: tegra: dc: removed incorrect cropping code
Donghan Ryu [Mon, 18 Apr 2011 14:59:11 +0000]
video: tegra: dc: removed incorrect cropping code

there was a cropping code which saves from out of FB.However,
the cropping code was wrong and cropping should be done from
usermode driver instead of kernel. a warning is added here
for easy debugging

Bug 792524

Original-Change-Id: Id57243e36f903b14a093dad23a6111032890c01a
Reviewed-on: http://git-master/r/28055
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R27c0cea87904d63d3c205a166cfcf637b9d75e0e

7 years agotegra dc: fix premult dst alpha blending
Francis Hart [Wed, 23 Mar 2011 10:30:15 +0000]
tegra dc: fix premult dst alpha blending

Register assignments were wrong for incoming overlay blend
parameters. DisplayManagerLite policy sets src combine mode
to premult to signal dst premult aplha blending. But the DC
expects premult set for the dst window for this mode.

Bug 796009

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

Rebase-Id: R750658116e021f7023e2cfff0eb0e35fc3da3695

7 years agoARM: tegra: dc: hdmi drive strength changes
Jon Mayo [Thu, 10 Feb 2011 23:35:38 +0000]
ARM: tegra: dc: hdmi drive strength changes

use pixel clock to configure HDMI interface signaling properties.
These options are different depending on which SoC.

Bug 786961 Bug 795251
(cherry picked from commit a59e2483a9f85a72186f51c124709401af554eb3)

Original-Change-Id: Ie5ef35fe03065d3e77831a0e1a2bbf8319d04125
Reviewed-on: http://git-master/r/27722
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Reviewed-by: Jessica Liao <jeliao@nvidia.com>

Rebase-Id: R35e45dfc28c36ff89df080f4b88c1a7d6b0533fe

7 years agovideo: tegra: nvmap: debugfs improvement
Donghan Ryu [Mon, 11 Apr 2011 11:18:49 +0000]
video: tegra: nvmap: debugfs improvement

nvmap's debugfs had a bad format so it was
very difficult to read the outputs. this commit
fixes it and added total allocation size along
with it

Bug 813891

Original-Change-Id: I6e3165b3ff917d9510d39f1e35b8e6b59c086592
Reviewed-on: http://git-master/r/27349
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Tested-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R0959d3648c3fe8e1d0a4bbbca5e79f0b5a744c6f

7 years agovideo: tegra: Limit error-diffusion dithering
Chao Jiang [Fri, 28 Jan 2011 06:41:32 +0000]
video: tegra: Limit error-diffusion dithering

Error-diffusion dithering on Tegra would never be enabled in video modes
where horizontal width exceeded 640 pixels. For large screen, either
24bit ture color or ordering dither may be used since it does not
require a line buffer.

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

Rebase-Id: Rea0aa95d494f02476ead33f8851f1f4a394ea994

7 years agovideo: tegra: dc: emc scaling based on overlay and panel freq
Wen Yi [Wed, 30 Mar 2011 22:48:23 +0000]
video: tegra: dc: emc scaling based on overlay and panel freq

Using a factor of two to increase the emc frequency required by
the display panel to prevent underflow.

Bug 800993

Original-Change-Id: Ibb60a88a4efb384bce6f1277022b335540f11a2e
Reviewed-on: http://git-master/r/24862
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R4894df954d75da78e87e8b7116829809c61101bb

7 years agovideo: tegra: dc: synchronize pwm config and dc state
Wen Yi [Tue, 22 Mar 2011 00:11:34 +0000]
video: tegra: dc: synchronize pwm config and dc state

There is a race condition between fb_blank and pwm_update_status
that could cause kernel panic. The solution is to synchronize
the function tegra_dc_config_pwm with dc->lock.
Bug 803498

Original-Change-Id: I9323cb223aa8feb92f56d0025b2d97ab3b8d1752
Reviewed-on: http://git-master/r/23776
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>

Rebase-Id: R1d9fe79a9babedb8134c3e1df205a88fd38deea0

7 years agovideo: tegra: dc: emc scaling based on overlay and panel freq
Wen Yi [Thu, 24 Mar 2011 00:18:47 +0000]
video: tegra: dc: emc scaling based on overlay and panel freq

Change the emc frequency using number of overlays and the frequency
of the display panel.
Bug 800993

Original-Change-Id: I30ef2edd1ed9b43afa8c38b0f05b5d6e49b7f892
Reviewed-on: http://git-master/r/24052
Reviewed-by: Amit Kamath <akamath@nvidia.com>
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>

Rebase-Id: Rd10138e4e51282e44a265601f70dd7917222de62

7 years agovideo: tegra: dc: hdcp: renegotiate the hdcp link on resume
Peter Zu [Tue, 22 Mar 2011 18:50:30 +0000]
video: tegra: dc: hdcp: renegotiate the hdcp link on resume

bug 802909

Original-Change-Id: I061eb7082b251ef6963e2a68fd9821122e010966
Reviewed-on: http://git-master/r/23871
Reviewed-by: Peter Zu <pzu@nvidia.com>
Tested-by: Peter Zu <pzu@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: R255ee5f24d31f5c5a44c09174e2a7089dd300837

7 years agovideo: tegra: dsi: Set dsi clock in multiples of Mhz
Tom Cherry [Mon, 21 Mar 2011 22:35:59 +0000]
video: tegra: dsi: Set dsi clock in multiples of Mhz

Original-Change-Id: I82081f6e4e3646fbf7c265851e548ca64b2415db
Reviewed-on: http://git-master/r/23760
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rddb38546f04cdc4717320ae45fa2983c80e7759f

7 years agotegra:video:nvmap: optimize cache_maint operation.
vdumpa [Sat, 12 Feb 2011 05:53:45 +0000]
tegra:video:nvmap: optimize cache_maint operation.

video:tegra:nvmap: Clean whole L1 instead of cleaning by MVA

For large allocations, cleaning each page of the allocation can
take a significant amount of time. If an allocation that nvmap needs
to clean or invalidate out of the cache is significantly larger than
the cache, just flush the entire cache by set/ways.

bug 788967

Reviewed-on: http://git-master/r/19354
(cherry picked from commit c01c12e63b1476501204152356867aeb5091fb80)

tegra:video:nvmap: optimize cache_maint operation.

optimize cache_maint operation for carveout and heap memories.
flush carveout memory allocations on memory free.
Bug 761637

Reviewed-on: http://git-master/r/21205
Conflicts:
drivers/video/tegra/nvmap/nvmap_dev.c
drivers/video/tegra/nvmap/nvmap_heap.c
drivers/video/tegra/nvmap/nvmap_ioctl.c

(cherry picked from commit 731df4df5e895e1d4999359d6d5939fc2095f883)

tegra:video:nvmap: optimize cache flush for system heap pages.

optimize cache flush for pages allocated from system heap.
Bug 788187

Reviewed-on: http://git-master/r/21687
(cherry picked from commit 3f318911ad91410aed53c90494210e2b8f74308b)

Original-Change-Id: Ia7b90ba0b50acfef1b88dd8095219c51733e027f
Reviewed-on: http://git-master/r/23465
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R04f618f88ed1d2c7a680d51a8c5113f42de3f667

7 years agovideo: tegra: dsi: Added dsi support.
Luke Huang [Thu, 27 Jan 2011 21:14:44 +0000]
video: tegra: dsi: Added dsi support.

Bug 793366
Bug 794499

Original-Change-Id: Id49d86dd7760b75ef4947f5bdab9e37f0333391d
Reviewed-on: http://git-master/r/#change,18950
Reviewed-on: http://git-master/r/22508
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R28d85faa28119d5803ab717831d610ee8ad37700

7 years agovideo:tegra:nvmap: Allow mapping uc/wc memory as wb.
vdumpa [Tue, 1 Feb 2011 00:54:49 +0000]
video:tegra:nvmap: Allow mapping uc/wc memory as wb.

Bug 786016
Original-Change-Id: Ic72c57b710a305851dfea3dda3eb217156683b39
Reviewed-on: http://git-master/r/17795
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R9839c206d5606463e124c59f733282561ff8a48d

7 years agovideo: tegra: dc: Fix hang in dc reset
Min-wuk Lee [Mon, 28 Feb 2011 14:01:13 +0000]
video: tegra: dc: Fix hang in dc reset

When DC(Display controller) meets underflow,
DC needs to be reset to recover this,
but in several resets, it hangs.
To avoid this,
- Set DC STOP mode ahead of DC reset assert
- Off read host bus by DC ahead of DC reset
- In DC0 reset period, to avoid DC1 access
and vice versa
- In reset worker, do not try to off host1x

Bug 785529
Bug 789567

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

Rebase-Id: R5ea8d6c0f39e54bd6410c5cc7c42ee553f30557f

7 years agovideo: tegra: flush flip work queue upon controller disable
Michael Frydrych [Wed, 23 Feb 2011 14:30:13 +0000]
video: tegra: flush flip work queue upon controller disable

When display controller is being disabled, some scheduled flips
may still be pending in a work queue. Do not lose them.

Original-Change-Id: I043fce583d44bb962494e6625a5c28675498fb55
Reviewed-on: http://git-master/r/20580
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
Tested-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Michael Frydrych <mfrydrych@nvidia.com>

Rebase-Id: R126931e333b17d968a15f29092a6449b9543e2f1

7 years agodrivers: video: tegra: fix comment formatting
Dan Willemsen [Tue, 15 Feb 2011 23:14:55 +0000]
drivers: video: tegra: fix comment formatting

Rebase-Id: Rd2cb19d9e8f80e63483b6e7542c9cbc30d6fa807

7 years agowhitespace change: drivers/video/tegra/dc/hdmi.c
Dan Willemsen [Tue, 15 Feb 2011 23:12:47 +0000]
whitespace change: drivers/video/tegra/dc/hdmi.c

Rebase-Id: Rd938ed14dceb2bd1e93affc57a34d80e9a14ebb5

7 years agovideo: Adding support for 1080p@30Hz
Gaurav Sarode [Tue, 22 Feb 2011 00:35:29 +0000]
video: Adding support for 1080p@30Hz

Adding support for 1080p@30Hz.Disabled by default.
Fixes Bug 789164

Original-Change-Id: I2fd37d6c19aa30daee321c9cdafbdb7ed1b6a271
Reviewed-on: http://git-master/r/20349
Tested-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Chao Jiang <chaoj@nvidia.com>

Rebase-Id: R554f273bb68642fbfde5b61123912b41fe7ac566

7 years agovideo: tegra: Add support for pin output overrides
Joseph Lehrer [Tue, 8 Feb 2011 19:47:47 +0000]
video: tegra: Add support for pin output overrides

bug 773671

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

Rebase-Id: Re392ebe1d7c334fcdd32a6a24c5acfcf7c56f925

7 years agotegra: dc: Add PMx PWM control
Joseph Lehrer [Mon, 14 Feb 2011 01:29:36 +0000]
tegra: dc: Add PMx PWM control

bug 773671

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

Rebase-Id: Ref287f0f7030cc889f2030efe0771c2dabf44c78

7 years agovideo: tegra: Add PWM backlight driver
Joseph Lehrer [Mon, 14 Feb 2011 02:19:34 +0000]
video: tegra: Add PWM backlight driver

bug 773671

Original-Change-Id: Ib93f0dcb7e22220fe297c81d403c401548f3c649
Reviewed-on: http://git-master/r/18280
Tested-by: Joseph Lehrer <jlehrer@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R3ddd56d2d3df9d9a78b2e8ccbfd0cd64e824ab2f

7 years ago[tegra: hdmi] clear stereo flag before checking edid for stereo
Chong Zhang [Sat, 19 Feb 2011 04:01:09 +0000]
[tegra: hdmi] clear stereo flag before checking edid for stereo

bug 788941

Original-Change-Id: Ib6c3da2f30fa5e7240cbdd1d406682aca3c820a2
Reviewed-on: http://git-master/r/20144
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R74673d768bbcd6c1d8116a93424c62a877026b4f

7 years agovideo: tegra: Change overlay spinlock to mutex
Dan Willemsen [Fri, 18 Feb 2011 20:09:07 +0000]
video: tegra: Change overlay spinlock to mutex

We call tegra_overlay_put inside the overlay lock, which can do a flip.
It's not safe to do a flip in an atomic context.

Original-Change-Id: I4b043737a3eede0d47b8269a2d40e7c739f75df3
Reviewed-on: http://git-master/r/20087
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: Rbc627fe4370434efcf7a538f351a9670dba660d9

7 years agovideo: tegra: nvmap: fix potential deadlock
Kirill Artamonov [Fri, 18 Feb 2011 12:58:41 +0000]
video: tegra: nvmap: fix potential deadlock

Enabled mutex debugging reavealed potential deadlocks
introduced with compaction.

Handle spin lock replaced with mutex. Heap functions cannot be
protected with spinlock because they call kernel slab allocation
functions which cannot be called from atomic context.

nvmap_client ref_lock is also replaced with mutex. Otherwise we
cannot access heap parameters protected by mutex nvmap_handle lock.

Extra locking for handle->owner removed.

bug 793364

Original-Change-Id: I635ce9ebf259dd7bf8802457567f93b7be5795ea
Reviewed-on: http://git-master/r/19850
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Reaa132703e278d75371d5e2b25426794aa8e0e4e

7 years agovideo: tegra: Fix handling non-zero Y offset
Taekhyun Kim [Tue, 25 Jan 2011 23:31:45 +0000]
video: tegra: Fix handling non-zero Y offset

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

Rebase-Id: R1c5786f094067ccdfed27e08c972cff3d0592f38

7 years agovideo: tegra: fix max yres in stereo hdmi case
Chong Zhang [Sat, 29 Jan 2011 01:15:34 +0000]
video: tegra: fix max yres in stereo hdmi case

tegra_fb_set_windowattr() has logic to adjust
window y according to yres, however when in stereo
mode, the max y allowed should be v_active, which
could be larger than yres.

bug 784597

Original-Change-Id: I63342be8e2d87396502574f3a8dd0fb2769a47a8
Reviewed-on: http://git-master/r/17537
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R89099fab6efe7e2187645ef10e627f0d84be1f1b

7 years ago[tegra: HDMI: stereo] fix VIC for 720p stereo mode
Chong Zhang [Mon, 14 Feb 2011 20:11:34 +0000]
[tegra: HDMI: stereo] fix VIC for 720p stereo mode

VIC for 720p stereo mode should be 4 (60Hz) or 19 (50Hz).

bug 792143

Original-Change-Id: I3edb468a992842ed6a3247fbab02970b0c078acb
Reviewed-on: http://git-master/r/19468
Reviewed-by: Chong Zhang <chzhang@nvidia.com>
Tested-by: Chong Zhang <chzhang@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rfd1447ee5cf7e37f43490e1a228a0e404106fc4b

7 years agovideo: tegra: nvmap: replace mutex with spinlock
Kirill Artamonov [Mon, 14 Feb 2011 23:07:20 +0000]
video: tegra: nvmap: replace mutex with spinlock

There are places where nvmap_free_handle_id is called
when interrupts are disabled and mutex cannot be used as
nvmap handle lock.

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

Rebase-Id: Rb5a58e8226ad14340d1acae007d6b632960fae16

7 years agonvmap: implementing K36 carveout compactor
Kirill Artamonov [Wed, 9 Feb 2011 21:53:03 +0000]
nvmap: implementing K36 carveout compactor

bug 762482

Original-Change-Id: Ifadebc1b0c4eb0df89e179091acca0ff6e527e56
Reviewed-on: http://git-master/r/15743
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Tested-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: R639e7f09f44c8919bd57a16a577b87db91160555

7 years agovideo: tegra: Fix HDMI mirroring corruption
Dan Willemsen [Thu, 27 Jan 2011 01:41:44 +0000]
video: tegra: Fix HDMI mirroring corruption

The new overlay code had this change commented out, because I hadn't
figured out how to get the resolution of the display outside of the fb
driver. This change now grabs it from the h_active and v_active of the
current mode.

Old Change:
    video: tegra: Fixed the HDMI corruption issue.

    If internal panel has different resolution compared
    to HDMI panel, then window attributes are calculated
    differently, this causes HDMI panel to show corruption.
    This is fixed by checking actual display resolution
    while computing window attributes.

Bug 784995

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

Rebase-Id: R745bc56ef5df30fdfd1c9b5b252c0295eefc0a75

7 years agovideo: tegra: Support dither settings
Chao Jiang [Fri, 14 Jan 2011 03:08:34 +0000]
video: tegra: Support dither settings

Support dither settings in display control structure by writing color
control registers.

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

Rebase-Id: R24ecffdf5186c8886b44afb90f2096a0c1ae2a2f

7 years agovideo: tegra: Support for post power-on actions
Chao Jiang [Wed, 8 Dec 2010 09:57:20 +0000]
video: tegra: Support for post power-on actions

Add support for extra actions that have to be done after power on the
panel.

fixes bug 767252

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

Rebase-Id: R83157a78978ae41d265f8250a862a0158266c72b

7 years agovideo: tegra: Multi client overlay management
Dan Willemsen [Mon, 24 Jan 2011 10:07:05 +0000]
video: tegra: Multi client overlay management

This creates a new device node per head - /dev/tegra_dc%u. There are a
number of ioctls in linux/tegra_overlay.h to open, close, and flip
overlays.

This is a replacement for the extensions in the tegra fb interface, but
does not remove that functionality for compatibility reasons. Once
everyone has moved, we can remove the tegra fb extensions.

Original-Change-Id: Id78a94482637a7ce229ec64eb5feaf2dec2b7804
Reviewed-on: http://git-master/r/16700
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R0d6e864cd50ce69c2e432bbac96b4932ec2bc476

7 years agonvhost: Reimplement null kickoff functionality.
Dan Willemsen [Fri, 11 Feb 2011 10:17:29 +0000]
nvhost: Reimplement null kickoff functionality.

For each channel submit where null kickoff is requested, we don't
place the user's commands in the pushbuffer. All necessary context
switches, syncpoint increments and waitbase increments do happen
though.

Update: Add NULL_KICKOFF ioctl to use instead of FLIP, this prevents
kernel ABI breakage.

Bug 717235

Previous Id: I51c323729ea57993a5b52fb395ab90cb8608ee6b
Previously Reviewed: http://git-master/r/5091

Original-Change-Id: I4f92db457aff6e1c3a8d454255c4b051c4663360
Reviewed-on: http://git-master/r/15882
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Tested-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc79842436757d1cb1ae0622cf62e98763420ba6c

7 years agotegra: dc: fix deadlock
Tom Cherry [Tue, 11 Jan 2011 23:22:27 +0000]
tegra: dc: fix deadlock

There's a deadlock when resuming tegradc.  tegra_dc_resume locks
dc->lock, then later tegra_dc_set_out_pin_polars attempts to lock the
same lock.  This is incorrect behavior and causes deadlock.
tegra_dc_set_out_pin_polars should not lock dc->lock, rather it should
be called within a lock.

Integration from http://git-master/r/#change,15572

Bug 780047

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

Rebase-Id: Reba9595c48623a478847dbf65730ff3abfc8faac

7 years agoHDMI stereo support - kernel code changes
chzhang [Fri, 11 Feb 2011 09:40:11 +0000]
HDMI stereo support - kernel code changes

Signed-off-by: Chong Zhang <chzhang@nvidia.com>
Original-Change-Id: I53eea3b14852aecd589dfbd0461258e064835cc9
Reviewed-on: http://git-master/r/11405
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: R4c2c1bba6eeeee16cf3d99061717c236c695eaf7

7 years agovideo: tegra: host: add suspend instrumentation
Varun Wadekar [Fri, 11 Feb 2011 09:31:12 +0000]
video: tegra: host: add suspend instrumentation

cherry-picked and merged http://git-master.nvidia.com/r/6641 and
http://git-master.nvidia.com/r/7081 from tegra-2010-07 branch

Original-Change-Id: I926062d2d949b4095ad1d5c88145c99a29cec122
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/13795
Reviewed-by: Andrew Howe <ahowe@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R5fbb1564c97e1622143a1eacfed8cca73f67d577

7 years agovideo: tegra: Fixed the HDMI corruption issue.
Gaurav Sarode [Wed, 15 Dec 2010 01:23:41 +0000]
video: tegra: Fixed the HDMI corruption issue.

If internal panel has different resolution compared
to HDMI panel, then window attributes are calculated
differently, this causes HDMI panel to show corruption.
This is fixed by checking actual display resolution
while computing window attributes.

Original-Change-Id: I7e70f6a8231856e5e5768fab6b0c1d9d0ea24737
Reviewed-on: http://git-master/r/13302
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rc9a4a1588c88199892e91037d6cc1f60024bac7c

7 years agovideo: tegra: support output pin polarities setting
Chao Jiang [Tue, 30 Nov 2010 11:50:33 +0000]
video: tegra: support output pin polarities setting

Add support for set up pin polarities in DC driver.

fixes bug 758356

Original-Change-Id: Iff7026929d73e9cf232baeda1f9f0c8bbd60b66b
Reviewed-on: http://git-master/r/11674
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R785b1be195e0c11ac436664e5332de7bbe8f77ba

7 years agoRevert "Revert "Revert "tegra: host: move stale wait checking into the kernel"""
Nitin Kumbhar [Mon, 21 Mar 2011 06:06:46 +0000]
Revert "Revert "Revert "tegra: host: move stale wait checking into the kernel"""

This reverts commit be7b9ce20d645c2c9293441830ee33a0a5fc489f.

Rebase-Id: R34033f7a7ed72aeb1e2a83ad5a09c219d3254048

7 years agousb: phy: tegra: fix compilation warning
Suresh Mangipudi [Mon, 13 Jun 2011 12:38:08 +0000]
usb: phy: tegra: fix compilation warning

Function was returning int where as the return type was void.

Bug 836761

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

Rebase-Id: Rfccd467c6f2668ad805b0d74e8ececc6c0b81cff

7 years agousb: gadget: introduce delay when setting address of tegra device
Alexandre Courbot [Fri, 27 May 2011 04:37:33 +0000]
usb: gadget: introduce delay when setting address of tegra device

Some windows host drivers require this small delay in order to properly
detect the tegra device. This patch ensures correct detection in all
cases.

Workaround for bug 814907

(cherry picked from commit 53c4f00605677c8de4311586c4f75903978cbd94)

Reviewed-on: http://git-master/r/35613
(cherry picked from commit 126a2fca500004a4b03ea377da000e8972efaed6)

Change-Id: Iaff87cbc2fe3332f9cb27a08e1156015fc66a3c5
Reviewed-on: http://git-master/r/36211
Reviewed-by: Alex Courbot <acourbot@nvidia.com>
Tested-by: Alex Courbot <acourbot@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R836f70f92500b402e8faeca236a0f87da5fadd29

7 years agoRevert "usb: fsl_udc: tegra: Fix for reducing turnaround errors."
Alex Frid [Sun, 12 Jun 2011 05:11:18 +0000]
Revert "usb: fsl_udc: tegra: Fix for reducing turnaround errors."

This reverts commit 141f664e2b5052d7fcd57c5287ae1e27db0f658b.

The original commit
(a) renamed con_id for shared user clock from "sclk" to "hclk"
(b) increased requested clock rate
Since there is no "hclk" shared bus in tegra clock tree, this
effectively disabled busy hint from USB driver, and actually
reduced the bus clock (instead of increasing it).

Bug 821986 sated that clock effect has not been tested.
Reverting it would at least restore 80MHz bus clock limit required
for USB operations.

Change-Id: I280340699df96c1cd21e3d8c0a65b5f89a7607b4
Reviewed-on: http://git-master/r/36200
Tested-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>

Rebase-Id: R5089f03f8b455ace94d89fef7ef44259d09c2293

7 years agoARM: tegra: usb: update default UTMIP phy setting
Jay Cheng [Thu, 5 May 2011 20:03:52 +0000]
ARM: tegra: usb: update default UTMIP phy setting

Revise some default settings for utimp phy

Bug 815848

Reviewed-on: http://git-master/r/30257
(cherry picked from commit 5f2b525a73dd48435975ef72937d1b8627e1c917)

Change-Id: I403746d85a3ef32d05bec5867b407f41e1f614e4
Reviewed-on: http://git-master/r/30568
Tested-by: Cho-Che Cheng <jacheng@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R09c594039daf0be3cf11bb63d76a03951ab36352

7 years agousb: host: tegra: hotplug delay reduction
Suresh Mangipudi [Mon, 23 May 2011 11:53:59 +0000]
usb: host: tegra: hotplug delay reduction

PortConnectionDetect to be cleared if the usbphy clock interrupt is set.
The USB plugin detection is done appropriately without missing
cableconnect event.

Bug 825920

(cherry picked from commit b5d5cd3e4e7af0915d2013f578f285244d7e5acd)

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

Rebase-Id: Rdaf3a4842403c583c4c8cd8676c5b0f1e529a45e

7 years agoarm: tegra: hsic: Remove use of hsic hub reset gpio on non-PM267 boards.
Michael Hsu [Sat, 7 May 2011 01:47:51 +0000]
arm: tegra: hsic: Remove use of hsic hub reset gpio on non-PM267 boards.

Only PM267 board has SMSC4640 HSIC hub, which requires reset signal.
Do not use HSIC hub reset gpio on non-PM267 boards.

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

Rebase-Id: R3c802fcf21f2f90f084a73ab2bd18a8ae0be5303

7 years agousb: phy: tegra: regulator enabled by default
Suresh Mangipudi [Mon, 30 May 2011 11:14:35 +0000]
usb: phy: tegra: regulator enabled by default

Hotplug does not work if the regulator is disabled, so keep it enabled
until the device wants to enter lowpower mode.

(cherry picked from commit 9fcdbe83d85021e6cfbfb075240b6a8439f308e0)

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

Rebase-Id: R81509f7fb0a27804cc0c0d913403432a1b555e6b

7 years agousb: fsl_udc: Resume of device mode optimized.
Suresh Mangipudi [Mon, 30 May 2011 09:44:29 +0000]
usb: fsl_udc: Resume of device mode optimized.

Having the device resume and suspend when the cable is not present is
an overhead for the system. Hence removed resume and device function
calls when the cable is not present.

Bug 803280

(cherry picked from commit cae416e076b8c31c422b71b6df82a7921132ee11)

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

Rebase-Id: Rb154b75ae038adc3929fe39b4a0b51af192ca3b3

7 years agoarm: tegra: Clean up SOC conditionals
Scott Williams [Tue, 24 May 2011 05:08:42 +0000]
arm: tegra: Clean up SOC conditionals

Change SOC conditionals to make them more forward-looking.

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

Rebase-Id: R6b5fc7c5110e02d29a98043492416569cc959969

7 years agousb: tegra: fix tegra ehci setup sequence for UTMI/ULPI/HSIC
Steve Lin [Wed, 25 May 2011 01:44:11 +0000]
usb: tegra: fix tegra ehci setup sequence for UTMI/ULPI/HSIC

This is a WAR to fix tegra ehci setup sequence for USB2 UTMI/ULPI/HSIC mode.
- Calling ehci_reset according to proper phy type instead of hard coded value.
- Adding CONFIG_USB_EHCI_TEGRA in the common ehci-hcd code.
Bug 830978, 812716

Original-Change-Id: Ib66acf758792ef4076c5d2ec6a2e5d565389596f
Reviewed-on: http://git-master/r/32664
Tested-by: Szming Lin <stlin@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Michael Hsu <mhsu@nvidia.com>
Tested-by: Michael Hsu <mhsu@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Alex Courbot <acourbot@nvidia.com>
Tested-by: Alex Courbot <acourbot@nvidia.com>

Rebase-Id: R09d5a39680a5fa4e39cb29fc32113661b1cccf6d

7 years agousb: fsl_udc: tegra: Fix for reducing turnaround errors.
Suresh Mangipudi [Fri, 20 May 2011 09:00:51 +0000]
usb: fsl_udc: tegra: Fix for reducing turnaround errors.

During large data transfer at lower AHB clock rate over usb bus, observed turnaround
timeout errors.
Increasing the ahb clock reduces the turnaround timeout errors, increasaes the usb
throughput.

Bug 821986

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

Rebase-Id: R0e36cb38f778c207001fdc5ae9e3b1f40b933e55

7 years agoARM: tegra: power: Fix warnings when CONFIG_PM is disabled
Scott Williams [Fri, 20 May 2011 23:08:58 +0000]
ARM: tegra: power: Fix warnings when CONFIG_PM is disabled

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

Rebase-Id: R5ceb453fdf020975818a3dca47f619b5eb1ac87d

7 years agousb: host: tegra: hotplug detection of device
Suresh Mangipudi [Thu, 12 May 2011 13:49:52 +0000]
usb: host: tegra: hotplug detection of device

Add support for usb hotplug, this change will add the following:
vbus is left enabled.

Bug 796158
Bug 801533

Original-Change-Id: I282da0a37ab4311d9d9c61f75e03228bfb15698e
Reviewed-on: http://git-master/r/30041
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Tested-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: Rfb360adede773d791d5d891fddd90e8c2a4de686

7 years agousb: tegra: fix tegra ehci setup sequence
Steve Lin [Thu, 12 May 2011 23:26:40 +0000]
usb: tegra: fix tegra ehci setup sequence

Fix tegra ehci setup sequence according to EHCI spec.
- move ehci_reset after ehci_halt
- avoid redundant ehci_reset after ehci_run. ehci_reset has a side effect
to cause phy reset for certain phy interface.
Bug 800301

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

Rebase-Id: R6c4152855ce736f27f7972919671068e1a042b12

7 years agoARM: tegra: usb_phy: Fix USB compilation warnings
Rakesh Bodla [Fri, 6 May 2011 13:24:45 +0000]
ARM: tegra: usb_phy: Fix USB compilation warnings

Removing unused variable.

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

Rebase-Id: R66a625864d32ffe745cd9c6399a3ca9fa5ad8f4b

7 years agousb: cdc-acm: Add supported modem to CDC-ACM driver.
Michael Hsu [Thu, 5 May 2011 19:12:47 +0000]
usb: cdc-acm: Add supported modem to CDC-ACM driver.

Prevent CDC-ACM driver from creating tty devices for each USB
interface on supported modem.  Only create one tty device, leaving
other USB interfaces available for other uses (such as RAW-IP).

Original-Change-Id: I457659783c61f3f76e8026683dbbf2ddb3098ba2
Reviewed-on: http://git-master/r/30599
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R6d73e98556be72f8a078a715d9551d672e0c82d5

7 years agoarm: tegra: usb_phy: ulpi fix for tegra_3x_soc
Nitin Kumbhar [Wed, 11 May 2011 14:41:43 +0000]
arm: tegra: usb_phy: ulpi fix for tegra_3x_soc

Original-Change-Id: Ia7155f3e94c127b18f2909f9f80583e5f74b8483

Rebase-Id: Rc49623610f1372c69cdee2f05e6819072c4620a6

7 years agoMerge remote branch 'git-master/android-tegra-2.6.36' into 0112-1120
Dan Willemsen [Sat, 26 Mar 2011 01:49:07 +0000]
Merge remote branch 'git-master/android-tegra-2.6.36' into 0112-1120

Conflicts:
Makefile
arch/arm/configs/tegra_defconfig
arch/arm/configs/tegra_whistler_android_defconfig
arch/arm/mach-tegra/Kconfig
arch/arm/mach-tegra/Makefile
arch/arm/mach-tegra/board-ventana-sensors.c
arch/arm/mach-tegra/board-ventana.c
arch/arm/mach-tegra/board-whistler-panel.c
arch/arm/mach-tegra/board-whistler-pinmux.c
arch/arm/mach-tegra/board-whistler-power.c
arch/arm/mach-tegra/board-whistler-sensors.c
arch/arm/mach-tegra/board-whistler.c
arch/arm/mach-tegra/board-whistler.h
arch/arm/mach-tegra/clock.c
arch/arm/mach-tegra/clock.h
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/cpu-tegra.c
arch/arm/mach-tegra/devices.c
arch/arm/mach-tegra/devices.h
arch/arm/mach-tegra/dma.c
arch/arm/mach-tegra/fuse.c
arch/arm/mach-tegra/fuse.h
arch/arm/mach-tegra/headsmp.S
arch/arm/mach-tegra/include/mach/clk.h
arch/arm/mach-tegra/include/mach/iomap.h
arch/arm/mach-tegra/include/mach/system.h
arch/arm/mach-tegra/irq.c
arch/arm/mach-tegra/spi_tegra_slave.c
arch/arm/mach-tegra/suspend.c
arch/arm/mach-tegra/tegra2_dvfs.c
arch/arm/mach-tegra/tegra2_emc.c
arch/arm/mach-tegra/tegra2_emc.h
arch/arm/tools/mach-types
arch/x86/kvm/svm.c
drivers/cpufreq/cpufreq_interactive.c
drivers/crypto/tegra-aes.c
drivers/gpio/cs5535-gpio.c
drivers/hwmon/nct1008.c
drivers/misc/Makefile
drivers/net/wireless/p54/p54usb.c
drivers/regulator/max8907c-regulator.c
drivers/rtc/rtc-tegra.c
drivers/usb/gadget/fsl_udc_core.c
drivers/usb/host/ehci-tegra.c
drivers/usb/host/xhci-mem.c
drivers/usb/otg/tegra-otg.c
drivers/usb/serial/ftdi_sio.c
drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/hdmi.c
drivers/video/tegra/dc/hdmi.h
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/nvhost_channel.c
drivers/video/tegra/host/nvhost_intr.c
include/linux/nct1008.h
net/econet/af_econet.c
sound/soc/tegra/Kconfig
sound/soc/tegra/tegra_i2s.c
sound/soc/tegra/tegra_pcm.c
sound/soc/tegra/tegra_soc.c
sound/soc/tegra/tegra_soc.h

Original-Change-Id: I5b39fd8ea2284828e9cb3b5ce4330728e20b1662
Reviewed-on: http://git-master/r/15736
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I71ecd7c4426e7e82500f12d57b85a6bcc417065c

Rebase-Id: R4893fd059ab56894682a3507d9eb662c7a6d8062

7 years agoarm:tegra: USB EMC busy hint correction
Narendra Damahe [Fri, 29 Apr 2011 19:01:04 +0000]
arm:tegra: USB EMC busy hint correction

EMC busy hint correction
Refer Bug 820214 for details

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

Rebase-Id: Rff119e67eab76d38c400b996b269ec6fd6fc6a4a

7 years agousb: otg: tegra: Fix clock disable to match ref count
Rakesh Bodla [Wed, 4 May 2011 08:24:35 +0000]
usb: otg: tegra: Fix clock disable to match ref count

usbd clock is enabled during the probe and not disabled after the
functionality. Due to this clock reference count is non-zero and hence
usbd clock is not disabled during suspend. Fixed this by disabling
clock appropriately.

Bug 819720

Original-Change-Id: I2cd77be8b6e9ea69e0c65f0245f5e64805974c57
Reviewed-on: http://git-master/r/30340
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Tested-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>

Rebase-Id: R97741988e9eb37950ad8411a540275f4260c1d38

7 years agoarm: tegra: usb: Fix compiler warnings
Scott Williams [Tue, 3 May 2011 00:09:15 +0000]
arm: tegra: usb: Fix compiler warnings

Fix 'unused variable' warnings when compiling for Tegra3.

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

Rebase-Id: R02e7297db76bd5dc2aa20db3064d0d90ab858b3f

7 years agousb: tegra: set sclk rate
Prashant Gaikwad [Tue, 26 Apr 2011 05:34:48 +0000]
usb: tegra: set sclk rate

sclk minimum rate is set to 40MHz which is less than required by usb.
set sclk rate to 80MHz when usb is connected and disable sclk when usb is
not connected so that sclk will get clocked at minimum rate.

Bug 819796

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

Rebase-Id: R171185209f1d09584337aa9f585d2310dba1893f

7 years agoarm: tegra: hsic: Enable T30 HSIC
Michael Hsu [Tue, 26 Apr 2011 22:43:37 +0000]
arm: tegra: hsic: Enable T30 HSIC

Modified cardhu board config for ehci2 to use HSIC.

Need to turn on 6416 IO expander gpio for VDDIO_HSIC. Otherwise,
VDDIO_HSIC would be 0 Volts.

Fix HSIC register differences between T20 / T30.

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

Rebase-Id: R55d0740e5809f92469efc213bf9a09af94b0ff38

7 years agoARM: tegra: usb: Add Tegra3 NULL ULPI change
Steve Lin [Thu, 21 Apr 2011 22:39:20 +0000]
ARM: tegra: usb: Add Tegra3 NULL ULPI change

Integrate Tegra3 specific NULL ULPI changes to usb_phy.c.
- set ULPI clock to tristate before ULPI phy reset
- set USB host mode and HOSTPC register to ULPI mode
- add ULPIS2S slave0 and slave1 reset after enabling internal phy clock
Bug 800301, 787808

Original-Change-Id: I586f6655007838a2d5e5cb6c7b2f2d2b03f089c9
Reviewed-on: http://git-master/r/28131
Tested-by: Szming Lin <stlin@nvidia.com>
Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ib5de614c5358fbd29b81dc0bf728f7ec28af7689

Rebase-Id: R6b9a1ecad7fd8993532788c7d1f3e6afc87eaf76

7 years agoARM: tegra: usb_phy: Limit USB_TXFILLTUNING to Tegra2
Dan Willemsen [Tue, 26 Apr 2011 00:11:59 +0000]
ARM: tegra: usb_phy: Limit USB_TXFILLTUNING to Tegra2

Original-Change-Id: I36c86d49b7a6ed7b420ec92d4cdf413ce77fda3b

Rebase-Id: R6180f9ab9589c166c1a96ca821bf036c5a83cbde

7 years agoARM: tegra: usb_phy: Change postresume signature
Dan Willemsen [Mon, 25 Apr 2011 22:15:02 +0000]
ARM: tegra: usb_phy: Change postresume signature

Original-Change-Id: I9167d32761e1afb18088ab2f838b68b689e474a4

Rebase-Id: R0a8a1bc746d30e22a3bcb705d5227ea4453db3b1

7 years agoARM: tegra: usb: Fix compiler warnings
Scott Williams [Mon, 18 Apr 2011 19:46:48 +0000]
ARM: tegra: usb: Fix compiler warnings

Fix "initialization from incompatible pointer type" warnings due to
a mixure of void and non-void functions used as initializers for
arrays of type tegra_phy_fp[]. All functions of type tegra_phy_fp
now uniformly return a status.

Original-Change-Id: I2fa80d329817ab6dffd789a34fc5dc3baca7dbff
Reviewed-on: http://git-master/r/28088
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Szming Lin <stlin@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I5515a933c850b4e51315a3791cab6e0b81bc8444

Rebase-Id: R6a81af2a8ca0113a6676892acdeebd3dc183b9e7

7 years agotegra: otg: Fix for unbalanced clock disable
Bitan Biswas [Thu, 14 Apr 2011 14:22:07 +0000]
tegra: otg: Fix for unbalanced clock disable

otg probe function modified to keep clock enabled. This prevents
the unbalanced clock disable during otg suspend

Bug 811789

Original-Change-Id: Ia1d4dce2fc1595e5dd777a0846aadc3f3bfd417b
Reviewed-on: http://git-master/r/27771
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: If3fd9dd9afef35a2fac300a3aefec9536928586e

Rebase-Id: R412ea2799ed97ecc128114022e1197079879fe4f

7 years agousb: tegra: adding post ehci reset function
Steve Lin [Fri, 8 Apr 2011 21:14:06 +0000]
usb: tegra: adding post ehci reset function

Adding post ehci reset for null ULPI because ULPI phy reset is separated
from USB controller reset in T30.
Bug 800301

Original-Change-Id: I6b09044fa3f68ee77493af286a7557113962ad37
Reviewed-on: http://git-master/r/24710
Tested-by: Szming Lin <stlin@nvidia.com>
Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ief89a5deffed1083eb5cad7fcd50a1bd94d69f6e

Rebase-Id: R42ccc360f1b3e660df852a0427d9440b8307ed60

7 years agoARM: tegra: usb: using proper usb phy types
Steve Lin [Fri, 8 Apr 2011 21:12:07 +0000]
ARM: tegra: usb: using proper usb phy types

Using proper usb phy types instead of hard coded usb instance.
Bug 800301

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

Rebase-Id: Rc67f327a6bc401f2643d9315ab81a706755d2401

7 years agousb: tegra: adding proper usb phy types
Steve Lin [Fri, 8 Apr 2011 21:10:19 +0000]
usb: tegra: adding proper usb phy types

Adding proper usb phy types for link ULPI and null ULPI.
Bug 800301

Original-Change-Id: Ifec7d21d7d013ad81792080d276f59a8c6086c8b
Reviewed-on: http://git-master/r/24238
Tested-by: Szming Lin <stlin@nvidia.com>
Reviewed-by: Udaykumar Rameshchan Raval <uraval@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I9cf7330eb7935a373a5db6cff7e893b9e5a13d51

Rebase-Id: Raa8bc3b12d86ab6deb0f0f9965f03f3fd64b26bd

7 years agoARM: tegra: Add Tegra3 USB Phy registers
Scott Williams [Wed, 13 Apr 2011 23:28:21 +0000]
ARM: tegra: Add Tegra3 USB Phy registers

Original-Change-Id: Ibdbafa0ba75a826103af036b50951f1a05315a37

Rebase-Id: Rca17cd9573a15f09eea83567e7d7a3b7b55f6942

7 years agoARM: tegra: Regulator power name independent of platform
Rakesh Bodla [Fri, 1 Apr 2011 07:02:02 +0000]
ARM: tegra: Regulator power name independent of platform

Making the regulator power supply names independent of platform.
Now, power supply names should be given through board specific
files.

Bug 807534

Original-Change-Id: If83a23df91de9efd7d06733a7a306e57f3c89315
Reviewed-on: http://git-master/r/25058
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Reviewed-by: Allen R Martin <amartin@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: If7c7600e49b9d1f4c1bcd5d1e6eba098df39cb0b

Rebase-Id: Re297237d11131d6d1cc903c10862288aaecfaa41

7 years agoARM: tegra: usb_phy: Fixing unintialized pointer
Rakesh Bodla [Thu, 31 Mar 2011 11:46:30 +0000]
ARM: tegra: usb_phy: Fixing unintialized pointer

Memory for phy structure is allocated using kzalloc
for phy memory allocation so that reg_vbus doesn't
contain garbage value.

Bug 807534

Original-Change-Id: Ib25a5baebda2b39baf49d12a16044688d4ae559f
Reviewed-on: http://git-master/r/24930
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I2da9e8c2102c564a68493d22cdf951866c165635

Rebase-Id: R7b15702463ba89e7b9bc447432314fe6ada00974

7 years agoARM: tegra: usb: Fixing usb break after kernel merge
Rakesh Bodla [Wed, 30 Mar 2011 09:57:42 +0000]
ARM: tegra: usb: Fixing usb break after kernel merge

After kernel merge usb is broken. This is due to
improper merge of usb files. Fixed all the merge
issues.

Bug 807534

Original-Change-Id: Id9f6ae0022a84bcc7b4e39965a469ae8947faa83
Reviewed-on: http://git-master/r/24806
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: Ib5f76a2660f8d761eac08721c7d147b8cc11c2bf

Rebase-Id: Ra6167912c4fed42f8b7e4efe6237a574ec3f4af4

7 years agoUpdate copyrights
Scott Williams [Mon, 28 Mar 2011 07:34:42 +0000]
Update copyrights

Original-Change-Id: I2ffeaf6f8dfeb279b40ca6f69f6c9157401a746a

Rebase-Id: Rba9494e38ec80d140043cb50589fcda5d276a255

7 years agoehci:hub: Fix for USB suspend hang
Suresh Mangipudi [Fri, 4 Mar 2011 08:04:41 +0000]
ehci:hub: Fix for USB suspend hang

When host_pc is enabled ehci_bus_suspend is disabling the
usb phy by setting the PHCD bit in the HOST_PC register.
Due to this system is hanging during the bus_suspend procedure.
This PHCD bit should be set after completing the USB suspend
procedure. This PHCD bit is set as part of the phy suspend.
Fixing this by removing the code for disabling PHCD bit in
the suspend path.

Bug 793834

Original-Change-Id: I02df4cb9f8ec32c253709ea921f4da5041461f4d
Reviewed-on: http://git-master/r/21492
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: Ied6b9e26faf063c956b406ea1d9e1ac50b4727dc

Rebase-Id: Rd49c371c8e2b75e437c69abecaac61d2033ff39f

7 years agotegra:otg: Fix clock disable to match ref count
Bitan Biswas [Fri, 4 Mar 2011 16:03:13 +0000]
tegra:otg: Fix clock disable to match ref count

usbd clock is enabled during the probe and not disabled after the
functionality. Due to this clock reference count is non-zero and hence
usbd clock is not disabled during suspend. Fixed this by disabling
clock appropriately.
 - Since clocks are now turned off during suspend clock
   needs to be enabled during fsl_udc_resume.

Bug 793834

Original-Change-Id: I4d153b98b7388547c13fa5e3d550f687183bfbe8
Reviewed-on: http://git-master/r/21652
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Tested-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: I90231ac796b2fd778f7c5b9caf43a9756eddae77

Rebase-Id: Rcb29120d40c0e60bc634812d7919592b0fee400a

7 years agoarm: tegra: usb: Enable Host mode on USB2-UTMI port
Suresh Mangipudi [Fri, 11 Feb 2011 06:02:08 +0000]
arm: tegra: usb: Enable Host mode on USB2-UTMI port

Enable the host mode on usb2 UTMI phy interface

Bug 787810

Original-Change-Id: Ia7da2a0d196f900f80812b987c9fb5302412e751
Reviewed-on: http://git-master/r/18729
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Tested-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I2e7306b82926f2ca566d595dc75252d4881306fb

Rebase-Id: R27ce36f7c4a9d6b52a1314704234745ad5ed6728

7 years agoarm: tegra: usb_phy: Fix T20, error path
Robert Morell [Wed, 2 Feb 2011 03:06:29 +0000]
arm: tegra: usb_phy: Fix T20, error path

Commit 42274abc973de8565531fe56fae475c162cbfc84 moved the code to set up
the vdd_vbus_typea_usb regulator from T30-specific code to shared code.
This caused T20 to fail to boot, because it also didn't handle the error
case properly (it would notice the error and jump to the error handling
code, but never set the error code so the function would return 0).

Original-Change-Id: I926c0d0c716d409fee0188bc1f766631767a5e3d
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-on: http://git-master/r/17978
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ie039a639241021afef4774b46c6d87f852715eb7

Rebase-Id: R23ca8928d8de7952e117410b6a281169159c4ec5

7 years agoarm: tegra: usb_phy: Enabling otg on USB1
Rakesh Bodla [Tue, 1 Feb 2011 09:24:29 +0000]
arm: tegra: usb_phy: Enabling otg on USB1

Enabling the vbus for USB1, clearing the ID_PD for USB1.

Original-Change-Id: I44817aac8e9440ba0d09ac1131dfbe6e19aecd97
Reviewed-on: http://git-master/r/17854
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I012baad53081331790f57f93b4f2f2159cf97728

Rebase-Id: R1eb1241218054ef97b1e8c5ea25098281e3023e0

7 years agoarm: tegra: usb_phy: Fixing resource leak
Rakesh Bodla [Mon, 31 Jan 2011 11:35:41 +0000]
arm: tegra: usb_phy: Fixing resource leak

Calling appropriate regulator functions when device
suspend/resumes

Bug 786251

Original-Change-Id: Iaca392e4185909c540a0a791a31b2c20fc2160bd
Reviewed-on: http://git-master/r/17677
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Original-Change-Id: I1d23bbc5c0363bc4292ee1bfbbac1b8e987ba195

Rebase-Id: Rb5a7f0e74dcaa7a5653fd1f3f458b3e9dc8ab133

7 years agoarm: tegra: Enable Host mode on USB3 port
Rakesh Bodla [Sat, 29 Jan 2011 22:41:12 +0000]
arm: tegra: Enable Host mode on USB3 port

Enabling USB host mode support on USB3 port.

Original-Change-Id: I2cfa980e9b318ed1630dc8492a71c554fedfd58d
Reviewed-on: http://git-master/r/17584
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
Tested-by: Suresh Mangipudi <smangipudi@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I23fc3c47dbdf3b114ea19fb079546f0ecaa4592c

Rebase-Id: Re94b69db2d0500b59b41b72219656c2595ddb0bf

7 years agoRevert "[tegra-usb] Enable Host mode on USB3 port"
Scott Williams [Sat, 29 Jan 2011 21:52:27 +0000]
Revert "[tegra-usb] Enable Host mode on USB3 port"

This reverts commit 1bafb27fe8ef08008cd0ca9d9ad42cca476161aa.

Bug 786207

Original-Change-Id: I0cf71fa97fd61e5e6358445fa338642db9793aae
Reviewed-on: http://git-master/r/17582
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ie9c06f83a25661bcf956cb3d26afa2237fb97bc0

Rebase-Id: R3c3850f94bbffdd4e771a41d90b19590908cc33f

7 years ago[tegra-usb] Enable Host mode on USB3 port
Rakesh Bodla [Sat, 29 Jan 2011 04:22:23 +0000]
[tegra-usb] Enable Host mode on USB3 port

Enabling USB host mode support on USB3 port.

Original-Change-Id: I2f55960368f87828e7cc7f131636cb0e61efc87a
Reviewed-on: http://git-master/r/17556
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I239c52b55bb94dea53d0a3304672b55609ff415d

Rebase-Id: Rb3d28a96cd686eadd91c357deb90e4493ef12ed7

7 years ago[tegra:usbphy] Power up USB_IF
Suresh Mangipudi [Thu, 27 Jan 2011 22:00:39 +0000]
[tegra:usbphy] Power up USB_IF

Enable USB Interface circuit power.

Original-Change-Id: I2fbf7be5ad0e0cf18de77a981b5a31b496ab11f2
Reviewed-on: http://git-master/r/17265
Reviewed-by: Matthew Longnecker <mlongnecker@nvidia.com>
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I103c98b684b5f17a343ab618e64f4df2e99b8aae

Rebase-Id: R43ef5fc66135dd4e016f429d0277e64f46e9e025

7 years agoarm: tegra: Fix compiler warnings
Scott Williams [Tue, 25 Jan 2011 21:30:15 +0000]
arm: tegra: Fix compiler warnings

Original-Change-Id: I0914792c5fa170473d81eaad3c78582d23909f69
Reviewed-on: http://git-master/r/16950
Reviewed-by: Jin Qian <jqian@nvidia.com>
Tested-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I370dfc82d528a06e820e0e321f48c8c0b67ecac5

Rebase-Id: R9f759014ee56d01ef14df403eee1a1bf7bb73737