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 agoMake tegra_defconfig compile
Dan Willemsen [Thu, 22 Mar 2012 07:22:47 +0000]
Make tegra_defconfig compile

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

7 years agommc: tegra: fixup error path
Dan Willemsen [Tue, 20 Mar 2012 00:34:37 +0000]
mmc: tegra: fixup error path

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

Rebase-Id: R0dc39c843e6a708cb1fdfb7193422bc55c363e38

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 agofixup: hotplug.c: cpu_pm
Dan Willemsen [Thu, 22 Mar 2012 05:04:03 +0000]
fixup: hotplug.c: cpu_pm

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

7 years agopinmux-tegra30-tables: replace mach/suspend.h with pm.h
Dan Willemsen [Thu, 22 Mar 2012 05:02:28 +0000]
pinmux-tegra30-tables: replace mach/suspend.h with pm.h

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

7 years agoHACK usb_phy.c add pinmux-tegra20.h include
Dan Willemsen [Thu, 22 Mar 2012 04:57:59 +0000]
HACK usb_phy.c add pinmux-tegra20.h include

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

7 years agoHACK: add idmap.h include
Dan Willemsen [Thu, 22 Mar 2012 04:56:57 +0000]
HACK: add idmap.h include

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

7 years agoHACK: partial revert of static identity_mapping_add
Dan Willemsen [Thu, 22 Mar 2012 04:50:16 +0000]
HACK: partial revert of static identity_mapping_add

commit 4e8ee7de227e3ab9a72040b448ad728c5428a042

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

7 years agoHACK: fixup tegra_init_cache
Dan Willemsen [Thu, 22 Mar 2012 01:31:15 +0000]
HACK: fixup tegra_init_cache

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

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>

Rebase-Id: Rc55887d66002d58dcc5b602efb038a35807e6799

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>

Rebase-Id: Rf3a48bcf800a61542c2226d728e7cde1c3889da7

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>

Rebase-Id: Re8a9c83e4707ae0ffabf4f2a539758faeacd6211

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>

Rebase-Id: R846f89c07d11e7b985f5437c4ecf446354147561

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.

Rebase-Id: Re524e8d29145ef2fe418b122c9d0eeb4b773a7eb

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>

Rebase-Id: R89dfdbb2a0d1c756a79b5e77205d74a27ab6185b

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>

Rebase-Id: R110a4b1f28846af97edd39bb382e1e09c3f92330

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>

Rebase-Id: Re46c9045a33ad78789e7dee2788b470fd1071c83

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>

Rebase-Id: Ra7472026260294afa7d63335e7db29cadc9f1f9e

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>

Rebase-Id: R772632ac36f18c046f055fa71c062eda75adaf78

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>

Rebase-Id: R70e5a98a122758afb8aafc8c9bd5fd3e0640ba2d

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>

Rebase-Id: R5f9b91ece4b041d15bed9c1239bff073af18dcb8

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>

Rebase-Id: Rd1b4ff67cb1a4ad0df30d578072d36571b68afec

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>

Rebase-Id: R81d4136fe8d556ecf53873e7fe3022bc8d0e2ced

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>

Rebase-Id: Rb56fcfbf9ee66305b9d9cf8b02a42e3f4aab020c

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>

Rebase-Id: R003588d3b2d55a4117d118f95b71cdc388fa19f1

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>

Rebase-Id: R36eb1e1b485a1ea31af7092b3c3ef83c0e78aad3

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>

Rebase-Id: R90e3ef151b634a47639a314e3d990eda4671ec73

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

Rebase-Id: R224f9a9eb78f2758ca6c7ad423719ad20d61c826

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>

Rebase-Id: R546a39a04712c0dbb6fcc51f60fb9ccb20fc46d5

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>

Rebase-Id: Ref0a8a3fad3a8ddcea612106a2a7e08a7a33e325

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>

Rebase-Id: R6d2c8b1b85fb37d1e1d7dad3051098b0d42ed71a

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>

Rebase-Id: R4c915ea04c3319ddd1962b24199d2e50e18fae06

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>

Rebase-Id: R39ff6f546ba05e471bb1e95cca6a78e35492099a

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>

Rebase-Id: Rff4fa57c697204ac1b0521eaf54c36acc346953f

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>

Rebase-Id: Re15a3882c7aa988daa0a3a0cfc643f89acc1eb61

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>

Rebase-Id: R3f4a640e1e43f4d250d7265ab331c33c84ff3000

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>

Rebase-Id: R1180fd83081ffd26bb2395ac8ccbc2fe5e8a5aef

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>

Rebase-Id: R5c5139c1bb411ba389b312f359105acc8bf92285

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>

Rebase-Id: Refda099ecf0d13fb1b5c8193aafa9f4a59b096ed

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>

Rebase-Id: Rbf12d34ca4f97a02931672f600a03cd92008d556

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>

Rebase-Id: R3eb206857e57a61e445a1dd6b7efdc63ab1e0dd5

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>

Rebase-Id: Rbad940bd33344922b68b4ffc58f802f3877da89b

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>

Rebase-Id: Rdc20450f2b7621ef73baf89c84219bac34994651

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>

Rebase-Id: Rbff9f8b7b1797055d21d8c201d56c72631183344

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

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

Rebase-Id: Rbf3f31d373f57989244f916b220c44e526eff826

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>

Rebase-Id: R2232a70c504450bae460cc7031e7d9e40762173b

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>

Rebase-Id: R34adf5d554f3293056594a9c6f53fe9d47f7b1b4

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>

Rebase-Id: Rad8d0a03033ce72961ffb8be8610f248139a057e

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>

Rebase-Id: R1bbe99a52288eb16d07fb876a601f8a049e4858e

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>

Rebase-Id: R82c561f48621fe6e44880cc53d24426ddd4f7676

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>

Rebase-Id: R6be6eeefb34dcb7a69e403c27a72062b1bbd1932

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>

Rebase-Id: R819c1a8f769f72aad2868ab78f4d31bd3b97c750

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>

Rebase-Id: R8390c94ab187d9713e2cff4856f8c0a1be5e3620

7 years agovideo: tegra: dc: Fix several problems
Andrei Warkentin [Thu, 21 Apr 2011 16:57:57 +0000]
video: tegra: dc: Fix several problems

Resolve potential race between resume and reset
Fix wmb after return

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

Rebase-Id: R248821307a1d2ac9454e50f9fa5bc3ccadc4e092

7 years agovideo: tegra: prevent double disable in suspend
Andrei Warkentin [Tue, 19 Apr 2011 19:20:48 +0000]
video: tegra: prevent double disable in suspend

Prevents HDMI detect worker from re-disabling DC during
suspend (after tegra_dc_suspend has disabled DC itself)/

Change-Id: I90016fb709934ab8fb5135443980898069f8071f
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Erik Gilling <konkers@android.com>

Rebase-Id: R87e341c550a0bab2fda3b81f6b3e82c96ffcdc11

7 years agovideo: tegra: dc: hdcp: handle the case of DEVICE_COUNT = 0 properly
Peter Zu [Thu, 7 Apr 2011 04:42:33 +0000]
video: tegra: dc: hdcp: handle the case of DEVICE_COUNT = 0 properly

When HDCP repeater has no device attached, DEVICE_COUNT reports back as 0.
HDCP driver should handle this case as a good case and continue downstream
authentication, other than fail it.

Change-Id: Ied2e46428c0247f14fbd96016cd4fdbf358f6587

Rebase-Id: R0d45add14c7718d3133fffd8f04a3d75cb1db76f

7 years agovideo: tegra: fix more unplug/suspend timeout in nvhdcp
Erik Gilling [Fri, 15 Apr 2011 21:49:53 +0000]
video: tegra: fix more unplug/suspend timeout in nvhdcp

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

Rebase-Id: R6e70e60d8e02479ada9393d96370ef15dc294029

7 years agovideo: tegra: fix unplug/suspend timeout in nvhdcp
Erik Gilling [Wed, 13 Apr 2011 15:03:41 +0000]
video: tegra: fix unplug/suspend timeout in nvhdcp

If HDCP was turned off (either by unplug or suspend) the work funciton
would wait the full timeout 5 * l.75s before exiting.  This
causes suspend to timeout and crash.

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

Rebase-Id: R1f5d558bc5ddc0a34e3b6db80d783a8dd791b8b2

7 years agovideo: tegra: zero out var before calling fb_videomode_to_var
Erik Gilling [Wed, 13 Apr 2011 00:36:04 +0000]
video: tegra: zero out var before calling fb_videomode_to_var

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

Rebase-Id: R98a0814898c3426429ed1a58d5c897b88a56b63d

7 years agovideo: tegra: add debouncing to hdmi hotplug
Erik Gilling [Mon, 11 Apr 2011 22:15:15 +0000]
video: tegra: add debouncing to hdmi hotplug

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

Rebase-Id: R936f7babe91dacff5d0709057e4a16b6a1cd4e5e

7 years agovideo: tegra: reset hdcp failure count on hotplug
Jon Mayo [Wed, 6 Apr 2011 20:20:15 +0000]
video: tegra: reset hdcp failure count on hotplug

use tegra_nvhdcp_on/tegra_nvhdcp_off in hotplug handler to clean up
state machine.

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

Rebase-Id: Rac4bd11b5fe5f94eacfac9379b39effa45dc7e04

7 years agovideo: tegra: use longer retries for hdcp
Jon Mayo [Wed, 6 Apr 2011 20:15:20 +0000]
video: tegra: use longer retries for hdcp

use 3 seconds for i2c/ddc failures on hdcp (15 attempts at 250mS each)

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

Rebase-Id: R8c761f0f303b8a552019ebaa92a4ca01499c1645

7 years agovideo: tegra: attempt HDCP on DVI
Erik Gilling [Thu, 7 Apr 2011 17:33:55 +0000]
video: tegra: attempt HDCP on DVI

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

Rebase-Id: R32e40dfcb9aa34d56412831da53c5d6b24d7a663

7 years agoi2c: busses: i2c-tegra: Fix multi-bus
Colin Cross [Sat, 9 Apr 2011 02:17:48 +0000]
i2c: busses: i2c-tegra: Fix multi-bus

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

Rebase-Id: Rfe32a49607d827f9835efb25e1c5e139ebf7da33

7 years agoARM: tegra: fiq: Fix calls to mask/unmask
Colin Cross [Sat, 9 Apr 2011 02:16:02 +0000]
ARM: tegra: fiq: Fix calls to mask/unmask

Change-Id: I5ea0964d4a803ca7a52acd3d93307ca5254da6a9

Rebase-Id: R5920dfef5064f77417d862bed1e25803f85fcd0e

7 years agoARM: tegra: pm: Use clk_get_rate_all_locked
Colin Cross [Sat, 9 Apr 2011 02:14:25 +0000]
ARM: tegra: pm: Use clk_get_rate_all_locked

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

Rebase-Id: R68adf1983100ac1b02932b93c99136e22dc3f04e

7 years agoARM: tegra: pm: Drop fiq enable/disable, will be handled by cpu_pm
Colin Cross [Sat, 9 Apr 2011 02:14:06 +0000]
ARM: tegra: pm: Drop fiq enable/disable, will be handled by cpu_pm

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

Rebase-Id: Rf3fd985352b1977fbf68c971ae71fb93fc8a4ea6

7 years agotty: serial: tegra_hsuart: Move to tty/serial directory
Colin Cross [Sat, 9 Apr 2011 01:26:08 +0000]
tty: serial: tegra_hsuart: Move to tty/serial directory

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

Rebase-Id: R2ecb80068fc28f4d5fe4a7278c0ee3ef56ff7f71

7 years agoARM: tegra: cpuidle: Remove fiq enable/disable
Colin Cross [Sat, 9 Apr 2011 01:23:33 +0000]
ARM: tegra: cpuidle: Remove fiq enable/disable

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

Rebase-Id: R8c31fc93bf703ca36bb7b08b1e3c3de19525a7a4

7 years agovideo: tegra: dc: Call dvfs functions
Colin Cross [Mon, 18 Oct 2010 03:49:48 +0000]
video: tegra: dc: Call dvfs functions

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

Rebase-Id: R1e6bc9310cf95777341bc7c6d549942768970a2d

7 years agoARM: tegra: Add dvfs
Colin Cross [Thu, 7 Apr 2011 22:47:13 +0000]
ARM: tegra: Add dvfs

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

Rebase-Id: Ra589d56e7edf4d534c5dc4a831657532bb501038

7 years agofix harmony
Colin Cross [Thu, 7 Apr 2011 22:45:07 +0000]
fix harmony

Change-Id: I6b39d27144a71a952f534b9066173be5a25ff049

Rebase-Id: R5c307e8f4af0e4c6b933a1445ec90b468587b275

7 years agoARM: tegra: harmony: Temporarily disable otg
Colin Cross [Thu, 7 Apr 2011 22:00:51 +0000]
ARM: tegra: harmony: Temporarily disable otg

Change-Id: I69082a1a2c1e5430fb8f9a186088aa45ec8a9715

Rebase-Id: R6ccb5a19e4105ce0d36e5c446123990578a4f0dc

7 years agoARM: tegra: harmony: Fix sdhci build
Colin Cross [Thu, 7 Apr 2011 22:00:33 +0000]
ARM: tegra: harmony: Fix sdhci build

Change-Id: Ie5317feae18f3933a93021a38f505aa44618b7c1

Rebase-Id: R4cfab66df510d349fc33cfbe2d369d7970e0166f

7 years agoARM: tegra: fiq: Access registers directly
Colin Cross [Thu, 7 Apr 2011 21:58:11 +0000]
ARM: tegra: fiq: Access registers directly

Change-Id: Ia10f65ed00ade7298612ae3c8e4c6255c1a5ee7e

Rebase-Id: Rab8893b6ed7eb60ff451c683c1a5fef9b01e3fd1

7 years agovideo: tegra: nvmap: remove smp_lock include
Colin Cross [Thu, 7 Apr 2011 21:57:23 +0000]
video: tegra: nvmap: remove smp_lock include

Change-Id: I51fe70b92f256951e68c6bbd21e6b4d6081f4731

Rebase-Id: R299bf5249aa448d3c4c19ac66aa0b9d83f6a00fd

7 years ago[ARM] mm: add memory type for inner-writeback
Colin Cross [Thu, 7 Apr 2011 21:47:45 +0000]
[ARM] mm: add memory type for inner-writeback

For streaming-style operations (e.g., software rendering of graphics
surfaces shared with non-coherent DMA devices), the cost of performing
L2 cache maintenance can exceed the benefit of having the larger cache
(this is particularly true for OUTER_CACHE configurations like the ARM

This change uses the currently-unused mapping 5 (TEX[0]=1, C=0, B=1)
in the tex remapping tables as an inner-writeback-write-allocate, outer
non-cacheable memory type, so that this mapping will be available to
clients which will benefit from the reduced L2 maintenance.

Change-Id: Iaec3314a304eab2215100d991b1e880b676ac906
Signed-off-by: Gary King <gking@nvidia.com>



Rebase-Id: R9aa7adcd893ebe88551f22fa80ede8748f1df969

7 years agoFix i2c build
Colin Cross [Thu, 7 Apr 2011 21:42:57 +0000]
Fix i2c build

Change-Id: I558577e86654bc9a5a2cbfeeeb8055454ab8f328

Rebase-Id: R451efe942461ebdb2ff9e75cc3daf1cd58191291

7 years agoARM: tegra: clock: Remove duplicated shared bus round rate function
Colin Cross [Thu, 7 Apr 2011 21:42:22 +0000]
ARM: tegra: clock: Remove duplicated shared bus round rate function

Change-Id: I450f84de3469f171bb1c28e97c1b8118384c680e

Rebase-Id: Rf0dd2c91239e6aad99fbe4e0316806f693e7f344

7 years agoARM: tegra: devices: remove duplicated devices
Colin Cross [Thu, 7 Apr 2011 21:42:01 +0000]
ARM: tegra: devices: remove duplicated devices

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

Rebase-Id: R6849717c0c9fa5bc4a0f8d1ad333a0b952e5e8d9

7 years agoARM: tegra: delay: Remove mov32 macro
Colin Cross [Thu, 7 Apr 2011 21:41:33 +0000]
ARM: tegra: delay: Remove mov32 macro

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

Rebase-Id: R0d2b41dc74191f2c5779b4549140420719c8e6df

7 years agoARM: tegra: common: remove duplicated tegra_reserve
Colin Cross [Thu, 7 Apr 2011 21:41:08 +0000]
ARM: tegra: common: remove duplicated tegra_reserve

Change-Id: I9ac691e7abbc85398dcc1e4dcd8dd1d97c2abec6

Rebase-Id: R45a0f3e7898450b081162c7ddbaee28341a873cb

7 years agoARM: tegra: common: remove call to tegra_dma_init
Colin Cross [Thu, 7 Apr 2011 21:40:50 +0000]
ARM: tegra: common: remove call to tegra_dma_init

Change-Id: Ieeae25dd4d3ac829ad29782539548b9ededd0876

Rebase-Id: Rfc402eb31377989bad262b9bc0e62559c033316a

7 years agoARM: tegra: replace console_sem with console_lock
Colin Cross [Thu, 7 Apr 2011 21:40:23 +0000]
ARM: tegra: replace console_sem with console_lock

Change-Id: Ia273a062f0c5a33420004e1cf890f52bde28366d

Rebase-Id: Rbc61851dcd09f8b3c46c54e468e71ac1a201faa4

7 years agovideo: tegra: reset hdcp failure count on hotplug
Erik Gilling [Thu, 31 Mar 2011 23:26:59 +0000]
video: tegra: reset hdcp failure count on hotplug

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

Rebase-Id: Rd670265d7843988ed883f04685da6568783fd1d6

7 years agousb: host: ehci-tegra: Wait for SOF before resume
Venkata (Muni) Anda [Tue, 29 Mar 2011 06:15:40 +0000]
usb: host: ehci-tegra: Wait for SOF before resume

Wait for Start Of Frame interrupt, then wait 20 us, before starting
port resume.  Workaround for hardware issue that can cause the SOF to
be sent out at the same time as the phy speed change.

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

Rebase-Id: R6fc2a8330c54343e08fa7030a753580d98aa3395

7 years agoserial: tegra_hsuart: Make sure current byte rx complete in suspend
Andrei Warkentin [Tue, 22 Mar 2011 18:37:47 +0000]
serial: tegra_hsuart: Make sure current byte rx complete in suspend

Make sure that the last byte has been received by the uart during
suspend after RTS is deasserted.

Change-Id: I3517ec058fdca912ff5ad8770d2b1c5015385385
Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
Signed-off-by: Colin Cross <ccross@android.com>

Rebase-Id: Rc3fe14f87fab40898a9c7c7c57db8158812e25ec

7 years agovideo: tegra: add HOST1_SYNC regs to nvhost_debug_show dump
Chris Johnson [Tue, 22 Mar 2011 01:20:51 +0000]
video: tegra: add HOST1_SYNC regs to nvhost_debug_show dump

Change-Id: I48cccf5b0df768b9cfc774803f3945f4806a62ac

Rebase-Id: R13da339cea18d684a66c3103423623525cb5ce3b

7 years agoserial: tegra_hsuart: Call complete callbacks when cancelling reqs
Colin Cross [Wed, 16 Mar 2011 23:56:23 +0000]
serial: tegra_hsuart: Call complete callbacks when cancelling reqs

Updates the tegra_hsuart driver to match the changes in the Tegra
dma engine.

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

Rebase-Id: R7508622421eba02e42ad4593f31ebc275d21e1ce

7 years agoARM: tegra: dma: Do not call complete callback on canceled requests
Colin Cross [Wed, 16 Mar 2011 23:53:24 +0000]
ARM: tegra: dma: Do not call complete callback on canceled requests

Calling the complete callback when a request is cancelled leads to
locking problems in the callback, which could be called from an IRQ
with no locks held, or from whatever context called
tegra_dma_dequeue_req.  Instead, expect the caller to handle the
now-cancelled request as needed.

Also removes tegra_dma_dequeue, since all users can be trivially
converted to tegra_dma_dequeue_req.

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

Rebase-Id: R0207cf5372718734b7d5374a73eae2dacb715700

7 years agovideo: tegra: cleanup debug syncpt output
Chris Johnson [Wed, 16 Mar 2011 21:25:22 +0000]
video: tegra: cleanup debug syncpt output

In debug prints for stuck WAITs differentiate WAIT_SYNCPT
vs. WAIT_SYNCPT_BASE and fix some build warnings.

Change-Id: Ia47375614c676a9f93216fbfaaf6856c3df42e2e
Signed-off-by: Chris Johnson <cwj@nvidia.com>

Rebase-Id: Rb909328214e6b0d9810af7e03c65cdb397495729

7 years agoRevert "Revert "tegra: host: move stale wait checking into the kernel""
Rebecca Schultz Zavin [Tue, 8 Mar 2011 20:15:30 +0000]
Revert "Revert "tegra: host: move stale wait checking into the kernel""

This reverts commit b3cc1d84d0b962fe80fc297d2e2417c3157508b6.

Rebase-Id: Re0ee6714319a40cb775a35e1ce6cf669225728c9

7 years agoARM: tegra: add generic memory vendor matching
James Wylder [Tue, 1 Mar 2011 15:25:06 +0000]
ARM: tegra: add generic memory vendor matching

Update tegra_init_emc to provide generic memory
vendor matching.  Read values from EMC_MRR_0, to
uniquely identify memory types and compare them
to table of memory passed in.

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

Rebase-Id: R2c4995b913396ad1010905bb885288588595dbdc

7 years agoRevert "tegra: host: move stale wait checking into the kernel"
Rebecca Schultz Zavin [Thu, 3 Mar 2011 22:28:07 +0000]
Revert "tegra: host: move stale wait checking into the kernel"

This reverts commit 2d49bf33f3885aab293f12d54447f66e911e3226.

Rebase-Id: Ra4baa5640f1d27b1ccdb6394b4e3c6a8eb9547de

7 years agotegra: host: move stale wait checking into the kernel
Prajakta Gudadhe [Sat, 5 Feb 2011 09:37:38 +0000]
tegra: host: move stale wait checking into the kernel

The kernel now receives wait tracking data (similar to gathers and
relocs) and compares the current syncpt with the threshold value.

If it's old, it gets a kernel mapping and rewrites the method data
to use a kernel reserved syncpt that is always 0 (so trivially pops
when seen by the HW).

Patch has dependency to the user-space patches

Submitted on behalf of: Chris Johnson <cjohnson@nvidia.com>
original work by: Chris Johnson <cjohnson@nvidia.com>

Change-Id: I4d4e5d3b49cab860485c4172f87247f5b4f5ea6e

Rebase-Id: R97c9d87e07991047385b014cecab9d82ab0fb0c7

7 years agoARM: tegra: select USB_ARCH_HAS_EHCI
Benoit Goby [Fri, 11 Feb 2011 02:47:46 +0000]
ARM: tegra: select USB_ARCH_HAS_EHCI

usb_phy now depends on USB_ULPI_VIEWPORT

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

Rebase-Id: Ref8686d046312fa3e4fc58ad205cb4447d2eaf78

7 years agousb: otg: tegra: Moved tegra_usb.h to include/linux/platform_data
Benoit Goby [Wed, 2 Mar 2011 01:03:51 +0000]
usb: otg: tegra: Moved tegra_usb.h to include/linux/platform_data

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

Rebase-Id: R1ab760ac8cfad5cb9f9ab1ede2b83d3806910451