profile/ivi/kernel-x86-ivi.git
14 years agomxc: add common debug board for 3-stack platforms
Jason Wang [Thu, 24 Jun 2010 13:11:28 +0000 (21:11 +0800)]
mxc: add common debug board for 3-stack platforms

The debug board is little different for all mxc 3-stack(PDK)
platforms, it is possible here to add a common implementation to
support this board.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoMerge branch 'imx/for-2.6.36' of git://git.pengutronix.de/git/ukl/linux-2.6 into...
Uwe Kleine-König [Wed, 30 Jun 2010 10:16:24 +0000 (12:16 +0200)]
Merge branch 'imx/for-2.6.36' of git://git.pengutronix.de/git/ukl/linux-2.6 into HEAD

There are some more conflicts than detected by git, namely support for
the newly added cpuimx machines needed to be converted to dynamic device
registration.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Conflicts:
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/devices.c
arch/arm/mach-imx/devices.h
arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
arch/arm/mach-mx2/Kconfig
arch/arm/mach-mx25/Makefile
arch/arm/mach-mx25/devices.c
arch/arm/plat-mxc/include/mach/mx25.h
arch/arm/plat-mxc/include/mach/mxc_nand.h

14 years agomx25: add PWM4 to iomux
Baruch Siach [Thu, 24 Jun 2010 08:57:03 +0000 (11:57 +0300)]
mx25: add PWM4 to iomux

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx25: add iomux defines for UART4 on KPP pins
Baruch Siach [Thu, 24 Jun 2010 08:57:02 +0000 (11:57 +0300)]
mx25: add iomux defines for UART4 on KPP pins

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx31_3ds: Handle USB OTG GPIO Errors
Fabio Estevam [Mon, 21 Jun 2010 20:33:05 +0000 (13:33 -0700)]
mx31_3ds: Handle USB OTG GPIO Errors

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx25: add support for the CSI device
Baruch Siach [Mon, 21 Jun 2010 05:16:00 +0000 (08:16 +0300)]
mx25: add support for the CSI device

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx27: add support for the CSI device
Baruch Siach [Mon, 21 Jun 2010 05:15:59 +0000 (08:15 +0300)]
mx27: add support for the CSI device

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agopca100: clean up GPIO pin multiplexing
Luotao Fu [Fri, 18 Jun 2010 07:23:19 +0000 (09:23 +0200)]
pca100: clean up GPIO pin multiplexing

cleaned up some duplicated mxc_gpio_mode calls and move the correpsonding
pin multiplexing either into the initial pin config table or ifdef blocks.

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agopca100: add framebuffer device support and TFT
Luotao Fu [Fri, 18 Jun 2010 07:23:18 +0000 (09:23 +0200)]
pca100: add framebuffer device support and TFT

this one adds the frambuffer device and a TFT panel to the PhyCard-S
(pca100) board.

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomxc/iomux: add GPIO bank offset for iomux v3 platforms
Jason Wang [Sat, 12 Jun 2010 14:22:39 +0000 (22:22 +0800)]
mxc/iomux: add GPIO bank offset for iomux v3 platforms

These GPIO bank offsets are useful when define a gpio number.
E.G. when GPIO PORTC pin 6 is used for irq request pin of external
expanding device, we can define it like:
  #define EXP_PARENT_IRQ_PIN (GPIO_PORTC + 6)

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx51/iomux: add UART and GPIO pad definitions for imx51_3ds board
Jason Wang [Sat, 12 Jun 2010 14:22:38 +0000 (22:22 +0800)]
mx51/iomux: add UART and GPIO pad definitions for imx51_3ds board

Add UART2 CTS/RTS and UART3 RXD/TXD pad definitons for imx51_3ds board,
add GPIO_1_6 definiton because this pin is used as a CPLD parent irq
request pin on imx51_3ds board.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx51/iomux: Fix mux mode and input path for two pads
Jason Wang [Sat, 12 Jun 2010 14:22:37 +0000 (22:22 +0800)]
mx51/iomux: Fix mux mode and input path for two pads

For pad EIM_D27 to work in UART3_RTS mode, the input path should be
3 instead of 0; for pad USBH1_STP to work in GPIO_1_27 mode, the mux
value should be 2 instead of 8.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years ago[PATCH] mxc: Fix pad names for imx51
Amit Kucheria [Wed, 16 Jun 2010 11:00:15 +0000 (14:00 +0300)]
[PATCH] mxc: Fix pad names for imx51

The pads capable of being used as GPIOs had their pad-name and mode-name
switched. Also, fix the following:

- Whitespace fixes
- Replace IOMUX_CONFIG_ALTn with 'n'

Signed-off-by: Amit Kucheria <amit.kucheria@canonical.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX35: add cpuimx35 support and its baseboard
Eric Bénard [Thu, 10 Jun 2010 14:07:50 +0000 (16:07 +0200)]
i.MX35: add cpuimx35 support and its baseboard

* cpuimx35 integrates i.MX35, RAM, NAND, Ethernet, I2C RTC, USB Host,
USB OTG and I2C touchscreen controller
* mbimxsd provides access to LCD, Audio, LED, Switch button, UART ...

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx25: add a comment documenting undocumented IPG clocks
Baruch Siach [Thu, 10 Jun 2010 09:14:32 +0000 (12:14 +0300)]
mx25: add a comment documenting undocumented IPG clocks

The information in the i.MX25 Reference Manual is lacking. Add information from
the Freescale BSP.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx25pdk: register watchdog device
Baruch Siach [Wed, 9 Jun 2010 11:07:01 +0000 (14:07 +0300)]
mx25pdk: register watchdog device

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx25: add watchdog clock
Baruch Siach [Thu, 10 Jun 2010 09:32:15 +0000 (12:32 +0300)]
mx25: add watchdog clock

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX25: add cpuimx25 module and its baseboard
Eric Bénard [Tue, 8 Jun 2010 09:03:01 +0000 (11:03 +0200)]
i.MX25: add cpuimx25 module and its baseboard

* cpuimx25 integrates i.MX25, RAM, NAND, Ethernet, I2C RTC, USB Host
and USB OTG
* mbimxsd provides access to LCD, Audio, LED, Switch button, UART ...

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX25: add AUDMUX and SSI support
Eric Bénard [Tue, 8 Jun 2010 09:03:00 +0000 (11:03 +0200)]
i.MX25: add AUDMUX and SSI support

* add clocks for audmux and ssi 1 & 2
* add irq for ssi 1 & 2
* add devices platform for ssi1 & 2
* update audmux-v2 for i.MX25
* add base addresses for audmux & ssi 1 & 2
* add iomux configuration for GPIO for AUD5 port

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX25: fix USB gadget support
Eric Bénard [Tue, 8 Jun 2010 09:02:59 +0000 (11:02 +0200)]
i.MX25: fix USB gadget support

i.MX25's udc port is the same as i.MX35's one

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX25: fix EHCI support
Eric Bénard [Tue, 8 Jun 2010 09:02:58 +0000 (11:02 +0200)]
i.MX25: fix EHCI support

i.MX25's EHCI is the same as i.MX35's one.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX25: fix get_rate_otg to return the correct value
Eric Bénard [Tue, 8 Jun 2010 09:02:57 +0000 (11:02 +0200)]
i.MX25: fix get_rate_otg to return the correct value

usb drivers need to get the right value for otg clock so
calculate and return it

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoplat-mxc/ehci.c: add i.MX25 support
Eric Bénard [Tue, 8 Jun 2010 09:02:56 +0000 (11:02 +0200)]
plat-mxc/ehci.c: add i.MX25 support

i.MX25's OTG has the same USBCTRL registers than i.MX35 so reuse
most of the i.MX35's defines.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoMX25: put define for OTG base address in right include
Eric Bénard [Tue, 8 Jun 2010 09:02:55 +0000 (11:02 +0200)]
MX25: put define for OTG base address in right include

the standard place for this define is include/mach/mx25.h

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX27: add suspend to RAM support
Eric Bénard [Tue, 1 Jun 2010 19:57:44 +0000 (21:57 +0200)]
i.MX27: add suspend to RAM support

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoeukrea_mbimx27: fix audio support when SOC is compiled as module
Eric Bénard [Sun, 20 Jun 2010 19:22:54 +0000 (21:22 +0200)]
eukrea_mbimx27: fix audio support when SOC is compiled as module

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomach-cpuimx27: fix USB_ULPI build warnings
Eric Bénard [Fri, 18 Jun 2010 14:19:55 +0000 (16:19 +0200)]
mach-cpuimx27: fix USB_ULPI build warnings

when CONFIG_USB_ULPI is not defined we actually get :
warning: 'otg_pdata' defined but not used
warning: 'usbh2_pdata' defined but not used

Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoi.MX35: return IPU clock's value for mx3fb
Eric Bénard [Tue, 8 Jun 2010 16:07:05 +0000 (18:07 +0200)]
i.MX35: return IPU clock's value for mx3fb

without this patch, ipu_clk's value is 0 thus preventing mx3fb from
calculating the right divisor for pixel clock generator.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx5: Register i2c on Freescale MX51 Babbage HW
Dinh Nguyen [Thu, 27 May 2010 15:45:05 +0000 (10:45 -0500)]
mx5: Register i2c on Freescale MX51 Babbage HW

Add device registration and setup IOMUX pins in the mx51_babbage
board feil.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx5: Add i2c to Freescale MX51 Babbage HW
Dinh Nguyen [Thu, 27 May 2010 15:45:04 +0000 (10:45 -0500)]
mx5: Add i2c to Freescale MX51 Babbage HW

This patch adds I2C functionality to the Freescale MX51 Babbage HW.
The patch adds device structures, i2c board slave device defines,
IOMUX pin defines, and clocks.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoarm: mxc: utilise usecount field in clock operations
Amit Kucheria [Fri, 28 May 2010 08:29:09 +0000 (11:29 +0300)]
arm: mxc: utilise usecount field in clock operations

This patch fixes the clock refcounting when reparenting is used.

Boot-tested on imx51 babbage board.

Sascha pointed out a good explanation of refcounting here:
http://www.spinics.net/lists/arm-kernel/msg85879.html

Signed-off-by: Amit Kucheria <amit.kucheria@canonical.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx25pdk: add keypad support
Baruch Siach [Wed, 26 May 2010 12:12:11 +0000 (15:12 +0300)]
mx25pdk: add keypad support

The keymap is taken from the Freescale supplied kernel.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomx25: add platform code for imx-keypad
Baruch Siach [Wed, 26 May 2010 12:12:10 +0000 (15:12 +0300)]
mx25: add platform code for imx-keypad

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomxc_nand: add support for platform defined partitions
Baruch Siach [Mon, 31 May 2010 05:49:40 +0000 (08:49 +0300)]
mxc_nand: add support for platform defined partitions

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomxc_nand: Fix OOB handling
Sascha Hauer [Tue, 27 Apr 2010 13:24:01 +0000 (15:24 +0200)]
mxc_nand: Fix OOB handling

The OOB handling in the mxc_nand driver is broken for v1 type
controllers (i.MX27/31) with 512 byte page size. This perhaps
did not show up because ubi does not use OOB.
Update the driver to always read/write a whole page even if
only OOB is requested. With this patch the driver passes the
mtd_oobtest on i.MX27 with 512 byte page size. Also tested
with 2048 byte page size and on i.MX35 (v2 type controller)

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported-by: Wolfram Sang <w.sang@pengutronix.de>
Tested-by: Baruch Siach <baruch@tkos.co.il>
14 years agoeukrea_mbimx27: add audio codec
Eric Bénard [Thu, 27 May 2010 08:58:56 +0000 (10:58 +0200)]
eukrea_mbimx27: add audio codec

Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoeukrea_mbimx27: add support for the keyboard
Eric Bénard [Wed, 19 May 2010 16:46:07 +0000 (18:46 +0200)]
eukrea_mbimx27: add support for the keyboard

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoMX2X: Add Keypad device definition for MX2X arch
Eric Bénard [Wed, 19 May 2010 16:46:06 +0000 (18:46 +0200)]
MX2X: Add Keypad device definition for MX2X arch

Based on work from Alberto Panizzo for MX3X

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoeukrea_mbimx27: use card detect through DAT3 for SDHC1
Eric Bénard [Wed, 19 May 2010 16:46:05 +0000 (18:46 +0200)]
eukrea_mbimx27: use card detect through DAT3 for SDHC1

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomxcmmc: add card detect through DAT3 possibility
Eric Bénard [Wed, 19 May 2010 16:46:04 +0000 (18:46 +0200)]
mxcmmc: add card detect through DAT3 possibility

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomach-cpuimx27: register wdt and w1_master resources
Eric Bénard [Wed, 19 May 2010 16:46:03 +0000 (18:46 +0200)]
mach-cpuimx27: register wdt and w1_master resources

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomach-cpuimx27: add USB Host2 and OTG support
Eric Bénard [Wed, 19 May 2010 16:46:02 +0000 (18:46 +0200)]
mach-cpuimx27: add USB Host2 and OTG support

support copied from mach-pca100.c

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoeukrea_mbimx27: fix ADS7846 support
Eric Bénard [Thu, 20 May 2010 07:22:28 +0000 (09:22 +0200)]
eukrea_mbimx27: fix ADS7846 support

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agomach-cpuimx27: fix QuadUART's IRQ typo in pins'setup
Eric Bénard [Wed, 19 May 2010 16:46:00 +0000 (18:46 +0200)]
mach-cpuimx27: fix QuadUART's IRQ typo in pins'setup

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agocpuimx27 and mbimx27: allow fine control of UART4 and SDHC2 usage
Eric Bénard [Wed, 19 May 2010 16:45:59 +0000 (18:45 +0200)]
cpuimx27 and mbimx27: allow fine control of UART4 and SDHC2 usage

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoeukrea_mbimx27-baseboard: add timings for DVI output
Eric Bénard [Wed, 19 May 2010 16:45:58 +0000 (18:45 +0200)]
eukrea_mbimx27-baseboard: add timings for DVI output

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoeukrea_mbimx27-baseboard: add generic-bl and platform-lcd controls
Eric Bénard [Wed, 19 May 2010 16:45:57 +0000 (18:45 +0200)]
eukrea_mbimx27-baseboard: add generic-bl and platform-lcd controls

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoeukrea_mbimx27-baseboard: fix typo in display name
Eric Bénard [Wed, 19 May 2010 16:45:56 +0000 (18:45 +0200)]
eukrea_mbimx27-baseboard: fix typo in display name

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agopcm037/pcm043/pca100: fix ULPI-related build warnings
Wolfram Sang [Fri, 21 May 2010 04:52:06 +0000 (06:52 +0200)]
pcm037/pcm043/pca100: fix ULPI-related build warnings

Like this one (if CONFIG_USB_ULPI is not set):

arch/arm/mach-mx3/mach-pcm043.c:312: warning: 'otg_pdata' defined but not used
arch/arm/mach-mx3/mach-pcm043.c:317: warning: 'usbh1_pdata' defined but not used

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoARM: mx3: mx31lilly: pass mc13783 SPI IRQ pin
Daniel Mack [Tue, 25 May 2010 14:46:56 +0000 (16:46 +0200)]
ARM: mx3: mx31lilly: pass mc13783 SPI IRQ pin

This makes the resistive touch interface work.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
14 years agoARM: mx3: complement uart init routine with an exit routine
Uwe Kleine-König [Wed, 23 Jun 2010 09:57:19 +0000 (11:57 +0200)]
ARM: mx3: complement uart init routine with an exit routine

moboard_uart0_init requests a gpio.   Without an exit function that
frees that gpio again binding the uart a second time doesn't work.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-uart devices (imx35)
Uwe Kleine-König [Wed, 23 Jun 2010 09:49:34 +0000 (11:49 +0200)]
ARM: imx: dynamically register imx-uart devices (imx35)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-uart devices (imx31)
Uwe Kleine-König [Wed, 23 Jun 2010 09:46:16 +0000 (11:46 +0200)]
ARM: imx: dynamically register imx-uart devices (imx31)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-uart devices (imx27)
Uwe Kleine-König [Wed, 23 Jun 2010 07:36:01 +0000 (09:36 +0200)]
ARM: imx: dynamically register imx-uart devices (imx27)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-uart devices (imx25)
Uwe Kleine-König [Thu, 24 Jun 2010 13:20:44 +0000 (15:20 +0200)]
ARM: imx: dynamically register imx-uart devices (imx25)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-uart devices (imx21)
Uwe Kleine-König [Tue, 22 Jun 2010 15:59:58 +0000 (17:59 +0200)]
ARM: imx: dynamically register imx-uart devices (imx21)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-uart devices (imx1)
Uwe Kleine-König [Tue, 22 Jun 2010 12:50:59 +0000 (14:50 +0200)]
ARM: imx: dynamically register imx-uart devices (imx1)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-uart devices (generic part)
Uwe Kleine-König [Tue, 22 Jun 2010 12:49:20 +0000 (14:49 +0200)]
ARM: imx: dynamically register imx-uart devices (generic part)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register spi_imx devices (imx35)
Uwe Kleine-König [Tue, 22 Jun 2010 08:14:15 +0000 (10:14 +0200)]
ARM: imx: dynamically register spi_imx devices (imx35)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register spi_imx devices (imx31)
Uwe Kleine-König [Tue, 22 Jun 2010 08:09:14 +0000 (10:09 +0200)]
ARM: imx: dynamically register spi_imx devices (imx31)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register spi_imx devices (imx27)
Uwe Kleine-König [Tue, 22 Jun 2010 07:00:22 +0000 (09:00 +0200)]
ARM: imx: dynamically register spi_imx devices (imx27)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register spi_imx devices (imx25)
Uwe Kleine-König [Mon, 21 Jun 2010 15:34:58 +0000 (17:34 +0200)]
ARM: imx: dynamically register spi_imx devices (imx25)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register spi_imx devices (imx21)
Uwe Kleine-König [Mon, 21 Jun 2010 15:27:22 +0000 (17:27 +0200)]
ARM: imx: dynamically register spi_imx devices (imx21)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register spi_imx devices (generic part)
Uwe Kleine-König [Mon, 21 Jun 2010 16:02:55 +0000 (18:02 +0200)]
ARM: imx: dynamically register spi_imx devices (generic part)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-i2c devices (imx35)
Uwe Kleine-König [Wed, 16 Jun 2010 17:25:34 +0000 (19:25 +0200)]
ARM: imx: dynamically register imx-i2c devices (imx35)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-i2c devices (imx31)
Uwe Kleine-König [Wed, 16 Jun 2010 16:03:05 +0000 (18:03 +0200)]
ARM: imx: dynamically register imx-i2c devices (imx31)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-i2c devices (imx27)
Uwe Kleine-König [Wed, 16 Jun 2010 15:25:40 +0000 (17:25 +0200)]
ARM: imx: dynamically register imx-i2c devices (imx27)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-i2c devices (imx25)
Uwe Kleine-König [Wed, 16 Jun 2010 12:55:07 +0000 (14:55 +0200)]
ARM: imx: dynamically register imx-i2c devices (imx25)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-i2c devices (imx21)
Uwe Kleine-König [Tue, 22 Jun 2010 07:27:33 +0000 (09:27 +0200)]
ARM: imx: dynamically register imx-i2c devices (imx21)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-i2c devices (imx1)
Uwe Kleine-König [Wed, 16 Jun 2010 13:26:07 +0000 (15:26 +0200)]
ARM: imx: dynamically register imx-i2c devices (imx1)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: dynamically register imx-i2c devices (generic part)
Uwe Kleine-König [Wed, 16 Jun 2010 12:37:51 +0000 (14:37 +0200)]
ARM: imx: dynamically register imx-i2c devices (generic part)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: Change the way nand devices are registered (imx35)
Uwe Kleine-König [Wed, 16 Jun 2010 10:26:53 +0000 (12:26 +0200)]
ARM: imx: Change the way nand devices are registered (imx35)

Make use of new mechanism to register a nand device.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: Change the way nand devices are registered (imx31)
Uwe Kleine-König [Wed, 16 Jun 2010 10:23:11 +0000 (12:23 +0200)]
ARM: imx: Change the way nand devices are registered (imx31)

Make use of new mechanism to register a nand device.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: Change the way nand devices are registered (imx27)
Uwe Kleine-König [Wed, 16 Jun 2010 05:35:31 +0000 (07:35 +0200)]
ARM: imx: Change the way nand devices are registered (imx27)

Make use of new mechanism to register a nand device.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: Change the way nand devices are registered (imx25)
Uwe Kleine-König [Wed, 16 Jun 2010 10:34:56 +0000 (12:34 +0200)]
ARM: imx: Change the way nand devices are registered (imx25)

Make use of new mechanism to register a nand device.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: Change the way nand devices are registered (imx21)
Uwe Kleine-König [Wed, 16 Jun 2010 09:17:45 +0000 (11:17 +0200)]
ARM: imx: Change the way nand devices are registered (imx21)

Make use of new mechanism to register a nand device.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: Change the way nand devices are registered (generic part)
Uwe Kleine-König [Tue, 15 Jun 2010 16:14:19 +0000 (18:14 +0200)]
ARM: imx: Change the way nand devices are registered (generic part)

Instead of having a platform device defined in a devices.c and register
it in the machine file allocate it dynamically.  This reduces the size
of needed memory as the new function is discarded after init and only
the existing devices are created.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mxc: remove paragraphs with old address of the FSF
Uwe Kleine-König [Wed, 16 Jun 2010 05:12:51 +0000 (07:12 +0200)]
ARM: mxc: remove paragraphs with old address of the FSF

As the kernel contains a copy of the GPL anyhow just get rid of the address
specification instead of fixing it.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mxc91231: remove paragraphs with old address of the FSF
Uwe Kleine-König [Wed, 16 Jun 2010 05:06:49 +0000 (07:06 +0200)]
ARM: mxc91231: remove paragraphs with old address of the FSF

As the kernel contains a copy of the GPL anyhow just get rid of the address
specification instead of fixing it.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mx3: remove paragraphs with old address of the FSF
Uwe Kleine-König [Wed, 16 Jun 2010 04:59:45 +0000 (06:59 +0200)]
ARM: mx3: remove paragraphs with old address of the FSF

As the kernel contains a copy of the GPL anyhow just get rid of the address
specification instead of fixing it.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mx25: remove paragraphs with old address of the FSF
Uwe Kleine-König [Wed, 16 Jun 2010 04:53:33 +0000 (06:53 +0200)]
ARM: mx25: remove paragraphs with old address of the FSF

As the kernel contains a copy of the GPL anyhow just get rid of the address
specification instead of fixing it.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: remove paragraphs with old address of the FSF
Uwe Kleine-König [Wed, 16 Jun 2010 04:53:33 +0000 (06:53 +0200)]
ARM: imx: remove paragraphs with old address of the FSF

As the kernel contains a copy of the GPL anyhow just get rid of the address
specification instead of fixing it.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoMTD: mxc_nand: make bit fields unsigned to please sparse
Uwe Kleine-König [Wed, 16 Jun 2010 04:45:15 +0000 (06:45 +0200)]
MTD: mxc_nand: make bit fields unsigned to please sparse

This fixes:

arch/arm/plat-mxc/include/mach/mxc_nand.h:25:14: error: dubious one-bit signed bitfield
arch/arm/plat-mxc/include/mach/mxc_nand.h:26:17: error: dubious one-bit signed bitfield

While at it make width unsigned, too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: new helper function imx_add_platform_device
Uwe Kleine-König [Tue, 15 Jun 2010 09:31:02 +0000 (11:31 +0200)]
ARM: imx: new helper function imx_add_platform_device

This should be a globally available function, see

http://thread.gmane.org/gmane.linux.kernel/998881/focus=998882

Until this hits mainline create a similar function available for imx
platforms only.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: new Kconfig symbol and feature test macro for DMA on mx1 and mx2
Uwe Kleine-König [Mon, 14 Jun 2010 15:56:52 +0000 (17:56 +0200)]
ARM: imx: new Kconfig symbol and feature test macro for DMA on mx1 and mx2

This should be used instead of hard coding the corresponding platforms.
The feature test macro is needed to support different SOCs in a single
kernel image.  While at it rename dma-mx1-mx2 to dma-v1 as mx25 doesn't
use it and so the mx2 part is wrong and move the header to
arch/arm/mach-imx.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: prepare deprecating ARCH_MX1, MACH_MX2, MACH_MX21 and MACH_MX27
Uwe Kleine-König [Mon, 14 Jun 2010 15:39:21 +0000 (17:39 +0200)]
ARM: imx: prepare deprecating ARCH_MX1, MACH_MX2, MACH_MX21 and MACH_MX27

MACH_... is reserved for machine support, so use SOC as prefix, not MACH.

This introduces new symbols SOC_IMX1, SOC_IMX21 and SOC_IMX27.  They are
selected by the old symbols for now.  There is no substitute for MACH_MX2
as most usages of MX2 only means MX21 + MX27 but not MX25.

Later the choice about CPU and CPU family should go away and the individual
machines should select the right SOC symbol.  This is a precondition to
support more than one SOC in a single kernel image.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: Kconfig: use an if block instead of a depend for many symbols
Uwe Kleine-König [Mon, 14 Jun 2010 14:56:46 +0000 (16:56 +0200)]
ARM: imx: Kconfig: use an if block instead of a depend for many symbols

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: move mx1 support to mach-imx
Uwe Kleine-König [Mon, 14 Jun 2010 13:56:58 +0000 (15:56 +0200)]
ARM: imx: move mx1 support to mach-imx

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: rename mxc_uart_devicex to follow a common naming scheme
Uwe Kleine-König [Fri, 11 Jun 2010 07:08:02 +0000 (09:08 +0200)]
ARM: imx: rename mxc_uart_devicex to follow a common naming scheme

Addionally remove an unneeded include.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx1: rename imx_uart[12]_device to follow a common naming scheme
Uwe Kleine-König [Thu, 10 Jun 2010 16:02:25 +0000 (18:02 +0200)]
ARM: imx1: rename imx_uart[12]_device to follow a common naming scheme

Note that these devices are specific for imx1 as only here three irqs are
used.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx1: rename imx_i2c_device to follow a common naming scheme
Uwe Kleine-König [Thu, 10 Jun 2010 15:48:04 +0000 (17:48 +0200)]
ARM: imx1: rename imx_i2c_device to follow a common naming scheme

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx1: rename imx_csi_device to match its .name
Uwe Kleine-König [Thu, 10 Jun 2010 15:45:23 +0000 (17:45 +0200)]
ARM: imx1: rename imx_csi_device to match its .name

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: fold serial.c into devices.c
Uwe Kleine-König [Thu, 10 Jun 2010 15:34:59 +0000 (17:34 +0200)]
ARM: imx: fold serial.c into devices.c

... and use cpp magic to reduce repetition.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: get rid of mxc_gpio_init
Uwe Kleine-König [Thu, 10 Jun 2010 15:11:06 +0000 (17:11 +0200)]
ARM: imx: get rid of mxc_gpio_init

This function is defined once for each imx family and so is in the way
when compiling a kernel for more than one SoC.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx/mx1: fold crm_regs.h into its only consumer
Uwe Kleine-König [Thu, 10 Jun 2010 13:59:54 +0000 (15:59 +0200)]
ARM: imx/mx1: fold crm_regs.h into its only consumer

As crm_regs.h is GPL-v2 only don't allow "(at your option) any later
version" for clock.c any more.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: imx: rename mach dir for mx21 and mx27 to mach-imx
Uwe Kleine-König [Thu, 10 Jun 2010 13:11:13 +0000 (15:11 +0200)]
ARM: imx: rename mach dir for mx21 and mx27 to mach-imx

Finally all imx code should end up there, start with mach-mx2.  While
touching all files rename some files to use a hyphen instead of an
underscore.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mxc: grammar fix
Uwe Kleine-König [Mon, 8 Mar 2010 16:29:31 +0000 (17:29 +0100)]
ARM: mxc: grammar fix

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mx3/mx31ads: fold board header in its only user
Uwe Kleine-König [Mon, 8 Mar 2010 16:10:54 +0000 (17:10 +0100)]
ARM: mx3/mx31ads: fold board header in its only user

Moreover remove unused definitions.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mx3/mx31_3ds: fold board header in its only user
Uwe Kleine-König [Mon, 8 Mar 2010 15:57:19 +0000 (16:57 +0100)]
ARM: mx3/mx31_3ds: fold board header in its only user

Moreover remove unused definitions.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
14 years agoARM: mx3/qong: get rid of nearly empty header
Uwe Kleine-König [Mon, 8 Mar 2010 15:11:51 +0000 (16:11 +0100)]
ARM: mx3/qong: get rid of nearly empty header

board-qong.h only defined a single symbol that was used only once.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>