pandora-kernel.git
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.

15 years agoRevert "OMAP3 clock: put DPLL into bypass if bypass rate = clk->rate, not hardware...
Grazvydas Ignotas [Wed, 22 Oct 2008 20:05:11 +0000 (23:05 +0300)]
Revert "OMAP3 clock: put DPLL into bypass if bypass rate = clk->rate, not hardware rate"

This reverts commit 8b1f0bd44fe490ec631230c8c040753a2bda8caa and fixes compile.

This revert is to fix EHCI, which dies because of this patch.

15 years agoPandora EHCI hacks
Grazvydas Ignotas [Sun, 26 Oct 2008 20:55:48 +0000 (22:55 +0200)]
Pandora EHCI hacks

this is for rev2 boards only

15 years agommc2 support for Pandora
Grazvydas Ignotas [Fri, 31 Oct 2008 17:28:20 +0000 (19:28 +0200)]
mmc2 support for Pandora

15 years agommc2 global hacks
Grazvydas Ignotas [Fri, 31 Oct 2008 17:29:20 +0000 (19:29 +0200)]
mmc2 global hacks

15 years agoBasic LCD support
Grazvydas Ignotas [Thu, 23 Oct 2008 21:00:51 +0000 (00:00 +0300)]
Basic LCD support

15 years agoALSA: ASoC: TWL4030 codec: fix 256*Fs clock
Grazvydas Ignotas [Mon, 20 Oct 2008 20:23:50 +0000 (23:23 +0300)]
ALSA: ASoC: TWL4030 codec: fix 256*Fs clock

According to TRM, 256*Fs clock output should be enabled
when TWL4030 is in slave mode, not master.
This allows sound to work on OMAP3 Pandora.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
15 years agoalsa: ASoC: add OMAP3 Pandora configuration
Grazvydas Ignotas [Sun, 26 Oct 2008 20:51:40 +0000 (22:51 +0200)]
alsa: ASoC: add OMAP3 Pandora configuration

for rev2 boards only. For rev1, try changing
cpu_dai->private_data = 1;
to
cpu_dai->private_data = 2;

15 years agoAdd touchscreen support for Pandora
Grazvydas Ignotas [Tue, 28 Oct 2008 20:25:25 +0000 (22:25 +0200)]
Add touchscreen support for Pandora

15 years agoOMAPFB: fix printing of reserved memory v2.6.27-omap1
Tomi Valkeinen [Fri, 12 Sep 2008 10:27:16 +0000 (13:27 +0300)]
OMAPFB: fix printing of reserved memory

Print reserved memory only if it was actually reserved.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP3 DSS: Fixed FIFO buffer register field sizes
Kalle Jokiniemi [Wed, 22 Oct 2008 06:47:06 +0000 (09:47 +0300)]
OMAP3 DSS: Fixed FIFO buffer register field sizes

The size status field in DISPC_[GFX | VID1 | VID2]_FIFO_SIZE_STATUS
register is 11 bits wide in OMAP3, but only 9 bits were read. Similarly,
the threshold field in DISPC_[GFX | VID1 | VID2]_FIFO_THRESHOLD register
is 12 bits wide, while only 9 bits were written in it.

This patch extends the bit field sizes used in setup_plane_fifo to
correspond to ones in OMAP3. In OMAP2 the extra bits are reserved, so no
harm should come from extending the bit fields.

Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP3: Remove CONFIG_OMAP_SYSOFFMODE flag
Kalle Jokiniemi [Fri, 17 Oct 2008 06:46:08 +0000 (09:46 +0300)]
OMAP3: Remove CONFIG_OMAP_SYSOFFMODE flag

Remove CONFIG_OMAP_SYSOFFMODE flag and do the full initialization of voltage
controller . Enabling automatic sending of OFF command and selecting wether
SYS_OFF_MODE signal is used should be determined dynamically. Hence they are
now not set in the initialization.

The sleep voltage for OFF mode is changed to default 1,2V for VDD1 and
1,15V for VDD2. Using the 0,9V setting causes hangup.

Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoalsa: add Beagleboard SoC configuration.
Felipe Contreras [Fri, 24 Oct 2008 19:02:57 +0000 (12:02 -0700)]
alsa: add Beagleboard SoC configuration.

This is exactly the same as the overo configuration. It might make sense
to have them in a single one.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
# CHANGED to not spew messages about beagle on non-beagle boards
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: Add basic support for Pandora handheld console
Grazvydas Ignotas [Sat, 18 Oct 2008 21:55:15 +0000 (00:55 +0300)]
omap: Add basic support for Pandora handheld console

This patch adds support for basic features: nand, uarts, i2c,
mmc, rtc, and usb. Also includes defconfig.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoARM: OMAP3: Fix get_irqnr_and_base to clear spurious interrupt bits
Tony Lindgren [Tue, 21 Oct 2008 17:51:40 +0000 (10:51 -0700)]
ARM: OMAP3: Fix get_irqnr_and_base to clear spurious interrupt bits

On omap24xx, INTCPS_SIR_IRQ_OFFSET bits [6:0] contains the current
active interrupt number.

However, on 34xx INTCPS_SIR_IRQ_OFFSET bits [31:7] also contains the
SPURIOUSIRQFLAG, which gets set if the interrupt sorting information
is invalid.

If the SPURIOUSIRQFLAG bits are not ignored, the interrupt code will
occasionally produce a bunch of confusing errors:

irq -33, desc: c02ddcc8, depth: 0, count: 0, unhandled: 0
->handle_irq():  c006f23c, handle_bad_irq+0x0/0x22c
->chip(): 00000000, 0x0
->action(): 00000000

Fix this by masking out only the ACTIVEIRQ bits. Also fix a
confusing comment.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoRevert "OMAP3: ack spurious IRQs in get_irqnr_and_base"
Tony Lindgren [Tue, 21 Oct 2008 22:04:30 +0000 (15:04 -0700)]
Revert "OMAP3: ack spurious IRQs in get_irqnr_and_base"

This reverts commit 3da0e10243d075b905dfa8f1b4a6cb3694ab2ce0.

The real bug behind this issue is the fact that we're not
masking out the SPURIOUSIRQFLAG bits [31:7] from the active
interrupt number. The following patch will replace this
patch with the fix.

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoFix bootup crash for LDP platform
Vikram Pandita [Fri, 17 Oct 2008 23:08:04 +0000 (04:38 +0530)]
Fix bootup crash for LDP platform

Fix following bootup crash on LDP platform by enabling T2 USB driver for MUSB

Backtrace:
[<c001b9ac>] (musb_platform_init+0x0/0x120) from [<c001b0a8>] (musb_probe+0x208/0xb0c)
 r5:00000000 r4:c0222ad4
[<c001aea0>] (musb_probe+0x0/0xb0c) from [<c0142e80>] (platform_drv_probe+0x20/0x24)
[<c0142e60>] (platform_drv_probe+0x0/0x24) from [<c0142118>] (driver_probe_device+0xd0/0x17c)
[<c0142048>] (driver_probe_device+0x0/0x17c) from [<c0142210>] (__driver_attach+ 0x4c/0x70)
 r7:c0233214 r6:c0233214 r5:c02229ec r4:c0222940
[<c01421c4>] (__driver_attach+0x0/0x70) from [<c0141790>] (bus_for_each_dev+0x4c/0x84)
 r7:c0233214 r6:c01421c4 r5:c781de94 r4:00000000
[<c0141744>] (bus_for_each_dev+0x0/0x84) from [<c0141f60>] (driver_attach+0x20/0x28)
 r7:c78999c0 r6:c0234c60 r5:c0233214 r4:00000000
[<c0141f40>] (driver_attach+0x0/0x28) from [<c0141c1c>] (bus_add_driver+0xa8/0x214)
[<c0141b74>] (bus_add_driver+0x0/0x214) from [<c0142404>] (driver_register+0x98/0x120)
 r8:00000000 r7:00000000 r6:c0234c60 r5:c0233214 r4:c001e5c4
[<c014236c>] (driver_register+0x0/0x120) from [<c014303c>] (platform_driver_register+0x78/0x94)
[<c0142fc4>] (platform_driver_register+0x0/0x94) from [<c0143070>] (platform_driver_probe+0x18/0x68)
[<c0143058>] (platform_driver_probe+0x0/0x68) from [<c001ad38>] (musb_init+0x3c/0x54)
 r5:c001e510 r4:c001e5c4
[<c001acfc>] (musb_init+0x0/0x54) from [<c0022298>] (__exception_text_end+0x50/0x168)

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP3 clock: fix non-CORE DPLL rate assignment bugs
Paul Walmsley [Fri, 17 Oct 2008 22:18:42 +0000 (16:18 -0600)]
OMAP3 clock: fix non-CORE DPLL rate assignment bugs

Commit 8b1f0bd44fe490ec631230c8c040753a2bda8caa introduced a bug that
caused non-CORE DPLL rates to be incorrectly set on boot in
omap3_noncore_dpll_enable().  Debugged by Tomi Valkeinen
<tomi.valkeinen@nokia.com> - thanks Tomi.

Also fix omap3_noncore_dpll_set_rate() to assign clk->rate after a
DPLL reprogram.

Tested on 3430SDP.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Cc: Rick Bronson <rick@efn.org>
Cc: Timo Kokkonen <timo.t.kokkonen@nokia.com>
Cc: Sakari Poussa <sakari.poussa@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agon800: usb: fix num_eps and avoid BUG()
Felipe Balbi [Mon, 13 Oct 2008 12:35:45 +0000 (15:35 +0300)]
n800: usb: fix num_eps and avoid BUG()

num_eps is 16, not 32.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoFix whitespaces in smartreflex.c
Sanjeev Premi [Fri, 10 Oct 2008 14:05:28 +0000 (19:35 +0530)]
Fix whitespaces in smartreflex.c

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoFix compiler warnings in smartreflex.c
Sanjeev Premi [Fri, 10 Oct 2008 13:51:02 +0000 (19:21 +0530)]
Fix compiler warnings in smartreflex.c

Fix these compiler warnings:
smartreflex.c:126: warning: initialization makes integer from pointer without a cast
smartreflex.c:134: warning: initialization makes integer from pointer without a cast

Refreshed after updates from Felipe.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP3 NAND: move NAND_BLOCK_SIZE macro to board-3430sdp-flash.c
vimal singh [Tue, 7 Oct 2008 06:11:08 +0000 (11:41 +0530)]
OMAP3 NAND: move NAND_BLOCK_SIZE macro to board-3430sdp-flash.c

Sync nand.h with mainline kernel

Moving NAND_BLOCK_SIZE definition to board-3430sdp-flash.c

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agolm8323 pwm fixes
Timo Karjalainen [Thu, 2 Oct 2008 09:07:22 +0000 (12:07 +0300)]
lm8323 pwm fixes

This patch fixes two problems in LM8323 PWM control. One is that
locking is needed when setting and reading pwm->desired_brightness
asynchronously. The other is that LM8323 may stop a PWM script only
after the current instruction has finished. If it is a long RAMP,
the chip would keep executing the old instruction and new
settings were effectively ignored.

Signed-off-by: Timo Karjalainen <timo.o.karjalainen@nokia.com>
Signed-off-by: Daniel Stone <daniel.stone@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP2: omap-keypad: Enable more than 6 rows
Peter Ujfalusi [Thu, 2 Oct 2008 05:28:49 +0000 (08:28 +0300)]
OMAP2: omap-keypad: Enable more than 6 rows

There is no reason to limit the GPIO rows to 6 for
OMAP2.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP2: omap-keypad: interrupt disable fix
Peter Ujfalusi [Thu, 2 Oct 2008 05:28:48 +0000 (08:28 +0300)]
OMAP2: omap-keypad: interrupt disable fix

The GPIO interrupts has been disabled several times
after the first key press.
No need to disable - again - the interrupts in the omap_kp_scan_keypad
function on OMAP2.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomap: get rid of a useless cast
Felipe Balbi [Tue, 30 Sep 2008 18:46:59 +0000 (21:46 +0300)]
omap: get rid of a useless cast

That cast was annyoing for quite a while. Now
omap_ctrl_base_get() returns void __iomem *
and __raw_read/write friends uses void __iomem *
so there's no need for casting.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAdds MCBSP mux settings
Arun KS [Thu, 25 Sep 2008 07:34:28 +0000 (13:04 +0530)]
Adds MCBSP mux settings

Adding MCBSP port 1, 3, 4 and 5 ports mux settings for 2430.

Signed-off-by: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP2EVM: Updates defconfig
Arun KS [Thu, 25 Sep 2008 05:37:16 +0000 (11:07 +0530)]
OMAP2EVM: Updates defconfig

Enables mcspi support in omap2evm defconfig

Signed-off-by: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP2EVM : Add touchscreen support
Arun KS [Thu, 25 Sep 2008 05:36:03 +0000 (11:06 +0530)]
OMAP2EVM : Add touchscreen support

Adding ads7846 touchscreen support to omap2evm board

Signed-off-by: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoAdd MCSPI1 and gpio_85 Mux configuration
Arun KS [Thu, 25 Sep 2008 05:34:07 +0000 (11:04 +0530)]
Add MCSPI1 and gpio_85 Mux configuration

This patch adds mcspi1 and gpio_85 mux configuration for 2430.

Signed-off-by: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoomapfb: Remove casting and change coding style
arun c [Thu, 18 Sep 2008 12:49:31 +0000 (08:49 -0400)]
omapfb: Remove casting and change coding style

As sugested by RMK

Signed-off-by: Arun C <arunedarath@mistralsolutions.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoehci-omap: (mostly) cosmetic cleanups
David Brownell [Fri, 3 Oct 2008 07:03:33 +0000 (00:03 -0700)]
ehci-omap: (mostly) cosmetic cleanups

Various cleanups to the OMAP EHCI bus glue:

 - Whitespace fixes.

 - Busy-wait loops should really have timeouts, but lacking
   that ... at least cpu_relax() in the body.

 - Debug messages should end with newlines, so they don't
   break the next message; should not embed newlines; and
   should otherwise be clean and correctly spelled.

 - The probe() method should have initialized the SBRN value,
   so the driver didn't report "USB 0.0 started".

 - The MODULE_ALIAS() was missing its "platform:" prefix;
   doing it right means the module could hotplug/coldplug.

No real functional change except for the hotplug/coldplug thing.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoOMAP3: ack spurious IRQs in get_irqnr_and_base
Lauri Leukkunen [Wed, 15 Oct 2008 11:51:51 +0000 (14:51 +0300)]
OMAP3: ack spurious IRQs in get_irqnr_and_base

This prevents spurious interrupts from repeating unacked and
thus locking the system, while still allowing the spurious
bad irq error message to be show on console.

Signed-off-by: Lauri Leukkunen <lauri.leukkunen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
15 years agoDisable CONFIG_USB_EHCI_HCD for boards that have it set
Tony Lindgren [Fri, 17 Oct 2008 21:08:47 +0000 (14:08 -0700)]
Disable CONFIG_USB_EHCI_HCD for boards that have it set

This is until the EHCI issues have been sorted out.

Signed-off-by: Tony Lindgren <tony@atomid.com>