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 agoplaceholders for merging
Dan Willemsen [Thu, 5 May 2011 03:13:18 +0000]
placeholders for merging

Rebase-Id: R177e2f8e2b79f789558d19e4b17863c9b29fab9e

7 years agoMerge branch 'pre-hacks/from-google' into after-pre-hacks
Dan Willemsen [Thu, 1 Dec 2011 05:41:43 +0000]
Merge branch 'pre-hacks/from-google' into after-pre-hacks

7 years agoMerge branch 'pre-hacks/dma' into after-pre-hacks
Dan Willemsen [Thu, 1 Dec 2011 05:41:43 +0000]
Merge branch 'pre-hacks/dma' into after-pre-hacks

7 years agoRevert "mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device"
Dan Willemsen [Fri, 17 Jun 2011 05:33:52 +0000]
Revert "mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device"

This reverts commit 09e0e4fb75de1a008f00025a186d756435f9f034.

Rebase-Id: R7f871bc41beda798acea8b9c7c32d50531ad88e0

7 years agoARM: Add 'card_present' state to mmc_platfrom_data
Dmitry Shmidt [Tue, 3 May 2011 18:05:04 +0000]
ARM: Add 'card_present' state to mmc_platfrom_data

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Rebase-Id: R326381df3f4188cc1f700eb210c12b483afe9e77

7 years agoRecreate asm/mach/mmc.h include file
Colin Cross [Sat, 9 Apr 2011 05:20:53 +0000]
Recreate asm/mach/mmc.h include file

Change-Id: I9f10244b0603f7842b8504a16124d40dc4a71ed2
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Rdc49da8123b4e700f2987a4a5ea19ad2b29ff1d6

7 years agofs: ext4: Fix computation of inodes per block group
Colin Cross [Fri, 29 Apr 2011 22:38:33 +0000]
fs: ext4: Fix computation of inodes per block group

857ac889cce8a486d47874db4d2f9620e7e9e5de (ext4: add interface
to advertise ext4 features in sysfs) added an error check that
exposes a bug in the computation of sbi->s_itb_per_group.  If
the number of inodes per group is not a multiple of the number
of inodes per block,

Original-Change-Id: I8c60817dbb6feb43535b567ec7ea5ee0af709c37
Signed-off-by: Colin Cross <ccross@android.com>
(cherry picked from commit 8703a0ccb0135ae0de0d7011f29eeb6dc1caa486)

Rebase-Id: R7fc03850010d565447bb8702710040f112705738

7 years agousb: gadget: add phy_config to fsl_devices.h
Colin Cross [Sat, 9 Apr 2011 04:33:12 +0000]
usb: gadget: add phy_config to fsl_devices.h

Original-Change-Id: I7be84ad877d1865c639ee5856f546276c8fdac73
Signed-off-by: Colin Cross <ccross@android.com>
(cherry picked from commit e8945b26135c260f91c12a85cc911a165ab07504)

Rebase-Id: R3051e65e6a756bdad25ade5f865b383d9a2164e3

7 years agoARM: Cortex-A9: Enable dynamic clock gating
Todd Poynor [Tue, 15 Feb 2011 19:48:42 +0000]
ARM: Cortex-A9: Enable dynamic clock gating

Enable dynamic high level clock gating for Cortex-A9 CPUs, as
described in 2.3.3 "Dynamic high level clock gating" of the
Cortex-A9 TRM.  This may cut the clock of the integer core,
system control block, and Data Engine in certain conditions.

Add ARM errata 720791 to avoid corrupting the Jazelle
instruction stream on earlier Cortex-A9 revisions.

Original-Change-Id: I48e51d907e593f26982ea91b0a811553f68e3c86
Signed-off-by: Todd Poynor <toddpoynor@google.com>

Rebase-Id: R7ae4d4825e9171bca2471fe776ecf363e75b9ca6

7 years agoRevert "ARM: tegra: dma: Do not call complete callback on canceled requests"
Dan Willemsen [Sun, 15 May 2011 00:58:29 +0000]
Revert "ARM: tegra: dma: Do not call complete callback on canceled requests"

This reverts commit 5dba29d1f761502e75320770fc4c6cf9c8e00998.

Rebase-Id: Rb6889e4755716f5baa5c7f272ae7d8c8b6d97ba5

7 years agoRevert "serial: tegra_hsuart: Call complete callbacks when cancelling reqs"
Dan Willemsen [Sun, 15 May 2011 00:58:24 +0000]
Revert "serial: tegra_hsuart: Call complete callbacks when cancelling reqs"

This reverts commit 5bf3a3e0d18712006090000256086c4a1672cca7.

Conflicts:

drivers/tty/serial/tegra_hsuart.c

Rebase-Id: R53d1706a5d5cdd2f06756158e6a4fb0e93f840e9

7 years agovideo: fbmon: fixed E-EDID SVD entry parsing
Eric Laurent [Thu, 15 Sep 2011 17:30:46 +0000]
video: fbmon: fixed E-EDID SVD entry parsing

Fixed index calculation when parsing E-EDID block SVD entry
in fb_edid_add_monspecs().

Change-Id: I0273e2f29e86687607923d07faf99a30696f5ead
Signed-off-by: Eric Laurent <elaurent@google.com>

7 years agovideo: fbmon: add HDMI dectetion to fbmod edid parsing
Erik Gilling [Mon, 7 Feb 2011 03:32:17 +0000]
video: fbmon: add HDMI dectetion to fbmod edid parsing

Looks for ieee registration number 0x000c03 as per HDMI spec.
CEA-861-E section D.6.8.

Change-Id: I6875b24c66e8754510edabcb4f9ba682a50d6ac1
Signed-off-by: Erik Gilling <konkers@android.com>
Signed-off-by: Lajos Molnar <molnar@ti.com>

7 years agovideo: fbmon: Add support for CEA pixel ratios.
Lajos Molnar [Fri, 9 Sep 2011 21:44:13 +0000]
video: fbmon: Add support for CEA pixel ratios.

CEA defines multiple timings with dual timing ratios that cannot
be distinguished from timings parameters.  Added 2 new fb flags
to specify 4:3 or 16:9 display ratios.

Also added a flag that denotes CEA formats that require repeating
pixels.

Change-Id: I75d413babdcb4048a0ccce6548ed386ad0e52318
Signed-off-by: Lajos Molnar <molnar@ti.com>

7 years agovideo: fbmon: add remaining modes to CEA mode database
Erik Gilling [Tue, 13 Sep 2011 20:44:44 +0000]
video: fbmon: add remaining modes to CEA mode database

These mode are directly from the CEA-861-E spec.

Change-Id: Ic29390fb8dfc4605da1f95aaee0e2e775dfc0a4a
Signed-off-by: Erik Gilling <konkers@android.com>

7 years agoRevert "video: fbmon: add HDMI dectetion to fbmod edid parsing"
Erik Gilling [Wed, 9 Nov 2011 22:18:46 +0000]
Revert "video: fbmon: add HDMI dectetion to fbmod edid parsing"

This reverts commit c326f06779fb6bdd7f92c3ede8d1bebbe2fafbfa.

7 years agowatchdog: tegra_wdt: give time for spinlock lockup detection to work
JP Abgrall [Sat, 27 Aug 2011 01:39:17 +0000]
watchdog: tegra_wdt: give time for spinlock lockup detection to work

To allow the spinlock lockup detection to actually trigger after
60 seconds, the tegra_wdt heartbeat needs to be longer than that.
Bumping it to 120sec, as at the 50% marker the watchdog takes an
interrupt.

Change-Id: I099fd7720d65c0e2050fa91161e30485fe84a1ed
Signed-off-by: JP Abgrall <jpa@google.com>

7 years agoARM: tegra: pm: hold cpus unti all have booted when exiting lp2
Colin Cross [Wed, 24 Aug 2011 02:26:33 +0000]
ARM: tegra: pm: hold cpus unti all have booted when exiting lp2

When exiting lp2, each cpu boots through cpu_resume, which
modifies the last used page table to add a 1-1 mapping in
order to turn on the mmu.  The first cpu to boot triggers
booting the second cpu, and if allowed to continue immediately
may start executing a userspace task that is using the same
page tables as the second cpu is modifying during its boot
process.  Hold each cpu in a loop until all cpus have
finished booting to ensure page tables are back to their
original state.  Each cpu triggers a global tlb flush
after it restores the page table, so all cpus will see the
original values before they exit idle.

Change-Id: Iad91ae57e2abbbec3d6d491460c3e19411b519c0
Signed-off-by: Colin Cross <ccross@android.com>

7 years agoARM: tegra: sleep: flush tlbs when exiting wfi
Colin Cross [Wed, 24 Aug 2011 00:43:54 +0000]
ARM: tegra: sleep: flush tlbs when exiting wfi

tegra_sleep_wfi disables coherency to prepare for possibly
resetting the cpu.  If an interrupt is received, it exits
wfi and re-enables coherency, but it was not flushing the
tlbs or the branch predictor array, which could have been
updated by broadcast tlb operations that were ignored.
Flush the tlbs and branch predictor array when exiting.

Change-Id: If2c6ca3f923baf2f883f461a2a90f08833c7e191
Signed-off-by: Colin Cross <ccross@android.com>

7 years agommc: sdhci: Enable MMC_CAP_ERASE for the tegra sdhci controller
Ken Sumrall [Thu, 18 Aug 2011 04:12:55 +0000]
mmc: sdhci: Enable MMC_CAP_ERASE for the tegra sdhci controller

Even if the card/emmc chip claims to support the Erase command,
the command won't work unless the controller is also configured
to support it.

Change-Id: Ic45fcd88dd3b3381677d907d31fa3a56bb697107
Signed-off-by: Ken Sumrall <ksumrall@android.com>

7 years agoARM: tegra: pm: save/restore ahb bus registers
Benoit Goby [Fri, 15 Jul 2011 04:26:39 +0000]
ARM: tegra: pm: save/restore ahb bus registers

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>
Modified to use syscore_ops

Change-Id: Ic8a3a9559634eb3f1f0e4b40a2d8502d20d606d6
Signed-off-by: Benoit Goby <benoit@android.com>

7 years agoARM: tegra: Enable AHB prefetch for USB
Benoit Goby [Fri, 15 Jul 2011 02:50:34 +0000]
ARM: tegra: Enable AHB prefetch for USB

Enabling AHB prefetch on USB1, USB2, USB3 controllers,
to improve the USB transfer throughput.

originally work from Rakesh Bodla <rbodla@nvidia.com>

Change-Id: I3c45bb8e97ceffbf43229b9c3d9581a565b61187
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agoARM: tegra: usb: prefetch engine buffer coherency protection
James Wylder [Tue, 21 Jun 2011 20:30:40 +0000]
ARM: tegra: usb: prefetch engine buffer coherency protection

The prefetcher fetches a total of 128 bytes, and then responding to
sequential reads with this prefetched data. To avoid coherency issues,
it discards the prefetched data if a non sequential read occurs.

Allocate dtd with 128 bytes boundary to make 2 consecutive dtd 128 bytes
apart.

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I2adc02c2ac7901d0617b487cb498a34ec7a63e18
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agousb: host: tegra: Add a short delay before the controller suspends.
Mike Corrigan [Mon, 20 Jun 2011 20:36:18 +0000]
usb: host: tegra: Add a short delay before the controller suspends.

Submission from Jay Cheng <jacheng@nvidia.com>.

Change-Id: Ic92befe618adc7bdd12c35374fb3f855d7f6a515
Signed-off-by: Mike Corrigan <michael.corrigan@motorola.com>

7 years agousb: gadget: tegra: update memory frequency requests to MAX
James Wylder [Tue, 21 Jun 2011 17:48:15 +0000]
usb: gadget: tegra: update memory frequency requests to MAX

Need maximum memory bandwidth to support bi-directional
transfers on multiple endpoints.

Change-Id: Idfd74c62ea0438fca7b93e82a6032a28feeab830
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agoARM: tegra: small optimizations for table lookups
James Wylder [Tue, 21 Jun 2011 17:51:37 +0000]
ARM: tegra: small optimizations for table lookups

Optimization that primarily addresses when cpu frequency
is low but a high memory bandwidth is needed.

Change-Id: I4f800c2368191c744aefd9f83eb96e4c108dbcc3
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agoARM: tegra: usb_phy: Revise some default settings for utmi phy
Benoit Goby [Sun, 17 Jul 2011 23:59:58 +0000]
ARM: tegra: usb_phy: Revise some default settings for utmi phy

Submitted on behalf of Jay Cheng <jacheng@nvidia.com>

Change-Id: I8552e995ee5c124023dd7f5385e8ecca7a50eee8
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agoARM: tegra: clock: Add frequencies table for pll_c
Sergey Kudakov [Fri, 1 Apr 2011 00:15:43 +0000]
ARM: tegra: clock: Add frequencies table for pll_c

Change-Id: Ib64190b01fc26bfb7fb8b9059afcc172d91e8da5
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>

7 years agovideo: tegra: nvmap: perform cache maintenance for rw_handle
Greg Roth [Wed, 16 Mar 2011 20:44:47 +0000]
video: tegra: nvmap: perform cache maintenance for rw_handle

Need cache maintenance on rw_handle to remove
display garbage issue which happens randomly.

Change-Id: I73606ae6551c0e75058e055f4a19e5f074a47004
Signed-off-by: Greg Roth <groth@nvidia.com>

7 years agoRevert "ARM: tegra: resolve ulpi disconnect issue"
Colin Cross [Fri, 17 Jun 2011 23:27:21 +0000]
Revert "ARM: tegra: resolve ulpi disconnect issue"

Commit 190f7b3ed5a597d2232e9047b50ac2d7613c3272 was an incorrect
merge, revert it.

Change-Id: I1c7e09fdbaad6637326facbc0ee06117bfb15e48

7 years agovideo: tegra: add support for tiled surfaces
Michael I. Gold [Thu, 31 Mar 2011 02:07:07 +0000]
video: tegra: add support for tiled surfaces

Change-Id: I82497fc756552740836eaa2f608fecaea409cfeb
Signed-off-by: Michael I. Gold <gold@nvidia.com>

7 years agovideo: tegra: add display inversion support
Ari Hirvonen [Wed, 2 Mar 2011 00:06:27 +0000]
video: tegra: add display inversion support

Change-Id: Ied3851e0cb801f607499493f1e552f42daa97e6b
Signed-off-by: Ari Hirvonen <ahirvonen@nvidia.com>

7 years agousb: ehci: tegra: Correctly handle GetPortStatus during Resume
Nathan Connell [Mon, 2 May 2011 19:32:36 +0000]
usb: ehci: tegra: Correctly handle GetPortStatus during Resume

Multiple GetPortStatus requests can be made while the
USB bus is resuming.  All requests must be handled
properly to prevent incorrect disconnect detection
during Resume and improper indentification of
Resume signaling as a remote wakeup event.

Change-Id: Ib07f83a2bab5699b2d95533d26d0a6bf541c697d
Signed-off-by: Nathan Connell <w14185@motorola.com>

7 years agousb: host: tegra: update memory frequency requests to 150 MHz
James Wylder [Fri, 11 Mar 2011 22:39:43 +0000]
usb: host: tegra: update memory frequency requests to 150 MHz

With the previous change in memory frequency (200 MHz
to 150 MHz) requests of 200 MHz will round up to full
speed.  This negatively impacts current drain.

Change-Id: Ib67d8eaff57836a2f1756d84cce6533539911178
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agousb: gadget: tegra: update memory frequency requests to 150 MHz
James Wylder [Fri, 11 Mar 2011 22:39:43 +0000]
usb: gadget: tegra: update memory frequency requests to 150 MHz

With the previous change in memory frequency (200 MHz
to 150 MHz) requests of 200 MHz will round up to full
speed.  This negatively impacts current drain.

Change-Id: Iefdb3a50aff338b44daa8311218400e4b4586152
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agovideo: tegra: dc: Fix introduced regression.
Andrei Warkentin [Tue, 3 May 2011 21:41:08 +0000]
video: tegra: dc: Fix introduced regression.

Removes changes to DC reset flow.

Change-Id: I491b6771c205bec7e19d4c661bb6d376ea8e25e4
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>

7 years agoARM: tegra: syncpt: Fix irq calls for 2.6.39
Colin Cross [Sat, 9 Apr 2011 02:16:20 +0000]
ARM: tegra: syncpt: Fix irq calls for 2.6.39

Change-Id: Ic69e022649bae71dd6d9a034c4da97e4197e5dc2
Signed-off-by: Colin Cross <ccross@android.com>

7 years ago[ARM] tegra: syncpt: Move syncpt handling to syncpt.c
Colin Cross [Sat, 21 Aug 2010 20:21:45 +0000]
[ARM] tegra: syncpt: Move syncpt handling to syncpt.c

Change-Id: I8ee2cde45d424e74465f62d1c2185291c30ac982
Signed-off-by: Colin Cross <ccross@google.com>

7 years agoARM: tegra: i2s: change driver name to match devices.c
Colin Cross [Sat, 9 Apr 2011 18:49:10 +0000]
ARM: tegra: i2s: change driver name to match devices.c

Change-Id: Id49b641dfded1300fa37fb57648f4706fca19270
Signed-off-by: Colin Cross <ccross@android.com>

7 years agoARM: tegra: apbio: move init to arch_initcall
Colin Cross [Sat, 9 Apr 2011 18:48:48 +0000]
ARM: tegra: apbio: move init to arch_initcall

Change-Id: Iaf07fe2412a012c3b02850fecc6f1dba90bd8ff1
Signed-off-by: Colin Cross <ccross@android.com>

7 years agousb: gadget: tegra: Fix dropped variable
Colin Cross [Sat, 9 Apr 2011 03:57:05 +0000]
usb: gadget: tegra: Fix dropped variable

Change-Id: I20a86be55a20d8658e5d5dc92ae6c733dacce3bb
Signed-off-by: Colin Cross <ccross@android.com>

7 years agommc: host: sdhci-tegra: Add set_clock op
Colin Cross [Fri, 6 May 2011 04:48:54 +0000]
mmc: host: sdhci-tegra: Add set_clock op

Add a set_clock op to sdhci-tegra to allow the clock to be
disabled.  Also add suspend and resume ops to disable
the clock before suspend, and enable it during resume.

Change-Id: I239cb769b54c83a1bd4a80b73e1c4845ce2d165d
Signed-off-by: Colin Cross <ccross@android.com>

7 years agommc: host: sdhci-pltfm: Add suspend and resume hooks to sdhci platform
Colin Cross [Fri, 6 May 2011 04:47:55 +0000]
mmc: host: sdhci-pltfm: Add suspend and resume hooks to sdhci platform

Change-Id: I062fbe91d8af14366a92af1a27e9dab49869905c
Signed-off-by: Colin Cross <ccross@android.com>

7 years agoARM: tegra: resolve ulpi disconnect issue
James Wylder [Thu, 7 Apr 2011 21:02:19 +0000]
ARM: tegra: resolve ulpi disconnect issue

Correct phy start-up sequence.
Put the phy in low power mode.
Tristate ulpi interface when USB controller is resuming

Change-Id: I1b326c16b56b9fd2d424afb8cf0888da6c9e245e
Signed-off-by: James Wylder <james.wylder@motorola.com>

7 years agousb: gadget: fsl_udc: Fix a race between ep_disable and ep_queue
Benoit Goby [Sat, 9 Apr 2011 03:53:59 +0000]
usb: gadget: fsl_udc: Fix a race between ep_disable and ep_queue

Fixed a possible null pointer exception when an endpoint gets
disabled while a request is being enqueued in parallel.

Unmap the request buffer if we fail to enqueue the request.

Change-Id: If94cc278c2e6ab58adcf170511e676348365f3f9
Signed-off-by: Benoit Goby <benoit@android.com>

7 years agousb: gadget: fsl_udc: Unlock the spinlock before calling clk_enable
Benoit Goby [Wed, 29 Sep 2010 23:04:25 +0000]
usb: gadget: fsl_udc: Unlock the spinlock before calling clk_enable

On suspend, dr_controller_stop disable interrupts and on resume, interrupts
are disabled until dr_controller_run is called, so it is safe to call
fsl_udc_clk_suspend/resume with interrupts and the spinlock unlocked.

Change-Id: I33618295ea096a4bfd796d1a07dfc9722e7786b0
Signed-off-by: Benoit Goby <benoit@android.com>

7 years agousb: gadget: Enable/disable the gadget device on vbus_session calls
Benoit Goby [Wed, 1 Sep 2010 00:09:39 +0000]
usb: gadget: Enable/disable the gadget device on vbus_session calls

If we use an OTG driver, the driver will detect VBUS changes and notify
the gadget driver through vbus_session. Enable/disable the gadget driver
in vbus session so that there is no need to check the OTG state on every
interrupt.

Change-Id: I617ad5742be2632b2257b71314db8f330be463d5
Signed-off-by: Benoit Goby <benoit@android.com>

7 years agousb: gadget: Reset the controller when cable is unplugged
Benoit Goby [Sat, 9 Apr 2011 03:50:59 +0000]
usb: gadget: Reset the controller when cable is unplugged

Reset the controller when the cable is unplugged to leave it in the idle
state. The OTG driver will reconfigure it on vbus/id pin detection.

Change-Id: I87903ec86f3c35af64a141f27a34cc0720a61b08
Signed-off-by: Benoit Goby <benoit@android.com>

7 years agommc: tegra: Add explicit card-detect processing
Dmitry Shmidt [Tue, 3 May 2011 18:14:53 +0000]
mmc: tegra: Add explicit card-detect processing

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agommc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device
Dmitry Shmidt [Thu, 5 May 2011 18:04:51 +0000]
mmc: sdhci-tegra: Add MMC_PM_IGNORE_PM_NOTIFY for builtin device

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoARM: tegra: mmc: Add mmc_platform_data to tegra_sdhci_platform_data
Dmitry Shmidt [Tue, 3 May 2011 18:10:43 +0000]
ARM: tegra: mmc: Add mmc_platform_data to tegra_sdhci_platform_data

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoARM: tegra: Add WIFI_CONTROL_FUNC config
Dmitry Shmidt [Tue, 3 May 2011 18:09:38 +0000]
ARM: tegra: Add WIFI_CONTROL_FUNC config

Change-Id: Ia423e7f87f8994a4cbcf752562692c568fe2bf68
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

7 years agoARM: tegra: iovmm: Convert suspend to syscore ops
Colin Cross [Fri, 29 Apr 2011 21:46:18 +0000]
ARM: tegra: iovmm: Convert suspend to syscore ops

Also convert lock used in suspend to spinlock.

Change-Id: Icedac130e7b5e9a69df6f16779ef8d53efe424f1
Signed-off-by: Colin Cross <ccross@android.com>

7 years agoARM: tegra: Verify PHY clock valid before clearing USB_SUSP_CLR bit
Nathan Connell [Mon, 25 Apr 2011 19:17:13 +0000]
ARM: tegra: Verify PHY clock valid before clearing USB_SUSP_CLR bit

When enabling the external ULPI PHY, the clock from the PHY must be
valid before the USB_SUSP_CLR bit is cleared in the USB2 controller
interface register.  If the clock from the PHY is not valid when
this bit is cleared, the AHB clock to the host controller may be
stopped, preventing any access to the host controller.

Replace hard-coded delay with poll for USB_PHY_CLK_VALID bit.
Signed-off-by: Nathan Connell <w14185@motorola.com>

Change-Id: I24fa7575641f20ffdba7737776a81ba453f54395
Signed-off-by: Nathan Connell <w14185@motorola.com>

7 years agoARM: tegra: usb_phy: Resolve ulpi disconnect issue
James Wylder [Thu, 7 Apr 2011 21:02:19 +0000]
ARM: tegra: usb_phy: Resolve ulpi disconnect issue

Correct phy start-up sequence.
Put the phy in low power mode.
Tristate ulpi interface when USB controller is resuming

Change-Id: I1b326c16b56b9fd2d424afb8cf0888da6c9e245e
Signed-off-by: James Wylder <james.wylder@motorola.com>