7 years agoARM: tegra: Use proper type for physical addresses
Scott Williams [Wed, 13 Apr 2011 00:47:52 +0000]
ARM: tegra: Use proper type for physical addresses

Original-Change-Id: I158d2be97c795313e7e74ce9fb4ec0bdc7d95496
Reviewed-on: http://git-master/r/27559
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Jin Qian <jqian@nvidia.com>
Reviewed-by: Kaz Fukuoka <kfukuoka@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I0ff198daa548ed2837f7fb1794013bf0adf7e5a1

Rebase-Id: R83df5f3b5104183bfe774d8eed8ce94427c9b7fc

7 years agoarm: video: tegra: dc callbacks for hotplug init
Jon Mayo [Wed, 13 Apr 2011 01:14:22 +0000]
arm: video: tegra: dc callbacks for hotplug init

add new dc out callback hotplug_init and postsuspend to handle board
specific configuration of power and gpios for detecting hotplug.

bug 812083 bug 811523

Original-Change-Id: Ia7937cc9461465502cabbd2a5efaee0093bccfe0
Reviewed-on: http://git-master/r/27570
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: Iab0fbe0e493ad3818416454ba7a2dda679f68dfb

Rebase-Id: R8869de766d7939a7be48a4860c45d18ac7a2ffed

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

Original-Change-Id: Ic898e87134cbac0fe5723242febdf46bc5b72d32
Reviewed-on: http://git-master/r/19176
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I98d68da65e590a0eb5cf7fac166d05e0c531bd5f

Rebase-Id: Re162cfbb1042f6e19b38d2de3e278677dc702361

7 years agovideo: tegra: nvmap: Remove dead code
Dan Willemsen [Fri, 1 Apr 2011 06:36:58 +0000]
video: tegra: nvmap: Remove dead code

This commit:
tegra:video:nvmap: optimize cache_maint operation.

added some dead code

Original-Change-Id: I9193a7865f5e3126b06950efaf9b5a4b6c7fd919

Rebase-Id: R30ba7719d8aa6ad48d708714396299b154cf0131

7 years agoARM: tegra: dc: fix deadlock on overlay wq flush
Jon Mayo [Thu, 31 Mar 2011 03:23:39 +0000]
ARM: tegra: dc: fix deadlock on overlay wq flush

dc lock is head while flush occurred, but functions called by workers need
take the dc lock to proceed.

Bug 807015

Original-Change-Id: Id30c5c768947f8f9959b01be3983761a18c5a1e5
Reviewed-on: http://git-master/r/24890
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I6537018e03cfc354af9a7187d2fdd019cfe55960

Rebase-Id: Rc1c42255aef998f6741fe1484356a884479b8ec8

7 years agovideo: tegra: dsi: Stop dc stream at the frame end
kevinh [Fri, 18 Mar 2011 07:12:40 +0000]
video: tegra: dsi: Stop dc stream at the frame end

Fixed tegra_dsi_stop_dc_stream() to flush register immediately.
Added tegra_dsi_stop_dc_stream_at_frame_end().

Original-Change-Id: Ie4fe1f6d59e6bf0dab40251f33a0c2f8d816fdd8
Reviewed-on: http://git-master/r/23488
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: I398cb977146656936c5768c2bc3ec83f7bdc7c66

Rebase-Id: Rda5a11692992edd47c49e0f30446efc0a26e747e

7 years agovideo: tegra: host: Backwards compatible null kickoff
Andrew Howe [Thu, 24 Mar 2011 16:24:47 +0000]
video: tegra: host: Backwards compatible null kickoff

Change back to the backwards compatible null kickoff method
(having a separate ioctl).

Original-Change-Id: Ifb6e706ac9e068c5bc8d834fe61f797f14c5889f
Reviewed-on: http://git-master/r/24159
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Ifde9ee33e072ec502fcd855ffc8d92d312946a00

Rebase-Id: R1884e0a57bf63fced738567acf5c521d1c8109b9

7 years agovideo: tegra: host: Add emc clock to gr2d, gr3d and mpe modules
Andrew Howe [Thu, 24 Mar 2011 15:06:50 +0000]
video: tegra: host: Add emc clock to gr2d, gr3d and mpe modules

Add emc to the set of units to power-manage.

Original-Change-Id: I9d9624ce3673fc005447df3356867b37f4a75006
Reviewed-on: http://git-master/r/24158
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I75a48f19bd94b832b9f70707806aef26a53cae45

Rebase-Id: Rac3067ac41491e4e3a63f64ff87df851b2e9bc6c

7 years agovideo: tegra: host: Renovate debug code
Andrew Howe [Tue, 22 Mar 2011 16:38:23 +0000]
video: tegra: host: Renovate debug code

Bring in changes to enable dumping the debug state
to the kernel log (used when module suspend times out).

Rewrote debug code to get that working more cleanly (no 16K buffer).

Refactored & cleaned up debug code to make it easier to understand.

Original-Change-Id: I22db36a627bfb1815a46866dfe23a5d3aa693edc
Reviewed-on: http://git-master/r/24157
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I92d7dcc4ede088179a5a1bca982fdfba1eeb3553

Rebase-Id: Ra013bf33c1002d2e37a7c97b7d4b441ad51f7211

7 years agovideo: tegra: host: Revert previous merge
Kishore Kumar Kunche [Tue, 8 Feb 2011 05:18:00 +0000]
video: tegra: host: Revert previous merge

The proper host driver patches will follow, based on the
pre-merge state.

also includes:
[ARM]: tegra: host disable MPE auto power gate
Fixes Random CRC failures on T30.
Original-Change-Id: Ib42b8efc30d9e8910934bb9350e8170c9096e614
Reviewed-on: http://git-master/r/18663

Original-Change-Id: I985bfbef277db4d533b67ee674db41d4a8daa18a
Reviewed-on: http://git-master/r/24296
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Tested-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Iec8ea27d5648b7f9f8ac51f2aca79b5e7cf44879

Rebase-Id: Rcfb56b73d820c182354e6b91afa219148e4000b0

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

Original-Change-Id: I2ffeaf6f8dfeb279b40ca6f69f6c9157401a746a

Rebase-Id: R5a6d087b717731c957b016f903fb82b4ea22b92d

7 years agovideo: dsi: tegra: Removing the dsi related macros
ankishore [Thu, 24 Mar 2011 12:26:51 +0000]
video: dsi: tegra: Removing the dsi related macros

Due to dynamic recognition of the board id these macros are no longer

Original-Change-Id: I4eafad1a8ccab3a3e493944fd4a90df8972e7521
Reviewed-on: http://git-master/r/24127
Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com>
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Original-Change-Id: I90c1fe2a6a6f2a22b6389b3080c743dd20f1fe1a

Rebase-Id: Ra862a12a1b7882bd7a0d6633277ad2e9299cd74d

7 years agovideo: dsi: tegra: Support for dsi 2nd instance
ankishore [Tue, 22 Mar 2011 06:10:33 +0000]
video: dsi: tegra: Support for dsi 2nd instance

Made necessary changes in dsi kernel driver to support dsi 2nd instance
Bug id: 805483

Original-Change-Id: I1e333b243e31f285dca22351d999328d9d5f0485
Reviewed-on: http://git-master/r/22174
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Venkata Nageswara Penumarty <vpenumarty@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I10ff6243a0c3b0e7114976a4615e8b26f382b7ec

Rebase-Id: R48ba2a5247d6e6d28d0794ae698e7afe877b2fd6

7 years agovideo: tegra: Added initial smartdimmer support
Laurence Harrison [Wed, 16 Mar 2011 04:43:45 +0000]
video: tegra: Added initial smartdimmer support

1.) changes to DC init to add SD functionality
2.) changes to DC flip to add SD functionality

Original-Change-Id: I8c729e16e2b8a5a4158697b99cc4b3d07bf02001
Reviewed-on: http://git-master/r/21452
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I4ad3ee3778a0e859e0d2b0c36ee6369193795cd3

Rebase-Id: Rd133da1af5c8b283b1886b025b8b1880ec61fde0

7 years agovideo: tegra: calculate h_ref_to_sync for mode
Jon Mayo [Fri, 11 Mar 2011 22:39:26 +0000]
video: tegra: calculate h_ref_to_sync for mode

add tegra_dc_set_fb_mode() to create tegra_dc_mode from fb_videmode.

Original-Change-Id: Icfaf99ab1c14b64f52b5b382bc8b94ed2e8306db
Reviewed-on: http://git-master/r/22689
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I233b15e1c88e0946752cac1251d5122a1f50a579

Rebase-Id: R7e280e6d4a1e2f2432ec4ca85bfcf209fd55c9dc

7 years agoarm: tegra: Ignore DC interrupts on FPGA platforms
Bo Yan [Fri, 11 Mar 2011 02:04:22 +0000]
arm: tegra: Ignore DC interrupts on FPGA platforms

Bug 800669

Original-Change-Id: I4b3a58b4938c4582a3738714c301541b752be844
Reviewed-on: http://git-master/r/22500
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: Id050088e6b2ac4289ab9a5dcca0f7f3288354dac

Rebase-Id: Rc7e17b39fd0a986a333bd8aae78a116fca9ebbdc

7 years agovideo: dsi: tegra: Correcting clock api in dsi driver
ankishore [Mon, 14 Mar 2011 06:02:34 +0000]
video: dsi: tegra: Correcting clock api in dsi driver

Corrected the arguments being passed in the clock api.

Original-Change-Id: I1515280b2f1e4856910923340aeb67b4a4867e7b
Reviewed-on: http://git-master/r/22780
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Tested-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>
Original-Change-Id: Ibc2ce652b8dbfb8aa40d75ac502cf72768697480

Rebase-Id: Redbc4be423706727d150798bc78273bafafd89d1

7 years agovideo: tegra: use low power for any type of blank
Jon Mayo [Thu, 10 Mar 2011 23:42:15 +0000]
video: tegra: use low power for any type of blank

use a lower power mode for any type of FB_BLANK instead of only supporting

Original-Change-Id: I1dc9a6bb29808802563afb07fb5d7b41a5ba5c3d
Reviewed-on: http://git-master/r/22467
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Tested-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: I4402e7f067a7f30e6a728c8b3ec4a00821741cbe

Rebase-Id: R6e8ac6c8cecd5ae91817e4225a166bac155c9d72

7 years agoarm: tegra: hdmi:audio freq and source selection
mohit singh [Tue, 1 Mar 2011 05:49:35 +0000]
arm: tegra: hdmi:audio freq and source selection

- moving the new API to a new file under mach tegra

Original-Change-Id: I0e898883bbf5ab0f24573bb334ff355564118f2f
Reviewed-on: http://git-master/r/21206
Tested-by: Mohit Singh <mpsingh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Original-Change-Id: I232974ba41e9b3589aebf6aa25a9ab17d4dd12dd

Rebase-Id: R09f335e4905579ca334a1f8132a3d6f96ada0555

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

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


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

(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

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

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

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.



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

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

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

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>