7 years agovideo: tegra: ensure first video mode is marked with FB_MODE_IS_FIRST
Erik Gilling [Thu, 14 Oct 2010 19:46:57 +0000]
video: tegra: ensure first video mode is marked with FB_MODE_IS_FIRST

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

7 years agovideo: modedb: make fb_add_videomode keep modelist in order added
Erik Gilling [Thu, 14 Oct 2010 19:44:10 +0000]
video: modedb: make fb_add_videomode keep modelist in order added

This makes the default case in fb_find_best_display ("last resort, use
the very first mode") actually use the first mode added.

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

7 years ago[ARM] tegra_i2s_audio: allow different DMA bus widths
Chris Fries [Thu, 14 Oct 2010 21:31:52 +0000]
[ARM] tegra_i2s_audio: allow different DMA bus widths

Added separate APB DMA bus-width controls depending on the audio bus format.

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra_i2s_audio: add suspend/resume handlers
Chris Fries [Thu, 14 Oct 2010 21:31:52 +0000]
[ARM] tegra_i2s_audio: add suspend/resume handlers

The resume handler restores i2s state, which gets lost on LP0

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra_i2s_audio: add a few overlooked checks
Iliyan Malchev [Fri, 15 Oct 2010 21:13:48 +0000]
[ARM] tegra_i2s_audio: add a few overlooked checks

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[arm]: tegra: serial: DMA allocation fix.
Mike Corrigan [Thu, 14 Oct 2010 18:55:13 +0000]
[arm]: tegra: serial: DMA allocation fix.

Handle the case where DMA channels cannot be allocated and PIO must be used.
Fixed a typo for forcing RX to use PIO.

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

7 years agovideo: tegra: update overlay stride in fb_set_par
Erik Gilling [Fri, 17 Sep 2010 21:44:28 +0000]
video: tegra: update overlay stride in fb_set_par

Fixes recovery graphics

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

7 years ago[ARM] tegra_i2s_audio: add support for DSP (PCM) mode.
Chris Fries [Wed, 13 Oct 2010 03:00:25 +0000]
[ARM] tegra_i2s_audio: add support for DSP (PCM) mode.

Change-Id: I132b8b7709c154ca1fb52f437966bd90451e89f7
Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra_i2s_audio: fixes
Iliyan Malchev [Tue, 12 Oct 2010 19:50:48 +0000]
[ARM] tegra_i2s_audio: fixes

-- Ignore kfifo thresholds on recording and playback and adjust the delays.
-- Take out the code from TEGRA_AUDIO_IN_STOP into a separate function
   stop_recording_nosync()
-- Rename stop_recording() to wait_for_recording_to_stop().
-- add ioctl(TEGRA_AUDIO_OUT_FLUSH), which blocks the caller until the output
   fifo is drained.  While the caller is blocked, pending write() calls will
   return immediately with whatever data they had managed to queue up.
-- removed ioctl(TEGRA_AUDIO_OUT_PRELOAD_FIFO)
-- since TEGRA_AUDIO_OUT_FLUSH and TEGRA_AUDIO_IN_STOP act similarly, moved
   audio_driver_state::recording_cancelled to audio_stream::stop and changed
   the code accordingly.  Renamed functions wait_for_recording_to_stop() and
   stop_recording_nosync() to wait_till_stopped() and request_stop_nosync()
   since they handle both playback and recording.
-- print errors on close() if wakelocks are still held
-- Call request_stop_nosync() on close() of a recording file handle
-- Do not use struct audio_stream::active for playback streams.  Instead,
   where applicable, use kfifo_len().  As a consequence, playback kfifo
   underruns are no longer reported.  These were bogus anyway, as we really
   need the DMA engine to tell us if there are underruns.
-- Because of above item, had to rework tx_fifo_atn_store(),
   rx_fifo_atn_store(), and __attr_fifo_atn_write().
-- Set struct audio_stream::active for a recording stream to true when a
   recording starts, and set it to false when recording get stopped.  Do not
   set/clear it within the body of read(), because just being within read()
   does not mean that recording is in progress.
-- In tegra_audio_read(), check for stop == true before calling
   start_recording_if_necessary(); this makes sure that if a user calls read()
   after calling ioctl(TEGRA_AUDIO_IN_STOP), recording will not resume unless
   ioctl(TEGRA_AUDIO_IN_START) gets called, or the file is closed and
   re-opened.
-- Fixed TEGRA_AUDIO_IN_START
-- In PIO mode, enabled FIFOs before enabling interrupts as specified in the
   TRM.
-- Added missing break in tegra_audio_ioctl().
-- Silenced some debug spew

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years agousb: gadget: fsl_udc: Add support for USB test mode feature
Jay Cheng [Thu, 10 Jun 2010 20:27:56 +0000]
usb: gadget: fsl_udc: Add support for USB test mode feature

Adding support for USB-IF High Speed electrical test mode for device mode.
Support added for electrical test modes:
1. TEST_J
2. TEST_K
3. TEST_SE0_NAK
4. TEST_PACKET
5. TEST_FORCE_ENABLE

originally fixed by Venkat Moganty <vmoganty@nvidia.com>

Change-Id: If5a4dcf9eb81dc368f24c660460d35495b6a4253
Signed-off-by: Jay Cheng <jacheng@nvidia.com>

7 years agousb: gadget: fsl_udc: Fix dTDs allocation gfp flags
Benoit Goby [Tue, 21 Sep 2010 04:19:37 +0000]
usb: gadget: fsl_udc: Fix dTDs allocation gfp flags

fsl_build_dtd may be called from atomic context. Don't hardcode the gfp
flag to GFP_KERNEL. Pass down to dma_pool_alloc the flag used by the
function driver to enqueue the request.

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

7 years agousb: gadget: fsl_udc: Prevent udc timeout on suspend
Colin Cross [Fri, 23 Jul 2010 19:54:37 +0000]
usb: gadget: fsl_udc: Prevent udc timeout on suspend

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

7 years ago[ARM] tegra: ventana: add graphics support
Gary King [Sat, 2 Oct 2010 00:00:39 +0000]
[ARM] tegra: ventana: add graphics support

register the tegradc0, tegradc1, grhost, pwm-backlight and carveout
devices

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

7 years ago[ARM] tegra: ventana: add ldo3 consumer for avdd_lvds
Gary King [Fri, 10 Sep 2010 03:01:08 +0000]
[ARM] tegra: ventana: add ldo3 consumer for avdd_lvds

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

7 years ago[ARM] tegra: ventana: remove BUG() in set_charge.
Gary King [Fri, 1 Oct 2010 00:03:16 +0000]
[ARM] tegra: ventana: remove BUG() in set_charge.

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

7 years agovideo: tegra: nvmap: Only allow allocations out of highmem
Rebecca Schultz Zavin [Wed, 13 Oct 2010 00:03:02 +0000]
video: tegra: nvmap: Only allow allocations out of highmem

Low mem pages are allocated in larger super pages and their caching
attributes can't be controlled on a per page basis.  This patch
forces nvmap to map out of highmem pages which are guaranteed to have
page mappings.

Change-Id: Id3921342ecceb0345d43365d4dd90b82ca8cfd11
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>

7 years ago[ARM] attrib_alloc: fix outer cache flush end address
Gary King [Tue, 12 Oct 2010 22:37:01 +0000]
[ARM] attrib_alloc: fix outer cache flush end address

when allocating uncached pages, the outer cache should be flushed;
the end address should be specified in bytes, not in pages.

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

7 years agoRevert "video: tegra: add utility function to compute framebuffer stride"
Erik Gilling [Mon, 11 Oct 2010 22:36:11 +0000]
Revert "video: tegra: add utility function to compute framebuffer stride"

This reverts commit 10c751b8f5bb78f674d4939b47be933934bb23dd.

Change-Id: I236ddcd531d3ca17c8727cac84e6d2aa6e27dbe1

7 years agovideo: tegra: clean up fb flipping code
Erik Gilling [Mon, 11 Oct 2010 22:35:41 +0000]
video: tegra: clean up fb flipping code

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

7 years agovideo: tegra: dump current pushbuffer from channel debugger
Michael I. Gold [Fri, 24 Sep 2010 18:41:51 +0000]
video: tegra: dump current pushbuffer from channel debugger

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

7 years agovideo: tegra: fix host1x command decoding debug prints
Erik Gilling [Thu, 7 Oct 2010 22:47:26 +0000]
video: tegra: fix host1x command decoding debug prints

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

7 years agovideo: tegra: lock around DC suspend/resume
Erik Gilling [Thu, 7 Oct 2010 22:45:49 +0000]
video: tegra: lock around DC suspend/resume

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

7 years agovideo: tegra: nvmap: fix read failures, super user and noref pinning
Gary King [Mon, 11 Oct 2010 21:22:35 +0000]
video: tegra: nvmap: fix read failures, super user and noref pinning

a >= vs > error when checking the operating region of the read and
write ioctls was causing failures when reading the last byte of a handle.

the super-user node (knvmap) wasn't registered correctly due to a cut-
and-paste error, and the regular user node was assigned super-user
priveleges.

noref pinning wasn't correctly validating that the specified handle
existed before pinning it, which caused the reference count for the
handle to become imbalanced on a subsequent unpin

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

7 years agospi: tegra: Increase delay between CS and clock start
Greg Meiste [Thu, 30 Sep 2010 16:40:22 +0000]
spi: tegra: Increase delay between CS and clock start

Some SPI devices require a delay between the CS and when the clock
starts.  Increase SS_SETUP to accommodate these devices.

Change-Id: I301e3583e70c722cadde5a9f91119881805dd3a5
Signed-off-by: Greg Meiste <w30289@motorola.com>

7 years agovideo: tegra: add host1x support to driver
Gary King [Tue, 31 Aug 2010 23:45:55 +0000]
video: tegra: add host1x support to driver

includes changes by:

Antti Hatala <ahatala@nvidia.com> (1)
Gary King <gking@nvidia.com> (1)
Erik Gilling <konkers@android.com> (2)

Antti Hatala <ahatala@nvidia.com>
video: tegra: dc: use nvhost driver for host1x power management

Gary King <gking@nvidia.com>
video: tegra: fb: add ioctl to flip dc windows to nvmap handles

Erik Gilling <konkers@android.com>
video: tegra: dc: increment syncpoints following window flips
video: tegra: drain syncpt waits on display disable

Original commit messages:
**
video: tegra: dc: use nvhost driver for host1x power management

Incrementing the frame done syncpoint value from the display interrupt
requires that the host module is powered on. As the syncpoint state is
saved and restored automatically by the host driver a cpu increment of
a syncpoint in the powered down state will be lost.

Also adds checks for host module being powered.
**
video: tegra: fb: add ioctl to flip dc windows to nvmap handles

tegra user-space graphics drivers may allocate framebuffers using
nvmap rather than rendering to the common framebuffer, this may
be done to support deeper buffer pipelining, color formats
and pixel layouts other than the initial bootup framebuffer,
etc.

to use this ioctl, a caller must first specify an nvmap fd
which is already open in the calling process so that the
subsequent flip ioctls may be properly validated. flips are performed
asynchronously, with flip completion notifications provided back to
the caller via the host1x syncpoint mechanism

based on earlier changes made by Antti Hatala <ahatala@nvidia.com>
and Erik Gilling <konkers@android.com>

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

7 years ago[ARM] tegra: add graphics host to devices.c
Gary King [Sat, 2 Oct 2010 00:02:12 +0000]
[ARM] tegra: add graphics host to devices.c

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

7 years ago[ARM] tegra: add SYNCPT_THRESH interrupts to irqs.h
Gary King [Sat, 2 Oct 2010 00:21:12 +0000]
[ARM] tegra: add SYNCPT_THRESH interrupts to irqs.h

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

7 years agovideo: tegra: host1x driver
Gary King [Tue, 31 Aug 2010 22:51:55 +0000]
video: tegra: host1x driver

the graphics and display hardware on tegra SoCs is accessed
through a command DMA front-end called host1x

host driver clients place commands into memory objects called
streams, and submit a stream on one of 8 channels: the assignment
of streams-to-channels depends on the hardware module(s) programmed
by the stream: for example, all streams which program the 3D
hardware are submitted on channel 1.

the host1x hardware includes two synchronization primitives to
allow command streams to synchronize access to memory or to
hardware engines shared across channels (e.g. the 2D blitter):
sync points and module mutexes. both primitives can also be
used to synchronize with the CPU.

the host1x driver performs power management for all modules
behind the host block: once a module is idle (i.e., the
last stream which accesses it has completed, indicated by
a syncpoint) and has remained idle for an extended period
of time, the module's clock (and power gate island, if the
module is uniquely power-gated) is disabled, and will be
automatically re-enabled when a new stream is submitted for
that module.

includes channel debugging support originally implemented
by Erik Gilling <konkers@google.com>

Original Author: Antti Hatala <ahatala@nvidia.com>
Signed-off-by: Gary King <gking@nvidia.com>
Change-Id: Idf0ecc8e7710f3839903a9fbfbe5650990a96b2c

7 years agovideo: tegra: add utility function to compute framebuffer stride
Gary King [Sun, 15 Aug 2010 18:26:49 +0000]
video: tegra: add utility function to compute framebuffer stride

framebuffers will generally not be exactly width * bpp / 8 bytes wide;
on tegra, linearly-addressed framebuffers will generally be rounded
up so that the stride is a multiple of 16B (so that they are compatible
with rendering from the hardware engines), and tiled framebuffers
will be a multiple of the tile width (64B).

add a utility function to tegra_dc to compute the correct stride
given a width, bpp and pixel layout, and use this in set_par.

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

7 years agovideo: tegra: move nvhost.h to mach-tegra/include/nvhost.h
Gary King [Thu, 16 Sep 2010 20:28:51 +0000]
video: tegra: move nvhost.h to mach-tegra/include/nvhost.h

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

7 years agovideo: tegra: add GPU memory management driver (nvmap)
Gary King [Tue, 31 Aug 2010 21:04:37 +0000]
video: tegra: add GPU memory management driver (nvmap)

nvmap provides an interface for user- and kernel-space clients to
allocate and access memory "handles" which can be pinned to enable
the memory to be shared with DMA devices on the system, and may
also be mapped (using caller-specified cache attributes) so that
they are directly accessible by the CPU.

the memory handle object gives clients a common API to allocate from
multiple types of memory: platform-reserved physically contiguous
"carveout" memory, physically contiguous (order > 0) OS pages,
or physically discontiguous order-0 OS pages that can be remapped
into a contiguous region of the DMA device's virtual address space
through the tegra IOVMM subsystem.

unpinned and unmapped memory handles are relocatable at run-time
by the nvmap system. handles may also be shared between multiple
clients, allowing (for example) a window manager and its client
applications to directly share framebuffers

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

7 years ago[ARM] mm: add page allocator for modifying cache attributes
Gary King [Mon, 2 Aug 2010 22:55:16 +0000]
[ARM] mm: add page allocator for modifying cache attributes

ARM CPUs with speculative prefetching have undefined behaviors when the
same physical page is mapped to two different virtual addresses with
conflicting cache attributes.

since many recent systems include IOMMU functionality (i.e., remapping
of discontiguous physical pages into a virtually-contiguous address
range for I/O devices), it is desirable to support allocating any
available OS memory for use by the I/O devices. however, since many
systems do not support cache coherency between the CPU and DMA devices,
these devices are left with using DMA-coherent allocations from the OS
(which severely limits the benefit of an IOMMU) or performing cache
maintenance (which can be a severe performance loss, particularly on
systems with outer caches, compared to using DMA-coherent memory).

this change adds an API for allocating pages from the OS with specific
cache maintenance properties and ensures that the kernel's mapping
of the page reflects the desired cache attributes, in line with the
ARMv7 architectural requirements

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

7 years ago[ARM] tegra: i2s: Add I2S ioctl for setting bit format
Chris Fries [Fri, 8 Oct 2010 18:54:28 +0000]
[ARM] tegra: i2s: Add I2S ioctl for setting bit format

Added an ioctl to set the bit format for I2S between "DSP"/"PCM" mode and
normal mode (set by board file)

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: Combine tegra_fiq_select with enable/disable
Colin Cross [Tue, 5 Oct 2010 01:22:56 +0000]
[ARM] tegra: Combine tegra_fiq_select with enable/disable

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

7 years agoRevert "[ARM] tegra: driver for spdif audio"
Iliyan Malchev [Thu, 7 Oct 2010 02:05:13 +0000]
Revert "[ARM] tegra: driver for spdif audio"

This reverts commit 3543d53703c5a1ed0b987c77e7a79226c3a24f45.

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: i2s: Update pm_qos for 2.6.36
Colin Cross [Wed, 6 Oct 2010 04:59:08 +0000]
[ARM] tegra: i2s: Update pm_qos for 2.6.36

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

7 years ago[ARM] tegra: correct device definition of second i2s controller
Chris Fries [Thu, 7 Oct 2010 01:44:47 +0000]
[ARM] tegra: correct device definition of second i2s controller

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: hdmi: fix an incorrect register write
Iliyan Malchev [Tue, 5 Oct 2010 00:01:56 +0000]
[ARM] tegra: hdmi: fix an incorrect register write

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: tegra_hsuart: fix a typo
Iliyan Malchev [Mon, 4 Oct 2010 22:11:37 +0000]
[ARM] tegra: tegra_hsuart: fix a typo

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: dma: fix a typo
Iliyan Malchev [Mon, 4 Oct 2010 22:11:37 +0000]
[ARM] tegra: dma: fix a typo

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: driver for spdif audio
Ravindra Lokhande [Mon, 27 Sep 2010 17:53:41 +0000]
[ARM] tegra: driver for spdif audio

-- creates /dev/spdif_out and /dev/spdif_out_ctl for playback and control
   settings.
-- playback only

Change-Id: I19af1d41e13dedef650784835339ef9718300d0c
Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: add spdif device and resources
Iliyan Malchev [Tue, 28 Sep 2010 23:12:48 +0000]
[ARM] tegra: add spdif device and resources

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra_i2s_audio: add more elaborate error counts
Iliyan Malchev [Mon, 4 Oct 2010 19:10:29 +0000]
[ARM] tegra_i2s_audio: add more elaborate error counts

This patch replaces the error counter with two separate error counters, one for
late dma callbacks, and another for overruns (during recording) or underruns
(during playback).  The ioctls TEGRA_AUDIO_IN_GET_ERROR_COUNT and
TEGRA_AUDIO_OUT_GET_ERROR_COUNT now take a pointer to a struct containing both
error counters.

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra_i2s_audio: use pm_qos to prevent DMA-callback delays
Iliyan Malchev [Sun, 3 Oct 2010 00:31:54 +0000]
[ARM] tegra_i2s_audio: use pm_qos to prevent DMA-callback delays

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years agoARM: tegra: parent sclk on pll_m_out1 so it can run @ 240Mhz
Dima Zavin [Sat, 2 Oct 2010 03:01:42 +0000]
ARM: tegra: parent sclk on pll_m_out1 so it can run @ 240Mhz

Since sclk no longer needs pll_p_out4, don't explicitly enable it.

Change-Id: I47debdd3402e02967f77ebd4c3b8c4594ece4083
Signed-off-by: Dima Zavin <dima@android.com>

7 years agotegrafb: fix section mismatch in host driver skeleton
Gary King [Tue, 31 Aug 2010 21:17:57 +0000]
tegrafb: fix section mismatch in host driver skeleton

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

7 years agotegrafb: add forward-decls for structs used in function prototypes
Gary King [Tue, 31 Aug 2010 22:22:24 +0000]
tegrafb: add forward-decls for structs used in function prototypes

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

7 years agotegra: iovmm-gart: move init call to subsys_initcall
Gary King [Fri, 13 Aug 2010 18:08:42 +0000]
tegra: iovmm-gart: move init call to subsys_initcall

nvmap and nvhost will behave improperly if iovmm is not present when
their respective devices are probed; however, the probe ordering depends
on the order the initcalls are made to register the drivers. move
iovmm-gart into subsys_initcall to ensure that it is registered earlier
than other drivers

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

7 years agotouchscreen: panjit: use multi-touch reporting interface
Gary King [Sat, 11 Sep 2010 01:43:14 +0000]
touchscreen: panjit: use multi-touch reporting interface

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

7 years ago[ARM] tegra: ventana: fix pinmux for bluetooth and gas gauge
Gary King [Thu, 16 Sep 2010 23:37:23 +0000]
[ARM] tegra: ventana: fix pinmux for bluetooth and gas gauge

Fixes by Anantha Idapalapati <aidapalapati@nvidia.com> and
Mayuresh Kulkarni <mkulkarni@nvidia.com>

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

7 years ago[ARM] tegra: ventana: add OTG device
Gary King [Tue, 28 Sep 2010 19:36:31 +0000]
[ARM] tegra: ventana: add OTG device

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

7 years ago[ARM] tegra: add tegra-otg and tegra_uart to devices.c
Gary King [Tue, 28 Sep 2010 19:39:08 +0000]
[ARM] tegra: add tegra-otg and tegra_uart to devices.c

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

7 years agousb: add OTG driver for tegra USB PHY
Gary King [Tue, 28 Sep 2010 19:32:13 +0000]
usb: add OTG driver for tegra USB PHY

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

7 years agousb: gadget: fsl_udc: Removed unnecessary checks
Benoit Goby [Wed, 29 Sep 2010 23:17:18 +0000]
usb: gadget: fsl_udc: Removed unnecessary checks

The OTG driver disables the gadget device when the cable is
removed, so there is no need to check if the cable is plugged
before touching registers.

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

7 years agousb: gadget: fsl_udc: fix warning
Benoit Goby [Wed, 29 Sep 2010 06:53:35 +0000]
usb: gadget: fsl_udc: fix warning

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

7 years agovideo: tegra: remove out of date TODO
Erik Gilling [Mon, 27 Sep 2010 23:51:54 +0000]
video: tegra: remove out of date TODO

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

7 years agovideo: tegra: force 24bit output on HDMI
Erik Gilling [Mon, 27 Sep 2010 23:50:54 +0000]
video: tegra: force 24bit output on HDMI

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

7 years agovideo: tegra: enable both display controller clock when enabling hdmi
Erik Gilling [Mon, 27 Sep 2010 23:49:38 +0000]
video: tegra: enable both display controller clock when enabling hdmi

The upstream DC needs to be clocked for accesses to HDMI to not hard lock the
system.  Because we don't know if HDMI is conencted to disp1 or disp2 we need
to enable both until we set the DC mux.

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

7 years agovideo: tegra: add a no_vsync module param to disable vsync
Erik Gilling [Mon, 27 Sep 2010 00:55:52 +0000]
video: tegra: add a no_vsync module param to disable vsync

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

7 years ago[ARM] tegra: ventana: register tps6586x interrupts
Gary King [Thu, 2 Sep 2010 20:59:36 +0000]
[ARM] tegra: ventana: register tps6586x interrupts

configure the PMC interrupt polarity low, and register IRQ
numbers with the TPS6586X core and RTC

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

7 years agortc: tps6586x: add alarm support to tps6586x driver
Gary King [Thu, 16 Sep 2010 21:38:46 +0000]
rtc: tps6586x: add alarm support to tps6586x driver

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

7 years agovideo: tegra: set output color depth on init/resume
Erik Gilling [Fri, 24 Sep 2010 00:00:28 +0000]
video: tegra: set output color depth on init/resume

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

7 years ago[ARM] Tegra: SPI: Suspend/resume.
Todd Poynor [Fri, 30 Jul 2010 19:09:22 +0000]
[ARM] Tegra: SPI: Suspend/resume.

Save/restore SLINK_COMMAND_0 register.

Wait for in-progress transactions to complete before suspend.

Reject and WARN_ON transactions when suspended.

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

7 years agovideo: tegra: set border color to black on init
Erik Gilling [Tue, 21 Sep 2010 01:00:56 +0000]
video: tegra: set border color to black on init

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

7 years agovideo: tegra: force blend update on enable/disable not suspend/resume
Erik Gilling [Tue, 21 Sep 2010 00:56:39 +0000]
video: tegra: force blend update on enable/disable not suspend/resume

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

7 years agommc: host: sdhci: Prevent IRQ capability from being set if quirk is set
Colin Cross [Wed, 22 Sep 2010 00:51:05 +0000]
mmc: host: sdhci: Prevent IRQ capability from being set if quirk is set

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

7 years agoenable tegra_i2s_audio
Iliyan Malchev [Thu, 9 Sep 2010 01:23:45 +0000]
enable tegra_i2s_audio

Change-Id: I0b6bfba1f2084d5d05929c2066a49a6c7413c54a
Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years agoARM: tegra: powergate the mpe and 3d cores at boot
Dima Zavin [Fri, 17 Sep 2010 00:58:05 +0000]
ARM: tegra: powergate the mpe and 3d cores at boot

Change-Id: I6ca09db039cd80eab18d062a7a4b5d2a93bd385e
Signed-off-by: Dima Zavin <dima@android.com>

7 years ago[ARM] tegra: tegra_i2s_audio: add support for downsampling to 16kHz
Iliyan Malchev [Tue, 24 Aug 2010 20:40:26 +0000]
[ARM] tegra: tegra_i2s_audio: add support for downsampling to 16kHz

Signed-off-by: Iliyan Malchev <malchev@google.com>

7 years ago[ARM] tegra: ventana: add tps6586x rtc and pda_power devices
Gary King [Sun, 15 Aug 2010 17:32:12 +0000]
[ARM] tegra: ventana: add tps6586x rtc and pda_power devices

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

7 years agomfd: tps6586x: add RTC driver for TI TPS6586x
Gary King [Sat, 14 Aug 2010 18:17:54 +0000]
mfd: tps6586x: add RTC driver for TI TPS6586x

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

7 years agovideo: tegra: add z order blending, output position, and stride to overlays
Antti Hatala [Wed, 8 Sep 2010 23:09:31 +0000]
video: tegra: add z order blending, output position, and stride to overlays

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

7 years agovideo: tegra: correct typeo in HDMI parent clock setup
Erik Gilling [Thu, 9 Sep 2010 00:38:18 +0000]
video: tegra: correct typeo in HDMI parent clock setup

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

7 years ago[ARM] tegra: ventana: specify panjit reset GPIO
Gary King [Tue, 7 Sep 2010 23:04:05 +0000]
[ARM] tegra: ventana: specify panjit reset GPIO

also delete the function which resets the touchscreen controller,
since that is now part of the panjit_touch driver _probe routine

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

7 years agoinput: touchscreen: panjit_i2c: fix suspend
Gary King [Mon, 6 Sep 2010 03:36:38 +0000]
input: touchscreen: panjit_i2c: fix suspend

the panjit touchscreen needs to be reset when returning from
deep sleep mode; add a platform data structure to specify
the reset GPIO.

perform the reset during _probe, since the code already needs
to exist for _resume

delete a bunch of unused preprocessor defines

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

7 years ago[ARM] tegra: add tegra_pwm to devices.c
Gary King [Fri, 3 Sep 2010 23:44:52 +0000]
[ARM] tegra: add tegra_pwm to devices.c

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

7 years ago[ARM] tegra: add PWM driver
Gary King [Fri, 3 Sep 2010 23:34:36 +0000]
[ARM] tegra: add PWM driver

add support for the pulse-width-modulation APIs using the tegra 2
internal PWM controllers

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

7 years ago[ARM] tegra: ventana: fix pinmux for wifi
Gary King [Mon, 6 Sep 2010 01:03:08 +0000]
[ARM] tegra: ventana: fix pinmux for wifi

configure the drive pinmux for wifi and i2c, and configure
the tristate and pullups for the wifi pins correctly

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

7 years agovideo: tegra: add HDMI support
Erik Gilling [Fri, 3 Sep 2010 22:32:42 +0000]
video: tegra: add HDMI support

Previous implementation was DVI only

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

7 years agovideo: tegra: set output size for hdmi
Erik Gilling [Fri, 3 Sep 2010 22:30:40 +0000]
video: tegra: set output size for hdmi

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

7 years ago[ARM] serial: update tegra_hsuart to use PTR_ERRless dma API
Erik Gilling [Wed, 1 Sep 2010 20:43:43 +0000]
[ARM] serial: update tegra_hsuart to use PTR_ERRless dma API

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

7 years ago[ARM] tegra: update i2s to use PTR_ERRless dma API
Erik Gilling [Wed, 1 Sep 2010 20:43:01 +0000]
[ARM] tegra: update i2s to use PTR_ERRless dma API

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

7 years ago[ARM] tegra: Compile usb_phy.c only if usb support is enabled
Benoit Goby [Tue, 31 Aug 2010 22:59:00 +0000]
[ARM] tegra: Compile usb_phy.c only if usb support is enabled

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

7 years agoserial: tegra_hsuart: Fix typo preventing non 8-bit modes
Colin Cross [Thu, 2 Sep 2010 23:16:24 +0000]
serial: tegra_hsuart: Fix typo preventing non 8-bit modes

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

7 years ago[ARM] tegra: clocks: Set all SDMMC clocks to 48MHz at boot
Todd Poynor [Thu, 2 Sep 2010 22:10:29 +0000]
[ARM] tegra: clocks: Set all SDMMC clocks to 48MHz at boot

48MHz is the max speed reported by present-day Tegra2 SDHCI controllers
and is the max speed we can run without adjusting for DVFS changes.

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

7 years ago[ARM] tegra: add tegra_wdt_device to devices.c
Gary King [Fri, 27 Aug 2010 03:00:29 +0000]
[ARM] tegra: add tegra_wdt_device to devices.c

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

7 years agowatchdog: add tegra_wdt driver
Gary King [Thu, 26 Aug 2010 17:59:50 +0000]
watchdog: add tegra_wdt driver

add a driver for the hardware watchdog timer embedded in NVIDIA
Tegra SoCs

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

7 years ago[ARM] tegra: ventana: do not tristate backlight & battery pins
Gary King [Sun, 15 Aug 2010 16:46:11 +0000]
[ARM] tegra: ventana: do not tristate backlight & battery pins

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

7 years ago[ARM] tegra: ventana: fix suspend build break
Gary King [Tue, 31 Aug 2010 19:05:31 +0000]
[ARM] tegra: ventana: fix suspend build break

update the suspend platform data for ventana to match recent changes

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

7 years agopanjit_touch: fix warning "control reaches end of non-void function"
Gary King [Tue, 3 Aug 2010 22:09:46 +0000]
panjit_touch: fix warning "control reaches end of non-void function"

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

7 years agoinput: touchscreen driver for panjit capacitive i2c touch panels
Gary King [Fri, 30 Jul 2010 15:53:11 +0000]
input: touchscreen driver for panjit capacitive i2c touch panels

driver supports the MGG1010AI06 and EGG1010AI06 capacitive touch panels

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

7 years agoserial: tegra_hsuart: fix receive DMA, RTS, timeout, and tx trigger
Jay Cheng [Thu, 19 Aug 2010 11:09:49 +0000]
serial: tegra_hsuart: fix receive DMA, RTS, timeout, and tx trigger

initialize baud rate and configuration settings to safe default values
when receive DMA is in use, so that the DMA request may be enqueued at
initialization time

re-enqueue the receive DMA buffer immediately it is dequeued by the
DMA threshold callback and the receive ISR, rather than waiting for the
DMA complete callback

originally fixed by Gary King <gking@nvidia.com>

Fixing tx trigger level setting:

On tegra uart, the FCR setting for different tx trigger level
is not same as the 16550 tx trigger level setting. The tegra
uart have the setting in reverse direction on tx fifo attention
level:
b00 for 16 bytes attention level.
b01 for 8 byte attention level.
b10 for 4 byte attention level
b11 for 1 byte attention level.

The rx trigger attention level match with the standard uart
FCR register setttings.

Also fixing the typo in code when setting DTR.
originally fixed by Laxman Dewangan (ldewangan@nvidia.com)

Change-Id: Iea00478f143e61c604828035c6c92d614fa7cccb
Signed-off-by: Jay Cheng <jacheng@nvidia.com>

7 years agoserial: tegra_hsuart: Fix void return type on writel accessors
Colin Cross [Mon, 2 Aug 2010 03:05:38 +0000]
serial: tegra_hsuart: Fix void return type on writel accessors

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

7 years agoserial: tegra_hsuart: fix section mismatch error
Gary King [Tue, 29 Jun 2010 01:18:06 +0000]
serial: tegra_hsuart: fix section mismatch error

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

7 years agoserial: tegra_hsuart: Cleanups and bug fixes
Colin Cross [Fri, 4 Jun 2010 17:56:50 +0000]
serial: tegra_hsuart: Cleanups and bug fixes

tegra_start_tx was called directly by the serial core, as
well as from dma and serial interrupts to queue the next
block of data.  Separate out the "queue next data"
functionality into tegra_start_next_tx.

Also fixes TX PIO by adjusting FIFO sizes and prevents
last characters from getting lost by spinning on TEMT
before disabling clocks.

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

7 years agoserial: tegra_hsuart: Fix DMA receive, drop err in dma callbacks
Colin Cross [Fri, 4 Jun 2010 00:50:27 +0000]
serial: tegra_hsuart: Fix DMA receive, drop err in dma callbacks

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

7 years agoserial: Add tegra_hsuart driver
Colin Cross [Mon, 5 Apr 2010 20:30:14 +0000]
serial: Add tegra_hsuart driver

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

7 years agommc: sdhci: Skip mmc suspend/resume ops for SDIO device,
Dmitry Shmidt [Fri, 13 Aug 2010 01:08:40 +0000]
mmc: sdhci: Skip mmc suspend/resume ops for SDIO device,

enable/disable sdc irq instead of request/free,
mask all sdc interrupts on suspend

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

7 years agovideo: tegra: include nvhost.h instead of nvhost_dev.h
Erik Gilling [Tue, 24 Aug 2010 23:43:44 +0000]
video: tegra: include nvhost.h instead of nvhost_dev.h

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

7 years agovideo: tegra: set window size on mode change
Erik Gilling [Tue, 24 Aug 2010 23:13:39 +0000]
video: tegra: set window size on mode change

otherwise it's hardcoded by the platform-data

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