Paul Walmsley [Thu, 3 May 2007 22:52:36 +0000 (16:52 -0600)]
omap2: use OMAP2_32KSYNCT_BASE in place of OMAP24XX_32KSYNCT_BASE
Change users of OMAP24XX_32KSYNCT_BASE to use OMAP2_32KSYNCT_BASE, in
preparation to remove OMAP24XX_32KSYNCT_BASE. Convert the 32K sync timer
reference in pm.c to use a symbolic constant rather than a magic number.
Remove the OMAP24XX_32KSYNCT_BASE define.
Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Paul Walmsley [Thu, 3 May 2007 22:52:35 +0000 (16:52 -0600)]
omap2: modify omap24xx.h to improve constant names and prepare for multi-arch kernels
Redo the defines in omap24xx.h to fix poorly-named defines, such as
OMAP24XX_SDRC_BASE, which is different between 2420 and 2430. Also,
prepare for future multi-architecture kernels by removing the
architecture prefixes from several of the defines. (Presumably in the
future these will be assigned to 'static void __iomem *'s by runtime
init code depending on the CPU type.)
Signed-off-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
David Brownell [Thu, 24 May 2007 03:46:12 +0000 (20:46 -0700)]
omap2_mcspi fixes + cleanups
McSPI functional updates:
- Implement the spi_transfer.delay_usecs mechanism (previously omitted).
- Remove strange per-device <asm/arch/mcspi.h> hookery ... it's not even
correct as a per-device config. We *always* want "single channel" mode
(in "keep chipselect active" mode); and if we used "turbo", it would
be a per-transfer option (as an rx-only double buffering tweak).
- When enabling/disabling a channel, old value is irrelevant; don't read.
- Sanity check spi->mode bits, and reject ones we don't support.
- Streamline DMA channel selection: do it once during probe(), using static
tables; smaller, faster. OMAP 2430 still needs changes here, minimally for
the third SPI controller. (Board init should change too, to not assume
all SPI controllers are used on every board...)
- Remove #ifdefs around doing reset on driver startup ... enable clocks
so we can do that (!), and turn on auto-idle.
- Waste less time enabling/disabling the clocks while working the queue.
- Flag DMA channels as freed when we do so ... so they can't get reused
later (when another driver may own them).
- Minor PIO fix: don't need to verify TX side completed except for TX_ONLY
mode, since RX completed implies TX completed.
- Remove bogus code which always dropped chipselect after the last RX_ONLY
word (rather than leaving it enabled).
- Move error checks out of work loop into setup() and transfer(), so that
they're reported ASAP rather than as mysterious transfer errors).
Plus a handful of cleanups: whitespace fixes, comments.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
David Brownell [Wed, 23 May 2007 05:34:05 +0000 (22:34 -0700)]
tsc2102-alsa build fixes
Various fixes needed to build the tsc2102 audio. Several fixes
relate specifically to building it as a module.
Note that this doesn't address the need for omap-alsa-dma.c
to go into a separate module so that e.g. tsc2101 and tsc2102
modules can both be built, or the assumption that the audio
is going out over McBSP not EAC.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
David Brownell [Wed, 23 May 2007 05:33:53 +0000 (22:33 -0700)]
tsc2101-alsa build fixes
Partial build fixes for tsc2101 audio. It still won't link though,
it needs undefined omap_tsc2101_{read,write}() functions to access
chip registers ... and requires that e.g. tsc2102 audio isn't also
configured (they use the same exported McBSP DMA functions, which
likewise prevent use with EAC).
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
David Brownell [Fri, 25 May 2007 00:36:10 +0000 (17:36 -0700)]
fix SPI_CPHA related errors
The OMAP SPI controller drivers handle SPI_CPHA incorrectly.
It should mean:
CPHA=0 ... sample at leading edge of clock
CPHA=1 ... sample at trailing edge of clock
This fixes them, and the protocol drivers which depended on the wrong
meaning. Separate ads7846 and omap_uwire patches are going upstream,
already since those drivers were already pushed there. The tsc2102
code already had this right ... strange.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Acked-by: Kevin Hilman <khilman@mvista.com>
The TSC2102 option in drivers/input/touchscreen/Kconfig got lost
somewhere in January (although the commit is not visible in git-web),
so adding it back. Also remove the input_dev.dev assignment due to an
upstream change.
Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
From 492e5cbe39613f06b8146c12bff9500259739fd5 Mon Sep 17 00:00:00 2001
From: Andrzej Zaborowski <balrog@zabor.org>
Date: Tue, 22 May 2007 20:08:47 +0200
Subject: [PATCH] Re-add a lost TSC2102 touchscreen Kconfig entry.
The TSC2102 option in drivers/input/touchscreen/Kconfig got lost somewhere
in January (although the commit is not visible in git-web), so adding it
back. Also remove the input_dev.dev assignment due to an upstream change. Signed-off-by: Tony Lindgren <tony@atomide.com>
- CONFIG_BACKLIGHT_DEVICE now became CONFIG_BACKLIGHT_CLASS_DEVICE.
- Re-add OMAPBL_MAX_INTENSITY usage that was removed in last commit
and the macro became unused.
Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
From feb798039e5c6e06f64556ad482dbbd021153a1b Mon Sep 17 00:00:00 2001
From: Andrzej Zaborowski <balrog@zabor.org>
Date: Tue, 22 May 2007 19:59:11 +0200
Subject: [PATCH] OMAP: Update omap-bl Kconfig entry.
- CONFIG_BACKLIGHT_DEVICE is now CONFIG_BACKLIGHT_CLASS_DEVICE.
- Re-add OMAPBL_MAX_INTENSITY usage that became unused after last commit. Signed-off-by: Tony Lindgren <tony@atomide.com>
Dirk Behme [Sat, 19 May 2007 14:57:51 +0000 (16:57 +0200)]
ARM: OMAP: Update palmte_defconfig to enable GPIO switch
Update palmte_defconfig to enable CONFIG_OMAP_GPIO_SWITCH. Else, we get
arch/arm/mach-omap1/built-in.o: In function `omap_palmte_init':
board-palmte.c:(.init.text+0xbc0): undefined reference to
`omap_register_gpio_switches'
Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Dirk Behme [Sat, 19 May 2007 14:48:51 +0000 (16:48 +0200)]
ARM: OMAP: Fix compilation of dsp_mem.c
Fix compilation of dsp_mem.c. omapfb_ready is only available if
CONFIG_FB_OMAP_LCDC_EXTERNAL is set, else compiler stops with error.
status is only used in case CONFIG_FB_OMAP_LCDC_EXTERNAL is set.
Compiler warns about this.
Signed-off-by: Dirk Behme <dirk.behme@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
WATCHDOG: use base address from platform resources and make 2430 boot again
Modfied watchdog driver to use base address provided in platform defn
Cleaned up a bunch of statics used.
Added 2430 baseaddress defn
Addressed review comments for patch1 and 2 reported by Trilok Soni and Tony
Signed-off-by: Nishanth Menon <menon.nishanth@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Jarkko Nikula [Mon, 2 Apr 2007 17:21:35 +0000 (13:21 -0400)]
SPI: Add support for TSC2301 protocol driver
This adds a driver for TSC2301 including support for audio, keypad and
touchscreen. Patch is originally developed for Nokia N800 by Imre Deak,
Jarkko Nikula, Jarkko Oikarinen and Juha Yrjola.
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
This adds a driver for the TSC2102 chip by Texas Instruments. This
driver is responsible for all communication with the chip and doesn't
export anything for user-space, but for other drivers controlling
devices connected to the chip.
Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
Timo Teräs [Mon, 5 Mar 2007 13:40:46 +0000 (05:40 -0800)]
NF: Add iptables IDLETIMER target
Each matching packet resets the timer associated with input and/or output
interfaces. Timer expiry causes a kobject uevent. Idle timer can be read via
sysfs.
Signed-off-by: Hiroshi DOYU <hiroshi.doyu@nokia.com> Signed-off-by: Juha Yrjölä <juha.yrjola@nokia.com>
Updated for 2.6.21-rc1 by Arnaud Patard.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
David Brownell [Thu, 7 Dec 2006 01:14:03 +0000 (17:14 -0800)]
ARM: OMAP: abstract debug card setup (smc, leds)
Additional cleanup for debug boards on H2/P2/H3/H4: move the init
code that's not board-specific into a new file where it can be easily
shared between all the different boards (avoiding code duplication,
and making it easier to support more devices). Make H4 use that.
This should be easy to drop in to the OMAP1 boards using these debug
cards; the only difference seems to be that the p2 does an extra reset
of the smc using the fpga (probably all boards could do that, if it's
necessary) and doesn't use the gpio mux or request APIs.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
David Brownell [Thu, 7 Dec 2006 01:13:55 +0000 (17:13 -0800)]
ARM: OMAP: omap2/gpmc updates
GPMC updates:
- bugfixes: wrong/missing flags, omitted write, wrong test
- don't map memory segments starting at zero
- improve debug messaging
- export gpmc_get_fclk_perio]d() since it's needed to calc timings
- expect gpmc_cs_set_timings() caller to have initialized sync vs async
Note that this API is glitchy; likely the best fix would be to add
a member to "struct gpmc_timings" to hold GPMC_CONFIG1, since that
holds one key aspect of the GPMC timings (the gpmc_fclk divisor,
and sync vs. async == whether that divisor matters).
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
This adds basic support for Siemens SX1. More patches are available,
with video driver, mixer, and serial ports working. That is enough to
do gsm calls with right userland.
Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Tony Lindgren <tony@atomide.com>
This adds support for the keypad on the top of the Amstrad Delta. It's
just a standard omap-keypad so all we need to do is add the keypad
layout and platform data to the board definition file.
Signed-off-by: Jonathan McDowell <noodles@earth.li> Signed-off-by: Tony Lindgren <tony@atomide.com>
General update of the board file for Palm Tungsten E. Registers the
platform devices contained in the PDA (ROM chip, keypad, infra-red)
and updates the configuration for USB and MMC, whose config values
were previously guessed in most cases due to lack of documentation
(and now are confirmed by a number of users). Macros for GPIO pins are
moved to a file in include/asm-arm/arch-omap.
Signed-off-by: Andrzej Zaborowski <balrog@zabor.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
Imre Deak [Mon, 5 Mar 2007 15:34:05 +0000 (17:34 +0200)]
ARM: OMAP: add SoSSI clock (remove manual checking of SoSSI state from idle)
The SoSSI driver should already take care of this by enabling / disabling
its clock when necessary, so this legacy callout from the PM idle code
is not needed any more.
Signed-off-by: Imre Deak <imre.deak@solidboot.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
David Brownell [Mon, 2 Apr 2007 19:45:50 +0000 (12:45 -0700)]
ARM: OMAP: fix OMAP1 dmtimer build warning
Remove the OMAP1 version of omap_dm_timer_get_fclk(), and its associated
compile-time warning. It would only BUG() if called, while it's only
called on OMAP2.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
Linus Torvalds [Thu, 24 May 2007 16:17:12 +0000 (09:17 -0700)]
Merge branch 'fixes' of git://git.linux-nfs.org/pub/linux/nfs-2.6
* 'fixes' of git://git.linux-nfs.org/pub/linux/nfs-2.6:
NFS: Fix nfs_direct_dirty_pages()
NFS: Fix handful of compiler warnings in direct.c
NFS: Avoid a deadlock situation on write