pandora-kernel.git
14 years agoDSS2: VRAM: improve omap_vram_add_region()
Tomi Valkeinen [Thu, 16 Apr 2009 14:56:00 +0000 (17:56 +0300)]
DSS2: VRAM: improve omap_vram_add_region()

Combine postponed and non-posponed versions of omap_vram_add_region.
Make the func non-static, so it can be called from board files.

14 years agoDSS2: Prefer 3-tap filter
Ville Syrjälä [Thu, 9 Apr 2009 13:04:43 +0000 (15:04 +0200)]
DSS2: Prefer 3-tap filter

The 5-tap filter seems rather unstable. With some scaling settings it
works and with some it doesn't even though the functional clock remains
within the TRM limits. So prefer the 3-tap filter unless the functional
clock required for it is too high.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Fix DISPC_VID_FIR value for omap34xx
Ville Syrjälä [Thu, 9 Apr 2009 13:04:44 +0000 (15:04 +0200)]
DSS2: Fix DISPC_VID_FIR value for omap34xx

The msbs of the DISPC_VID_FIR fields were incorrectly masked out on
omap34xx and thus 4:1 downscale did not work correctly.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: do bootmem reserve for exclusive access
Imre Deak [Tue, 14 Apr 2009 12:50:11 +0000 (14:50 +0200)]
DSS2: do bootmem reserve for exclusive access

BOOTMEM_DEFAULT would allow multiple reservations for the same location,
we need to reserve the region for our exclusive use. Also check if the
reserve succeeded.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: dispc_get_trans_key was returning wrong key type
Hardik Shah [Wed, 15 Apr 2009 11:35:18 +0000 (17:05 +0530)]
DSS2: dispc_get_trans_key was returning wrong key type

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: OMAPFB: Set line_length correctly for YUV with VRFB.
Tim Yamin [Mon, 13 Apr 2009 20:57:42 +0000 (13:57 -0700)]
DSS2: OMAPFB: Set line_length correctly for YUV with VRFB.

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
14 years agoDSS2: OMAPFB: Added support for the YUV VRFB rotation and mirroring.
Hardik Shah [Thu, 9 Apr 2009 06:43:07 +0000 (12:13 +0530)]
DSS2: OMAPFB: Added support for the YUV VRFB rotation and mirroring.

DSS2 now requires roatation_type to be specified by driver.
Added support for that.
DSS2 OMAPFB: Modified to pass the dss mode to omap_vrfb_setup function.

VRFB size register requires the width to be halved when the
mode is YUV or UYVY.  So VRFB is modifed to pass the mode to omap_vrfb_setup
function.

Few changes done by Tim Yamin
Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: VRFB rotation and mirroring implemented.
Hardik Shah [Thu, 9 Apr 2009 06:39:44 +0000 (12:09 +0530)]
DSS2: VRFB rotation and mirroring implemented.

DSS2 modified to accept the rotation_type input
to get the dma or VRFB rotation.

DSS2: VRFB: Changed to pass DSS mode to vrfb_setup instead of Bpp.

VRFB size registers requires the width to be halved when the
mode is YUV or UYVY.  So modifed to pass the mode to omap_vrfb_setup
function.

Code added by Tim Yamin for few bug fixes

Signed-off-by: Tim Yamin <plasm@roo.me.uk>
Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: DSI: sidlemode to noidle while sending frame
Tomi Valkeinen [Wed, 15 Apr 2009 11:06:54 +0000 (14:06 +0300)]
DSS2: DSI: sidlemode to noidle while sending frame

DISPC interrupts are not wake-up capable. Smart-idle in DISPC_SIDLEMODE
causes DSS interface to go to idle at the end of the frame, and the
FRAMEDONE interrupt is then delayed until something wakes up the DSS
interface.

So we set SIDLEMODE to no-idle when we start sending the frame, and
set it back to smart-idle after receiving FRAMEDONE.

14 years agoDSS2: VRFB: Macro for calculating base address of the VRFB context was faulty
Hardik Shah [Mon, 13 Apr 2009 13:20:24 +0000 (18:50 +0530)]
DSS2: VRFB: Macro for calculating base address of the VRFB context was faulty

Signed-off-by: Hardik Shah <hardik.shah@ti.com>
14 years agoDSS2: Beagle: Use gpio_set_value
Tomi Valkeinen [Thu, 9 Apr 2009 09:10:46 +0000 (12:10 +0300)]
DSS2: Beagle: Use gpio_set_value

14 years agoDSS2: pass the default FB color format through board info
Imre Deak [Wed, 8 Apr 2009 10:51:46 +0000 (12:51 +0200)]
DSS2: pass the default FB color format through board info

Add a field to the FB memory region platform data, so that board
init code can pass a default color format to the driver. Set this
format as an initial setting for the given FB.

This is needed for an upcoming patch that adds detection of the
color format set by the bootloader.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: FB: remove unused var warning
Imre Deak [Mon, 6 Apr 2009 20:26:04 +0000 (22:26 +0200)]
DSS2: FB: remove unused var warning

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: Add venc register dump
Ville Syrjälä [Mon, 6 Apr 2009 15:32:06 +0000 (17:32 +0200)]
DSS2: Add venc register dump

Add a new file to debugfs to dump the VENC registers. The function
prototype was already there but the implementation was missing.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Check scaling limits against proper values
Ville Syrjälä [Mon, 6 Apr 2009 15:32:05 +0000 (17:32 +0200)]
DSS2: Check scaling limits against proper values

Move the ilace and fieldmode related height adjustments to be performed
before checking the scaling limits.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: Check fclk limits when configuring video planes
Ville Syrjälä [Mon, 6 Apr 2009 15:32:04 +0000 (17:32 +0200)]
DSS2: Check fclk limits when configuring video planes

Check that the currect functional clock is fast enough to support
the requested scaling ratios. Also check if 5-tap filtering can be
used even though the downscaling ratio is less than 1:2 since the
functional clock rate required for 5-tap filtering can be less than
the requirement for 3-tap filtering, and 5-tap filtering should look
better.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: check for ovl paddr only when enabling
Tomi Valkeinen [Tue, 7 Apr 2009 07:01:58 +0000 (10:01 +0300)]
DSS2: check for ovl paddr only when enabling

It seems Xvideo uses SETUP_PLANE ioctl even when
the fb memory has not been allocated. Sigh.

14 years agoDSS2: Disable video planes on sync lost error
Ville Syrjälä [Fri, 3 Apr 2009 17:09:20 +0000 (19:09 +0200)]
DSS2: Disable video planes on sync lost error

When encountering the sync lost error disable the display and all video
planes on the affected manager. Afterwards re-enable the display.

Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
14 years agoDSS2: DSI: improve packet len calculation
Tomi Valkeinen [Thu, 2 Apr 2009 14:42:26 +0000 (17:42 +0300)]
DSS2: DSI: improve packet len calculation

14 years agoDSS2: DSI: calculate VP_CLK_RATIO properly
Tomi Valkeinen [Thu, 2 Apr 2009 13:49:27 +0000 (16:49 +0300)]
DSS2: DSI: calculate VP_CLK_RATIO properly

14 years agoDSS2: Add function to get DSS logic clock rate
Tomi Valkeinen [Thu, 2 Apr 2009 13:48:41 +0000 (16:48 +0300)]
DSS2: Add function to get DSS logic clock rate

14 years agoDSS2: Verify that overlay paddr != 0
Tomi Valkeinen [Thu, 2 Apr 2009 11:21:12 +0000 (14:21 +0300)]
DSS2: Verify that overlay paddr != 0

14 years agoDSS2: Fix DMA rotation
Tomi Valkeinen [Thu, 2 Apr 2009 10:47:11 +0000 (13:47 +0300)]
DSS2: Fix DMA rotation

u16 was not a good type for offsets. First, they need to be signed,
and second, 16 bits is not enough.

14 years agoDSS2: Allocated memory for Color Look-up-table
Vaibhav Hiremath [Tue, 31 Mar 2009 13:08:31 +0000 (18:38 +0530)]
DSS2: Allocated memory for Color Look-up-table

We were not allocating memory for CMAP buffer and due to that
G_CMAP was failing, since it does check for size of CMAP buffer.

Called "fb_alloc_cmap" for llocating memory for CMAP.

We are currently not supporting 1,2,4,8 bpp, so meaning less
for us as of now. But for completeness this is required.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
14 years agoDSS2: Small VRFB context allocation bug fixed
Vaibhav Hiremath [Tue, 31 Mar 2009 13:17:32 +0000 (18:47 +0530)]
DSS2: Small VRFB context allocation bug fixed

This is minor bug while requesting and mapping memory for
VRFB space.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
14 years agoDSS2: Add acx565akm panel
Imre Deak [Thu, 2 Apr 2009 08:47:13 +0000 (11:47 +0300)]
DSS2: Add acx565akm panel

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: Add function to display object to get the backlight level
Imre Deak [Wed, 1 Apr 2009 12:36:39 +0000 (14:36 +0200)]
DSS2: Add function to display object to get the backlight level

This is needed by an upcoming patch that changes the backlight
initialization to use the backlight level set by the bootloader.

Also add a field for the maximum backlight level.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
14 years agoDSS2: Add DSS2 support for SDP, Beagle, Overo, EVM
Tomi Valkeinen [Thu, 2 Apr 2009 07:36:05 +0000 (10:36 +0300)]
DSS2: Add DSS2 support for SDP, Beagle, Overo, EVM

Also custom dss_*_defconfigs as an example.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: HACK: Add DSS2 support for N800
Tomi Valkeinen [Thu, 2 Apr 2009 07:31:57 +0000 (10:31 +0300)]
DSS2: HACK: Add DSS2 support for N800

Works, but it an ugly quick hack.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: Add panel drivers
Tomi Valkeinen [Thu, 2 Apr 2009 07:29:56 +0000 (10:29 +0300)]
DSS2: Add panel drivers

- Generic panel
- Samsung LTE430WQ-F0C LCD Panel
- Sharp LS037V7DW01 LCD Panel

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: OMAP framebuffer driver
Tomi Valkeinen [Thu, 2 Apr 2009 07:25:48 +0000 (10:25 +0300)]
DSS2: OMAP framebuffer driver

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoDSS2: OMAP2/3 Display Subsystem driver
Tomi Valkeinen [Thu, 2 Apr 2009 07:23:42 +0000 (10:23 +0300)]
DSS2: OMAP2/3 Display Subsystem driver

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoOMAPFB: move omapfb.h to include/linux/
Tomi Valkeinen [Wed, 11 Feb 2009 14:33:02 +0000 (16:33 +0200)]
OMAPFB: move omapfb.h to include/linux/

This is needed so that omapfb.h is automatically exported to user space.

omapfb.h should be cleaned up later. Some stuff can probably be moved
to omapfb's private include file.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
14 years agoAdd omap_rev() hack
Grazvydas Ignotas [Thu, 16 Apr 2009 09:44:54 +0000 (12:44 +0300)]
Add omap_rev() hack

omap_rev() was added in .28 (renamed from system_rev), so we
use this hack here.

14 years agoOMAP: Add clk_get_parent() for OMAP2/3
Mans Rullgard [Mon, 20 Oct 2008 23:24:24 +0000 (00:24 +0100)]
OMAP: Add clk_get_parent() for OMAP2/3

This makes clk_get_parent() work on OMAP2/3.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
14 years ago[ARM] OMAP: Make dpll4_m4_ck programmable with clk_set_rate()
Paul Walmsley [Wed, 28 Jan 2009 02:13:12 +0000 (19:13 -0700)]
[ARM] OMAP: Make dpll4_m4_ck programmable with clk_set_rate()

Filling the set_rate and round_rate fields of dpll4_m4_ck makes
this clock programmable through clk_set_rate().  This is needed
to give omapfb control over the dss1_alwon_fck rate.

This patch includes a fix from Tomi Valkeinen <tomi.valkeinen@nokia.com>.

linux-omap source commits are e42218d45afbc3e654e289e021e6b80c657b16c2 and
9d211b761b3cdf7736602ecf7e68f8a298c13278.

Signed-off-by: Måns Rullgård <mans@mansr.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 years agovsense: change polling time
Grazvydas Ignotas [Sun, 8 Mar 2009 21:56:18 +0000 (23:56 +0200)]
vsense: change polling time

Do polls every ~30ms instead of ~25ms with hope to avoid
some strange breakage of nub operation.

15 years agoinput: hack: get gpio-keys registered with joydev
Grazvydas Ignotas [Sun, 8 Mar 2009 21:36:52 +0000 (23:36 +0200)]
input: hack: get gpio-keys registered with joydev

Make d-pad send absolute events too and hack joydev to
notice that.

15 years agoUSB: gadget: fix rndis working at high speed
David Brownell [Tue, 25 Nov 2008 07:11:03 +0000 (23:11 -0800)]
USB: gadget: fix rndis working at high speed

Fix a bug specific to highspeed mode in the recently updated RNDIS
support:  it wasn't setting up the high speed notification endpoint,
which prevented high speed RNDIS links from working.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Tested-by: Anand Gadiyar <gadiyar@ti.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoUSB: gadget rndis: send notifications
Richard Röjfors [Sun, 16 Nov 2008 03:53:24 +0000 (19:53 -0800)]
USB: gadget rndis: send notifications

It turns out that atomic_inc_return() returns the *new* value
not the original one, so the logic in rndis_response_available()
kept the first RNDIS response notification from getting out.
This prevented interoperation with MS-Windows (but not Linux).

Fix this to make RNDIS behave again.

Signed-off-by: Richard Röjfors <richard.rojfors@endian.se>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoUSB: gadget rndis: stop windows self-immolation
David Brownell [Sun, 16 Nov 2008 03:53:21 +0000 (19:53 -0800)]
USB: gadget rndis: stop windows self-immolation

Somewhere in the conversion of the RNDIS gadget code to the new
framework, the descriptor of its data interface seems to have
been copied from the CDC Ethernet driver.  Unfortunately that
means it got a nonzero altsetting ... which is incorrect.  Issue
uncovered by Richard Röjfors <richard.rojfors@endian.se>.

This patch fixes that problem, and resolves at least some cases
of Windows XP bluescreening itself.

Tested-by: Richard Röjfors <richard.rojfors@endian.se>.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 years agoSwitch to experimental 60Hz settings
Grazvydas Ignotas [Sat, 14 Feb 2009 21:18:50 +0000 (23:18 +0200)]
Switch to experimental 60Hz settings

15 years agoEnable PWM backlight in defconfig
Grazvydas Ignotas [Mon, 9 Feb 2009 12:00:50 +0000 (14:00 +0200)]
Enable PWM backlight in defconfig

15 years agoRename omapfb panel sys entry
Grazvydas Ignotas [Sun, 8 Feb 2009 22:33:02 +0000 (00:33 +0200)]
Rename omapfb panel sys entry

Do this to prevent some userspace apps from using it, as
it is not functional anyway.

15 years agoMake pandora use twl4030-pwm0-bl instead of gpio-bl
Grazvydas Ignotas [Sun, 8 Feb 2009 22:30:57 +0000 (00:30 +0200)]
Make pandora use twl4030-pwm0-bl instead of gpio-bl

15 years agoAdd hackish TWL4030 PWM0 Backlight Driver
Grazvydas Ignotas [Sun, 8 Feb 2009 22:26:48 +0000 (00:26 +0200)]
Add hackish TWL4030 PWM0 Backlight Driver

15 years agovsense: add new modes of operation
Grazvydas Ignotas [Wed, 4 Feb 2009 20:57:58 +0000 (22:57 +0200)]
vsense: add new modes of operation

This allows the device to act as mouse or scrolling device.
Mode can be switched by writing to special file in
/proc/pandora ("absolute", "mouse" and "scroll").

15 years agoChange the way pandora proc entry is registered
Grazvydas Ignotas [Tue, 3 Feb 2009 20:22:35 +0000 (22:22 +0200)]
Change the way pandora proc entry is registered

Only create pandora directory if it's not there yet.
Don't remove it on module unload, because it might be used
by other drivers.

15 years agoEnable GPIO debounce feature for GPIO keys
Grazvydas Ignotas [Tue, 3 Feb 2009 20:19:35 +0000 (22:19 +0200)]
Enable GPIO debounce feature for GPIO keys

This should fix multiple events firing on single key press
or release.

15 years agoEnable wifi related things in defconfig
Grazvydas Ignotas [Sun, 25 Jan 2009 13:40:46 +0000 (15:40 +0200)]
Enable wifi related things in defconfig

15 years agoHSMMC: Fix MMC3 transfers by defining MMC3 DMA
Grazvydas Ignotas [Wed, 21 Jan 2009 21:17:25 +0000 (23:17 +0200)]
HSMMC: Fix MMC3 transfers by defining MMC3 DMA

15 years agoHSMMC: Improve error handling, check more error bits
Grazvydas Ignotas [Sun, 18 Jan 2009 16:26:19 +0000 (18:26 +0200)]
HSMMC: Improve error handling, check more error bits

15 years agommc: Add new API call 'sdio_reset_comm' for resetting communication with an SDIO...
San Mehat [Thu, 15 May 2008 16:15:37 +0000 (09:15 -0700)]
mmc: Add new API call 'sdio_reset_comm' for resetting communication with an SDIO device

Signed-off-by: San Mehat <san@android.com>
15 years agotrout: Add functions for WiFi
Dmitry Shmidt [Tue, 11 Nov 2008 19:22:38 +0000 (11:22 -0800)]
trout: Add functions for WiFi

15 years agoHack wifi embedded data directly into MMC host driver
Grazvydas Ignotas [Tue, 13 Jan 2009 16:28:37 +0000 (18:28 +0200)]
Hack wifi embedded data directly into MMC host driver

This will hopefully move to a better place in future.

15 years agommc: Add concept of an 'embedded' SDIO device.
San Mehat [Mon, 14 Apr 2008 22:22:49 +0000 (15:22 -0700)]
mmc: Add concept of an 'embedded' SDIO device.

This is required to support chips which use SDIO for signaling/
communication but do not implement the various card enumeration registers
as required for full SD / SDIO cards.

mmc: sdio: Fix bug where we're freeing the CIS tables we never allocated when using EMBEDDED_SDIO
mmc: Add max_blksize to embedded SDIO data

Signed-off-by: San Mehat <san@google.com>
15 years agoAdd MMC3 fake detect function
Grazvydas Ignotas [Tue, 13 Jan 2009 15:38:41 +0000 (17:38 +0200)]
Add MMC3 fake detect function

This is needed to be able to initialize MMC3 right from
the wifi driver.

15 years agoAdd platform_data to enable MMC3.
Grazvydas Ignotas [Tue, 13 Jan 2009 15:37:12 +0000 (17:37 +0200)]
Add platform_data to enable MMC3.

15 years agoARM: OMAP: calculate hsmmc data timeout accurately
Adrian Hunter [Thu, 16 Oct 2008 13:37:23 +0000 (16:37 +0300)]
ARM: OMAP: calculate hsmmc data timeout accurately

The data timeout can be calculated from the clock
rate and timing values given by the card.  At
present the timeout is set to the maximum value,
about 2.7 secs.  When dealing with cards that do have
errors, this causes large unnecessary delays because
the correct timeout may be around 10 millisecs.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoMove existing TWL4030 code to drivers/mfd
Peter 'p2' De Schrijver [Mon, 20 Oct 2008 08:37:52 +0000 (11:37 +0300)]
Move existing TWL4030 code to drivers/mfd

This patches moves the twl4030 power sequencer code to drivers/mfd and
updates the code for the new twl4030 framework. The code handles downloading
the scripts provided by the board configuration and configuring the chip
to call the relevant script for each event (processor group 1 and 2 sleep,
processor group 3 sleep, wakeup or warm reset).

Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAdd defines and data types for twl4030.
Peter 'p2' De Schrijver [Mon, 20 Oct 2008 08:37:51 +0000 (11:37 +0300)]
Add defines and data types for twl4030.

This patch adds a bunch of data types and defines to handle the twl4030 power sequence scripts.

Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoMinor timing adjustment to fix left border
Grazvydas Ignotas [Fri, 9 Jan 2009 22:04:55 +0000 (00:04 +0200)]
Minor timing adjustment to fix left border

15 years agoPossible fix for omapfb irq errors
Grazvydas Ignotas [Fri, 9 Jan 2009 22:01:07 +0000 (00:01 +0200)]
Possible fix for omapfb irq errors

tested with at least 50 boots now

15 years agoOMAP: wait for pwrdm transition after clk_enable()
Tomi Valkeinen [Fri, 12 Dec 2008 07:48:53 +0000 (09:48 +0200)]
OMAP: wait for pwrdm transition after clk_enable()

Enabling clock in a disabled power domain causes the power domain to be
turned on. However, the power transition is not always finished when
clk_enable() returns and this randomly crashes the kernel when an
interrupt happens right after the clk_enable, and the kernel tries to
read the irq status register for that domain.

Why the irq status register is inaccessible, I don't know. Also it
doesn't seem to be related to the module being not powered up, but to
the transition itself.

The same could perhaps happen after clk_disable also, but I have not
witnessed that.

The problem affects at least dss, cam and sgx clocks.

This change waits for the transition to be finished before returning
from omap2_clkdm_clk_enable().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP2/3 GPTIMER: skip unnecessary TLDR write during non-autoreload
Paul Walmsley [Wed, 26 Nov 2008 18:48:12 +0000 (10:48 -0800)]
OMAP2/3 GPTIMER: skip unnecessary TLDR write during non-autoreload

The GPTIMER TLDR register does not need to be written if the GPTIMER
is not in autoreload mode.  This is the usual case for dynamic tick-enabled
kernels.

Simulation data indicate that skipping the read that occurs as part of
the write should save at least 300-320 ns for each GPTIMER1 timer
reprogram.  (This assumes L4-Wakeup is at 19MHz and GPTIMER write
posting is enabled.)  Skipping the write itself probably won't have
much impact since it should be posted on the OCP interconnect.

Tested on 2430SDP and 3430SDP.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP: Fix twl4030 keypad bug.
Stanley.Miao [Tue, 11 Nov 2008 11:50:56 +0000 (19:50 +0800)]
OMAP: Fix twl4030 keypad bug.

The n_cols number has beed set to the right value in the board specific file,
so in the twl4030 driver, the n_cols doesn't need to plus 1.

Signed-off-by: Stanley.Miao <stanley.miao@windriver.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoARM: OMAP: hsmmc requires data reset after data timeout
Adrian Hunter [Thu, 16 Oct 2008 13:37:14 +0000 (16:37 +0300)]
ARM: OMAP: hsmmc requires data reset after data timeout

According to TRM a software reset SRD after data timeout
is required.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoRemove irqenable code
Grazvydas Ignotas [Fri, 9 Jan 2009 10:01:32 +0000 (12:01 +0200)]
Remove irqenable code

omap_dispc_request_irq() enables irq itself, so no need to
do that here. Not to mention this code was buggy.

15 years agoOMAP2 NAND: Change __raw_readsl() to __raw_readsw()
Juha Kuikka [Thu, 13 Nov 2008 21:52:03 +0000 (13:52 -0800)]
OMAP2 NAND: Change __raw_readsl() to __raw_readsw()

Change __raw_readsl() to __raw_readsw()

Signed-off-by: Juha Kuikka <juha.kuikka@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoASoC: Fix supported sample rates of TWL4030 audio codec
Jarkko Nikula [Wed, 12 Nov 2008 15:05:41 +0000 (17:05 +0200)]
ASoC: Fix supported sample rates of TWL4030 audio codec

TWL4030 currently supports rates between 8 kHz and 48 kHz and sets the codec
mode register accordingly in twl4030_hw_params. Expose this info so that
ASoC can match other rates than 44.1 kHz or 48 kHz as well.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
15 years agoEnable new stuff in defconfig
Grazvydas Ignotas [Tue, 9 Dec 2008 20:57:50 +0000 (22:57 +0200)]
Enable new stuff in defconfig

15 years agoFix potential crash
Grazvydas Ignotas [Tue, 9 Dec 2008 20:47:35 +0000 (22:47 +0200)]
Fix potential crash

15 years agoASoC: TWL4030: Add input selection and gain controls
Grazvydas Ignotas [Mon, 8 Dec 2008 21:56:00 +0000 (23:56 +0200)]
ASoC: TWL4030: Add input selection and gain controls

15 years agoFix merge error in omap-mcbsp
Grazvydas Ignotas [Mon, 8 Dec 2008 21:54:33 +0000 (23:54 +0200)]
Fix merge error in omap-mcbsp

15 years agoALSA: ASoC: Add destination and source port for DMA on OMAP1
Arun KS [Tue, 30 Sep 2008 10:05:16 +0000 (15:35 +0530)]
ALSA: ASoC: Add destination and source port for DMA on OMAP1

Adds destination and source port for dma in platform driver as
required by OMAP1

Signed-off-by: Arun KS <arunks@mistralsolutions.com>
Acked-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoASoC: OMAP: Add support for mono audio links in McBSP DAI
Jarkko Nikula [Tue, 25 Nov 2008 10:45:09 +0000 (12:45 +0200)]
ASoC: OMAP: Add support for mono audio links in McBSP DAI

Patch adds support for mono audio links so that McBSP DAI can operate with
real mono codecs. In I2S, the signalling remains the same but only first
frame (left channel) is transmitting audio data and second frame having null
data. In DSP_A, only first frame is transmitted.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
15 years agoASoC: OMAP: Fix preprocessor filled DAI name in McBSP DAI
Jarkko Nikula [Fri, 21 Nov 2008 12:31:33 +0000 (14:31 +0200)]
ASoC: OMAP: Fix preprocessor filled DAI name in McBSP DAI

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
15 years agoASoC: OMAP: Add more supported sample rates into McBSP DAI driver
Jarkko Nikula [Wed, 12 Nov 2008 15:05:51 +0000 (17:05 +0200)]
ASoC: OMAP: Add more supported sample rates into McBSP DAI driver

Originally it was put too tight limits to support only 44.1 kHz and 48 kHz
sample rates in McBSP DAI driver. Extend it now to 8 kHz - 96 kHz. With
96 kHz and 2*16 bits, bit clock is 3.072 MHz < 3.125 MHz (I2S max?).

Tested on Nokia N810 with TVL320AIC33 from rates 8 - 96 kHz and on Texas
Instruments Beagle with TWL4030 from rates 8 - 48 kHz.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Acked-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
15 years agoALSA: ASoC: OMAP: Continue fixing DSP DAI format in McBSP DAI driver
Jarkko Nikula [Wed, 22 Oct 2008 12:00:29 +0000 (15:00 +0300)]
ALSA: ASoC: OMAP: Continue fixing DSP DAI format in McBSP DAI driver

Fix "ASoC: OMAP: Fix DSP DAI format in McBSP DAI driver" was not correct
due misunderstanding of DSP_A format and similar error in TLV320AIC33
codec which was used to test the original fix.

This patch corrects now DSP_A format in OMAP McBSP DAI driver and is
verified with TLV320AIC23 codec that's implementing DSP_A correctly.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoALSA: ASoC: OMAP: Fix DSP DAI format in McBSP DAI driver
Jarkko Nikula [Mon, 20 Oct 2008 12:29:59 +0000 (15:29 +0300)]
ALSA: ASoC: OMAP: Fix DSP DAI format in McBSP DAI driver

Fix word clock length which must equal to one bit clock cycle in DSP mode.
Surprisingly McBSP is able synchronize into wrong length when it's
slave but e.g. TLV320AIC33 codec in slave configuration is outputting
some amount of noise if word clock length is longer than one bit clock
cycle.

Fix also bit clock and frame sync polarities in DSP mode since they are
opposite from I2S.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoALSA: ASoC: OMAP: Set DMA stream name at runtime in McBSP DAI driver
Jarkko Nikula [Thu, 9 Oct 2008 12:57:21 +0000 (15:57 +0300)]
ALSA: ASoC: OMAP: Set DMA stream name at runtime in McBSP DAI driver

This suits better when adding support for multiple links and different
link formats.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoAdd sound recording support
Grazvydas Ignotas [Fri, 5 Dec 2008 16:48:49 +0000 (18:48 +0200)]
Add sound recording support

15 years agoALSA: ASoC: OMAP: Add multilink support to McBSP DAI driver
Jarkko Nikula [Thu, 9 Oct 2008 12:57:22 +0000 (15:57 +0300)]
ALSA: ASoC: OMAP: Add multilink support to McBSP DAI driver

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 years agoAdd hold and lid switches
Grazvydas Ignotas [Sat, 6 Dec 2008 23:40:28 +0000 (01:40 +0200)]
Add hold and lid switches

15 years agoAdd Pandora Linux logo :)
Grazvydas Ignotas [Sat, 6 Dec 2008 23:35:01 +0000 (01:35 +0200)]
Add Pandora Linux logo :)

15 years agoAdd backlight-gpio to Pandora
Grazvydas Ignotas [Sat, 6 Dec 2008 23:29:09 +0000 (01:29 +0200)]
Add backlight-gpio to Pandora

15 years agoAdd GPIO backlight driver
Grazvydas Ignotas [Sat, 6 Dec 2008 23:17:38 +0000 (01:17 +0200)]
Add GPIO backlight driver

15 years agoAdd gpio-leds to Pandora
Grazvydas Ignotas [Sat, 6 Dec 2008 23:23:24 +0000 (01:23 +0200)]
Add gpio-leds to Pandora

15 years agoAdd LED trigger to bluetooth driver
Grazvydas Ignotas [Fri, 28 Nov 2008 13:52:07 +0000 (15:52 +0200)]
Add LED trigger to bluetooth driver

15 years agobluetooth: some tweaks for initialization procedure
Grazvydas Ignotas [Mon, 24 Nov 2008 21:57:38 +0000 (23:57 +0200)]
bluetooth: some tweaks for initialization procedure

15 years agoEnable bluetooth and related things in defconfig.
Grazvydas Ignotas [Sat, 22 Nov 2008 19:12:55 +0000 (21:12 +0200)]
Enable bluetooth and related things in defconfig.

15 years agoBluetooth support - heavily hacked Nokia H4 driver
Grazvydas Ignotas [Sat, 22 Nov 2008 18:15:43 +0000 (20:15 +0200)]
Bluetooth support - heavily hacked Nokia H4 driver

15 years agovsense driver: use unique device names and checkpatch cleanup
Grazvydas Ignotas [Tue, 18 Nov 2008 16:10:38 +0000 (18:10 +0200)]
vsense driver: use unique device names and checkpatch cleanup

15 years agoEnable Pandora misc driver in defconfig.
Grazvydas Ignotas [Wed, 12 Nov 2008 21:53:51 +0000 (23:53 +0200)]
Enable Pandora misc driver in defconfig.

15 years agoAdd pandora misc driver.
Grazvydas Ignotas [Wed, 12 Nov 2008 21:52:27 +0000 (23:52 +0200)]
Add pandora misc driver.

15 years agoAdd remaining input stuff to defconfig
Grazvydas Ignotas [Wed, 5 Nov 2008 22:39:24 +0000 (00:39 +0200)]
Add remaining input stuff to defconfig

15 years agoAdd VSense (analog controller) driver
Grazvydas Ignotas [Wed, 5 Nov 2008 22:33:47 +0000 (00:33 +0200)]
Add VSense (analog controller) driver

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
15 years agoinput for Pandora: buttons and keypad
Grazvydas Ignotas [Sun, 2 Nov 2008 17:06:54 +0000 (19:06 +0200)]
input for Pandora: buttons and keypad

15 years agoEnable more stuff in defconfig
Grazvydas Ignotas [Fri, 31 Oct 2008 20:46:28 +0000 (22:46 +0200)]
Enable more stuff in defconfig

15 years agoSPI hack for Pandora
Grazvydas Ignotas [Tue, 28 Oct 2008 20:01:42 +0000 (22:01 +0200)]
SPI hack for Pandora

without this everytime ads7846 driver reads data from SPI,
it gets bad data as MS byte, and first data byte as LS byte,
instead of just 2 data bytes.