move mach-mx3/* to mach-imx
Subsystems (3)
cover move mach-mx3/* to mach-imx
Hello,
this series on top of Sascha's imx-for-2.6.39 branch gets rid of mach-mx3.
It's compile tested on all in-tree mx_defconfigs + a mx25 build + a mxc91231 build and run tested on a pcm037 machine (i.e. a i.MX31) that is affected by the move.
Best regards
Uwe
The following changes since commit 4d2f13be1e370a670c1cae20c194d5ce961e0fa5:
ARM: imx3x: clean up ARCH_MX3X (2011-03-03 13:17:15 +0100)
are available in the git repository at:
git://git.pengutronix.de/git/ukl/linux-2.6.git imx-for-2.6.39
Uwe Kleine-K?nig (6):
ARM: mxc91231: select MXC_AVIC
ARM: mx3: dynamically allocate "mxc_rtc" devices
ARM: mx3/pcm037: properly allocate memory for mx3-camera
ARM: mx3/mx31moboard: properly allocate memory for mx3-camera [RFC] ARM: mx3: dynamically allocate "ipu-core" devices
ARM: imx: move mx3 support to mach-imx
arch/arm/Makefile | 2 +-
arch/arm/mach-imx/Kconfig | 269 ++++++++++++++++++++
arch/arm/mach-imx/Makefile | 37 +++-
arch/arm/mach-imx/Makefile.boot | 4 +
arch/arm/mach-imx/cache-l2x0.c | 56 ++++
arch/arm/{mach-mx3 => mach-imx}/clock-imx31.c | 2 +-
arch/arm/{mach-mx3 => mach-imx}/clock-imx35.c | 0
arch/arm/{mach-mx3/cpu.c => mach-imx/cpu-imx31.c} | 38 +---
arch/arm/mach-imx/cpu-imx35.c | 45 ++++
.../crm_regs.h => mach-imx/crmregs-imx31.h} | 0
arch/arm/{mach-mx3 => mach-imx}/devices-imx31.h | 12 +
arch/arm/{mach-mx3 => mach-imx}/devices-imx35.h | 8 +
arch/arm/{mach-mx3 => mach-imx}/ehci-imx31.c | 0
arch/arm/{mach-mx3 => mach-imx}/ehci-imx35.c | 0
.../eukrea_mbimxsd35-baseboard.c} | 10 +-
arch/arm/{mach-mx3 => mach-imx}/iomux-imx31.c | 0
.../arm/{mach-mx3 => mach-imx}/mach-armadillo5x0.c | 14 +-
arch/arm/{mach-mx3 => mach-imx}/mach-bug.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-cpuimx35.c | 1 -
.../arm/{mach-mx3 => mach-imx}/mach-kzm_arm11_01.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-mx31_3ds.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-mx31ads.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-mx31lilly.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-mx31lite.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-mx31moboard.c | 66 +++--
arch/arm/{mach-mx3 => mach-imx}/mach-mx35_3ds.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-pcm037.c | 65 +++---
arch/arm/{mach-mx3 => mach-imx}/mach-pcm037_eet.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-pcm043.c | 12 +-
arch/arm/{mach-mx3 => mach-imx}/mach-qong.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/mach-vpr200.c | 12 +-
arch/arm/mach-imx/mm-imx31.c | 66 +++++
arch/arm/mach-imx/mm-imx35.c | 63 +++++
arch/arm/{mach-mx3 => mach-imx}/mx31lilly-db.c | 8 +-
arch/arm/{mach-mx3 => mach-imx}/mx31lite-db.c | 3 +-
.../{mach-mx3 => mach-imx}/mx31moboard-devboard.c | 1 -
.../{mach-mx3 => mach-imx}/mx31moboard-marxbot.c | 1 -
.../{mach-mx3 => mach-imx}/mx31moboard-smartbot.c | 1 -
arch/arm/{mach-mx3 => mach-imx}/pcm037.h | 0
arch/arm/mach-mx3/Kconfig | 257 -------------------
arch/arm/mach-mx3/Makefile | 26 --
arch/arm/mach-mx3/Makefile.boot | 3 -
arch/arm/mach-mx3/devices.c | 115 ---------
arch/arm/mach-mx3/devices.h | 4 -
arch/arm/mach-mx3/mm.c | 141 ----------
arch/arm/plat-mxc/Kconfig | 2 +-
arch/arm/plat-mxc/devices/Kconfig | 6 +
arch/arm/plat-mxc/devices/Makefile | 2 +
arch/arm/plat-mxc/devices/platform-ipu-core.c | 129 ++++++++++
arch/arm/plat-mxc/devices/platform-mxc_rtc.c | 40 +++
arch/arm/plat-mxc/include/mach/devices-common.h | 27 ++
51 files changed, 856 insertions(+), 700 deletions(-)
create mode 100644 arch/arm/mach-imx/cache-l2x0.c
rename arch/arm/{mach-mx3 => mach-imx}/clock-imx31.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/clock-imx35.c (100%)
rename arch/arm/{mach-mx3/cpu.c => mach-imx/cpu-imx31.c} (72%)
create mode 100644 arch/arm/mach-imx/cpu-imx35.c
rename arch/arm/{mach-mx3/crm_regs.h => mach-imx/crmregs-imx31.h} (100%)
rename arch/arm/{mach-mx3 => mach-imx}/devices-imx31.h (86%)
rename arch/arm/{mach-mx3 => mach-imx}/devices-imx35.h (90%)
rename arch/arm/{mach-mx3 => mach-imx}/ehci-imx31.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/ehci-imx35.c (100%)
rename arch/arm/{mach-mx3/eukrea_mbimxsd-baseboard.c => mach-imx/eukrea_mbimxsd35-baseboard.c} (97%)
rename arch/arm/{mach-mx3 => mach-imx}/iomux-imx31.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-armadillo5x0.c (97%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-bug.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-cpuimx35.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-kzm_arm11_01.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31_3ds.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31ads.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31lilly.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31lite.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31moboard.c (93%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx35_3ds.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-pcm037.c (94%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-pcm037_eet.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-pcm043.c (97%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-qong.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-vpr200.c (96%)
create mode 100644 arch/arm/mach-imx/mm-imx31.c
create mode 100644 arch/arm/mach-imx/mm-imx35.c
rename arch/arm/{mach-mx3 => mach-imx}/mx31lilly-db.c (96%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31lite-db.c (98%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31moboard-devboard.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31moboard-marxbot.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31moboard-smartbot.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/pcm037.h (100%)
delete mode 100644 arch/arm/mach-mx3/Kconfig
delete mode 100644 arch/arm/mach-mx3/Makefile
delete mode 100644 arch/arm/mach-mx3/Makefile.boot
delete mode 100644 arch/arm/mach-mx3/devices.c
delete mode 100644 arch/arm/mach-mx3/devices.h
delete mode 100644 arch/arm/mach-mx3/mm.c
create mode 100644 arch/arm/plat-mxc/devices/platform-ipu-core.c
create mode 100644 arch/arm/plat-mxc/devices/platform-mxc_rtc.cSignature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/6 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)
--- arch/arm/plat-mxc/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/plat-mxc/Kconfig +1 -0
@@ -33,6 +33,7 @@ config ARCH_MX3 config ARCH_MXC91231 bool "MXC91231-based" select CPU_V6 + select MXC_AVIC help This enables support for systems based on the Freescale MXC91231 family
Signature · 1 line
1.7.2.3
PATCH 2/6 ARM: mx3: dynamically allocate "mxc_rtc" devices
In reply to Uwe Kleine-König--- arch/arm/mach-mx3/Kconfig | 1 + arch/arm/mach-mx3/devices-imx31.h | 4 ++ arch/arm/mach-mx3/devices.c | 19 ----------- arch/arm/mach-mx3/devices.h | 1 - arch/arm/mach-mx3/mx31lite-db.c | 2 +- arch/arm/plat-mxc/devices/Kconfig | 3 ++ arch/arm/plat-mxc/devices/Makefile | 1 + arch/arm/plat-mxc/devices/platform-mxc_rtc.c | 40 +++++++++++++++++++++++ arch/arm/plat-mxc/include/mach/devices-common.h | 9 +++++ 9 files changed, 59 insertions(+), 21 deletions(-) create mode 100644 arch/arm/plat-mxc/devices/platform-mxc_rtc.c
arch/arm/mach-mx3/Kconfig +1 -0
@@ -83,6 +83,7 @@ config MACH_MX31LITE select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_MMC select IMX_HAVE_PLATFORM_MXC_NAND + select IMX_HAVE_PLATFORM_MXC_RTC select IMX_HAVE_PLATFORM_SPI_IMX help Include support for MX31 LITEKIT platform. This includes specific
arch/arm/mach-mx3/devices-imx31.h +4 -0
@@ -56,6 +56,10 @@ extern const struct imx_mxc_nand_data imx31_mxc_nand_data __initconst;#define imx31_add_mxc_nand (pdata) \ imx_add_mxc_nand(&imx31_mxc_nand_data, pdata) +extern const struct imx_mxc_rtc_data imx31_mxc_rtc_data__initconst ; +#define imx31_add_mxc_rtc (pdata) \ + imx_add_mxc_rtc(&imx31_mxc_rtc_data) +extern const struct imx_mxc_w1_data imx31_mxc_w1_data__initconst ;#define imx31_add_mxc_w1 (pdata) \ imx_add_mxc_w1(&imx31_mxc_w1_data)
arch/arm/mach-mx3/devices.c +0 -19
@@ -94,22 +94,3 @@ struct platform_device mx3_camera = { .coherent_dma_mask = DMA_BIT_MASK(32), }, }; - -static struct resource imx_rtc_resources[] = { - { - .start =MX31_RTC_BASE_ADDR , - .end =MX31_RTC_BASE_ADDR +0x3fff , - .flags =IORESOURCE_MEM , - }, - { - .start =MX31_INT_RTC , - .flags =IORESOURCE_IRQ , - }, -}; - -struct platform_device imx_rtc_device0 = { - .name ="mxc_rtc" , - .id =-1 , - .num_resources =ARRAY_SIZE (imx_rtc_resources), - .resource = imx_rtc_resources, -};
arch/arm/mach-mx3/devices.h +0 -1
@@ -1,4 +1,3 @@extern struct platform_device mx3_ipu;extern struct platform_device mx3_fb;extern struct platform_device mx3_camera; -extern struct platform_device imx_rtc_device0;
arch/arm/mach-mx3/mx31lite-db.c +1 -1
@@ -200,5 +200,5 @@ void __init mx31lite_db_init(void)imx31_add_spi_imx0 (&spi0_pdata);platform_device_register (&litekit_led_device);imx31_add_imx2_wdt (NULL ); -mxc_register_device (&imx_rtc_device0,NULL ); +imx31_add_mxc_rtc (NULL ); }
arch/arm/plat-mxc/devices/Kconfig +3 -0
@@ -63,6 +63,9 @@ config IMX_HAVE_PLATFORM_MXC_RNGA bool select ARCH_HAS_RNGA +config IMX_HAVE_PLATFORM_MXC_RTC + bool + config IMX_HAVE_PLATFORM_MXC_W1 bool
arch/arm/plat-mxc/devices/Makefile +1 -0
@@ -19,6 +19,7 @@ obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_MMC) += platform-mxc-mmc.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_NAND) += platform-mxc_nand.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_PWM) += platform-mxc_pwm.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_RNGA) += platform-mxc_rnga.o +obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_RTC) += platform-mxc_rtc.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_W1) += platform-mxc_w1.o obj-$(CONFIG_IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX) += platform-sdhci-esdhc-imx.o obj-$(CONFIG_IMX_HAVE_PLATFORM_SPI_IMX) += platform-spi_imx.o
arch/arm/plat-mxc/devices/platform-mxc_rtc.c new file +40 -0
@@ -0,0 +1,40 @@ +/* +* Copyright (C) 2010-2011 Pengutronix +* Uwe Kleine-Koenig <[email protected]> +* +* This program is free software; you can redistribute it and/or modify it under +* the terms of the GNU General Public License version 2 as published by the +* Free Software Foundation. +*/ +#include <mach/hardware.h> +#include <mach/devices-common.h> + +#define imx_mxc_rtc_data_entry_single (soc) \ + { \ + .iobase = soc ## _RTC_BASE_ADDR, \ + .irq = soc ## _INT_RTC, \ + } + +#ifdef CONFIG_SOC_IMX31 +const struct imx_mxc_rtc_data imx31_mxc_rtc_data__initconst = +imx_mxc_rtc_data_entry_single (MX31 ); +#endif /* ifdef CONFIG_SOC_IMX31 */ + +struct platform_device *__init imx_add_mxc_rtc ( +const struct imx_mxc_rtc_data *data) +{ +struct resource res[] = { + { + .start = data->iobase, + .end = data->iobase +SZ_16K -1 , + .flags =IORESOURCE_MEM , + }, { + .start = data->irq, + .end = data->irq, + .flags =IORESOURCE_IRQ , + }, + }; + +return imx_add_platform_device ("mxc_rtc" ,-1 , + res,ARRAY_SIZE (res),NULL ,0 ); +}
arch/arm/plat-mxc/include/mach/devices-common.h +9 -0
@@ -237,6 +237,15 @@ struct imx_mxc_pwm_data {struct platform_device *__init imx_add_mxc_pwm (const struct imx_mxc_pwm_data *data); +/* mxc_rtc */ +struct imx_mxc_rtc_data { +resource_size_t iobase; +resource_size_t irq; +}; +struct platform_device *__init imx_add_mxc_rtc ( +const struct imx_mxc_rtc_data *data); + +/* mxc_w1 */ struct imx_mxc_w1_data {resource_size_t iobase; };
Signature · 1 line
1.7.2.3
PATCH 3/6 ARM: mx3/pcm037: properly allocate memory for mx3-camera
In reply to Uwe Kleine-KönigThere is no need to memzero the buffer because dma_alloc_coherent zeros the memory for us.
This fixes:
BUG: Your driver calls ioremap() on system memory. This leads <4>to architecturally unpredictable behaviour on ARMv6+, and ioremap() <4>will fail in the next kernel release. Please fix your driver.
--- arch/arm/mach-mx3/mach-pcm037.c | 34 ++++++++++++++++++---------------- 1 files changed, 18 insertions(+), 16 deletions(-)
arch/arm/mach-mx3/mach-pcm037.c +18 -16
@@ -31,6 +31,7 @@#include <linux/usb/otg.h> #include <linux/usb/ulpi.h> #include <linux/gfp.h> +#include <linux/memblock.h> #include <media/soc_camera.h>
@@ -410,25 +411,16 @@ struct mx3_camera_pdata camera_pdata = { .mclk_10khz = 2000, }; -static int __init pcm037_camera_alloc_dma (const size_t buf_size) +static phys_addr_t mx3_camera_base__initdata ; +#define MX3_CAMERA_BUF_SIZE SZ_4M + +static int __init pcm037_camera_alloc_dma (void ) { -dma_addr_t dma_handle; -void *buf;int dma; -if (buf_size <2 *1024 *1024 ) -return -EINVAL ; - - buf =dma_alloc_coherent (NULL , buf_size, &dma_handle,GFP_KERNEL ); -if (!buf) { -pr_err ("%s: cannot allocate camera buffer-memory\n" , __func__); -return -ENOMEM ; - } - -memset (buf,0 , buf_size); - dma =dma_declare_coherent_memory (&mx3_camera.dev, - dma_handle, dma_handle, buf_size, + mx3_camera_base, mx3_camera_base, +MX3_CAMERA_BUF_SIZE ,DMA_MEMORY_MAP |DMA_MEMORY_EXCLUSIVE );/* The way we call dma_declare_coherent_memory only a malloc can fail */
@@ -649,7 +641,7 @@ static void __init pcm037_init(void)else iclink_mt9t031.power =NULL ; -if (!pcm037_camera_alloc_dma (4 *1024 *1024 )) +if (!pcm037_camera_alloc_dma ())mxc_register_device (&mx3_camera, &camera_pdata);platform_device_register (&pcm970_sja1000);
@@ -680,9 +672,19 @@ struct sys_timer pcm037_timer = { .init = pcm037_timer_init, }; +static void __init pcm037_reserve (void ) +{ +/* reserve 4 MiB for mx3-camera */ + mx3_camera_base =memblock_alloc (MX3_CAMERA_BUF_SIZE , +MX3_CAMERA_BUF_SIZE ); +memblock_free (mx3_camera_base,MX3_CAMERA_BUF_SIZE ); +memblock_remove (mx3_camera_base,MX3_CAMERA_BUF_SIZE ); +} +MACHINE_START (PCM037 ,"Phytec Phycore pcm037" )/* Maintainer: Pengutronix */ .boot_params = MX3x_PHYS_OFFSET + 0x100, + .reserve = pcm037_reserve, .map_io = mx31_map_io, .init_early = imx31_init_early, .init_irq = mx31_init_irq,
Signature · 1 line
1.7.2.3
PATCH 4/6 ARM: mx3/mx31moboard: properly allocate memory for mx3-camera
In reply to Uwe Kleine-KönigIt's not allowed to create an alias of system RAM for DMA. So the memory used must not be allocated using dma_alloc_coherent but has to be reserved before using memblock routines.
There is no need to memzero the buffer because dma_alloc_coherent zeros the memory for us.
--- arch/arm/mach-mx3/mach-mx31moboard.c | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-)
arch/arm/mach-mx3/mach-mx31moboard.c +17 -16
@@ -27,6 +27,7 @@#include <linux/mfd/mc13783.h> #include <linux/spi/spi.h> #include <linux/types.h> +#include <linux/memblock.h> #include <linux/usb/otg.h> #include <linux/usb/ulpi.h>
@@ -471,27 +472,17 @@ static struct mx3_camera_pdata camera_pdata = { .mclk_10khz = 4800, }; -#define CAMERA_BUF_SIZE (4*1024*1024) +static phys_addr_t mx3_camera_base__initdata ; +#define MX3_CAMERA_BUF_SIZE SZ_4M -static int __init mx31moboard_cam_alloc_dma (const size_t buf_size) +static int __init mx31moboard_cam_alloc_dma (void ) { -dma_addr_t dma_handle; -void *buf;int dma; -if (buf_size <2 *1024 *1024 ) -return -EINVAL ; - - buf =dma_alloc_coherent (NULL , buf_size, &dma_handle,GFP_KERNEL ); -if (!buf) { -pr_err ("%s: cannot allocate camera buffer-memory\n" , __func__); -return -ENOMEM ; - } - -memset (buf,0 , buf_size); dma =dma_declare_coherent_memory (&mx3_camera.dev, - dma_handle, dma_handle, buf_size, + mx3_camera_base, mx3_camera_base, +MX3_CAMERA_BUF_SIZE ,DMA_MEMORY_MAP |DMA_MEMORY_EXCLUSIVE );/* The way we call dma_declare_coherent_memory only a malloc can fail */
@@ -528,7 +519,7 @@ static void __init mx31moboard_init(void)imx31_add_mxc_mmc (0 , &sdhc1_pdata);mxc_register_device (&mx3_ipu, &mx3_ipu_data); -if (!mx31moboard_cam_alloc_dma (CAMERA_BUF_SIZE )) +if (!mx31moboard_cam_alloc_dma ())mxc_register_device (&mx3_camera, &camera_pdata);usb_xcvr_reset ();
@@ -563,9 +554,19 @@ struct sys_timer mx31moboard_timer = { .init = mx31moboard_timer_init, }; +static void __init mx31moboard_reserve (void ) +{ +/* reserve 4 MiB for mx3-camera */ + mx3_camera_base =memblock_alloc (MX3_CAMERA_BUF_SIZE , +MX3_CAMERA_BUF_SIZE ); +memblock_free (mx3_camera_base,MX3_CAMERA_BUF_SIZE ); +memblock_remove (mx3_camera_base,MX3_CAMERA_BUF_SIZE ); +} +MACHINE_START (MX31MOBOARD ,"EPFL Mobots mx31moboard" )/* Maintainer: Valentin Longchamp, EPFL Mobots group */ .boot_params = MX3x_PHYS_OFFSET + 0x100, + .reserve = mx31moboard_reserve, .map_io = mx31_map_io, .init_early = imx31_init_early, .init_irq = mx31_init_irq,
Signature · 1 line
1.7.2.3
PATCH 4/6 ARM: mx3/mx31moboard: properly allocate memory for mx3-camera
Le vendredi, 4 mars 2011 21.51:20, Uwe Kleine-K?nig a ?crit :
Quoted 8 lines
It's not allowed to create an alias of system RAM for DMA. So the memory used must not be allocated using
dma_alloc_coherentbut has to be reserved before using memblock routines.There is no need to memzero the buffer because
dma_alloc_coherentzeros the memory for us.Signed-off-by Uwe Kleine-K?nig <[email protected]>
Thank you very much for this patch !
Regards,
Philippe
PATCH 4/6 ARM: mx3/mx31moboard: properly allocate memory for mx3-camera
Quoted 11 lines · Philippe R?tornaz
Le vendredi, 4 mars 2011 21.51:20, Uwe Kleine-K?nig a ?crit :
Quoted 8 lines
It's not allowed to create an alias of system RAM for DMA. So the memory used must not be allocated using
dma_alloc_coherentbut has to be reserved before using memblock routines.There is no need to memzero the buffer because
dma_alloc_coherentzeros the memory for us.Signed-off-by Uwe Kleine-K?nig <[email protected]>Thank you very much for this patch !
Is this an Ack?
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 4/6 ARM: mx3/mx31moboard: properly allocate memory for mx3-camera
Le lundi, 4 avril 2011 17.05:49, Uwe Kleine-K?nig a ?crit :
Quoted 6 lines · Philippe R?tornaz
Quoted 5 lines
Le vendredi, 4 mars 2011 21.51:20, Uwe Kleine-K?nig a ?crit :
Quoted 4 lines
It's not allowed to create an alias of system RAM for DMA. So the memory used must not be allocated using
dma_alloc_coherentbut has to be reserved before using memblock routines.
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
There is no need to memzero the buffer because
dma_alloc_coherentzeros the memory for us.Signed-off-by Uwe Kleine-K?nig <[email protected]>Thank you very much for this patch !
Is this an Ack?
Yes, I tested and it works fine. Thanks !
Regards,
Philippe
RFC PATCH 5/6 ARM: mx3: dynamically allocate "ipu-core" devices
In reply to Uwe Kleine-König... together with the related devices "mx3_camera" and "mx3_sdc_fb".
"mx3_camera" doesn't fit the scheme of the other devices that just are allocated and registered in a single function because it needs additional care to get some dmaable memory. So currently imx31_alloc_mx3_camera duplicates most of imx_add_platform_device_dmamask, but I'm not sure it's worth to split the latter to be able to reuse more code.
This gets rid of mach-mx3/devices.[ch] and so several files need to be adapted not to #include devices.h anymore.
--- arch/arm/mach-mx3/Kconfig | 7 ++ arch/arm/mach-mx3/Makefile | 2 +- arch/arm/mach-mx3/devices-imx31.h | 8 ++ arch/arm/mach-mx3/devices-imx35.h | 8 ++ arch/arm/mach-mx3/devices.c | 96 ----------------- arch/arm/mach-mx3/devices.h | 3 - arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c | 10 +- arch/arm/mach-mx3/mach-armadillo5x0.c | 12 +-- arch/arm/mach-mx3/mach-cpuimx35.c | 1 - arch/arm/mach-mx3/mach-kzm_arm11_01.c | 1 - arch/arm/mach-mx3/mach-mx31_3ds.c | 1 - arch/arm/mach-mx3/mach-mx31ads.c | 1 - arch/arm/mach-mx3/mach-mx31lilly.c | 1 - arch/arm/mach-mx3/mach-mx31lite.c | 1 - arch/arm/mach-mx3/mach-mx31moboard.c | 39 ++++--- arch/arm/mach-mx3/mach-mx35_3ds.c | 1 - arch/arm/mach-mx3/mach-pcm037.c | 37 ++++--- arch/arm/mach-mx3/mach-pcm037_eet.c | 1 - arch/arm/mach-mx3/mach-pcm043.c | 12 +-- arch/arm/mach-mx3/mach-qong.c | 1 - arch/arm/mach-mx3/mach-vpr200.c | 12 +-- arch/arm/mach-mx3/mx31lilly-db.c | 8 +- arch/arm/mach-mx3/mx31lite-db.c | 1 - arch/arm/mach-mx3/mx31moboard-devboard.c | 1 - arch/arm/mach-mx3/mx31moboard-marxbot.c | 1 - arch/arm/mach-mx3/mx31moboard-smartbot.c | 1 - arch/arm/plat-mxc/devices/Kconfig | 3 + arch/arm/plat-mxc/devices/Makefile | 1 + arch/arm/plat-mxc/devices/platform-ipu-core.c | 129 +++++++++++++++++++++++ arch/arm/plat-mxc/include/mach/devices-common.h | 18 +++ 30 files changed, 237 insertions(+), 181 deletions(-) delete mode 100644 arch/arm/mach-mx3/devices.c delete mode 100644 arch/arm/mach-mx3/devices.h create mode 100644 arch/arm/plat-mxc/devices/platform-ipu-core.c
arch/arm/mach-mx3/Kconfig +7 -0
@@ -56,6 +56,7 @@ config MACH_PCM037 select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_UART + select IMX_HAVE_PLATFORM_IPU_CORE select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_MMC select IMX_HAVE_PLATFORM_MXC_NAND
@@ -121,6 +122,7 @@ config MACH_MX31MOBOARD select IMX_HAVE_PLATFORM_FSL_USB2_UDC select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_UART + select IMX_HAVE_PLATFORM_IPU_CORE select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_MMC select IMX_HAVE_PLATFORM_SPI_IMX
@@ -133,6 +135,7 @@ config MACH_MX31LILLY bool "Support MX31 LILLY-1131 platforms (INCO startec)" select SOC_IMX31 select IMX_HAVE_PLATFORM_IMX_UART + select IMX_HAVE_PLATFORM_IPU_CORE select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_MMC select IMX_HAVE_PLATFORM_SPI_IMX
@@ -158,6 +161,7 @@ config MACH_PCM043 select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_SSI select IMX_HAVE_PLATFORM_IMX_UART + select IMX_HAVE_PLATFORM_IPU_CORE select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_NAND select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
@@ -171,6 +175,7 @@ config MACH_ARMADILLO5X0 select SOC_IMX31 select IMX_HAVE_PLATFORM_IMX_I2C select IMX_HAVE_PLATFORM_IMX_UART + select IMX_HAVE_PLATFORM_IPU_CORE select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_MMC select IMX_HAVE_PLATFORM_MXC_NAND
@@ -235,6 +240,7 @@ choice config MACH_EUKREA_MBIMXSD35_BASEBOARD bool "Eukrea MBIMXSD development board" select IMX_HAVE_PLATFORM_IMX_SSI + select IMX_HAVE_PLATFORM_IPU_CORE help This adds board specific devices that can be found on Eukrea's MBIMXSD evaluation board.
@@ -248,6 +254,7 @@ config MACH_VPR200 select IMX_HAVE_PLATFORM_IMX2_WDT select IMX_HAVE_PLATFORM_IMX_UART select IMX_HAVE_PLATFORM_IMX_I2C + select IMX_HAVE_PLATFORM_IPU_CORE select IMX_HAVE_PLATFORM_MXC_EHCI select IMX_HAVE_PLATFORM_MXC_NAND select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
arch/arm/mach-mx3/Makefile +1 -1
@@ -4,7 +4,7 @@ # Object file lists. -obj-y := mm.o devices.o cpu.o +obj-y := mm.o cpu.o obj-$(CONFIG_SOC_IMX31) += clock-imx31.o iomux-imx31.o ehci-imx31.o obj-$(CONFIG_SOC_IMX35) += clock-imx35.o ehci-imx35.o obj-$(CONFIG_MACH_MX31ADS) += mach-mx31ads.o
arch/arm/mach-mx3/devices-imx31.h +8 -0
@@ -41,6 +41,14 @@ extern const struct imx_imx_uart_1irq_data imx31_imx_uart_data[] __initconst;#define imx31_add_imx_uart3 (pdata) imx31_add_imx_uart(3, pdata)#define imx31_add_imx_uart4 (pdata) imx31_add_imx_uart(4, pdata) +extern const struct imx_ipu_core_data imx31_ipu_core_data__initconst ; +#define imx31_add_ipu_core (pdata) \ + imx_add_ipu_core(&imx31_ipu_core_data, pdata) +#define imx31_alloc_mx3_camera (pdata) \ + imx_alloc_mx3_camera(&imx31_ipu_core_data, pdata) +#define imx31_add_mx3_sdc_fb (pdata) \ + imx_add_mx3_sdc_fb(&imx31_ipu_core_data, pdata) +extern const struct imx_mxc_ehci_data imx31_mxc_ehci_otg_data__initconst ;#define imx31_add_mxc_ehci_otg (pdata) \ imx_add_mxc_ehci(&imx31_mxc_ehci_otg_data, pdata)
arch/arm/mach-mx3/devices-imx35.h +8 -0
@@ -49,6 +49,14 @@ extern const struct imx_imx_uart_1irq_data imx35_imx_uart_data[] __initconst;#define imx35_add_imx_uart1 (pdata) imx35_add_imx_uart(1, pdata)#define imx35_add_imx_uart2 (pdata) imx35_add_imx_uart(2, pdata) +extern const struct imx_ipu_core_data imx35_ipu_core_data__initconst ; +#define imx35_add_ipu_core (pdata) \ + imx_add_ipu_core(&imx35_ipu_core_data, pdata) +#define imx35_alloc_mx3_camera (pdata) \ + imx_alloc_mx3_camera(&imx35_ipu_core_data, pdata) +#define imx35_add_mx3_sdc_fb (pdata) \ + imx_add_mx3_sdc_fb(&imx35_ipu_core_data, pdata) +extern const struct imx_mxc_ehci_data imx35_mxc_ehci_otg_data__initconst ;#define imx35_add_mxc_ehci_otg (pdata) \ imx_add_mxc_ehci(&imx35_mxc_ehci_otg_data, pdata)
arch/arm/mach-mx3/devices.c deleted +0 -96
96 lines not on this page · raw message
arch/arm/mach-mx3/devices.h deleted +0 -3
@@ -1,3 +0,0 @@ -extern struct platform_device mx3_ipu; -extern struct platform_device mx3_fb; -extern struct platform_device mx3_camera;
arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c +4 -6
@@ -45,7 +45,6 @@#include <mach/audmux.h> #include "devices-imx35.h" -#include "devices.h" static const struct fb_videomode fb_modedb[] = { {
@@ -100,12 +99,11 @@ static const struct fb_videomode fb_modedb[] = { }, }; -static struct ipu_platform_data mx3_ipu_data = { +static const struct ipu_platform_data mx3_ipu_data__initconst = { .irq_base =MXC_IPU_IRQ_START , }; -static struct mx3fb_platform_data mx3fb_pdata = { - .dma_dev = &mx3_ipu.dev, +static struct mx3fb_platform_data mx3fb_pdata__initdata = { .name ="CMO-QVGA" , .mode = fb_modedb, .num_modes =ARRAY_SIZE (fb_modedb),
@@ -283,8 +281,8 @@ void __init eukrea_mbimxsd35_baseboard_init(void)#endif imx35_add_imx_uart1 (&uart_pdata); -mxc_register_device (&mx3_ipu, &mx3_ipu_data); -mxc_register_device (&mx3_fb, &mx3fb_pdata); +imx35_add_ipu_core (&mx3_ipu_data); +imx35_add_mx3_sdc_fb (&mx3fb_pdata);imx35_add_imx_ssi (0 , &eukrea_mbimxsd_ssi_pdata);
arch/arm/mach-mx3/mach-armadillo5x0.c +4 -8
@@ -49,12 +49,9 @@#include <mach/common.h> #include <mach/iomux-mx3.h> -#include <mach/ipu.h> -#include <mach/mx3fb.h> #include <mach/ulpi.h> #include "devices-imx31.h" -#include "devices.h" #include "crm_regs.h" static int armadillo5x0_pins[] = {
@@ -383,12 +380,11 @@ static const struct fb_videomode fb_modedb[] = { }, }; -static struct ipu_platform_data mx3_ipu_data = { +static const struct ipu_platform_data mx3_ipu_data__initconst = { .irq_base =MXC_IPU_IRQ_START , }; -static struct mx3fb_platform_data mx3fb_pdata = { - .dma_dev = &mx3_ipu.dev, +static struct mx3fb_platform_data mx3fb_pdata__initdata = { .name ="CRT-VGA" , .mode = fb_modedb, .num_modes =ARRAY_SIZE (fb_modedb),
@@ -521,8 +517,8 @@ static void __init armadillo5x0_init(void)imx31_add_mxc_mmc (0 , &sdhc_pdata);/* Register FB */ -mxc_register_device (&mx3_ipu, &mx3_ipu_data); -mxc_register_device (&mx3_fb, &mx3fb_pdata); +imx31_add_ipu_core (&mx3_ipu_data); +imx31_add_mx3_sdc_fb (&mx3fb_pdata);/* Register NOR Flash */ mxc_register_device(&armadillo5x0_nor_flash,
arch/arm/mach-mx3/mach-cpuimx35.c +0 -1
@@ -44,7 +44,6 @@#include <mach/mxc_nand.h> #include "devices-imx35.h" -#include "devices.h" static const struct imxuart_platform_data uart_pdata__initconst = { .flags =IMXUART_HAVE_RTSCTS ,
arch/arm/mach-mx3/mach-kzm_arm11_01.c +0 -1
@@ -39,7 +39,6 @@#include <mach/memory.h> #include "devices-imx31.h" -#include "devices.h" #define KZM_ARM11_IO_ADDRESS (x) (IOMEM( \ IMX_IO_P2V_MODULE(x, MX31_CS4) ?: \
arch/arm/mach-mx3/mach-mx31_3ds.c +0 -1
@@ -37,7 +37,6 @@#include <mach/ulpi.h> #include "devices-imx31.h" -#include "devices.h" /* CPLD IRQ line for external uart, external ethernet etc */ #define EXPIO_PARENT_INT IOMUX_TO_IRQ(MX31_PIN_GPIO1_1)
arch/arm/mach-mx3/mach-mx31ads.c +0 -1
@@ -38,7 +38,6 @@#endif #include "devices-imx31.h" -#include "devices.h" /* PBC Board interrupt status register */ #define PBC_INTSTATUS 0x000016
arch/arm/mach-mx3/mach-mx31lilly.c +0 -1
@@ -46,7 +46,6 @@#include <mach/ulpi.h> #include "devices-imx31.h" -#include "devices.h" /* * This file contains module-specific initialization routines for LILLY-1131.
arch/arm/mach-mx3/mach-mx31lite.c +0 -1
@@ -44,7 +44,6 @@#include <mach/ulpi.h> #include "devices-imx31.h" -#include "devices.h" /* * This file contains the module-specific initialization routines.
arch/arm/mach-mx3/mach-mx31moboard.c +23 -16
@@ -40,13 +40,10 @@#include <mach/common.h> #include <mach/hardware.h> #include <mach/iomux-mx3.h> -#include <mach/ipu.h> -#include <mach/mx3_camera.h> #include <mach/spi.h> #include <mach/ulpi.h> #include "devices-imx31.h" -#include "devices.h" static unsigned int moboard_pins[] = {/* UART0 */
@@ -195,8 +192,8 @@ static struct regulator_init_data sdhc_vreg_data = {static struct regulator_consumer_supply cam_consumers[] = { { - .dev = &mx3_camera.dev, - .supply ="cam_vcc" , + .dev_name ="mx3_camera.0" , + .supply ="cam_vcc" , }, };
@@ -457,7 +454,7 @@ static struct platform_device mx31moboard_leds_device = { }, }; -static struct ipu_platform_data mx3_ipu_data = { +static const struct ipu_platform_data mx3_ipu_data__initconst = { .irq_base =MXC_IPU_IRQ_START , };
@@ -466,8 +463,7 @@ static struct platform_device *devices[] __initdata = { &mx31moboard_leds_device, }; -static struct mx3_camera_pdata camera_pdata = { - .dma_dev = &mx3_ipu.dev, +static struct mx3_camera_pdata camera_pdata__initdata = { .flags =MX3_CAMERA_DATAWIDTH_8 |MX3_CAMERA_DATAWIDTH_10 , .mclk_10khz =4800 , };
@@ -475,18 +471,31 @@ static struct mx3_camera_pdata camera_pdata = {static phys_addr_t mx3_camera_base__initdata ;#define MX3_CAMERA_BUF_SIZE SZ_4M -static int __init mx31moboard_cam_alloc_dma (void ) +static int __init mx31moboard_init_cam (void ) { -int dma; +int dma, ret = -ENOMEM ; +struct platform_device *pdev; + +imx31_add_ipu_core (&mx3_ipu_data); + pdev =imx31_alloc_mx3_camera (&camera_pdata); +if (IS_ERR (pdev)) +return PTR_ERR (pdev); - dma =dma_declare_coherent_memory (&mx3_camera.dev, + dma =dma_declare_coherent_memory (&pdev->dev, mx3_camera_base, mx3_camera_base,MX3_CAMERA_BUF_SIZE ,DMA_MEMORY_MAP |DMA_MEMORY_EXCLUSIVE ); +if (!(dma &DMA_MEMORY_MAP )) + goto err; + + ret =platform_device_add (pdev); +if (ret) +err: +platform_device_put (pdev); + +return ret; -/* The way we call dma_declare_coherent_memory only a malloc can fail */ -return dma &DMA_MEMORY_MAP ?0 : -ENOMEM ; }static int mx31moboard_baseboard;
@@ -518,9 +527,7 @@ static void __init mx31moboard_init(void)imx31_add_mxc_mmc (0 , &sdhc1_pdata); -mxc_register_device (&mx3_ipu, &mx3_ipu_data); -if (!mx31moboard_cam_alloc_dma ()) -mxc_register_device (&mx3_camera, &camera_pdata); +mx31moboard_init_cam ();usb_xcvr_reset ();
arch/arm/mach-mx3/mach-mx35_3ds.c +0 -1
@@ -42,7 +42,6 @@#include <mach/3ds_debugboard.h> #include "devices-imx35.h" -#include "devices.h" #define EXPIO_PARENT_INT (MXC_INTERNAL_IRQS + GPIO_PORTA + 1)
arch/arm/mach-mx3/mach-pcm037.c +20 -17
@@ -42,13 +42,9 @@#include <mach/common.h> #include <mach/hardware.h> #include <mach/iomux-mx3.h> -#include <mach/ipu.h> -#include <mach/mx3_camera.h> -#include <mach/mx3fb.h> #include <mach/ulpi.h> #include "devices-imx31.h" -#include "devices.h" #include "pcm037.h" static enum pcm037_board_variant pcm037_instance =PCM037_PCM970 ;
@@ -405,8 +401,7 @@ static const struct imxmmc_platform_data sdhc_pdata __initconst = { .exit = pcm970_sdhc1_exit, }; -struct mx3_camera_pdata camera_pdata = { - .dma_dev = &mx3_ipu.dev, +struct mx3_camera_pdata camera_pdata__initdata = { .flags =MX3_CAMERA_DATAWIDTH_8 |MX3_CAMERA_DATAWIDTH_10 , .mclk_10khz =2000 , };
@@ -414,17 +409,27 @@ struct mx3_camera_pdata camera_pdata = {static phys_addr_t mx3_camera_base__initdata ;#define MX3_CAMERA_BUF_SIZE SZ_4M -static int __init pcm037_camera_alloc_dma (void ) +static int __init pcm037_init_camera (void ) { -int dma; +int dma, ret = -ENOMEM ; +struct platform_device *pdev =imx31_alloc_mx3_camera (&camera_pdata); - dma =dma_declare_coherent_memory (&mx3_camera.dev, +if (IS_ERR (pdev)) +return PTR_ERR (pdev); + + dma =dma_declare_coherent_memory (&pdev->dev, mx3_camera_base, mx3_camera_base,MX3_CAMERA_BUF_SIZE ,DMA_MEMORY_MAP |DMA_MEMORY_EXCLUSIVE ); +if (!(dma &DMA_MEMORY_MAP )) + goto err; + + ret =platform_device_add (pdev); +if (ret) +err: +platform_device_put (pdev); -/* The way we call dma_declare_coherent_memory only a malloc can fail */ -return dma &DMA_MEMORY_MAP ?0 : -ENOMEM ; +return ret; }static struct platform_device *devices[]__initdata = {
@@ -434,7 +439,7 @@ static struct platform_device *devices[] __initdata = { &pcm037_mt9v022, }; -static struct ipu_platform_data mx3_ipu_data = { +static const struct ipu_platform_data mx3_ipu_data__initconst = { .irq_base =MXC_IPU_IRQ_START , };
@@ -492,7 +497,6 @@ static const struct fb_videomode fb_modedb[] = { };static struct mx3fb_platform_data mx3fb_pdata = { - .dma_dev = &mx3_ipu.dev, .name ="Sharp-LQ035Q7DH06-QVGA" , .mode = fb_modedb, .num_modes =ARRAY_SIZE (fb_modedb),
@@ -630,8 +634,8 @@ static void __init pcm037_init(void)imx31_add_mxc_nand (&pcm037_nand_board_info);imx31_add_mxc_mmc (0 , &sdhc_pdata); -mxc_register_device (&mx3_ipu, &mx3_ipu_data); -mxc_register_device (&mx3_fb, &mx3fb_pdata); +imx31_add_ipu_core (&mx3_ipu_data); +imx31_add_mx3_sdc_fb (&mx3fb_pdata);/* CSI */ /* Camera power: default - off */
@@ -641,8 +645,7 @@ static void __init pcm037_init(void)else iclink_mt9t031.power =NULL ; -if (!pcm037_camera_alloc_dma ()) -mxc_register_device (&mx3_camera, &camera_pdata); +pcm037_init_camera ();platform_device_register (&pcm970_sja1000);
arch/arm/mach-mx3/mach-pcm037_eet.c +0 -1
@@ -19,7 +19,6 @@#include <asm/mach-types.h> #include "pcm037.h" -#include "devices.h" #include "devices-imx31.h" static unsigned int pcm037_eet_pins[] = {
arch/arm/mach-mx3/mach-pcm043.c +4 -8
@@ -36,13 +36,10 @@#include <mach/hardware.h> #include <mach/common.h> #include <mach/iomux-mx35.h> -#include <mach/ipu.h> -#include <mach/mx3fb.h> #include <mach/ulpi.h> #include <mach/audmux.h> #include "devices-imx35.h" -#include "devices.h" static const struct fb_videomode fb_modedb[] = { {
@@ -80,12 +77,11 @@ static const struct fb_videomode fb_modedb[] = { }, }; -static struct ipu_platform_data mx3_ipu_data = { +static const struct ipu_platform_data mx3_ipu_data__initconst = { .irq_base =MXC_IPU_IRQ_START , }; -static struct mx3fb_platform_data mx3fb_pdata = { - .dma_dev = &mx3_ipu.dev, +static struct mx3fb_platform_data mx3fb_pdata__initdata = { .name ="Sharp-LQ035Q7" , .mode = fb_modedb, .num_modes =ARRAY_SIZE (fb_modedb),
@@ -380,8 +376,8 @@ static void __init pcm043_init(void)imx35_add_imx_i2c0 (&pcm043_i2c0_data); -mxc_register_device (&mx3_ipu, &mx3_ipu_data); -mxc_register_device (&mx3_fb, &mx3fb_pdata); +imx35_add_ipu_core (&mx3_ipu_data); +imx35_add_mx3_sdc_fb (&mx3fb_pdata);if (otg_mode_host) { otg_pdata.otg = imx_otg_ulpi_create(ULPI_OTG_DRVVBUS |
arch/arm/mach-mx3/mach-qong.c +0 -1
@@ -33,7 +33,6 @@#include <mach/iomux-mx3.h> #include "devices-imx31.h" -#include "devices.h" /* FPGA defines */ #define QONG_FPGA_VERSION (major, minor, rev) \
arch/arm/mach-mx3/mach-vpr200.c +4 -8
@@ -32,8 +32,6 @@#include <mach/common.h> #include <mach/iomux-mx35.h> #include <mach/irqs.h> -#include <mach/ipu.h> -#include <mach/mx3fb.h> #include <linux/i2c.h> #include <linux/i2c/at24.h>
@@ -41,7 +39,6 @@#include <linux/gpio_keys.h> #include "devices-imx35.h" -#include "devices.h" #define GPIO_LCDPWR IMX_GPIO_NR(1, 2)#define GPIO_PMIC_INT IMX_GPIO_NR(2, 0)
@@ -91,12 +88,11 @@ static const struct fb_videomode fb_modedb[] = { } }; -static struct ipu_platform_data mx3_ipu_data = { +static const struct ipu_platform_data mx3_ipu_data__initconst = { .irq_base =MXC_IPU_IRQ_START , }; -static struct mx3fb_platform_data mx3fb_pdata = { - .dma_dev = &mx3_ipu.dev, +static struct mx3fb_platform_data mx3fb_pdata__initdata = { .name ="PT0708048" , .mode = fb_modedb, .num_modes =ARRAY_SIZE (fb_modedb),
@@ -294,8 +290,8 @@ static void __init vpr200_board_init(void)imx35_add_imx_uart0 (NULL );imx35_add_imx_uart2 (NULL ); -mxc_register_device (&mx3_ipu, &mx3_ipu_data); -mxc_register_device (&mx3_fb, &mx3fb_pdata); +imx35_add_ipu_core (&mx3_ipu_data); +imx35_add_mx3_sdc_fb (&mx3fb_pdata);imx35_add_fsl_usb2_udc (&otg_device_pdata);imx35_add_mxc_ehci_hs (&usb_host_pdata);
arch/arm/mach-mx3/mx31lilly-db.c +3 -5
@@ -38,7 +38,6 @@#include <mach/ipu.h> #include "devices-imx31.h" -#include "devices.h" /* * This file contains board-specific initialization routines for the
@@ -164,7 +163,7 @@ static const struct imxmmc_platform_data mmc_pdata __initconst = { };/* Framebuffer support */ -static struct ipu_platform_data ipu_data__initdata = { +static const struct ipu_platform_data ipu_data__initconst = { .irq_base =MXC_IPU_IRQ_START , };
@@ -187,7 +186,6 @@ static const struct fb_videomode fb_modedb = { };static struct mx3fb_platform_data fb_pdata__initdata = { - .dma_dev = &mx3_ipu.dev, .name ="CRT-VGA" , .mode = &fb_modedb, .num_modes =1 ,
@@ -202,8 +200,8 @@ static void __init mx31lilly_init_fb(void)return ; } -mxc_register_device (&mx3_ipu, &ipu_data); -mxc_register_device (&mx3_fb, &fb_pdata); +imx31_add_ipu_core (&ipu_data); +imx31_add_mx3_sdc_fb (&fb_pdata);gpio_direction_output (LCD_VCC_EN_GPIO ,1 ); }
arch/arm/mach-mx3/mx31lite-db.c +0 -1
@@ -37,7 +37,6 @@#include <mach/board-mx31lite.h> #include "devices-imx31.h" -#include "devices.h" /* * This file contains board-specific initialization routines for the
arch/arm/mach-mx3/mx31moboard-devboard.c +0 -1
@@ -28,7 +28,6 @@#include <mach/ulpi.h> #include "devices-imx31.h" -#include "devices.h" static unsigned int devboard_pins[] = {/* UART1 */
arch/arm/mach-mx3/mx31moboard-marxbot.c +0 -1
@@ -33,7 +33,6 @@#include <media/soc_camera.h> #include "devices-imx31.h" -#include "devices.h" static unsigned int marxbot_pins[] = {/* SDHC2 */
arch/arm/mach-mx3/mx31moboard-smartbot.c +0 -1
@@ -32,7 +32,6 @@#include <media/soc_camera.h> #include "devices-imx31.h" -#include "devices.h" static unsigned int smartbot_pins[] = {/* UART1 */
arch/arm/plat-mxc/devices/Kconfig +3 -0
@@ -41,6 +41,9 @@ config IMX_HAVE_PLATFORM_IMX_UART config IMX_HAVE_PLATFORM_IMX_UDC bool +config IMX_HAVE_PLATFORM_IPU_CORE + bool + config IMX_HAVE_PLATFORM_MX1_CAMERA bool
arch/arm/plat-mxc/devices/Makefile +1 -0
@@ -12,6 +12,7 @@ obj-$(CONFIG_IMX_HAVE_PLATFORM_IMX_KEYPAD) += platform-imx-keypad.o obj-$(CONFIG_IMX_HAVE_PLATFORM_IMX_SSI) += platform-imx-ssi.o obj-$(CONFIG_IMX_HAVE_PLATFORM_IMX_UART) += platform-imx-uart.o obj-$(CONFIG_IMX_HAVE_PLATFORM_IMX_UDC) += platform-imx_udc.o +obj-$(CONFIG_IMX_HAVE_PLATFORM_IPU_CORE) += platform-ipu-core.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MX1_CAMERA) += platform-mx1-camera.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MX2_CAMERA) += platform-mx2-camera.o obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_EHCI) += platform-mxc-ehci.o
arch/arm/plat-mxc/devices/platform-ipu-core.c new file +129 -0
129 lines not on this page · raw message
arch/arm/plat-mxc/include/mach/devices-common.h +18 -0
@@ -166,6 +166,24 @@ struct platform_device *__init imx_add_imx_udc(const struct imx_imx_udc_data *data, const struct imxusb_platform_data *pdata); +#include <mach/ipu.h> +#include <mach/mx3fb.h> +#include <mach/mx3_camera.h> +struct imx_ipu_core_data { +resource_size_t iobase; +resource_size_t synirq; +resource_size_t errirq; +}; +struct platform_device *__init imx_add_ipu_core ( +const struct imx_ipu_core_data *data, +const struct ipu_platform_data *pdata); +struct platform_device *__init imx_alloc_mx3_camera ( +const struct imx_ipu_core_data *data, +const struct mx3_camera_pdata *pdata); +struct platform_device *__init imx_add_mx3_sdc_fb ( +const struct imx_ipu_core_data *data, +struct mx3fb_platform_data *pdata); +#include <mach/mx1_camera.h> struct imx_mx1_camera_data {resource_size_t iobase;
Signature · 1 line
1.7.2.3
PATCH 6/6 ARM: imx: move mx3 support to mach-imx
In reply to Uwe Kleine-König---
arch/arm/Makefile | 2 +-
arch/arm/mach-imx/Kconfig | 269 ++++++++++++++++++++
arch/arm/mach-imx/Makefile | 37 +++-
arch/arm/mach-imx/Makefile.boot | 4 +
arch/arm/mach-imx/cache-l2x0.c | 56 ++++
arch/arm/{mach-mx3 => mach-imx}/clock-imx31.c | 2 +-
arch/arm/{mach-mx3 => mach-imx}/clock-imx35.c | 0
arch/arm/{mach-mx3/cpu.c => mach-imx/cpu-imx31.c} | 38 +---
arch/arm/mach-imx/cpu-imx35.c | 45 ++++
.../crm_regs.h => mach-imx/crmregs-imx31.h} | 0
arch/arm/{mach-mx3 => mach-imx}/devices-imx31.h | 0
arch/arm/{mach-mx3 => mach-imx}/devices-imx35.h | 0
arch/arm/{mach-mx3 => mach-imx}/ehci-imx31.c | 0
arch/arm/{mach-mx3 => mach-imx}/ehci-imx35.c | 0
.../eukrea_mbimxsd35-baseboard.c} | 0
arch/arm/{mach-mx3 => mach-imx}/iomux-imx31.c | 0
.../arm/{mach-mx3 => mach-imx}/mach-armadillo5x0.c | 2 +-
arch/arm/{mach-mx3 => mach-imx}/mach-bug.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-cpuimx35.c | 0
.../arm/{mach-mx3 => mach-imx}/mach-kzm_arm11_01.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-mx31_3ds.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-mx31ads.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-mx31lilly.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-mx31lite.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-mx31moboard.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-mx35_3ds.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-pcm037.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-pcm037_eet.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-pcm043.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-qong.c | 0
arch/arm/{mach-mx3 => mach-imx}/mach-vpr200.c | 0
arch/arm/mach-imx/mm-imx31.c | 66 +++++
arch/arm/mach-imx/mm-imx35.c | 63 +++++
arch/arm/{mach-mx3 => mach-imx}/mx31lilly-db.c | 0
arch/arm/{mach-mx3 => mach-imx}/mx31lite-db.c | 0
.../{mach-mx3 => mach-imx}/mx31moboard-devboard.c | 0
.../{mach-mx3 => mach-imx}/mx31moboard-marxbot.c | 0
.../{mach-mx3 => mach-imx}/mx31moboard-smartbot.c | 0
arch/arm/{mach-mx3 => mach-imx}/pcm037.h | 0
arch/arm/mach-mx3/Kconfig | 265 -------------------
arch/arm/mach-mx3/Makefile | 26 --
arch/arm/mach-mx3/Makefile.boot | 3 -
arch/arm/mach-mx3/mm.c | 141 ----------
arch/arm/plat-mxc/Kconfig | 1 -
44 files changed, 539 insertions(+), 481 deletions(-)
create mode 100644 arch/arm/mach-imx/cache-l2x0.c
rename arch/arm/{mach-mx3 => mach-imx}/clock-imx31.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/clock-imx35.c (100%)
rename arch/arm/{mach-mx3/cpu.c => mach-imx/cpu-imx31.c} (72%)
create mode 100644 arch/arm/mach-imx/cpu-imx35.c
rename arch/arm/{mach-mx3/crm_regs.h => mach-imx/crmregs-imx31.h} (100%)
rename arch/arm/{mach-mx3 => mach-imx}/devices-imx31.h (100%)
rename arch/arm/{mach-mx3 => mach-imx}/devices-imx35.h (100%)
rename arch/arm/{mach-mx3 => mach-imx}/ehci-imx31.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/ehci-imx35.c (100%)
rename arch/arm/{mach-mx3/eukrea_mbimxsd-baseboard.c => mach-imx/eukrea_mbimxsd35-baseboard.c} (100%)
rename arch/arm/{mach-mx3 => mach-imx}/iomux-imx31.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-armadillo5x0.c (99%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-bug.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-cpuimx35.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-kzm_arm11_01.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31_3ds.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31ads.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31lilly.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31lite.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx31moboard.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-mx35_3ds.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-pcm037.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-pcm037_eet.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-pcm043.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-qong.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mach-vpr200.c (100%)
create mode 100644 arch/arm/mach-imx/mm-imx31.c
create mode 100644 arch/arm/mach-imx/mm-imx35.c
rename arch/arm/{mach-mx3 => mach-imx}/mx31lilly-db.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31lite-db.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31moboard-devboard.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31moboard-marxbot.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/mx31moboard-smartbot.c (100%)
rename arch/arm/{mach-mx3 => mach-imx}/pcm037.h (100%)
delete mode 100644 arch/arm/mach-mx3/Kconfig
delete mode 100644 arch/arm/mach-mx3/Makefile
delete mode 100644 arch/arm/mach-mx3/Makefile.boot
delete mode 100644 arch/arm/mach-mx3/mm.carch/arm/Makefile +1 -1
@@ -155,7 +155,7 @@ machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 machine-$(CONFIG_ARCH_MX1) := imx machine-$(CONFIG_ARCH_MX2) := imx machine-$(CONFIG_ARCH_MX25) := imx -machine-$(CONFIG_ARCH_MX3) := mx3 +machine-$(CONFIG_ARCH_MX3) := imx machine-$(CONFIG_ARCH_MX5) := mx5 machine-$(CONFIG_ARCH_MXC91231) := mxc91231 machine-$(CONFIG_ARCH_MXS) := mxs
arch/arm/mach-imx/Kconfig +269 -0
283 lines not on this page · raw message
arch/arm/mach-imx/Makefile +30 -7
@@ -1,9 +1,3 @@ -# -# Makefile for the linux kernel. -# - -# Object file lists. - obj-$(CONFIG_IMX_HAVE_DMA_V1) += dma-v1.o obj-$(CONFIG_ARCH_MX1) += clock-imx1.o mm-imx1.o
@@ -14,18 +8,26 @@ obj-$(CONFIG_ARCH_MX25) += clock-imx25.o mm-imx25.o ehci-imx25.o obj-$(CONFIG_MACH_MX27) += cpu-imx27.o pm-imx27.o obj-$(CONFIG_MACH_MX27) += clock-imx27.o mm-imx27.o ehci-imx27.o +obj-$(CONFIG_SOC_IMX31) += mm-imx31.o cpu-imx31.o clock-imx31.o iomux-imx31.o ehci-imx31.o +obj-$(CONFIG_SOC_IMX35) += mm-imx35.o cpu-imx35.o clock-imx35.o ehci-imx35.o +obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o + # Support for CMOS sensor interface -obj-$(CONFIG_MX1_VIDEO) += mx1-camera-fiq.o mx1-camera-fiq-ksym.o +obj-$(CONFIG_MX1_VIDEO) += mx1-camera-fiq.o mx1-camera-fiq-ksym.o +# i.MX1 based machines obj-$(CONFIG_ARCH_MX1ADS) += mach-mx1ads.o obj-$(CONFIG_MACH_SCB9328) += mach-scb9328.o +# i.MX21 based machines obj-$(CONFIG_MACH_MX21ADS) += mach-mx21ads.o +# i.MX25 based machines obj-$(CONFIG_MACH_MX25_3DS) += mach-mx25_3ds.o obj-$(CONFIG_MACH_EUKREA_CPUIMX25) += mach-eukrea_cpuimx25.o obj-$(CONFIG_MACH_EUKREA_MBIMXSD25_BASEBOARD) += eukrea_mbimxsd25-baseboard.o +# i.MX27 based machines obj-$(CONFIG_MACH_MX27ADS) += mach-mx27ads.o obj-$(CONFIG_MACH_PCM038) += mach-pcm038.o obj-$(CONFIG_MACH_PCM970_BASEBOARD) += pcm970-baseboard.o
@@ -37,3 +39,24 @@ obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o obj-$(CONFIG_MACH_PCA100) += mach-pca100.o obj-$(CONFIG_MACH_MXT_TD60) += mach-mxt_td60.o obj-$(CONFIG_MACH_IMX27IPCAM) += mach-imx27ipcam.o + +# i.MX31 based machines +obj-$(CONFIG_MACH_MX31ADS) += mach-mx31ads.o +obj-$(CONFIG_MACH_MX31LILLY) += mach-mx31lilly.o mx31lilly-db.o +obj-$(CONFIG_MACH_MX31LITE) += mach-mx31lite.o mx31lite-db.o +obj-$(CONFIG_MACH_PCM037) += mach-pcm037.o +obj-$(CONFIG_MACH_PCM037_EET) += mach-pcm037_eet.o +obj-$(CONFIG_MACH_MX31_3DS) += mach-mx31_3ds.o +obj-$(CONFIG_MACH_MX31MOBOARD) += mach-mx31moboard.o mx31moboard-devboard.o \ + mx31moboard-marxbot.o mx31moboard-smartbot.o +obj-$(CONFIG_MACH_QONG) += mach-qong.o +obj-$(CONFIG_MACH_ARMADILLO5X0) += mach-armadillo5x0.o +obj-$(CONFIG_MACH_KZM_ARM11_01) += mach-kzm_arm11_01.o +obj-$(CONFIG_MACH_BUG) += mach-bug.o + +# i.MX35 based machines +obj-$(CONFIG_MACH_PCM043) += mach-pcm043.o +obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35_3ds.o +obj-$(CONFIG_MACH_EUKREA_CPUIMX35) += mach-cpuimx35.o +obj-$(CONFIG_MACH_EUKREA_MBIMXSD35_BASEBOARD) += eukrea_mbimxsd35-baseboard.o +obj-$(CONFIG_MACH_VPR200) += mach-vpr200.o
arch/arm/mach-imx/Makefile.boot +4 -0
@@ -13,3 +13,7 @@ initrd_phys-$(CONFIG_ARCH_MX25) := 0x80800000 zreladdr-$(CONFIG_MACH_MX27) := 0xA0008000 params_phys-$(CONFIG_MACH_MX27) := 0xA0000100 initrd_phys-$(CONFIG_MACH_MX27) := 0xA0800000 + +zreladdr-$(CONFIG_ARCH_MX3) := 0x80008000 +params_phys-$(CONFIG_ARCH_MX3) := 0x80000100 +initrd_phys-$(CONFIG_ARCH_MX3) := 0x80800000
arch/arm/mach-imx/cache-l2x0.c new file +56 -0
56 lines not on this page · raw message
arch/arm/mach-imx/clock-imx31.c renamed from arch/arm/mach-mx3/clock-imx31.c +1 -1
@@ -32,7 +32,7 @@#include <mach/mx31.h> #include <mach/common.h> -#include "crm_regs.h" +#include "crmregs-imx31.h" #define PRE_DIV_MIN_FREQ 10000000/* Minimum Frequency after Predivider */
arch/arm/mach-imx/clock-imx35.c renamed from arch/arm/mach-mx3/clock-imx35.c +0 -0
arch/arm/mach-imx/cpu-imx31.c renamed from arch/arm/mach-mx3/cpu.c +3 -35
@@ -1,5 +1,5 @@/* -* MX3 CPU type detection +* MX31 CPU type detection * * Copyright (c) 2009 Daniel Mack <[email protected]> *
@@ -17,14 +17,12 @@unsigned int mx31_cpu_rev;EXPORT_SYMBOL (mx31_cpu_rev); -struct mx3_cpu_type { +static struct {u8 srev;const char *name;const char *v;unsigned int rev; -}; - -static struct mx3_cpu_type mx31_cpu_type[]__initdata = { +} mx31_cpu_type[]__initdata = { { .srev =0x00 , .name ="i.MX31(L)" , .v ="1.0" , .rev =IMX_CHIP_REVISION_1_0 }, { .srev =0x10 , .name ="i.MX31" , .v ="1.1" , .rev =IMX_CHIP_REVISION_1_1 }, { .srev =0x11 , .name ="i.MX31L" , .v ="1.1" , .rev =IMX_CHIP_REVISION_1_1 },
@@ -57,33 +55,3 @@ void __init mx31_read_cpu_rev(void)printk (KERN_WARNING "Unknown CPU identifier. srev = %02x\n" , srev); } - -unsigned int mx35_cpu_rev; -EXPORT_SYMBOL (mx35_cpu_rev); - -void __init mx35_read_cpu_rev (void ) -{ -u32 rev; -char *srev; - - rev =__raw_readl (MX35_IO_ADDRESS (MX35_IIM_BASE_ADDR +MXC_IIMSREV )); -switch (rev) { -case 0x00 : - mx35_cpu_rev =IMX_CHIP_REVISION_1_0 ; - srev ="1.0" ; -break ; -case 0x10 : - mx35_cpu_rev =IMX_CHIP_REVISION_2_0 ; - srev ="2.0" ; -break ; -case 0x11 : - mx35_cpu_rev =IMX_CHIP_REVISION_2_1 ; - srev ="2.1" ; -break ; -default : - mx35_cpu_rev =IMX_CHIP_REVISION_UNKNOWN ; - srev ="unknown" ; - } - -printk (KERN_INFO "CPU identified as i.MX35, silicon rev %s\n" , srev); -}
arch/arm/mach-imx/cpu-imx35.c new file +45 -0
45 lines not on this page · raw message
arch/arm/mach-imx/crmregs-imx31.h renamed from arch/arm/mach-mx3/crm_regs.h +0 -0
arch/arm/mach-imx/devices-imx31.h renamed from arch/arm/mach-mx3/devices-imx31.h +0 -0
arch/arm/mach-imx/devices-imx35.h renamed from arch/arm/mach-mx3/devices-imx35.h +0 -0
arch/arm/mach-imx/ehci-imx31.c renamed from arch/arm/mach-mx3/ehci-imx31.c +0 -0
arch/arm/mach-imx/ehci-imx35.c renamed from arch/arm/mach-mx3/ehci-imx35.c +0 -0
arch/arm/mach-imx/eukrea_mbimxsd35-baseboard.c renamed from arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c +0 -0
arch/arm/mach-imx/iomux-imx31.c renamed from arch/arm/mach-mx3/iomux-imx31.c +0 -0
arch/arm/mach-imx/mach-armadillo5x0.c renamed from arch/arm/mach-mx3/mach-armadillo5x0.c +1 -1
@@ -52,7 +52,7 @@#include <mach/ulpi.h> #include "devices-imx31.h" -#include "crm_regs.h" +#include "crmregs-imx31.h" static int armadillo5x0_pins[] = {/* UART1 */
arch/arm/mach-imx/mach-bug.c renamed from arch/arm/mach-mx3/mach-bug.c +0 -0
arch/arm/mach-imx/mach-cpuimx35.c renamed from arch/arm/mach-mx3/mach-cpuimx35.c +0 -0
arch/arm/mach-imx/mach-kzm_arm11_01.c renamed from arch/arm/mach-mx3/mach-kzm_arm11_01.c +0 -0
arch/arm/mach-imx/mach-mx31_3ds.c renamed from arch/arm/mach-mx3/mach-mx31_3ds.c +0 -0
arch/arm/mach-imx/mach-mx31ads.c renamed from arch/arm/mach-mx3/mach-mx31ads.c +0 -0
arch/arm/mach-imx/mach-mx31lilly.c renamed from arch/arm/mach-mx3/mach-mx31lilly.c +0 -0
arch/arm/mach-imx/mach-mx31lite.c renamed from arch/arm/mach-mx3/mach-mx31lite.c +0 -0
arch/arm/mach-imx/mach-mx31moboard.c renamed from arch/arm/mach-mx3/mach-mx31moboard.c +0 -0
arch/arm/mach-imx/mach-mx35_3ds.c renamed from arch/arm/mach-mx3/mach-mx35_3ds.c +0 -0
arch/arm/mach-imx/mach-pcm037.c renamed from arch/arm/mach-mx3/mach-pcm037.c +0 -0
arch/arm/mach-imx/mach-pcm037_eet.c renamed from arch/arm/mach-mx3/mach-pcm037_eet.c +0 -0
arch/arm/mach-imx/mach-pcm043.c renamed from arch/arm/mach-mx3/mach-pcm043.c +0 -0
arch/arm/mach-imx/mach-qong.c renamed from arch/arm/mach-mx3/mach-qong.c +0 -0
arch/arm/mach-imx/mach-vpr200.c renamed from arch/arm/mach-mx3/mach-vpr200.c +0 -0
arch/arm/mach-imx/mm-imx31.c new file +66 -0
66 lines not on this page · raw message
arch/arm/mach-imx/mm-imx35.c new file +63 -0
63 lines not on this page · raw message
arch/arm/mach-imx/mx31lilly-db.c renamed from arch/arm/mach-mx3/mx31lilly-db.c +0 -0
arch/arm/mach-imx/mx31lite-db.c renamed from arch/arm/mach-mx3/mx31lite-db.c +0 -0
arch/arm/mach-imx/mx31moboard-devboard.c renamed from arch/arm/mach-mx3/mx31moboard-devboard.c +0 -0
arch/arm/mach-imx/mx31moboard-marxbot.c renamed from arch/arm/mach-mx3/mx31moboard-marxbot.c +0 -0
arch/arm/mach-imx/mx31moboard-smartbot.c renamed from arch/arm/mach-mx3/mx31moboard-smartbot.c +0 -0
arch/arm/mach-imx/pcm037.h renamed from arch/arm/mach-mx3/pcm037.h +0 -0
arch/arm/mach-mx3/Kconfig deleted +0 -265
265 lines not on this page · raw message
arch/arm/mach-mx3/Makefile deleted +0 -26
@@ -1,26 +0,0 @@ -# -# Makefile for the linux kernel. -# - -# Object file lists. - -obj-y := mm.o cpu.o -obj-$(CONFIG_SOC_IMX31) += clock-imx31.o iomux-imx31.o ehci-imx31.o -obj-$(CONFIG_SOC_IMX35) += clock-imx35.o ehci-imx35.o -obj-$(CONFIG_MACH_MX31ADS) += mach-mx31ads.o -obj-$(CONFIG_MACH_MX31LILLY) += mach-mx31lilly.o mx31lilly-db.o -obj-$(CONFIG_MACH_MX31LITE) += mach-mx31lite.o mx31lite-db.o -obj-$(CONFIG_MACH_PCM037) += mach-pcm037.o -obj-$(CONFIG_MACH_PCM037_EET) += mach-pcm037_eet.o -obj-$(CONFIG_MACH_MX31_3DS) += mach-mx31_3ds.o -obj-$(CONFIG_MACH_MX31MOBOARD) += mach-mx31moboard.o mx31moboard-devboard.o \ - mx31moboard-marxbot.o mx31moboard-smartbot.o -obj-$(CONFIG_MACH_QONG) += mach-qong.o -obj-$(CONFIG_MACH_PCM043) += mach-pcm043.o -obj-$(CONFIG_MACH_ARMADILLO5X0) += mach-armadillo5x0.o -obj-$(CONFIG_MACH_MX35_3DS) += mach-mx35_3ds.o -obj-$(CONFIG_MACH_KZM_ARM11_01) += mach-kzm_arm11_01.o -obj-$(CONFIG_MACH_BUG) += mach-bug.o -obj-$(CONFIG_MACH_EUKREA_CPUIMX35) += mach-cpuimx35.o -obj-$(CONFIG_MACH_EUKREA_MBIMXSD35_BASEBOARD) += eukrea_mbimxsd-baseboard.o -obj-$(CONFIG_MACH_VPR200) += mach-vpr200.o
arch/arm/mach-mx3/Makefile.boot deleted +0 -3
@@ -1,3 +0,0 @@ - zreladdr-y := 0x80008000 -params_phys-y := 0x80000100 -initrd_phys-y := 0x80800000
arch/arm/mach-mx3/mm.c deleted +0 -141
141 lines not on this page · raw message
arch/arm/plat-mxc/Kconfig +0 -1
@@ -47,7 +47,6 @@ config ARCH_MX5 endchoice source "arch/arm/mach-imx/Kconfig" -source "arch/arm/mach-mx3/Kconfig" source "arch/arm/mach-mxc91231/Kconfig" source "arch/arm/mach-mx5/Kconfig"
Signature · 1 line
1.7.2.3