safe/jmp/linux-2.6
14 years agoMerge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable
Russell King [Tue, 2 Mar 2010 23:29:32 +0000 (23:29 +0000)]
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable

Conflicts:
arch/arm/Makefile

14 years ago[ARM] pxa: fix typo in mxm8x10.h
Eric Miao [Tue, 2 Mar 2010 02:24:14 +0000 (10:24 +0800)]
[ARM] pxa: fix typo in mxm8x10.h

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/raumfeld: set GPIO drive bits for LED pins
Daniel Mack [Wed, 24 Feb 2010 17:50:16 +0000 (18:50 +0100)]
[ARM] pxa/raumfeld: set GPIO drive bits for LED pins

Set GPIO bits to pull the pins connected to LEDs for lower power mode.
We want all LEDs off when devices are in suspend.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/zeus: Add support for mcp2515 CAN bus
Marc Zyngier [Thu, 18 Feb 2010 20:33:02 +0000 (20:33 +0000)]
[ARM] pxa/zeus: Add support for mcp2515 CAN bus

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/zeus: Add support for onboard max6369 watchdog
Marc Zyngier [Thu, 18 Feb 2010 20:31:43 +0000 (20:31 +0000)]
[ARM] pxa/zeus: Add support for onboard max6369 watchdog

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/zeus: Add Eurotech as the manufacturer
Marc Zyngier [Thu, 18 Feb 2010 20:30:31 +0000 (20:30 +0000)]
[ARM] pxa/zeus: Add Eurotech as the manufacturer

Signed-off-by: Amit Walambe <amit.walambe@eurotech.com>
Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/zeus: Correct the USB host initialisation flags
Marc Zyngier [Thu, 18 Feb 2010 20:29:24 +0000 (20:29 +0000)]
[ARM] pxa/zeus: Correct the USB host initialisation flags

Signed-off-by: Amit Walambe <amit.walambe@eurotech.com>
Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/zeus: Allow usage of 8250-compatible UART in uncompress
Marc Zyngier [Fri, 19 Feb 2010 06:07:37 +0000 (14:07 +0800)]
[ARM] pxa/zeus: Allow usage of 8250-compatible UART in uncompress

Zeus console port is wired to a 8250-compatible device (pxa UARTs are
reserved to other uses). This patch allows such a configuration in the
uncompress sequence.

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: refactor uncompress.h for non-PXA uarts
Eric Miao [Fri, 19 Feb 2010 05:49:39 +0000 (13:49 +0800)]
[ARM] pxa: refactor uncompress.h for non-PXA uarts

The original patch came from Marc Zyngier where support of 8250-compatible
UART is required to show the uncompress information. Modified a little bit
here, including changes below:

1. #include <mach/regs-uart.h> is actually not necessary
2. introduced uart_{read,write}() for different base and shift
3. introduced uart_is_enabled() and assumed enabled always for
   non-PXA uarts

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Acked-by: Marc Zyngier <maz@misterjones.org>
14 years ago[ARM] mmp2: fix incorrect calling of chip->mask_ack() for 2nd level cascaded IRQs
Eric Miao [Wed, 3 Feb 2010 07:39:35 +0000 (23:39 -0800)]
[ARM] mmp2: fix incorrect calling of chip->mask_ack() for 2nd level cascaded IRQs

The irq_chip is not yet registered, so no default irq_chip.mask_ack(),
which we have to handle it correctly manually here.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp2: add handling on PMIC IRQ
Haojian Zhuang [Wed, 3 Feb 2010 15:01:18 +0000 (10:01 -0500)]
[ARM] mmp2: add handling on PMIC IRQ

Since PMIC INT pin is a special pin of CPU, the status of PMIC INT pin needs
to be cleared after PMIC IRQ occured. Now append the clear operation in
irq chip handler.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp2: add support for board IRQs
Haojian Zhuang [Thu, 28 Jan 2010 04:34:59 +0000 (12:34 +0800)]
[ARM] mmp2: add support for board IRQs

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp2: add missing ICU register definitions
Haojian Zhuang [Thu, 28 Jan 2010 04:27:36 +0000 (12:27 +0800)]
[ARM] mmp2: add missing ICU register definitions

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp2: add gpio initialization
Haojian Zhuang [Mon, 25 Jan 2010 11:03:54 +0000 (06:03 -0500)]
[ARM] mmp2: add gpio initialization

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp2: add mfpr setting
Haojian Zhuang [Mon, 25 Jan 2010 11:03:25 +0000 (06:03 -0500)]
[ARM] mmp2: add mfpr setting

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp2: add mask function in irq-mmp2.c
Haojian Zhuang [Mon, 25 Jan 2010 11:02:50 +0000 (06:02 -0500)]
[ARM] mmp2: add mask function in irq-mmp2.c

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years agoMAINTAINERS: add maintainers for Marvell MMP2 (aka ARMADA610) support
Eric Miao [Tue, 5 Jan 2010 07:28:26 +0000 (15:28 +0800)]
MAINTAINERS: add maintainers for Marvell MMP2 (aka ARMADA610) support

Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp: support jasper development board
Haojian Zhuang [Wed, 6 Jan 2010 14:07:15 +0000 (09:07 -0500)]
[ARM] mmp: support jasper development board

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp: add default configuration for MMP2
Haojian Zhuang [Tue, 5 Jan 2010 07:02:19 +0000 (15:02 +0800)]
[ARM] mmp: add default configuration for MMP2

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp: add support for Marvell MMP2
Haojian Zhuang [Fri, 4 Dec 2009 14:41:28 +0000 (09:41 -0500)]
[ARM] mmp: add support for Marvell MMP2

Marvell MMP2 (aka ARMADA610) is a SoC based on PJ4 core. It's
ARMv6 compatible.  Support basic interrupt handler and timer,
and basic support for MMP2 based FLINT platform.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp: rename irq.c to irq-pxa168.c to allow other SoC IRQ chips
Eric Miao [Tue, 5 Jan 2010 07:06:37 +0000 (15:06 +0800)]
[ARM] mmp: rename irq.c to irq-pxa168.c to allow other SoC IRQ chips

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp: update pxa168_defconfig and include avengers lite support
Haojian Zhuang [Tue, 12 Jan 2010 01:07:45 +0000 (09:07 +0800)]
[ARM] mmp: update pxa168_defconfig and include avengers lite support

Signed-off-by: Gavin Gu <gavin.gu@marvell.com>
Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jack Ren <jack.ren@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] mmp: avengers lite (pxa168) board bring up
Haojian Zhuang [Tue, 12 Jan 2010 00:54:50 +0000 (08:54 +0800)]
[ARM] mmp: avengers lite (pxa168) board bring up

Signed-off-by: Gavin Gu <gavin.gu@marvell.com>
Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jack Ren <jack.ren@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/imote2: Remove redundant pin entry for nCS.
Stefan Schmidt [Sat, 13 Feb 2010 20:59:32 +0000 (21:59 +0100)]
[ARM] pxa/imote2: Remove redundant pin entry for nCS.

Also remove a trailing whitespace while being there.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/imote2: Add defconfig for the imote2 platform.
Stefan Schmidt [Sun, 14 Feb 2010 09:19:21 +0000 (10:19 +0100)]
[ARM] pxa/imote2: Add defconfig for the imote2 platform.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years agoASoC: Remove legacy SSP API usage from pxa-ssp.c
Eric Miao [Tue, 9 Feb 2010 11:46:01 +0000 (19:46 +0800)]
ASoC: Remove legacy SSP API usage from pxa-ssp.c

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: introduce PXA_SSP_LEGACY for legacy SSP API
Eric Miao [Tue, 9 Feb 2010 03:10:10 +0000 (11:10 +0800)]
[ARM] pxa: introduce PXA_SSP_LEGACY for legacy SSP API

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: define zeus_power_off() only when CONFIG_PM enabled
Stefan Schmidt [Tue, 16 Feb 2010 21:42:55 +0000 (22:42 +0100)]
[ARM] pxa: define zeus_power_off() only when CONFIG_PM enabled

Add some safety check for CONFIG_PM around zeus_power_off(). Without
it linking can fail like this:

arch/arm/mach-pxa/built-in.o: In function `zeus_power_off':
e800.c:(.text+0x2bc8): undefined reference to `pxa27x_cpu_suspend'

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Acked-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: enable check_scoop_reg() only if CONFIG_PM is set.
Stefan Schmidt [Tue, 16 Feb 2010 21:41:52 +0000 (22:41 +0100)]
[ARM] pxa: enable check_scoop_reg() only if CONFIG_PM is set.

This function gets only called from scoop_suspend() and scoop_resume() which are
only built in if we have CONFIG_PM set. Make it the same for check_scoop_reg().

This fixes the following warning:
arch/arm/common/scoop.c:143: warning: ‘check_scoop_reg’ defined but not used

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: add support for Embedian MXM-8x10
Edwin Peer [Fri, 5 Feb 2010 16:31:48 +0000 (18:31 +0200)]
[ARM] pxa: add support for Embedian MXM-8x10

Signed-off-by: Edwin Peer <epeer@tmtservices.co.za>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: move board board IRQ definitions out of irqs.h
Eric Miao [Sun, 27 Dec 2009 15:01:25 +0000 (23:01 +0800)]
[ARM] pxa: move board board IRQ definitions out of irqs.h

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] sa1111: allow cascaded IRQs to be used by platforms
Eric Miao [Sat, 26 Dec 2009 08:23:02 +0000 (16:23 +0800)]
[ARM] sa1111: allow cascaded IRQs to be used by platforms

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] sa1111: avoid using hardcoded IRQ numbers for PCMCIA driver
Eric Miao [Sat, 26 Dec 2009 04:32:38 +0000 (12:32 +0800)]
[ARM] sa1111: avoid using hardcoded IRQ numbers for PCMCIA driver

The IRQs for card detect and status change are currently hardcoded in
SA1111 PCMCIA driver, which can be actually obtained from the .irq[]
from 'struct sa1111_dev' to keep it generic.

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] locomo: allow cascaded IRQ base to be specified by platforms
Eric Miao [Fri, 5 Feb 2010 02:07:33 +0000 (18:07 -0800)]
[ARM] locomo: allow cascaded IRQ base to be specified by platforms

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] locomo: remove unused IRQs and avoid unnecessary cascade
Eric Miao [Fri, 25 Dec 2009 04:18:33 +0000 (12:18 +0800)]
[ARM] locomo: remove unused IRQs and avoid unnecessary cascade

IRQ_LOCOMO_* are never used elsewhere, remove these definitions. As well
as the cascade of these IRQs. IRQ_LOCOMO_*_BASE changed to IRQ_LOCOMO_*.

IRQ_LOCOMO_LT and IRQ_LOCOMO_SPI are likely to be used in a same way as
IRQ_LOCOMO_KEY.

IRQ_LOCOMO_GPIO and the demultiplex handler should really be living
somewhere else.

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] locomo: avoid unnecessary cascaded keyboard IRQ
Eric Miao [Fri, 5 Feb 2010 01:13:55 +0000 (17:13 -0800)]
[ARM] locomo: avoid unnecessary cascaded keyboard IRQ

It is not necessary and is over-complicated for IRQ_LOCOMO_KEY to
be a cascaded IRQ of IRQ_LOCOMO_KEY_BASE. Removed and introduced
locomokbd_{open,close} for masking/unmasking of the keyboard IRQ.

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] sa1100: remove unreferenced IRQ definitions
Eric Miao [Wed, 23 Dec 2009 06:52:07 +0000 (14:52 +0800)]
[ARM] sa1100: remove unreferenced IRQ definitions

These IRQ definitions related to LOCOMO are never referenced anywhere,
thus could be safely removed.

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/tosa: make use of the matrix keypad driver
Eric Miao [Fri, 1 Jan 2010 07:28:21 +0000 (15:28 +0800)]
[ARM] pxa/tosa: make use of the matrix keypad driver

Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa/cm-x270: avoid direct access of GPIO/MFP registers
Eric Miao [Mon, 4 Jan 2010 05:34:05 +0000 (13:34 +0800)]
[ARM] pxa/cm-x270: avoid direct access of GPIO/MFP registers

Cc: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: remove now unnecessary pxa_gpio_mode() calls in ac97
Eric Miao [Mon, 4 Jan 2010 09:14:21 +0000 (17:14 +0800)]
[ARM] pxa: remove now unnecessary pxa_gpio_mode() calls in ac97

Now most (if not all) PXA platforms have been switched to the new MFP
API, it's rather safe to remove these unnecessary pxa_gpio_mode() calls
in pxa2xx-ac97-lib.c now.

Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: add the missing AC97 pin configurations
Eric Miao [Mon, 4 Jan 2010 09:00:13 +0000 (17:00 +0800)]
[ARM] pxa: add the missing AC97 pin configurations

Missing AC97 pin configurations are added where pxa_set_ac97_info() are
called for all pxa25x/pxa27x platforms. Where no exact configuration is
provided, use the default as in sound/arm/pxa2xx-ac97-lib.c

Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: introduce processor specific pxa27x_assert_ac97reset()
Eric Miao [Mon, 4 Jan 2010 08:30:58 +0000 (16:30 +0800)]
[ARM] pxa: introduce processor specific pxa27x_assert_ac97reset()

This is really pxa27x specific and should be kept in pxa27x.c. With this
newly introduced function, the original set_resetgpio_mode() is deprecated.

Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: remove the unnecessary restoring of MFP registers
Eric Miao [Mon, 4 Jan 2010 08:26:32 +0000 (16:26 +0800)]
[ARM] pxa: remove the unnecessary restoring of MFP registers

MFP registers are saved and restored by the mfp sys_device before all
other platform devices, and it is unnecessary here.

Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: simplify the LCD pin configuration for pxa27x platforms
Eric Miao [Mon, 4 Jan 2010 03:37:14 +0000 (11:37 +0800)]
[ARM] pxa: simplify the LCD pin configuration for pxa27x platforms

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: simplify the LCD pin configuration for pxa25x platforms
Eric Miao [Mon, 4 Jan 2010 03:25:10 +0000 (11:25 +0800)]
[ARM] pxa: simplify the LCD pin configuration for pxa25x platforms

There are only limited possible LCD pin configurations for pxa25x
platforms, simplify this by macro.

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years ago[ARM] pxa: use chip->ack() instead of accessing GEDR directly
Eric Miao [Fri, 1 Jan 2010 07:29:22 +0000 (15:29 +0800)]
[ARM] pxa: use chip->ack() instead of accessing GEDR directly

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
14 years agoMerge branch 'for-rmk' of git://git.marvell.com/orion into devel-stable
Russell King [Thu, 25 Feb 2010 20:41:34 +0000 (20:41 +0000)]
Merge branch 'for-rmk' of git://git.marvell.com/orion into devel-stable

14 years agoMerge branch 'mxc-master' of git://git.pengutronix.de/git/imx/linux-2.6 into imx...
Uwe Kleine-König [Thu, 25 Feb 2010 13:01:49 +0000 (14:01 +0100)]
Merge branch 'mxc-master' of git://git.pengutronix.de/git/imx/linux-2.6 into imx/master

Removed selection of COMMON_CLKDEV by CONFIG_ARCH_MX5.  This is handled
in 03e09cd8902717b66f940357257d8ad76114d9f2.

arch/arm/plat-mxc/iomux-mx1-mx2.c was moved to
arch/arm/plat-mxc/iomux-v1.c in 5e2e95f520538e095d10456acd28d9107317aa32
and got bug fixed in 5c17ef878fa25e04b1e8f1d8f5fa8b267753472c.  The bug
in arch/arm/plat-mxc/iomux-v1.c isn't present any more since
bac3fcfad565c9bbceeed8b607f140c29df97355, so
arch/arm/plat-mxc/iomux-mx1-mx2.c is simply deleted.

Conflicts:
arch/arm/plat-mxc/Kconfig
arch/arm/plat-mxc/Makefile
arch/arm/plat-mxc/iomux-mx1-mx2.c

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agomx25: move ARCH_MXC_IOMUX_V3 to the ARCH level
Baruch Siach [Wed, 24 Feb 2010 09:31:31 +0000 (11:31 +0200)]
mx25: move ARCH_MXC_IOMUX_V3 to the ARCH level

ARCH_MXC_IOMUX_V3 is not specific to the i.MX25 PDK platform. Thus,
ARCH_MXC_IOMUX_V3 should be selected by ARCH_MX25.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx51_babbage: Fix ckih2 parameter in mx51_clocks_init function
Fabio Estevam [Wed, 17 Feb 2010 20:02:56 +0000 (12:02 -0800)]
mx51_babbage: Fix ckih2 parameter in mx51_clocks_init function

This patch is to be applied into Sascha's mxc-master branch.

Fix ckih2 parameter in mx51_clocks_init funtion. CKIH2 pin is left unconnected on Babbage.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Amit Kucheria <amit.kucheria@canonical.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx31ads: Configure SSI5 pins in IOMUX for PMIC module audio support
Mark Brown [Tue, 23 Feb 2010 11:05:11 +0000 (11:05 +0000)]
mx31ads: Configure SSI5 pins in IOMUX for PMIC module audio support

SSI5 on the CPU is connected to the PMIC module to provide audio support
so unconditionally configure the relevant pins on the CPU to route out
the signals.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoarm/imx/iomux-v1: check for invalid modes in mxc_gpio_mode
Uwe Kleine-König [Mon, 15 Feb 2010 08:47:55 +0000 (09:47 +0100)]
arm/imx/iomux-v1: check for invalid modes in mxc_gpio_mode

mxc_gpio_mode checks for invalid pins and so it returns zero for
success, -EINVAL for invalid pins.

While at it, remove definitions of GPIO_PORT_MAX removed as they are
unused now.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: let platform files include the SoC-specific iomux header
Uwe Kleine-König [Tue, 16 Feb 2010 10:07:49 +0000 (11:07 +0100)]
arm/imx: let platform files include the SoC-specific iomux header

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-v1: rename header file
Uwe Kleine-König [Mon, 15 Feb 2010 20:52:34 +0000 (21:52 +0100)]
arm/imx/iomux-v1: rename header file

Addionally make iomux-mx*.h headers stand-alone and similar to iomux-v3
platform files should include their platform iomux header from now on.
For now iomux.h simply includes all iomux-v1 platform headers and so
provides compatibility until all files are converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/mx25: don't include iomux.h which is for iomux-v1 machines
Uwe Kleine-König [Mon, 15 Feb 2010 20:18:43 +0000 (21:18 +0100)]
arm/mx25: don't include iomux.h which is for iomux-v1 machines

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-mx3.h: unify style and comments
Uwe Kleine-König [Mon, 15 Feb 2010 20:10:39 +0000 (21:10 +0100)]
arm/imx/iomux-mx3.h: unify style and comments

- use __MACH_IOMUX_MX3_H__ as header protector analogous to
  <mach/mx...h>
- use tabs for indention

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-mx2x: unify style
Uwe Kleine-König [Mon, 15 Feb 2010 20:04:17 +0000 (21:04 +0100)]
arm/imx/iomux-mx2x: unify style

- use __MACH_IOMUX_MX2x_H__ as header protector analogous to
  <mach/mx...h>
- use tabs for indention

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-mx27: unify style and comments
Uwe Kleine-König [Mon, 15 Feb 2010 19:56:03 +0000 (20:56 +0100)]
arm/imx/iomux-mx27: unify style and comments

- use __MACH_IOMUX_MX27_H__ as header protector analogous to
  <mach/mx...h>
- use tabs for indention
- fix sorting

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-mx25: unify style and comment cleanup
Uwe Kleine-König [Mon, 15 Feb 2010 19:50:57 +0000 (20:50 +0100)]
arm/imx/iomux-mx25: unify style and comment cleanup

- use __MACH_IOMUX_MX25_H__ as header protector analogous to
  <mach/mx...h>
- remove doxygen comments
- remove #error about mach/iomux.h which is unused on mx25
- remove #ifndef __ASSEMBLY__ which is unneeded here

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-mx21: unify style
Uwe Kleine-König [Mon, 15 Feb 2010 19:46:47 +0000 (20:46 +0100)]
arm/imx/iomux-mx21: unify style

- use __MACH_IOMUX_MX21_H__ as header protector analogous to
  <mach/mx...h>
- use tabs for indention

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-mx1: unify style and comment cleanup
Uwe Kleine-König [Mon, 15 Feb 2010 19:39:59 +0000 (20:39 +0100)]
arm/imx/iomux-mx1: unify style and comment cleanup

- use __MACH_IOMUX_MX1_H__ as header protector analogous to
  <mach/mx...h>
- use tabs for indention

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-v1: make base address a runtime choice
Uwe Kleine-König [Mon, 15 Feb 2010 15:57:09 +0000 (16:57 +0100)]
arm/imx/iomux-v1: make base address a runtime choice

While at it move register modification to static inlines and
so make the relevant code more readable.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/iomux-v1: rename source file and reorganize Kconfig stuff
Uwe Kleine-König [Mon, 15 Feb 2010 08:42:59 +0000 (09:42 +0100)]
arm/imx/iomux-v1: rename source file and reorganize Kconfig stuff

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/dma-v1: protect #ifdef'd blocks additionally by cpu_is_...
Uwe Kleine-König [Wed, 17 Feb 2010 21:17:43 +0000 (22:17 +0100)]
arm/imx/dma-v1: protect #ifdef'd blocks additionally by cpu_is_...

This is necessary for a multi-SoC kernel.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/dma-v1: don't use deprecated symbols DMA_BASE and MXC_INT_DMACH0
Uwe Kleine-König [Wed, 17 Feb 2010 18:37:05 +0000 (19:37 +0100)]
arm/imx/dma-v1: don't use deprecated symbols DMA_BASE and MXC_INT_DMACH0

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: choose sane CONSISTENT_DMA_SIZE if video is enabled for both mx1 and mx3
Uwe Kleine-König [Wed, 17 Feb 2010 20:05:27 +0000 (21:05 +0100)]
arm/imx: choose sane CONSISTENT_DMA_SIZE if video is enabled for both mx1 and mx3

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/irq: order definitions of MXC_GPIO_IRQS numerically
Uwe Kleine-König [Wed, 17 Feb 2010 20:08:00 +0000 (21:08 +0100)]
arm/imx/irq: order definitions of MXC_GPIO_IRQS numerically

This is important for kernels supporting more than one SoC.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: don't depend on ARCH_MXC twice
Uwe Kleine-König [Mon, 15 Feb 2010 16:11:17 +0000 (17:11 +0100)]
arm/imx: don't depend on ARCH_MXC twice

MXC_IRQ_PRIOR, MXC_PWM and ARCH_HAS_RNGA are all defined in an "if
ARCH_MXC" ... "endif" block, so they depend on ARCH_MXC anyhow.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: remove #ifndef CONFIG_COMMON_CLKDEV block
Uwe Kleine-König [Fri, 19 Feb 2010 14:29:26 +0000 (15:29 +0100)]
arm/imx: remove #ifndef CONFIG_COMMON_CLKDEV block

COMMON_CLKDEV is used on all imx platforms, so this isn't used.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: remove MTD_XIP support
Uwe Kleine-König [Fri, 19 Feb 2010 16:08:42 +0000 (17:08 +0100)]
arm/imx: remove MTD_XIP support

This is broken since at least one year when

ec996ba (mxc timer: make compile time independent)

removed the symbol MXC_TCN.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: don't explicitly select GENERIC_GPIO
Uwe Kleine-König [Fri, 19 Feb 2010 15:16:09 +0000 (16:16 +0100)]
arm/imx: don't explicitly select GENERIC_GPIO

ARCH_REQUIRE_GPIOLIB selects GPIOLIB which in turn selects GENERIC_GPIO

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: let ARCH_MXC select COMMON_CLKDEV instead of each subfamily
Uwe Kleine-König [Mon, 15 Feb 2010 16:10:42 +0000 (17:10 +0100)]
arm/imx: let ARCH_MXC select COMMON_CLKDEV instead of each subfamily

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: remove "NO_PAD_CTRL" from Copyright statements
Uwe Kleine-König [Mon, 15 Feb 2010 08:54:46 +0000 (09:54 +0100)]
arm/imx: remove "NO_PAD_CTRL" from Copyright statements

I assume this was introduced by something like

sed -i -e 's/)/, NO_PAD_CTRL)'

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/audmux-v2: use SoC-prefixed names
Uwe Kleine-König [Fri, 12 Feb 2010 21:38:31 +0000 (22:38 +0100)]
arm/imx/audmux-v2: use SoC-prefixed names

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/audmux-v1: use SoC-prefixed names
Uwe Kleine-König [Fri, 12 Feb 2010 21:38:31 +0000 (22:38 +0100)]
arm/imx/audmux-v1: use SoC-prefixed names

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/gpio: remove a BUG_ON in hot path
Uwe Kleine-König [Mon, 8 Feb 2010 20:07:16 +0000 (21:07 +0100)]
arm/imx/gpio: remove a BUG_ON in hot path

Now if the problem occurs that triggered the BUG_ON before, the machine
runs in a NULL pointer dereference.  So it wouldn't be much harder now
to debug the situation if it occured.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/gpio: use fls to find set bits in the irq status register
Uwe Kleine-König [Mon, 8 Feb 2010 20:02:30 +0000 (21:02 +0100)]
arm/imx/gpio: use fls to find set bits in the irq status register

As in most cases only few irqs are pending using fls is more effective
than looping over all bits.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx: use generic_handle_irq instead of open-coding it
Uwe Kleine-König [Mon, 8 Feb 2010 19:34:27 +0000 (20:34 +0100)]
arm/imx: use generic_handle_irq instead of open-coding it

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
Uwe Kleine-König [Fri, 5 Feb 2010 21:14:37 +0000 (22:14 +0100)]
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant

GPIO_INT_LOW_LEV is defined as

(cpu_is_mx1_mx2() ? 0x3 : 0x0)

so depending on compiler optimisation and enabled SoCs this doesn't
qualify as a constant expression as needed by a switch statement.
Ditto for GPIO_INT_HIGH_LEV.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/mx2: split generic.c into mm-imx2[17].c
Uwe Kleine-König [Fri, 5 Feb 2010 21:00:11 +0000 (22:00 +0100)]
arm/mx2: split generic.c into mm-imx2[17].c

This removes some #ifdefs and prepares moving the files in a directory
with more than imx21 and imx27 support.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/mx2/devices: no need for IMX_NEEDS_DEPRECATED_SYMBOLS any more
Uwe Kleine-König [Fri, 5 Feb 2010 16:44:33 +0000 (17:44 +0100)]
arm/mx2/devices: no need for IMX_NEEDS_DEPRECATED_SYMBOLS any more

The previous commits cleaned up arch/arm/mach-mx2/devices.c such that it
doesn't rely on deprecated symbols any more.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/mx2: define seperate gpio port descriptions for imx21 and imx27
Uwe Kleine-König [Fri, 5 Feb 2010 16:40:28 +0000 (17:40 +0100)]
arm/mx2: define seperate gpio port descriptions for imx21 and imx27

As the gpio ports have different addresses on imx21 and imx27 there are
two different port descriptions needed if not relying on the overloaded
cpp macro IO_ADDRESS.  So some cpp magic is added to minimize code
duplication.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoarm/mx2: use per-SOC nand device
Uwe Kleine-König [Thu, 11 Feb 2010 15:31:49 +0000 (16:31 +0100)]
arm/mx2: use per-SOC nand device

The previous commit introduced one nand device per SoC.  Use this
directly instead of the compatibility macro that will break for
multi-SoC kernels.  And while at it remove the compatibility macro now
that all in-tree users are fixed.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years ago[ARM] MV78xx0: Support for Buffalo WXL (Terastation Duo)
Sebastien Requiem [Tue, 23 Feb 2010 13:51:24 +0000 (14:51 +0100)]
[ARM] MV78xx0: Support for Buffalo WXL (Terastation Duo)

* Modification of Kconfig to add the Option
* 1 new file : buffalo-wxl-setup.c
This file is inspired from the db-78xx0-setup.c already present.
The following is done:
  - Configure MPP Lines for the plateform (see my patch for MPP)
This is taken from the stock kernel provided by buffalotech (the vendor)
  - GigaBit Ethernet
  - Sata
  - Uart are initiallized in a different way than on the dev board as we
have one core only.
  - USB

The kernel has been running for some days now on my plateform.

Signed-off-by: Sebastien Requiem <sebastien@kolios.dk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
14 years ago[ARM] MV78XX0: MPP routines and definitions
Sebastien Requiem [Tue, 23 Feb 2010 13:38:14 +0000 (14:38 +0100)]
[ARM] MV78XX0: MPP routines and definitions

This patch is composed of two new files :

- mpp.c which is mainly inspired by the same file as in mach-kirkwood

- mpp.h that is written from the documentation provided by Marvell
http://www.marvell.com/products/processors/embedded/discovery_innovation/HW_MV78100_OpenSource.pdf

Moreover, due to some implementation problem, I have
defined some MPPX_UNUSED that offer developers the possibility
to SET MPP to some unused value (such as for Buffalo WXL).

Note: This patch doesn't support MV78200 yet (only 78100 MPP lines have
been written)

Signed-off-by: Sebastien Requiem <sebastien@kolios.dk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
14 years ago[ARM] eSATA SheevaPlug: correlate MPP to SD CD and SD WP
John Holland [Fri, 19 Feb 2010 22:11:04 +0000 (23:11 +0100)]
[ARM] eSATA SheevaPlug: correlate MPP to SD CD and SD WP

Accept SD CD and SD WP in accordance to
http://plugcomputer.org/data/docs/Sheeva-PowerPlug-V1.3-GTI-090906.pdf
on MPP 47 and 44 respectively on the eSATA SheevaPlug

Signed-off-by: John Holland <john.holland@cellent-fs.de>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
--

14 years ago[ARM] eSATA SheevaPlug: configure SoC SATA interface
John Holland [Fri, 19 Feb 2010 22:11:01 +0000 (23:11 +0100)]
[ARM] eSATA SheevaPlug: configure SoC SATA interface

Enable the kirkwood SATA SoC interface on the eSATA SheevaPlug.

Signed-off-by: John Holland <john.holland@cellent-fs.de>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
--

14 years ago[ARM] eSATA SheevaPlug basic board support
John Holland [Fri, 19 Feb 2010 22:10:58 +0000 (23:10 +0100)]
[ARM] eSATA SheevaPlug basic board support

Allow basic eSATA SheevaPlug board configuration and build.

Signed-off-by: John Holland <john.holland@cellent-fs.de>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
--

14 years agoARM: Update mach-types
Russell King [Sat, 20 Feb 2010 14:16:16 +0000 (14:16 +0000)]
ARM: Update mach-types

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
14 years agoARM: 5951/1: ARM: fix documentation of the PrimeCell bus
Linus Walleij [Sat, 20 Feb 2010 08:41:30 +0000 (09:41 +0100)]
ARM: 5951/1: ARM: fix documentation of the PrimeCell bus

This fixes the filepath encoded in <linux/amba/bus.h> and adds
some documentation as to what this bus really means.

Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
14 years agoARM: 5950/1: ARM: Fix build error for arm1026ej-s processor
Abdoulaye Walsimou Gaye [Fri, 19 Feb 2010 11:47:14 +0000 (12:47 +0100)]
ARM: 5950/1: ARM: Fix build error for arm1026ej-s processor

This patch fix the below build error for arm1026ej-s processor (IntegratorCP/arm1026ej-s board).
  CC      init/main.o
In file included from include/linux/highmem.h:8,
                 from include/linux/pagemap.h:10,
                 from include/linux/mempolicy.h:62,
                 from init/main.c:52:
arch/arm/include/asm/cacheflush.h:134:2: error: #error Unknown cache maintainence model
make[1]: *** [init/main.o] Erreur 1
make: *** [init] Erreur 2

Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
14 years agoMerge branch 'for-rmk' of git://gitorious.org/linux-gemini/mainline
Russell King [Thu, 18 Feb 2010 23:35:24 +0000 (23:35 +0000)]
Merge branch 'for-rmk' of git://gitorious.org/linux-gemini/mainline

14 years agoMAINTAINERS: fix my e-mail and status for Gemini and FA526
Paulius Zaleckas [Thu, 18 Feb 2010 19:54:12 +0000 (21:54 +0200)]
MAINTAINERS: fix my e-mail and status for Gemini and FA526

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
14 years agoGemini: wrong registers used to set reg_level in gpio_set_irq_type()
Roel Kluin [Thu, 18 Feb 2010 19:54:11 +0000 (21:54 +0200)]
Gemini: wrong registers used to set reg_level in gpio_set_irq_type()

It appears the wrong GPIO registers were used

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
14 years agoARM: 5944/1: scsi: fix timer setup in fas216.c
Guennadi Liakhovetski [Thu, 18 Feb 2010 17:07:18 +0000 (18:07 +0100)]
ARM: 5944/1: scsi: fix timer setup in fas216.c

mod_timer() takes an absolute time and not a delay as its argument.

Cc: <stable@kernel.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
14 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Linus Torvalds [Thu, 18 Feb 2010 16:31:14 +0000 (08:31 -0800)]
Merge branch 'for-linus' of git://git./linux/kernel/git/dtor/input

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: add KEY_RFKILL
  Input: i8042 - fix KBC jam during hibernate

14 years agoARM: 5938/1: ARM: L2: export outer_cache_fns
Santosh Shilimkar [Tue, 16 Feb 2010 06:57:43 +0000 (07:57 +0100)]
ARM: 5938/1: ARM: L2: export outer_cache_fns

The 'outer_cache' variable is needed by the outer_inv_range(),
outer_clean_range() and outer_flush_range() functions, which are
declared as inline in asm/cacheflush.h.  Otherwise drivers built
as a loadable module, which access these functions, will have
an undefined symbol.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
14 years agoMerge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux...
Linus Torvalds [Thu, 18 Feb 2010 16:13:39 +0000 (08:13 -0800)]
Merge branch 'release' of git://git./linux/kernel/git/lenb/linux-acpi-2.6

* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
  ACPI: fix "acpi=ht" boot option
  ACPI, i915: blacklist Clevo M5x0N bad_lid state
  ACPI: fix High cpu temperature with 2.6.32
  ACPI: dock: properly initialize local struct dock_station in dock_add()
  ACPI: remove Asus P2B-DS from acpi=ht blacklist
  thinkpad-acpi: wrong thermal attribute_group removed in thermal_exit()
  ACPI: acpi_bus_{scan,bus,add}: return -ENODEV if no device was found
  ACPI: Add NULL pointer check in acpi_bus_start
  ACPI: processor: only evaluate _PDC once per processor
  ACPI: processor: add kernel command line support for early _PDC eval

14 years agoMerge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
Linus Torvalds [Thu, 18 Feb 2010 16:10:21 +0000 (08:10 -0800)]
Merge branch 'drm-linus' of git://git./linux/kernel/git/airlied/drm-2.6

* 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
  drm/radeon/kms: fix bo's fence association
  drm/radeon/kms: fix indirect buffer management V2
  drm/edid: Fix interlaced detailed timings to be frame size, not field.
  drm/vmwgfx: Use fb handover mechanism instead of stealth mode.
  drm/radeon/kms: use udelay for short delays
  drm/nouveau: Force TV encoder DPMS reinit after resume.
  drm/nouveau: use mutex for vbios lock

14 years agoMerge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
Linus Torvalds [Thu, 18 Feb 2010 16:07:54 +0000 (08:07 -0800)]
Merge branch 'merge' of git://git./linux/kernel/git/benh/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
  powerpc/85xx: Fix SMP when "cpu-release-addr" is in lowmem
  powerpc/85xx: Fix oops during MSI driver probe on MPC85xxMDS boards