diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index f10282ca796cdbb22187d98cb8339c9175acdf63..dffa273b124e41dbee78ea1530bf97b09881a107 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -772,3 +772,5 @@ config SOC_IMX6Q This enables support for Freescale i.MX6 Quad processor. endif + +source "arch/arm/mach-imx/devices/Kconfig" diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 5025a9dcf5d92ee8a82b472b1cff0009fec085d5..257893e6db930207e68084754dd21391bf98c431 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -92,3 +92,5 @@ obj-$(CONFIG_MACH_MX50_RDP) += mach-mx50_rdp.o obj-$(CONFIG_MACH_IMX51_DT) += imx51-dt.o obj-$(CONFIG_SOC_IMX53) += mach-imx53.o + +obj-y += devices/ diff --git a/arch/arm/mach-imx/devices-imx1.h b/arch/arm/mach-imx/devices-imx1.h index eb2603b59b5a82496aafb04410eab2c23582c29b..f9b5afc6bcd153028fb0dc0587c3d895ec81b602 100644 --- a/arch/arm/mach-imx/devices-imx1.h +++ b/arch/arm/mach-imx/devices-imx1.h @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices/devices-common.h" extern const struct imx_imx_fb_data imx1_imx_fb_data; #define imx1_add_imx_fb(pdata) \ diff --git a/arch/arm/mach-imx/devices-imx21.h b/arch/arm/mach-imx/devices-imx21.h index e2014daa52b4bcf8d74df6cb5437c708594bb2ae..bd939328015901e3315a528653b7afeffd649679 100644 --- a/arch/arm/mach-imx/devices-imx21.h +++ b/arch/arm/mach-imx/devices-imx21.h @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices/devices-common.h" extern const struct imx_imx21_hcd_data imx21_imx21_hcd_data; #define imx21_add_imx21_hcd(pdata) \ diff --git a/arch/arm/mach-imx/devices-imx25.h b/arch/arm/mach-imx/devices-imx25.h index 29e9706c24c2585495188a83d0c3e25efe6e52df..0d2922bc575caa862a99b60c621d24da6d3e14ca 100644 --- a/arch/arm/mach-imx/devices-imx25.h +++ b/arch/arm/mach-imx/devices-imx25.h @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices/devices-common.h" extern const struct imx_fec_data imx25_fec_data; #define imx25_add_fec(pdata) \ diff --git a/arch/arm/mach-imx/devices-imx27.h b/arch/arm/mach-imx/devices-imx27.h index e2250430b7dd2ad4de57352a898df15750ea1997..8a1ad7972d4c0843a096dcf7d21810737b16075b 100644 --- a/arch/arm/mach-imx/devices-imx27.h +++ b/arch/arm/mach-imx/devices-imx27.h @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices/devices-common.h" extern const struct imx_fec_data imx27_fec_data; #define imx27_add_fec(pdata) \ diff --git a/arch/arm/mach-imx/devices-imx31.h b/arch/arm/mach-imx/devices-imx31.h index 20565f90e82c32f98faff94d77afb768d69c5c99..e8d1611bbc8e325f29bf897cea68ffcc9c253aa8 100644 --- a/arch/arm/mach-imx/devices-imx31.h +++ b/arch/arm/mach-imx/devices-imx31.h @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices/devices-common.h" extern const struct imx_fsl_usb2_udc_data imx31_fsl_usb2_udc_data; #define imx31_add_fsl_usb2_udc(pdata) \ diff --git a/arch/arm/mach-imx/devices-imx35.h b/arch/arm/mach-imx/devices-imx35.h index e45b5cbaac967f10936ed509465f2045cdc3243b..e2675f1b141c0a0baedd8e5db9daa252a7541827 100644 --- a/arch/arm/mach-imx/devices-imx35.h +++ b/arch/arm/mach-imx/devices-imx35.h @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices/devices-common.h" extern const struct imx_fec_data imx35_fec_data; #define imx35_add_fec(pdata) \ diff --git a/arch/arm/mach-imx/devices-imx50.h b/arch/arm/mach-imx/devices-imx50.h index 1615a6ab40d915efe286982491cab621ddf0ef76..2c290391f298653198784669e57fd48f72366922 100644 --- a/arch/arm/mach-imx/devices-imx50.h +++ b/arch/arm/mach-imx/devices-imx50.h @@ -18,7 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include +#include "devices/devices-common.h" extern const struct imx_imx_uart_1irq_data imx50_imx_uart_data[]; #define imx50_add_imx_uart(id, pdata) \ diff --git a/arch/arm/mach-imx/devices-imx51.h b/arch/arm/mach-imx/devices-imx51.h index f448104837e2f2bf497bcbbc0eef5796041b3f5f..deee5baee88cf636627acb1c923b029e9d58b032 100644 --- a/arch/arm/mach-imx/devices-imx51.h +++ b/arch/arm/mach-imx/devices-imx51.h @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices/devices-common.h" extern const struct imx_fec_data imx51_fec_data; #define imx51_add_fec(pdata) \ diff --git a/arch/arm/plat-mxc/devices/Kconfig b/arch/arm/mach-imx/devices/Kconfig similarity index 100% rename from arch/arm/plat-mxc/devices/Kconfig rename to arch/arm/mach-imx/devices/Kconfig diff --git a/arch/arm/plat-mxc/devices/Makefile b/arch/arm/mach-imx/devices/Makefile similarity index 98% rename from arch/arm/plat-mxc/devices/Makefile rename to arch/arm/mach-imx/devices/Makefile index 76f3195475d06abd27a9114cf3c64301a2ebdf52..2abe2a5144d0365312af9a6a9431ec9fd141a265 100644 --- a/arch/arm/plat-mxc/devices/Makefile +++ b/arch/arm/mach-imx/devices/Makefile @@ -1,3 +1,5 @@ +obj-y := devices.o + obj-$(CONFIG_IMX_HAVE_PLATFORM_FEC) += platform-fec.o obj-$(CONFIG_IMX_HAVE_PLATFORM_FLEXCAN) += platform-flexcan.o obj-$(CONFIG_IMX_HAVE_PLATFORM_FSL_USB2_UDC) += platform-fsl-usb2-udc.o diff --git a/arch/arm/plat-mxc/include/mach/devices-common.h b/arch/arm/mach-imx/devices/devices-common.h similarity index 100% rename from arch/arm/plat-mxc/include/mach/devices-common.h rename to arch/arm/mach-imx/devices/devices-common.h diff --git a/arch/arm/plat-mxc/devices.c b/arch/arm/mach-imx/devices/devices.c similarity index 100% rename from arch/arm/plat-mxc/devices.c rename to arch/arm/mach-imx/devices/devices.c diff --git a/arch/arm/plat-mxc/devices/platform-ahci-imx.c b/arch/arm/mach-imx/devices/platform-ahci-imx.c similarity index 99% rename from arch/arm/plat-mxc/devices/platform-ahci-imx.c rename to arch/arm/mach-imx/devices/platform-ahci-imx.c index ade4a1c4e2a39e4aac13479deb48af97fd142c0b..bf7f46d930ebf13c80db4778cf663b6686eb0ac5 100644 --- a/arch/arm/plat-mxc/devices/platform-ahci-imx.c +++ b/arch/arm/mach-imx/devices/platform-ahci-imx.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include "devices-common.h" #define imx_ahci_imx_data_entry_single(soc, _devid) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-fec.c b/arch/arm/mach-imx/devices/platform-fec.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-fec.c rename to arch/arm/mach-imx/devices/platform-fec.c index 0bae44e890db14e262cfdb46c50b09fb12279bf6..e62114f1f4f48c829f83249c0fafae28482f0679 100644 --- a/arch/arm/plat-mxc/devices/platform-fec.c +++ b/arch/arm/mach-imx/devices/platform-fec.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include "devices-common.h" #define imx_fec_data_entry_single(soc, _devid) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-flexcan.c b/arch/arm/mach-imx/devices/platform-flexcan.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-flexcan.c rename to arch/arm/mach-imx/devices/platform-flexcan.c index 4e8497af2eb19fa344d52e2413303b1ee53cde56..e776d8efea92b70b184c2d22c98c6d68b4a0b03a 100644 --- a/arch/arm/plat-mxc/devices/platform-flexcan.c +++ b/arch/arm/mach-imx/devices/platform-flexcan.c @@ -6,7 +6,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_flexcan_data_entry_single(soc, _id, _hwid, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c b/arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c rename to arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c index 848038f301fd24e518449beeb262018f95e367e6..6ecccf9777468324170a4a2837dadfe0bed36fc0 100644 --- a/arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c +++ b/arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_fsl_usb2_udc_data_entry_single(soc) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-gpio-mxc.c b/arch/arm/mach-imx/devices/platform-gpio-mxc.c similarity index 96% rename from arch/arm/plat-mxc/devices/platform-gpio-mxc.c rename to arch/arm/mach-imx/devices/platform-gpio-mxc.c index a7919a241032184b94d005846eff6c84e66fc0e7..26483fa94b75109d13ed56ace45af8ed9c44656d 100644 --- a/arch/arm/plat-mxc/devices/platform-gpio-mxc.c +++ b/arch/arm/mach-imx/devices/platform-gpio-mxc.c @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices-common.h" struct platform_device *__init mxc_register_gpio(char *name, int id, resource_size_t iobase, resource_size_t iosize, int irq, int irq_high) diff --git a/arch/arm/plat-mxc/devices/platform-gpio_keys.c b/arch/arm/mach-imx/devices/platform-gpio_keys.c similarity index 96% rename from arch/arm/plat-mxc/devices/platform-gpio_keys.c rename to arch/arm/mach-imx/devices/platform-gpio_keys.c index 1c53a532ea0ec6e6ab44e33afcb6aeeda2795659..3f8727952ed957a79f9cc68179e7d7a133426ad0 100644 --- a/arch/arm/plat-mxc/devices/platform-gpio_keys.c +++ b/arch/arm/mach-imx/devices/platform-gpio_keys.c @@ -17,7 +17,7 @@ */ #include #include -#include +#include "devices-common.h" struct platform_device *__init imx_add_gpio_keys( const struct gpio_keys_platform_data *pdata) diff --git a/arch/arm/plat-mxc/devices/platform-imx-dma.c b/arch/arm/mach-imx/devices/platform-imx-dma.c similarity index 96% rename from arch/arm/plat-mxc/devices/platform-imx-dma.c rename to arch/arm/mach-imx/devices/platform-imx-dma.c index 7fa7e9c9246803f74e95c97719009b3387ad660a..c35c99d218203c7e0fd5baffbb068fb53497c2f6 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-dma.c +++ b/arch/arm/mach-imx/devices/platform-imx-dma.c @@ -6,7 +6,7 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include +#include "devices-common.h" struct platform_device __init __maybe_unused *imx_add_imx_dma(void) { diff --git a/arch/arm/plat-mxc/devices/platform-imx-fb.c b/arch/arm/mach-imx/devices/platform-imx-fb.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-imx-fb.c rename to arch/arm/mach-imx/devices/platform-imx-fb.c index 2b0b5e0aa9989639286efb65de5adb9ecbcc704c..4e6f85703918630436492be05e95471f20417ada 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-fb.c +++ b/arch/arm/mach-imx/devices/platform-imx-fb.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_imx_fb_data_entry_single(soc, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-imx-i2c.c b/arch/arm/mach-imx/devices/platform-imx-i2c.c similarity index 99% rename from arch/arm/plat-mxc/devices/platform-imx-i2c.c rename to arch/arm/mach-imx/devices/platform-imx-i2c.c index 19ad580c0be348fb16d8bf93e3eb664b6ef1d431..e0c7d6291bed570a84c54d50f6a77652ce4bf988 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-i2c.c +++ b/arch/arm/mach-imx/devices/platform-imx-i2c.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_imx_i2c_data_entry_single(soc, _id, _hwid, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-imx-keypad.c b/arch/arm/mach-imx/devices/platform-imx-keypad.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-imx-keypad.c rename to arch/arm/mach-imx/devices/platform-imx-keypad.c index 479c3e9f771f04be7105551e0286cda2a8dd21c3..371b1e6ec954e3ee03e09031c8d468e0d2bcbee5 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-keypad.c +++ b/arch/arm/mach-imx/devices/platform-imx-keypad.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_imx_keypad_data_entry_single(soc, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-imx-ssi.c b/arch/arm/mach-imx/devices/platform-imx-ssi.c similarity index 99% rename from arch/arm/plat-mxc/devices/platform-imx-ssi.c rename to arch/arm/mach-imx/devices/platform-imx-ssi.c index 21c6f30e1017403c386f2694aed6aeb81fd33339..bf0c5e4e2d1b851dcde8e2cdd34c7a0faea37246 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-ssi.c +++ b/arch/arm/mach-imx/devices/platform-imx-ssi.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_imx_ssi_data_entry(soc, _id, _hwid, _size) \ [_id] = { \ diff --git a/arch/arm/plat-mxc/devices/platform-imx-uart.c b/arch/arm/mach-imx/devices/platform-imx-uart.c similarity index 99% rename from arch/arm/plat-mxc/devices/platform-imx-uart.c rename to arch/arm/mach-imx/devices/platform-imx-uart.c index d390f00bd29421e2dbe1d39a2f1c6b7392f7c529..e6132f2b98e61b2c3874c2f3632e59ae740e581f 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-uart.c +++ b/arch/arm/mach-imx/devices/platform-imx-uart.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_imx_uart_3irq_data_entry(soc, _id, _hwid, _size) \ [_id] = { \ diff --git a/arch/arm/plat-mxc/devices/platform-imx2-wdt.c b/arch/arm/mach-imx/devices/platform-imx2-wdt.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-imx2-wdt.c rename to arch/arm/mach-imx/devices/platform-imx2-wdt.c index 5e07ef2bf1c42510e59d384a9e0ea6c55f7d72a6..729c1914e2211bdcb79d8e1cbee7ab5310395e39 100644 --- a/arch/arm/plat-mxc/devices/platform-imx2-wdt.c +++ b/arch/arm/mach-imx/devices/platform-imx2-wdt.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_imx2_wdt_data_entry_single(soc, _id, _hwid, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-imx21-hcd.c b/arch/arm/mach-imx/devices/platform-imx21-hcd.c similarity index 97% rename from arch/arm/plat-mxc/devices/platform-imx21-hcd.c rename to arch/arm/mach-imx/devices/platform-imx21-hcd.c index 5770a42f33bf3d0bea750e4d858adef0db7afbb8..18b9963f6079190b6239a9311e253796559d3ad1 100644 --- a/arch/arm/plat-mxc/devices/platform-imx21-hcd.c +++ b/arch/arm/mach-imx/devices/platform-imx21-hcd.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_imx21_hcd_data_entry_single(soc) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-imx27-coda.c b/arch/arm/mach-imx/devices/platform-imx27-coda.c similarity index 96% rename from arch/arm/plat-mxc/devices/platform-imx27-coda.c rename to arch/arm/mach-imx/devices/platform-imx27-coda.c index 8b12aacdf3965020d06e936c2ee6c11581caee55..54996038e754fc74259ce8b98c8bb38433f2503b 100644 --- a/arch/arm/plat-mxc/devices/platform-imx27-coda.c +++ b/arch/arm/mach-imx/devices/platform-imx27-coda.c @@ -8,7 +8,7 @@ */ #include -#include +#include "devices-common.h" #ifdef CONFIG_SOC_IMX27 const struct imx_imx27_coda_data imx27_coda_data __initconst = { diff --git a/arch/arm/plat-mxc/devices/platform-imx_udc.c b/arch/arm/mach-imx/devices/platform-imx_udc.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-imx_udc.c rename to arch/arm/mach-imx/devices/platform-imx_udc.c index 6fd675dfce14079bbdf97858350607072a607606..75aee0bf034d466c8bddc1163f20d55a60f8ec13 100644 --- a/arch/arm/plat-mxc/devices/platform-imx_udc.c +++ b/arch/arm/mach-imx/devices/platform-imx_udc.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_imx_udc_data_entry_single(soc, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-imxdi_rtc.c b/arch/arm/mach-imx/devices/platform-imxdi_rtc.c similarity index 96% rename from arch/arm/plat-mxc/devices/platform-imxdi_rtc.c rename to arch/arm/mach-imx/devices/platform-imxdi_rtc.c index 805336fdc2521cffa82268655f58a2216bb8e647..e4b22eb5950e5fef3d9c3b77faa6b0c8e62b29af 100644 --- a/arch/arm/plat-mxc/devices/platform-imxdi_rtc.c +++ b/arch/arm/mach-imx/devices/platform-imxdi_rtc.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_imxdi_rtc_data_entry_single(soc) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-ipu-core.c b/arch/arm/mach-imx/devices/platform-ipu-core.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-ipu-core.c rename to arch/arm/mach-imx/devices/platform-ipu-core.c index d1e33cc6f12e8cd9e5d332df58a4788ec2c61952..dc0e8370caefad85479f11ad39ac6e250efb7e4f 100644 --- a/arch/arm/plat-mxc/devices/platform-ipu-core.c +++ b/arch/arm/mach-imx/devices/platform-ipu-core.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_ipu_core_entry_single(soc) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mx1-camera.c b/arch/arm/mach-imx/devices/platform-mx1-camera.c similarity index 97% rename from arch/arm/plat-mxc/devices/platform-mx1-camera.c rename to arch/arm/mach-imx/devices/platform-mx1-camera.c index edcc581a30a9ea440034df1b122d2bec6aac30e9..756b0e659b2dd74f5320433ac36a30648063f6d6 100644 --- a/arch/arm/plat-mxc/devices/platform-mx1-camera.c +++ b/arch/arm/mach-imx/devices/platform-mx1-camera.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_mx1_camera_data_entry_single(soc, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mx2-camera.c b/arch/arm/mach-imx/devices/platform-mx2-camera.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-mx2-camera.c rename to arch/arm/mach-imx/devices/platform-mx2-camera.c index 11eace953a09e5df8adecc4a4ec283327998cc1c..9ad5b2d97054faffbd14e0edac3ea2f0530f0c2b 100644 --- a/arch/arm/plat-mxc/devices/platform-mx2-camera.c +++ b/arch/arm/mach-imx/devices/platform-mx2-camera.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_mx2_camera_data_entry_single(soc) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mxc-ehci.c b/arch/arm/mach-imx/devices/platform-mxc-ehci.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-mxc-ehci.c rename to arch/arm/mach-imx/devices/platform-mxc-ehci.c index 35851d889aca2b63bf5e9952359de53b6f429510..27c81713a6456ca6a06cbc117ec7628aa4d49667 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc-ehci.c +++ b/arch/arm/mach-imx/devices/platform-mxc-ehci.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_mxc_ehci_data_entry_single(soc, _id, hs) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mxc-mmc.c b/arch/arm/mach-imx/devices/platform-mxc-mmc.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-mxc-mmc.c rename to arch/arm/mach-imx/devices/platform-mxc-mmc.c index 540d3a7d92dfaacf8fd82cbd745327c7d2e094a9..ce90ab0c22fc49468e32b40088c0641e29e2b945 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc-mmc.c +++ b/arch/arm/mach-imx/devices/platform-mxc-mmc.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_mxc_mmc_data_entry_single(soc, _id, _hwid, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mxc_nand.c b/arch/arm/mach-imx/devices/platform-mxc_nand.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-mxc_nand.c rename to arch/arm/mach-imx/devices/platform-mxc_nand.c index 95b75cc70515efa8ffc0465cc44585b99ff70ede..54b1d02cc27bf019d20052a3c287d0693ae39aa7 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc_nand.c +++ b/arch/arm/mach-imx/devices/platform-mxc_nand.c @@ -8,7 +8,7 @@ */ #include #include -#include +#include "devices-common.h" #define imx_mxc_nand_data_entry_single(soc, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mxc_pwm.c b/arch/arm/mach-imx/devices/platform-mxc_pwm.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-mxc_pwm.c rename to arch/arm/mach-imx/devices/platform-mxc_pwm.c index b0c4ae298111feefe47dc6d4701e0b73823c5af1..a0551bfff5509d8a76e4690827c674274156fcf2 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc_pwm.c +++ b/arch/arm/mach-imx/devices/platform-mxc_pwm.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_mxc_pwm_data_entry_single(soc, _id, _hwid, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mxc_rnga.c b/arch/arm/mach-imx/devices/platform-mxc_rnga.c similarity index 97% rename from arch/arm/plat-mxc/devices/platform-mxc_rnga.c rename to arch/arm/mach-imx/devices/platform-mxc_rnga.c index b4b7612b6e172c2dad8fccc81ab06f2585a73403..37bb23caa9d876f18cbc933466aee569bb4f98d4 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc_rnga.c +++ b/arch/arm/mach-imx/devices/platform-mxc_rnga.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" struct imx_mxc_rnga_data { resource_size_t iobase; diff --git a/arch/arm/plat-mxc/devices/platform-mxc_rtc.c b/arch/arm/mach-imx/devices/platform-mxc_rtc.c similarity index 97% rename from arch/arm/plat-mxc/devices/platform-mxc_rtc.c rename to arch/arm/mach-imx/devices/platform-mxc_rtc.c index a5c9ad5721c2a1374815cc737ede4c3436dfdba5..daaf9795db183b87b0f760729856d3117384bfd4 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc_rtc.c +++ b/arch/arm/mach-imx/devices/platform-mxc_rtc.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_mxc_rtc_data_entry_single(soc) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-mxc_w1.c b/arch/arm/mach-imx/devices/platform-mxc_w1.c similarity index 97% rename from arch/arm/plat-mxc/devices/platform-mxc_w1.c rename to arch/arm/mach-imx/devices/platform-mxc_w1.c index 96fa5ea91fe8e701eb7192f7ee0e3c4653bdee28..5f972c669567e6366b87bd77291c8d30ba4a7afa 100644 --- a/arch/arm/plat-mxc/devices/platform-mxc_w1.c +++ b/arch/arm/mach-imx/devices/platform-mxc_w1.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_mxc_w1_data_entry_single(soc) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-pata_imx.c b/arch/arm/mach-imx/devices/platform-pata_imx.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-pata_imx.c rename to arch/arm/mach-imx/devices/platform-pata_imx.c index 70e2f2a4471440bc200a63135db831775722ef39..3627ec8d8a97a388bd871135db0317d138853216 100644 --- a/arch/arm/plat-mxc/devices/platform-pata_imx.c +++ b/arch/arm/mach-imx/devices/platform-pata_imx.c @@ -4,7 +4,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_pata_imx_data_entry_single(soc, _size) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c b/arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c similarity index 98% rename from arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c rename to arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c index 3793e475cd954c5c7a39011998a9b3d333ce8a37..772ba2dc3f5e3e2d3d3cf790d241305b7e3ed79e 100644 --- a/arch/arm/plat-mxc/devices/platform-sdhci-esdhc-imx.c +++ b/arch/arm/mach-imx/devices/platform-sdhci-esdhc-imx.c @@ -7,8 +7,8 @@ */ #include -#include #include +#include "devices-common.h" #define imx_sdhci_esdhc_imx_data_entry_single(soc, _devid, _id, hwid) \ { \ diff --git a/arch/arm/plat-mxc/devices/platform-spi_imx.c b/arch/arm/mach-imx/devices/platform-spi_imx.c similarity index 99% rename from arch/arm/plat-mxc/devices/platform-spi_imx.c rename to arch/arm/mach-imx/devices/platform-spi_imx.c index 9c50c14c8f927fbf8e28018f817128e41a70018c..63a116bae10e596d4cad75b0497829e0edcc8cfa 100644 --- a/arch/arm/plat-mxc/devices/platform-spi_imx.c +++ b/arch/arm/mach-imx/devices/platform-spi_imx.c @@ -7,7 +7,7 @@ * Free Software Foundation. */ #include -#include +#include "devices-common.h" #define imx_spi_imx_data_entry_single(soc, type, _devid, _id, hwid, _size) \ { \ diff --git a/arch/arm/mach-imx/mm-imx21.c b/arch/arm/mach-imx/mm-imx21.c index 5fda6810c1622be8598235ec1670f0036a5e0a2e..79d94aaa0640fd52d487dde90c1e80273e87eb20 100644 --- a/arch/arm/mach-imx/mm-imx21.c +++ b/arch/arm/mach-imx/mm-imx21.c @@ -23,10 +23,10 @@ #include #include #include -#include #include #include +#include "devices/devices-common.h" #include "iomux-v1.h" /* MX21 memory map definition */ diff --git a/arch/arm/mach-imx/mm-imx25.c b/arch/arm/mach-imx/mm-imx25.c index 47bde02f7f55a92a0d27df213746c1fa6bc7a56f..c8ea3aaf43230f322ed7b53b9fba5a26a8a5ab70 100644 --- a/arch/arm/mach-imx/mm-imx25.c +++ b/arch/arm/mach-imx/mm-imx25.c @@ -25,10 +25,10 @@ #include #include -#include #include #include +#include "devices/devices-common.h" #include "iomux-v3.h" /* diff --git a/arch/arm/mach-imx/mm-imx27.c b/arch/arm/mach-imx/mm-imx27.c index 8d8133eb42667aee9f569194307a1d1ebd73c744..6d91808a04450c2055ec47d8ba68ea20be150967 100644 --- a/arch/arm/mach-imx/mm-imx27.c +++ b/arch/arm/mach-imx/mm-imx27.c @@ -23,10 +23,10 @@ #include #include #include -#include #include #include +#include "devices/devices-common.h" #include "iomux-v1.h" /* MX27 memory map definition */ diff --git a/arch/arm/mach-imx/mm-imx3.c b/arch/arm/mach-imx/mm-imx3.c index 87fb8644d65a7a154c24fe5e6d1372faa34c4f22..6a5d4e496f8c75a5206c12c0d68dd7a79475cd05 100644 --- a/arch/arm/mach-imx/mm-imx3.c +++ b/arch/arm/mach-imx/mm-imx3.c @@ -27,10 +27,10 @@ #include #include -#include #include #include "crmregs-imx3.h" +#include "devices/devices-common.h" #include "iomux-v3.h" void __iomem *mx3_ccm_base; diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c index b721b79901789385cde7069d7c21d2c76b227ffa..cc1423c0cce80f59c605ac9a98eea10327e76f0f 100644 --- a/arch/arm/mach-imx/mm-imx5.c +++ b/arch/arm/mach-imx/mm-imx5.c @@ -20,8 +20,8 @@ #include #include -#include +#include "devices/devices-common.h" #include "iomux-v3.h" /* diff --git a/arch/arm/mach-imx/pm-imx3.c b/arch/arm/mach-imx/pm-imx3.c index 822103bdb7092eab3ba63c3260f9da4f587abc2f..884dc9453d30979aa676d84accb4f949df57809d 100644 --- a/arch/arm/mach-imx/pm-imx3.c +++ b/arch/arm/mach-imx/pm-imx3.c @@ -11,8 +11,8 @@ #include #include #include -#include #include "crmregs-imx3.h" +#include "devices/devices-common.h" /* * Set cpu low power mode before WFI instruction. This function is called diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig index 5a75ecfc186afc13e4ae56e14266edc124fcd71b..559c9d846275b5635930951bfc704b394bb0fcbb 100644 --- a/arch/arm/plat-mxc/Kconfig +++ b/arch/arm/plat-mxc/Kconfig @@ -1,7 +1,5 @@ if ARCH_MXC -source "arch/arm/plat-mxc/devices/Kconfig" - menu "Freescale MXC Implementations" choice diff --git a/arch/arm/plat-mxc/Makefile b/arch/arm/plat-mxc/Makefile index 7cc047c7144d6cdd49b9696b28d456e345099fe6..e33d2d139ba1bcc1543943068fbdc57cba2566a1 100644 --- a/arch/arm/plat-mxc/Makefile +++ b/arch/arm/plat-mxc/Makefile @@ -3,7 +3,7 @@ # # Common support -obj-y := time.o devices.o cpu.o system.o irq-common.o +obj-y := time.o cpu.o system.o irq-common.o obj-$(CONFIG_MXC_TZIC) += tzic.o obj-$(CONFIG_MXC_AVIC) += avic.o @@ -18,5 +18,3 @@ ifdef CONFIG_SND_IMX_SOC obj-y += ssi-fiq.o obj-y += ssi-fiq-ksym.o endif - -obj-y += devices/