]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
13 years agoMerge branch 'davinci-next-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilma...
Russell King [Tue, 15 Mar 2011 15:41:15 +0000 (15:41 +0000)]
Merge branch 'davinci-next-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci into devel-stable

13 years agodavinci: DM644x EVM: register MUSB device earlier
Sergei Shtylyov [Sun, 13 Mar 2011 20:06:59 +0000 (20:06 +0000)]
davinci: DM644x EVM: register MUSB device earlier

The MUSB driver doesn't see its platform device on DM644x EVM board anymore
since commit 73b089b052a69020b953312a624a6e1eb5b81fab (usb: musb: split davinci
to its own platform_driver) because the new probe is called as subsys_initcall()
now, and the device is registered later than that by the board code.  Move the
registration to davinci_evm_init() -- it's safe to do so because the MUSB core
device still gets initialized as fs_initcall() -- which is late enough for the
I2C GPIO expander (which controls VBUS) to be initialized.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: add spi devices on tnetv107x evm
Cyril Chemparathy [Tue, 18 Jan 2011 19:21:41 +0000 (19:21 +0000)]
davinci: add spi devices on tnetv107x evm

This patch adds definitions for spi devices on the tnetv107x evm platform.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: add ssp config for tnetv107x evm board
Cyril Chemparathy [Tue, 18 Jan 2011 19:21:40 +0000 (19:21 +0000)]
davinci: add ssp config for tnetv107x evm board

This patch adds SSP configuration and pin muxing info for tnetv107x
evm boards.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: add tnetv107x ssp platform device
Cyril Chemparathy [Tue, 18 Jan 2011 19:21:39 +0000 (19:21 +0000)]
davinci: add tnetv107x ssp platform device

This patch adds an SSP platform device definition for the tnetv107x soc family.
The clock lookup entry has also been updated to match.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agospi: add ti-ssp spi master driver
Cyril Chemparathy [Tue, 18 Jan 2011 19:21:36 +0000 (19:21 +0000)]
spi: add ti-ssp spi master driver

This patch adds an SPI master implementation that operates on top of an
underlying TI-SSP port.

Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agomfd: add driver for sequencer serial port
Cyril Chemparathy [Tue, 18 Jan 2011 19:21:35 +0000 (19:21 +0000)]
mfd: add driver for sequencer serial port

TI's sequencer serial port (TI-SSP) is a jack-of-all-trades type of serial port
device.  It has a built-in programmable execution engine that can be programmed
to operate as almost any serial bus (I2C, SPI, EasyScale, and others).

This patch adds a driver for this controller device.  The driver does not
expose a user-land interface.  Protocol drivers built on top of this layer are
expected to remain in-kernel.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoMerge branch 'for-rmk-devel-stable' of git://git.kernel.org/pub/scm/linux/kernel...
Russell King [Mon, 14 Mar 2011 22:27:03 +0000 (22:27 +0000)]
Merge branch 'for-rmk-devel-stable' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson into devel-stable

13 years agoMerge branch 'davinci-next' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman...
Russell King [Mon, 14 Mar 2011 22:26:30 +0000 (22:26 +0000)]
Merge branch 'davinci-next' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci into devel-stable

13 years agoplat-nomadik: make GPIO interrupts work with cpuidle ApSleep
Rabin Vincent [Thu, 10 Feb 2011 06:15:58 +0000 (11:45 +0530)]
plat-nomadik: make GPIO interrupts work with cpuidle ApSleep

Enable wakeups by default for any GPIO interrupts and in the suspend/resume
path narrow this down to only the the real wakeup interrupts. This approach is
based on the assumption that cpuidle ApSleep will be entered more often than
system suspend.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
[Fixup for genirq changes to struct irq_data on 2.6.38]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-u300: define a dummy filter function for coh901318
Linus Walleij [Mon, 27 Sep 2010 15:40:22 +0000 (17:40 +0200)]
mach-u300: define a dummy filter function for coh901318

All platform data has to be made conditional on
as to avoid cluttering the code with other #ifdef:s.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: basic HREFv60 support v2
Linus Walleij [Tue, 15 Feb 2011 14:01:35 +0000 (15:01 +0100)]
mach-ux500: basic HREFv60 support v2

The HREFv60 variant of the MOP500 family of boards remove the
external GPIO expander and route these pins back to some of the
readily available internal GPIO pins instead.

Based on a patch by Bibek Basu <bibek.basu@stericsson.com> for
an internal kernel version.

Cc: Bibek Basu <bibek.basu@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add hrefv60 GPIO pins
Bibek Basu [Tue, 15 Feb 2011 09:46:59 +0000 (10:46 +0100)]
mach-ux500: add hrefv60 GPIO pins

This will centralize all GPIO pin muxing for the different boards
in the MOP500 family to a single file. It also kills off the
deprecated support for the ED (Early Drop) ASIC, this should
never be spotted in the open and ST-Ericsson have internally
deprecated this hardware.

Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
[Rebasing and kill old ASIC support]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: move MOP500 pins to separate file
Rabin Vincent [Sat, 12 Feb 2011 00:07:21 +0000 (17:07 -0700)]
mach-ux500: move MOP500 pins to separate file

Split off pin definitions for the MOP500 board family to its
own file.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: fix compilation warning
Linus Walleij [Wed, 16 Feb 2011 09:37:52 +0000 (10:37 +0100)]
plat-nomadik: fix compilation warning

The compiler warns that [rf]wimsc may be used uninitialized in
this function - the warning is actually false since the uses are
in identical if()-clauses, but it can't hurt very much to read
out the values to be modified early anyway and rid the warning.

Cc: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: get rid of unused GPIO PM code
Rabin Vincent [Thu, 10 Feb 2011 03:59:53 +0000 (09:29 +0530)]
plat-nomadik: get rid of unused GPIO PM code

The NOMADIK_GPIO_PM config option is disabled by default, not user visible,
and never selected by any other option: the code is therefore unused. The
GPIO registers need not be saved and restored since their values are
preserved when vAPE (on DB8500) is powered down.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: change sleep/wakeup setting in GPIO SLPM register
Rikard Olsson [Mon, 3 Jan 2011 13:30:41 +0000 (14:30 +0100)]
plat-nomadik: change sleep/wakeup setting in GPIO SLPM register

This patch fixes a bug when setting SLPM register for DB8500.
When calling__nmk_gpio_set_slpm(...) offset to GPIO is now used
instead of the GPIO number itself.

Signed-off-by: Rikard Olsson <rikard.p.olsson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: implement safe switch sequence for Alt-C
Rabin Vincent [Mon, 13 Dec 2010 06:32:40 +0000 (12:02 +0530)]
plat-nomadik: implement safe switch sequence for Alt-C

Setting pinmux alternative C for a GPIO pin is actually not
so easy since it ivolves setting value "1" in two registers,
and since the combined result will take effect for intermediate
values (01 or 10) this will cause glitches while you wrote one
register but have not yet written the other.

This patch implements a series of kludges including an optional
machine-specific callback to avoid glitches when changing pin
mux mode to alternative C.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: set altfunc to GPIO when enabling the sleep config
Rabin Vincent [Thu, 25 Nov 2010 06:08:27 +0000 (11:38 +0530)]
plat-nomadik: set altfunc to GPIO when enabling the sleep config

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: type secondary IRQ correctly
Virupax Sadashivpetimath [Thu, 11 Nov 2010 08:40:38 +0000 (14:10 +0530)]
plat-nomadik: type secondary IRQ correctly

Coverity found that we were checking an unsigned variable for
>= zero. Type it correctly so that the check works as intended.

Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: pull-up/down settings for GPIO resume
Jonas Aaberg [Wed, 13 Oct 2010 11:14:17 +0000 (13:14 +0200)]
plat-nomadik: pull-up/down settings for GPIO resume

Suspend/resume didn't take care of pull-up and pull-down
settings and writing back the DAT register at resume can
change pull up/down settings, depending on pin input value.
Output values are now also restored.

Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: support secondary GPIO interrupts
Rabin Vincent [Thu, 14 Oct 2010 05:08:03 +0000 (10:38 +0530)]
plat-nomadik: support secondary GPIO interrupts

When GPIOs wake up the system from sleep mode, the normal GPIO interrupt
handler does not hit and the normal interrupt status register does not
contain the status. Instead the secondary GPIO handler does, and the
interrupt status needs to be retrieved from the wakeup status saved by
the suspend/resume code.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: implement suspend/resume for GPIO
Rabin Vincent [Wed, 17 Mar 2010 09:49:04 +0000 (15:19 +0530)]
plat-nomadik: implement suspend/resume for GPIO

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: add custom dbg_show for GPIO
Rabin Vincent [Thu, 4 Mar 2010 12:09:05 +0000 (17:39 +0530)]
plat-nomadik: add custom dbg_show for GPIO

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoplat-nomadik: support varying number of GPIOs per block
Rabin Vincent [Thu, 18 Mar 2010 07:05:22 +0000 (12:35 +0530)]
plat-nomadik: support varying number of GPIOs per block

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
[Added constant 32-pin assignment in platform data]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: config Ux500 PL011 PL022 PL180 for DMA
Linus Walleij [Thu, 14 Oct 2010 11:57:59 +0000 (13:57 +0200)]
mach-ux500: config Ux500 PL011 PL022 PL180 for DMA

This will configure the platform data for the PL011, PL022
and PL180 (derivate) PrimeCells found in the Ux500 to use DMA
with the generic DMA engine for DMA40.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-u300: config U300 PL180 PL011 PL022 for DMA
Linus Walleij [Fri, 13 Aug 2010 09:31:59 +0000 (11:31 +0200)]
mach-u300: config U300 PL180 PL011 PL022 for DMA

This will configure the platform data for the PL180, PL011 and
PL022 PrimeCells found in the U300 to use DMA with the generic
PrimeCell DMA engine for COH 901 318.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-u300: use mmci driver for GPIO card detect
Linus Walleij [Wed, 2 Feb 2011 13:41:19 +0000 (14:41 +0100)]
mach-u300: use mmci driver for GPIO card detect

The mmci driver can handle a GPIO pin for card detect, using
IRQs and all just fine, so switch to using that. Delete the
old bogus input device hack, if userspace need to detect
MMC cards it should use udev like everyone else.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add MUSB to db5500 devices
Mian Yousaf Kaukab [Fri, 21 Jan 2011 17:24:19 +0000 (18:24 +0100)]
mach-ux500: add MUSB to db5500 devices

- DMA tx and rx maps for usb channels are set to be configured at
  runtime
- MUSB is enabled with soc specific base address, irq and dma
  configurations

Signed-off-by: Mian Yousaf Kaukab <mian-yousaf.kaukab@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add MUSB to db8500 devices
Mian Yousaf Kaukab [Fri, 21 Jan 2011 17:21:50 +0000 (18:21 +0100)]
mach-ux500: add MUSB to db8500 devices

- DMA tx and rx maps for usb channels are set to be configured at
  runtime
- GPIO configurations for usb are added
- MUSB is enabled with soc specific base address, irq and dma
  configurations

Signed-off-by: Mian Yousaf Kaukab <mian-yousaf.kaukab@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: update MUSB clock configurations
Mian Yousaf Kaukab [Fri, 21 Jan 2011 17:05:40 +0000 (18:05 +0100)]
mach-ux500: update MUSB clock configurations

MUSB driver has been updated to separate out BSP layer
from its generic parts, as separate driver. This patch
configures the clock with the new platform driver name.

Signed-off-by: Mian Yousaf Kaukab <mian-yousaf.kaukab@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add platform data for musb
Mian Yousaf Kaukab [Fri, 21 Jan 2011 16:59:56 +0000 (17:59 +0100)]
mach-ux500: add platform data for musb

USB resources and DMA40 configurations are dynamically with
the data provided in ux500_add_usb() call. Though only DMA40
configurations differ between U8500 and U5500 (USB resource
are common between them).

Signed-off-by: Mian Yousaf Kaukab <mian-yousaf.kaukab@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: fix inverted SD-card GPIO pin
Philippe Langlais [Thu, 27 Jan 2011 13:35:37 +0000 (14:35 +0100)]
mach-ux500: fix inverted SD-card GPIO pin

The levelshifter pins were set to inverted values, fix this up.

Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: set sd/mmc clock rate to 100MHz
Philippe Langlais [Thu, 27 Jan 2011 13:37:07 +0000 (14:37 +0100)]
mach-ux500: set sd/mmc clock rate to 100MHz

The clock speed for the SD/MMC clock was incorrect, rectify it.

Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: Add Rohm BH1780GLI Light Sensor to i2c_board_info
Lee Jones [Thu, 13 Jan 2011 14:41:22 +0000 (14:41 +0000)]
mach-ux500: Add Rohm BH1780GLI Light Sensor to i2c_board_info

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: platform data for LP5521 leds driver
Philippe Langlais [Wed, 12 Jan 2011 10:26:20 +0000 (11:26 +0100)]
mach-ux500: platform data for LP5521 leds driver

Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: platform data for SFH7741 proximity sensor driver
Philippe Langlais [Fri, 14 Jan 2011 09:53:59 +0000 (10:53 +0100)]
mach-ux500: platform data for SFH7741 proximity sensor driver

Proximity sensor is managed as an input event (SW_PROXIMITY).

Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
[Named GPIO pin]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: delete old keypad board file
Linus Walleij [Fri, 21 Jan 2011 09:50:08 +0000 (10:50 +0100)]
mach-ux500: delete old keypad board file

We register keypads per-UIB now, remove this.

Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add U8500 UIB platform data
Sundar Iyer [Fri, 21 Jan 2011 05:26:18 +0000 (10:56 +0530)]
mach-ux500: add U8500 UIB platform data

The U8500 UIB contains a Synaptics RMI touchpanel and
a matrix keyboard via the TC35893 port expander device.

Signed-off-by: Sundar Iyer <sundar.iyer@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add ST-UIB platform data
Sundar Iyer [Fri, 21 Jan 2011 05:26:17 +0000 (10:56 +0530)]
mach-ux500: add ST-UIB platform data

The ST-UIB contains a matrix keypad interfaced with the
STMPE1601 port expander and a ROHM BU2101 touch panel.

Signed-off-by: Sundar Iyer <sundar.iyer@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: dynamic UIB (user interface boards) detection
Rabin Vincent [Fri, 21 Jan 2011 05:26:16 +0000 (10:56 +0530)]
mach-ux500: dynamic UIB (user interface boards) detection

Add support for dynamic detection of the UIB used (at the cost of one i2c error
on the lesser-used UIB) and also provide an override via a command line
parameter if needed.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Sundar Iyer <sundar.iyer@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: fix ux500 build error
Sundar Iyer [Fri, 21 Jan 2011 05:26:15 +0000 (10:56 +0530)]
mach-ux500: fix ux500 build error

Include ab8500 regulators for DB8500 SoC by default
and fix build issues

Signed-off-by: Sundar Iyer <sundar.iyer@stericsson.com>
[Small fixup for changed boardfiles]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add a few AB8500 regulator consumers v3
Linus Walleij [Thu, 2 Dec 2010 16:10:14 +0000 (17:10 +0100)]
mach-ux500: add a few AB8500 regulator consumers v3

Try to make the regulators a little bit more useful by adding some
of the most basic consumers we're going to have in the end.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Rabin Vincent <rabin@rab.in>
Cc: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
Cc: Bengt Jonsson <bengt.g.jonsson@stericsson.com>
Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agomach-ux500: add DB5500 PMU resources
Linus Walleij [Fri, 21 Jan 2011 08:19:05 +0000 (09:19 +0100)]
mach-ux500: add DB5500 PMU resources

This adds the PMU resources necessary to get perf working with
the DB5500 ASIC.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
13 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux...
Russell King [Sat, 12 Mar 2011 20:33:51 +0000 (20:33 +0000)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-tcc into devel-stable

13 years agodavinci: macro rename DA8XX_LPSC0_DMAX to DA8XX_LPSC0_PRUSS.
Subhasish Ghosh [Mon, 7 Mar 2011 14:06:57 +0000 (14:06 +0000)]
davinci: macro rename DA8XX_LPSC0_DMAX to DA8XX_LPSC0_PRUSS.

DMAX is an internal name for the module which is
known as PRUSS in TI public documentation. This patch just
gets the code in sync with TI documentation.

Signed-off-by: Subhasish Ghosh <subhasish@mistralsolutions.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: DA850 EVM: kill useless variable
Sergei Shtylyov [Fri, 25 Feb 2011 06:56:36 +0000 (12:26 +0530)]
davinci: DA850 EVM: kill useless variable

Commit 75e2ea643fe43d5aa836475acee5bd97cd9ea4bf (davinci: DA850/OMAP-L138 EVM
expander setup and UI card detection) introduced a useless variable: it's
always set to 1 before it's checked in da850_evm_setup_nor_nand()...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: add spi devices support for da830/omap-l137/am17x evm
Sekhar Nori [Thu, 24 Feb 2011 05:23:27 +0000 (10:53 +0530)]
davinci: add spi devices support for da830/omap-l137/am17x evm

This patch adds the on-board SPI flash device to the
DA830/OMAP-L137/AM17x EVM. It also registers the SPI flash
device to the MTD subsystem.

Based on SPI flash device support for MityDSP-L138F platform.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
[michael.williamson@criticallink.com: moved da830evm_spi0_pdata to devices-da8xx.c]
[michael.williamson@criticallink.com: moved da830evm_init_spi0 to devices-da8xx.c]
Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: add spi devices support for da850/omap-l138/am18x evm
Sekhar Nori [Thu, 24 Feb 2011 05:09:27 +0000 (10:39 +0530)]
davinci: add spi devices support for da850/omap-l138/am18x evm

This patch adds the on-board SPI flash device to the
DA850/OMAP-L138/AM18x EVM. It also registers the SPI flash
device to the MTD subsystem.

Based on SPI flash device support for MityDSP-L138F platform.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
[michael.williamson@criticallink.com: moved da850_evm_spi1_pdata to devices-da8xx.c]
[michael.williamson@criticallink.com: moved da850evm_init_spi1 to devices-da8xx.c]
Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: add spi devices support for MityDSP-L138/MityARM-1808 platform
Michael Williamson [Thu, 24 Feb 2011 04:52:47 +0000 (10:22 +0530)]
davinci: add spi devices support for MityDSP-L138/MityARM-1808 platform

This patch adds support for accessing the on board SPI NOR FLASH
device for MityDSP-L138 and MityARM-1808 SoMs.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Tested-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: da8xx: add spi resources and registration routine
Michael Williamson [Thu, 24 Feb 2011 04:48:28 +0000 (10:18 +0530)]
davinci: da8xx: add spi resources and registration routine

Add IO resource structures, platform data, and a registration
routine in order to support spi device on DA850/OMAP-L138/AM18x
and DA830/OMAP-L137/AM17x platforms.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: da850: add spi device clock definitions
Michael Williamson [Tue, 22 Feb 2011 13:37:00 +0000 (13:37 +0000)]
davinci: da850: add spi device clock definitions

Add spi clock information for da850.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: da830: fix driver name for spi clocks
Michael Williamson [Tue, 22 Feb 2011 13:36:59 +0000 (13:36 +0000)]
davinci: da830: fix driver name for spi clocks

The spi driver name called out for the da830 spi clock list is not correct,
fix it.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: da8xx: clean up magic numbers in devices-da8xx.c
Michael Williamson [Tue, 22 Feb 2011 13:36:57 +0000 (13:36 +0000)]
davinci: da8xx: clean up magic numbers in devices-da8xx.c

Extract magic numbers from DMA resource initializers to #defines.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agodavinci: remove unused DA830_edma_ch enum
Michael Williamson [Tue, 22 Feb 2011 13:36:56 +0000 (13:36 +0000)]
davinci: remove unused DA830_edma_ch enum

The DA830_edma_ch enum set is not used.  Remove it.

Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
13 years agoarm: tcc8k: Fix bus clock calculation
Oskar Schirmer [Thu, 17 Feb 2011 15:43:02 +0000 (16:43 +0100)]
arm: tcc8k: Fix bus clock calculation

There are two dividers used to derive bus clock from system clock:
system clock is divided by SCKDIV+1, then by BCKDIV+1. SCKDIV divider
has been ignored up to now, which is no problem as long as it is 0.

Take SCKDIV into account for bus clock calculation.

Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Cc: bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 years agoarm: tcc8k: Fix indent, coding syle
Oskar Schirmer [Thu, 17 Feb 2011 15:43:01 +0000 (16:43 +0100)]
arm: tcc8k: Fix indent, coding syle

Remove double definition of ACLKUSBH, change parameter name in
root_clk_disable, as there is no reason to have a different name than
in root_clk_enable.

No functional change.

Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Cc: bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 years agoarm: tcc8k: Avoid reading clock register twice
Oskar Schirmer [Thu, 17 Feb 2011 15:43:00 +0000 (16:43 +0100)]
arm: tcc8k: Avoid reading clock register twice

There is no reason why in case of PLL2 the configuration register
should be read twice, while for PLL0/1 using the value previously read
is used. Do the same for PLL2.

Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Cc: bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 years agoarm: tcc8k: Fix clock rate calculation
Hans J. Koch [Thu, 17 Feb 2011 15:42:59 +0000 (16:42 +0100)]
arm: tcc8k: Fix clock rate calculation

The calculation of the best divider value for a requested clock rate
always returned a value that was slightly too large. It was also not
protected against possible divisions by zero.

Request for very low, but non zero rates would cause the ACLK divisor
field to overflow. Catch this situation by using the maximum value.

The internal function aclk_set_rate() calculates the correct divider
value, but doesn't write it back to the register. Add the write back.

Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Cc: bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 years agoarm: tcc8k: Choose PLL settings conforming to board layout
Oskar Schirmer [Thu, 17 Feb 2011 15:42:58 +0000 (16:42 +0100)]
arm: tcc8k: Choose PLL settings conforming to board layout

The evaluation board is driven with 1.2V core voltage, so system clock
must not exceed 192 MHz, bus clock must not exceed 110 MHz. Choose
appropriate values and set DTCMWAIT accordingly. Adapt UART setting to
avoid console log interruption and wait for the specified locking time
of 300us to pass.

Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Cc: bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 years agoarm: tcc8k: Add missing include
Oskar Schirmer [Thu, 17 Feb 2011 15:42:51 +0000 (16:42 +0100)]
arm: tcc8k: Add missing include

If NAND is enabled we better have the include around.

Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 years agoMerge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable
Russell King [Thu, 10 Mar 2011 13:53:29 +0000 (13:53 +0000)]
Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6 into devel-stable

13 years agoarm: imx: Zero entire imxdma structure
Ilia Mirkin [Sun, 20 Feb 2011 22:10:51 +0000 (17:10 -0500)]
arm: imx: Zero entire imxdma structure

The semantic match that finds the problem:
// <smpl>
@@
type T;
identifier x;
@@

T *x;
...
* memset(x, ..., ... * sizeof(x) * ...);
// </smpl>

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agomx51 enchance the sd/mmc HW timing compatibility on mx51 boards.
Richard Zhu [Thu, 10 Mar 2011 06:15:46 +0000 (14:15 +0800)]
mx51 enchance the sd/mmc HW timing compatibility on mx51 boards.

Some cards have the CRC errors in read on mx51 BBG board.
Configure the eSDHC pad configurations to level up the
compatibility to fix this issue.

Signed-off-by: Richard Zhu <Hong-Xing.Zhu@freescale.com>
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxs/mx28evk: add framebuffer device
Shawn Guo [Tue, 8 Mar 2011 10:51:10 +0000 (18:51 +0800)]
ARM: mxs/mx28evk: add framebuffer device

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mx28: set proper parent for lcdif clock
Shawn Guo [Tue, 8 Mar 2011 10:51:09 +0000 (18:51 +0800)]
ARM: mx28: set proper parent for lcdif clock

Most likely, the LCD panel on mx28 platform will require a pixel
clock higher than ref_xtal_clk (24 MHz), so the patch initializes
the parent of lcdif clock as ref_pix_clk.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: imx/mx25: dynamically allocate pwm devices
Baruch Siach [Mon, 7 Mar 2011 13:19:11 +0000 (15:19 +0200)]
ARM: imx/mx25: dynamically allocate pwm devices

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: imx/mx25: fix (again) spi device registration typo
Baruch Siach [Mon, 7 Mar 2011 10:18:55 +0000 (12:18 +0200)]
ARM: imx/mx25: fix (again) spi device registration typo

This typo was fixed in 46e3f30 (mx25: fix spi device registration typo), but a
the merge at 0e44e059 (Merge commit 'v2.6.37-rc4' into imx-for-2.6.38) resolved
the merge conflict wrongly.

Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agomach-mx31_3ds: Add support for the camera device on the personality board
Alberto Panizzo [Mon, 7 Mar 2011 10:47:37 +0000 (11:47 +0100)]
mach-mx31_3ds: Add support for the camera device on the personality board

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agomach-mx31_3ds: Add support for framebuffer and LCD
Alberto Panizzo [Mon, 7 Mar 2011 10:46:38 +0000 (11:46 +0100)]
mach-mx31_3ds: Add support for framebuffer and LCD

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agomach-mx31_3ds: Add support for the MMC slot of the personality board
Alberto Panizzo [Mon, 7 Mar 2011 10:45:07 +0000 (11:45 +0100)]
mach-mx31_3ds: Add support for the MMC slot of the personality board

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agospi_imx: Fix misspelled configuration variable SOC_IMX31
Alberto Panizzo [Mon, 7 Mar 2011 10:44:13 +0000 (11:44 +0100)]
spi_imx: Fix misspelled configuration variable SOC_IMX31

This fix a kernel NULL pointer error while initialising SPI introduced
by: 4d2f13be1e370a670c1cae20c194d5ce961e0fa5

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxs/mx28evk: add flexcan devices
Shawn Guo [Thu, 3 Mar 2011 14:13:38 +0000 (22:13 +0800)]
ARM: mxs/mx28evk: add flexcan devices

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoLinux 2.6.38-rc8 v2.6.38-rc8
Linus Torvalds [Tue, 8 Mar 2011 05:09:37 +0000 (21:09 -0800)]
Linux 2.6.38-rc8

13 years agoMerge branch 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Tue, 8 Mar 2011 04:46:39 +0000 (20:46 -0800)]
Merge branch 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung

* 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung:
  ARM: S3C64XX: Update regulator names for debugfs compatiblity on SMDK6410
  ARM: S3C64XX: Fix build with WM1190 disabled and WM1192 enabled on SMDK6410
  ARM: S3C64XX: Reduce output of s3c64xx_dma_init1()
  ARM: S3C64XX: Tone down SDHCI debugging
  ARM: S3C64XX: Add clock for i2c1
  ARM: S3C64XX: Staticise non-exported GPIO to interrupt functions
  ARM: SAMSUNG: Include devs.h in dev-uart.c to prototype devices
  ARM: S3C64XX: Fix keypad setup to configure correct number of rows
  ARM: S3C2440: Fix usage gpio bank j pin definitions on GTA02
  ARM: S5P64X0: Fix number of GPIO lines in Bank F
  ARM: S3C2440: Select missing S3C_DEV_USB_HOST on GTA02

13 years agoMerge branch 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds [Tue, 8 Mar 2011 04:45:42 +0000 (20:45 -0800)]
Merge branch 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm

* 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm:
  davinci: cpufreq: fix section mismatch warning
  DaVinci: fix compilation warnings in <mach/clkdev.h>
  davinci: tnetv107x: fix register indexing for GPIOs numbers > 31
  davinci: da8xx/omap-l1x: add platform device for davinci-pcm-audio
  ARM: pxa/tosa: register wm9712 codec device
  ARM: pxa: enable pxa-pcm-audio on pxa210/pxa25x platform
  ARM: pxa/colibri: don't register pxa2xx-pcmcia nodes on non-colibri platforms
  ARM: pxa/tosa: drop setting LED trigger name, as it's unsupported now
  ARM: 6762/1: Update number of VIC for S5P6442 and S5PC100
  ARM: 6761/1: Update number of VIC for S5PV210
  ARM: 6768/1: hw_breakpoint: ensure debug logic is powered up on v7 cores
  ARM: 6767/1: ptrace: fix register indexing in GETHBPREGS request
  ARM: 6765/1: remove obsolete comment from asm/mach/arch.h
  ARM: 6757/1: fix tlb.h induced linux/swap.h build failure

13 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc
Linus Torvalds [Tue, 8 Mar 2011 04:45:12 +0000 (20:45 -0800)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc:
  mmc: sdio: Allow sdio operations in other threads during sdio_add_func()

13 years agoMerge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
Linus Torvalds [Tue, 8 Mar 2011 04:43:55 +0000 (20:43 -0800)]
Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6

* 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
  drm: index i shadowed in 2nd loop
  drm/nv50-nvc0: prevent multiple vm/bar flushes occuring simultanenously
  drm/nouveau: fix regression causing ttm to not be able to evict vram
  drm/i915: Rebind the buffer if its alignment constraints changes with tiling
  drm/i915: Disable GPU semaphores by default
  drm/i915: Do not overflow the MMADDR write FIFO
  Revert "drm/i915: fix corruptions on i8xx due to relaxed fencing"

13 years agodrm: index i shadowed in 2nd loop
roel [Mon, 7 Mar 2011 17:00:34 +0000 (18:00 +0100)]
drm: index i shadowed in 2nd loop

Index i was already used in thhe first loop

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agommc: sdio: Allow sdio operations in other threads during sdio_add_func()
Dmitry Shmidt [Thu, 3 Mar 2011 22:40:10 +0000 (17:40 -0500)]
mmc: sdio: Allow sdio operations in other threads during sdio_add_func()

This fixes a bug introduced by 807e8e40673d ("mmc: Fix sd/sdio/mmc
initialization frequency retries") that prevented SDIO drivers from
performing SDIO commands in their probe routines -- the above patch
called mmc_claim_host() before sdio_add_func(), which causes a deadlock
if an external SDIO driver calls sdio_claim_host().

Fix tested on an OLPC XO-1.75 with libertas on SDIO.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Reviewed-and-Tested-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
13 years agoMerge remote branch 'ickle/drm-intel-fixes' into drm-fixes
Dave Airlie [Mon, 7 Mar 2011 21:18:35 +0000 (07:18 +1000)]
Merge remote branch 'ickle/drm-intel-fixes' into drm-fixes

* ickle/drm-intel-fixes:
  drm/i915: Rebind the buffer if its alignment constraints changes with tiling
  drm/i915: Disable GPU semaphores by default
  drm/i915: Do not overflow the MMADDR write FIFO
  Revert "drm/i915: fix corruptions on i8xx due to relaxed fencing"

13 years agoMerge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Mon, 7 Mar 2011 21:15:02 +0000 (13:15 -0800)]
Merge branch 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6

* 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
  omap: mailbox: resolve hang issue
  OMAP2+: PM: SmartReflex: fix memory leaks in Smartreflex driver
  arm: mach-omap2: smartreflex: fix another memory leak

13 years agoMerge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
Linus Torvalds [Mon, 7 Mar 2011 21:14:19 +0000 (13:14 -0800)]
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6

* 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
  [S390] tape: deadlock on system work queue
  [S390] keyboard: integer underflow bug
  [S390] xpram: remove __initdata attribute from module parameters

13 years agodrm/nv50-nvc0: prevent multiple vm/bar flushes occuring simultanenously
Ben Skeggs [Mon, 7 Mar 2011 07:18:04 +0000 (17:18 +1000)]
drm/nv50-nvc0: prevent multiple vm/bar flushes occuring simultanenously

The per-vm mutex doesn't prevent this completely, a flush coming from the
BAR VM could potentially happen at the same time as one for the channel
VM.  Not to mention that if/when we get per-client/channel VM, this will
happen far more frequently.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agodrm/nouveau: fix regression causing ttm to not be able to evict vram
Ben Skeggs [Mon, 7 Mar 2011 07:18:03 +0000 (17:18 +1000)]
drm/nouveau: fix regression causing ttm to not be able to evict vram

TTM assumes an error condition from man->func->get_node() means that
something went horribly wrong, and causes it to bail.

The driver is supposed to return 0, and leave mm_node == NULL to
signal that it couldn't allocate any memory.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agoARM: mxs: make ssp error irq definition consistent
Shawn Guo [Mon, 21 Feb 2011 10:42:55 +0000 (18:42 +0800)]
ARM: mxs: make ssp error irq definition consistent

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxs: add dma device
Shawn Guo [Tue, 22 Feb 2011 13:36:27 +0000 (21:36 +0800)]
ARM: mxs: add dma device

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxs: add dma channel definitions
Shawn Guo [Mon, 21 Feb 2011 10:31:45 +0000 (18:31 +0800)]
ARM: mxs: add dma channel definitions

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxs/mx23evk: add framebuffer device
Shawn Guo [Sat, 5 Mar 2011 16:40:22 +0000 (00:40 +0800)]
ARM: mxs/mx23evk: add framebuffer device

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxs: fix typo "GPO" in iomux-mx23.h
Shawn Guo [Sat, 5 Mar 2011 16:40:21 +0000 (00:40 +0800)]
ARM: mxs: fix typo "GPO" in iomux-mx23.h

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxs: add helper macro for pad control
Shawn Guo [Sat, 5 Mar 2011 16:40:19 +0000 (00:40 +0800)]
ARM: mxs: add helper macro for pad control

This patch is to add pad control helper macro to make the code easy
to read.  The need is being seen when adding pad definitions for
LCDIF which gets ~30 pads to define.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mxc91231: select MXC_AVIC
Uwe Kleine-König [Thu, 3 Mar 2011 21:36:57 +0000 (22:36 +0100)]
ARM: mxc91231: select MXC_AVIC

This fixes:

arch/arm/kernel/built-in.o: In function `__irq_svc':
io.c:(.text+0x2e0): undefined reference to `avic_base'
arch/arm/kernel/built-in.o: In function `__irq_usr':
io.c:(.text+0x4c8): undefined reference to `avic_base'
arch/arm/mach-mxc91231/built-in.o: In function `mxc91231_init_irq':
magx-zn5.c:(.init.text+0x18): undefined reference to `mxc_init_irq'

and was broken by

c7259df (ARM i.MX irq: Compile avic irq code only on SoCs that need it)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: imx3x: clean up ARCH_MX3X
Richard Zhao [Thu, 3 Mar 2011 08:40:03 +0000 (16:40 +0800)]
ARM: imx3x: clean up ARCH_MX3X

Move to SOC_SOC_IMX3X.
Leave ARCH_MX31/35 definitions there, in case some place prevent multi-soc
single image.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: imx5x: clean up ARCH_MX5X
Richard Zhao [Thu, 3 Mar 2011 08:40:02 +0000 (16:40 +0800)]
ARM: imx5x: clean up ARCH_MX5X

Move to SOC_SOC_IMX5X. Leave only places which prevent multi-soc
using ARCH_MX5X.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM i.MX: introduce imx_otg_ulpi_create to create ULPI transceivers
Sascha Hauer [Wed, 2 Mar 2011 08:27:42 +0000 (09:27 +0100)]
ARM i.MX: introduce imx_otg_ulpi_create to create ULPI transceivers

The boards are currently using otg_ulpi_create and mxc_ulpi_access_ops,
both are only present if CONFIG_USB_ULPI is set. To remove the need of
ifdefs in the board code introduce a imx_otg_ulpi_create functions
which expands to a static inline function if compiled without ulpi.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM i.MX31 lilly: remove incomplete otg support
Sascha Hauer [Wed, 2 Mar 2011 09:10:14 +0000 (10:10 +0100)]
ARM i.MX31 lilly: remove incomplete otg support

The platform data for the otg port is present but never used, so
remove it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Daniel Mack <daniel@caiaq.de>
13 years agoARM i.MX: iomux v1 initialization away from initcall
Sascha Hauer [Thu, 17 Feb 2011 14:08:12 +0000 (15:08 +0100)]
ARM i.MX: iomux v1 initialization away from initcall

This saves us from soc level dispatching in generic files

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM i.MX: Move gpio initialization to SoC specific files
Sascha Hauer [Thu, 17 Feb 2011 13:43:48 +0000 (14:43 +0100)]
ARM i.MX: Move gpio initialization to SoC specific files

This saves us from soc level dispatching in generic files

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoMX1: Add structure, registration functions for framebuffer and rename LCDC INT
Gwenhael Goavec-Merou [Wed, 2 Mar 2011 08:11:05 +0000 (08:11 +0000)]
MX1: Add structure, registration functions for framebuffer and rename LCDC INT

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
13 years agoARM: mx5/mx53_evk: Fix IOMUX for UART3
Fabio Estevam [Wed, 2 Mar 2011 16:30:53 +0000 (13:30 -0300)]
ARM: mx5/mx53_evk: Fix IOMUX for UART3

On mx53_evk board only RX/TX pins are used on UART3.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>