From 3ed0bcb4c5b0aba8b11e826f6fa2e189c56f8a5a Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Thu, 13 Sep 2012 09:37:49 +0800 Subject: ARM: imx: include board headers in the same folder The headers that are only used by board files do not necessarily need to be in plat-mxc/include/mach. Move them to the same place as those board files. Signed-off-by: Shawn Guo Acked-by: Sascha Hauer Acked-by: Arnd Bergmann --- arch/arm/mach-imx/mach-cpuimx27.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/mach-imx/mach-cpuimx27.c') diff --git a/arch/arm/mach-imx/mach-cpuimx27.c b/arch/arm/mach-imx/mach-cpuimx27.c index 2bb9e18d9ee..1734320078a 100644 --- a/arch/arm/mach-imx/mach-cpuimx27.c +++ b/arch/arm/mach-imx/mach-cpuimx27.c @@ -34,13 +34,13 @@ #include #include -#include #include #include #include #include #include "devices-imx27.h" +#include "eukrea-baseboards.h" static const int eukrea_cpuimx27_pins[] __initconst = { /* UART1 */ -- cgit v1.2.3-70-g09d2 From 267dd34c47a5b046ed500be17089983dc3d8158d Mon Sep 17 00:00:00 2001 From: Shawn Guo Date: Thu, 13 Sep 2012 13:26:00 +0800 Subject: ARM: imx: move iomux drivers and headers into mach-imx The board files in mach-imx are the only users of iomux drivers and headers. Move them into mach-imx from plat-mxc. Signed-off-by: Shawn Guo Acked-by: Sascha Hauer Acked-by: Arnd Bergmann --- arch/arm/mach-imx/Kconfig | 6 + arch/arm/mach-imx/Makefile | 3 + arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | 2 +- arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c | 2 +- arch/arm/mach-imx/eukrea_mbimxsd35-baseboard.c | 2 +- arch/arm/mach-imx/eukrea_mbimxsd51-baseboard.c | 2 +- arch/arm/mach-imx/iomux-imx31.c | 3 +- arch/arm/mach-imx/iomux-mx1.h | 155 +++ arch/arm/mach-imx/iomux-mx21.h | 122 +++ arch/arm/mach-imx/iomux-mx25.h | 524 ++++++++++ arch/arm/mach-imx/iomux-mx27.h | 205 ++++ arch/arm/mach-imx/iomux-mx2x.h | 230 +++++ arch/arm/mach-imx/iomux-mx3.h | 753 ++++++++++++++ arch/arm/mach-imx/iomux-mx35.h | 1267 ++++++++++++++++++++++++ arch/arm/mach-imx/iomux-mx50.h | 977 ++++++++++++++++++ arch/arm/mach-imx/iomux-mx51.h | 827 ++++++++++++++++ arch/arm/mach-imx/iomux-v1.c | 189 ++++ arch/arm/mach-imx/iomux-v1.h | 94 ++ arch/arm/mach-imx/iomux-v3.c | 79 ++ arch/arm/mach-imx/iomux-v3.h | 142 +++ arch/arm/mach-imx/mach-apf9328.c | 2 +- arch/arm/mach-imx/mach-armadillo5x0.c | 2 +- arch/arm/mach-imx/mach-bug.c | 2 +- arch/arm/mach-imx/mach-cpuimx27.c | 2 +- arch/arm/mach-imx/mach-cpuimx35.c | 2 +- arch/arm/mach-imx/mach-cpuimx51sd.c | 2 +- arch/arm/mach-imx/mach-eukrea_cpuimx25.c | 2 +- arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 2 +- arch/arm/mach-imx/mach-imx27ipcam.c | 2 +- arch/arm/mach-imx/mach-imx27lite.c | 2 +- arch/arm/mach-imx/mach-kzm_arm11_01.c | 2 +- arch/arm/mach-imx/mach-mx1ads.c | 2 +- arch/arm/mach-imx/mach-mx21ads.c | 2 +- arch/arm/mach-imx/mach-mx25_3ds.c | 2 +- arch/arm/mach-imx/mach-mx27_3ds.c | 2 +- arch/arm/mach-imx/mach-mx27ads.c | 2 +- arch/arm/mach-imx/mach-mx31_3ds.c | 2 +- arch/arm/mach-imx/mach-mx31ads.c | 2 +- arch/arm/mach-imx/mach-mx31lilly.c | 2 +- arch/arm/mach-imx/mach-mx31lite.c | 2 +- arch/arm/mach-imx/mach-mx31moboard.c | 2 +- arch/arm/mach-imx/mach-mx35_3ds.c | 2 +- arch/arm/mach-imx/mach-mx50_rdp.c | 2 +- arch/arm/mach-imx/mach-mx51_3ds.c | 2 +- arch/arm/mach-imx/mach-mx51_babbage.c | 2 +- arch/arm/mach-imx/mach-mxt_td60.c | 2 +- arch/arm/mach-imx/mach-pca100.c | 2 +- arch/arm/mach-imx/mach-pcm037.c | 2 +- arch/arm/mach-imx/mach-pcm037_eet.c | 2 +- arch/arm/mach-imx/mach-pcm038.c | 2 +- arch/arm/mach-imx/mach-pcm043.c | 2 +- arch/arm/mach-imx/mach-qong.c | 2 +- arch/arm/mach-imx/mach-scb9328.c | 2 +- arch/arm/mach-imx/mach-vpr200.c | 2 +- arch/arm/mach-imx/mm-imx1.c | 3 +- arch/arm/mach-imx/mm-imx21.c | 3 +- arch/arm/mach-imx/mm-imx25.c | 3 +- arch/arm/mach-imx/mm-imx27.c | 3 +- arch/arm/mach-imx/mm-imx3.c | 2 +- arch/arm/mach-imx/mm-imx5.c | 3 +- arch/arm/mach-imx/mx31lilly-db.c | 2 +- arch/arm/mach-imx/mx31lite-db.c | 2 +- arch/arm/mach-imx/mx31moboard-devboard.c | 2 +- arch/arm/mach-imx/mx31moboard-marxbot.c | 2 +- arch/arm/mach-imx/mx31moboard-smartbot.c | 2 +- arch/arm/mach-imx/pcm970-baseboard.c | 2 +- arch/arm/plat-mxc/Kconfig | 6 - arch/arm/plat-mxc/Makefile | 2 - arch/arm/plat-mxc/include/mach/iomux-mx1.h | 155 --- arch/arm/plat-mxc/include/mach/iomux-mx21.h | 122 --- arch/arm/plat-mxc/include/mach/iomux-mx25.h | 524 ---------- arch/arm/plat-mxc/include/mach/iomux-mx27.h | 205 ---- arch/arm/plat-mxc/include/mach/iomux-mx2x.h | 230 ----- arch/arm/plat-mxc/include/mach/iomux-mx3.h | 753 -------------- arch/arm/plat-mxc/include/mach/iomux-mx35.h | 1267 ------------------------ arch/arm/plat-mxc/include/mach/iomux-mx50.h | 977 ------------------ arch/arm/plat-mxc/include/mach/iomux-mx51.h | 827 ---------------- arch/arm/plat-mxc/include/mach/iomux-v1.h | 94 -- arch/arm/plat-mxc/include/mach/iomux-v3.h | 142 --- arch/arm/plat-mxc/iomux-v1.c | 188 ---- arch/arm/plat-mxc/iomux-v3.c | 78 -- 81 files changed, 5630 insertions(+), 5621 deletions(-) create mode 100644 arch/arm/mach-imx/iomux-mx1.h create mode 100644 arch/arm/mach-imx/iomux-mx21.h create mode 100644 arch/arm/mach-imx/iomux-mx25.h create mode 100644 arch/arm/mach-imx/iomux-mx27.h create mode 100644 arch/arm/mach-imx/iomux-mx2x.h create mode 100644 arch/arm/mach-imx/iomux-mx3.h create mode 100644 arch/arm/mach-imx/iomux-mx35.h create mode 100644 arch/arm/mach-imx/iomux-mx50.h create mode 100644 arch/arm/mach-imx/iomux-mx51.h create mode 100644 arch/arm/mach-imx/iomux-v1.c create mode 100644 arch/arm/mach-imx/iomux-v1.h create mode 100644 arch/arm/mach-imx/iomux-v3.c create mode 100644 arch/arm/mach-imx/iomux-v3.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx1.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx21.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx25.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx27.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx2x.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx3.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx35.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx50.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-mx51.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-v1.h delete mode 100644 arch/arm/plat-mxc/include/mach/iomux-v3.h delete mode 100644 arch/arm/plat-mxc/iomux-v1.c delete mode 100644 arch/arm/plat-mxc/iomux-v3.c (limited to 'arch/arm/mach-imx/mach-cpuimx27.c') diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 8d276584650..f10282ca796 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -7,6 +7,12 @@ config HAVE_IMX_MMDC config HAVE_IMX_SRC bool +config IMX_HAVE_IOMUX_V1 + bool + +config ARCH_MXC_IOMUX_V3 + bool + config ARCH_MX1 bool diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 895754aeb4f..5025a9dcf5d 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -15,6 +15,9 @@ obj-$(CONFIG_SOC_IMX5) += cpu-imx5.o mm-imx5.o clk-imx51-imx53.o ehci-imx5.o $(i obj-$(CONFIG_COMMON_CLK) += clk-pllv1.o clk-pllv2.o clk-pllv3.o clk-gate2.o \ clk-pfd.o clk-busy.o clk.o +obj-$(CONFIG_IMX_HAVE_IOMUX_V1) += iomux-v1.o +obj-$(CONFIG_ARCH_MXC_IOMUX_V3) += iomux-v3.o + # Support for CMOS sensor interface obj-$(CONFIG_MX1_VIDEO) += mx1-camera-fiq.o mx1-camera-fiq-ksym.o diff --git a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c index 98aef571b9f..ad4ee83e898 100644 --- a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c @@ -30,10 +30,10 @@ #include #include -#include #include #include "devices-imx27.h" +#include "iomux-mx27.h" static const int eukrea_mbimx27_pins[] __initconst = { /* UART2 */ diff --git a/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c b/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c index 0b84666792f..19d7fa63c8e 100644 --- a/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c @@ -27,13 +27,13 @@ #include