7 years agoarm: tegra: hsuart: Support for Bluetooth wakeup
Pradeep Goudagunta [Tue, 15 Feb 2011 11:09:08 +0000]
arm: tegra: hsuart: Support for Bluetooth wakeup

Added support to tegra_hsuart driver for bluetooth wakeup.

Bug 773186

Original-Change-Id: Id8f1face1b99942fd13949d0815a1dedd1a5a5d0
Reviewed-on: http://git-master/r/19586
Reviewed-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Anantha Idapalapati <aidapalapati@nvidia.com>

Rebase-Id: R50674612ae84881e01f7ef632188cfd1806dacab

7 years ago[armi]tegra: serial: Removing tx workqueue.
Laxman Dewangan [Mon, 13 Dec 2010 08:46:17 +0000]
[armi]tegra: serial: Removing tx workqueue.

Following are changes:
- Removed the tx workqueue and start next trsnafer in tx dma
 complete callback only.
- Remove the wait for tx fifo empty before starting next transfer.
  The uart controller req dma/gen interrupt only when trigger level
  reached.

bug 765172

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

Rebase-Id: R8b6980646a07e828e7810a96326514fd3e1d8cf2

7 years agoplaceholders for merging
Dan Willemsen [Thu, 5 May 2011 03:13:18 +0000]
placeholders for merging

Rebase-Id: R177e2f8e2b79f789558d19e4b17863c9b29fab9e

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

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

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

This reverts commit 09e0e4fb75de1a008f00025a186d756435f9f034.

Rebase-Id: R7f871bc41beda798acea8b9c7c32d50531ad88e0

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

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

Rebase-Id: R326381df3f4188cc1f700eb210c12b483afe9e77

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

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

Rebase-Id: Rdc49da8123b4e700f2987a4a5ea19ad2b29ff1d6

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

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

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

Rebase-Id: R7fc03850010d565447bb8702710040f112705738

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

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

Rebase-Id: R3051e65e6a756bdad25ade5f865b383d9a2164e3

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

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

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

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

Rebase-Id: R7ae4d4825e9171bca2471fe776ecf363e75b9ca6

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

This reverts commit 5dba29d1f761502e75320770fc4c6cf9c8e00998.

Rebase-Id: Rb6889e4755716f5baa5c7f272ae7d8c8b6d97ba5

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

This reverts commit 5bf3a3e0d18712006090000256086c4a1672cca7.

Conflicts:

drivers/tty/serial/tegra_hsuart.c

Rebase-Id: R53d1706a5d5cdd2f06756158e6a4fb0e93f840e9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This reverts commit c326f06779fb6bdd7f92c3ede8d1bebbe2fafbfa.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Commit 190f7b3ed5a597d2232e9047b50ac2d7613c3272 was an incorrect
merge, revert it.

Change-Id: I1c7e09fdbaad6637326facbc0ee06117bfb15e48

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Removes changes to DC reset flow.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Also convert lock used in suspend to spinlock.

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

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

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

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

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

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

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

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

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>

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>

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

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>

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>

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>

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>

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>

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>

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>

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>

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

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>

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>

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>

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>

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>

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>

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

Change-Id: I6b39d27144a71a952f534b9066173be5a25ff049

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

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

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

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

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
PL2x0).

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>

Conflicts:

arch/arm/include/asm/pgtable.h
arch/arm/mm/proc-v7.S

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

Change-Id: I558577e86654bc9a5a2cbfeeeb8055454ab8f328

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

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>

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>

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

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

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

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>

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>

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>

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

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>

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>

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>

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.

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>

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.

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

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>