Skip to content

Commit

Permalink
ARM: imx: move platform device code into mach-imx
Browse files Browse the repository at this point in the history
It moves platform device code from plat-mxc into mach-imx.  Along with
that, header devices-common.h gets moved from plat-mxc/include/mach/
into mach-imx/devices/.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Shawn Guo committed Oct 15, 2012
1 parent c45b134 commit e0557c0
Show file tree
Hide file tree
Showing 52 changed files with 51 additions and 49 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-imx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -772,3 +772,5 @@ config SOC_IMX6Q
This enables support for Freescale i.MX6 Quad processor.

endif

source "arch/arm/mach-imx/devices/Kconfig"
2 changes: 2 additions & 0 deletions arch/arm/mach-imx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx1.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#include "devices/devices-common.h"

extern const struct imx_imx_fb_data imx1_imx_fb_data;
#define imx1_add_imx_fb(pdata) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx21.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#include "devices/devices-common.h"

extern const struct imx_imx21_hcd_data imx21_imx21_hcd_data;
#define imx21_add_imx21_hcd(pdata) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx25.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#include "devices/devices-common.h"

extern const struct imx_fec_data imx25_fec_data;
#define imx25_add_fec(pdata) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx27.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#include "devices/devices-common.h"

extern const struct imx_fec_data imx27_fec_data;
#define imx27_add_fec(pdata) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx31.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#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) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx35.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#include "devices/devices-common.h"

extern const struct imx_fec_data imx35_fec_data;
#define imx35_add_fec(pdata) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx50.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include <mach/devices-common.h>
#include "devices/devices-common.h"

extern const struct imx_imx_uart_1irq_data imx50_imx_uart_data[];
#define imx50_add_imx_uart(id, pdata) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices-imx51.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#include "devices/devices-common.h"

extern const struct imx_fec_data imx51_fec_data;
#define imx51_add_fec(pdata) \
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/dma-mapping.h>
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_ahci_imx_data_entry_single(soc, _devid) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <linux/dma-mapping.h>
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_fec_data_entry_single(soc, _devid) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_flexcan_data_entry_single(soc, _id, _hwid, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_fsl_usb2_udc_data_entry_single(soc) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

struct platform_device *__init imx_add_gpio_keys(
const struct gpio_keys_platform_data *pdata)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/devices-common.h>
#include "devices-common.h"

struct platform_device __init __maybe_unused *imx_add_imx_dma(void)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx_fb_data_entry_single(soc, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx_i2c_data_entry_single(soc, _id, _hwid, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx_keypad_data_entry_single(soc, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx_ssi_data_entry(soc, _id, _hwid, _size) \
[_id] = { \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx_uart_3irq_data_entry(soc, _id, _hwid, _size) \
[_id] = { \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx2_wdt_data_entry_single(soc, _id, _hwid, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx21_hcd_data_entry_single(soc) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#ifdef CONFIG_SOC_IMX27
const struct imx_imx27_coda_data imx27_coda_data __initconst = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imx_udc_data_entry_single(soc, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_imxdi_rtc_data_entry_single(soc) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_ipu_core_entry_single(soc) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mx1_camera_data_entry_single(soc, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mx2_camera_data_entry_single(soc) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mxc_ehci_data_entry_single(soc, _id, hs) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mxc_mmc_data_entry_single(soc, _id, _hwid, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
#include <asm/sizes.h>
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mxc_nand_data_entry_single(soc, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mxc_pwm_data_entry_single(soc, _id, _hwid, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

struct imx_mxc_rnga_data {
resource_size_t iobase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mxc_rtc_data_entry_single(soc) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_mxc_w1_data_entry_single(soc) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_pata_imx_data_entry_single(soc, _size) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

#include <mach/hardware.h>
#include <mach/devices-common.h>
#include <linux/platform_data/mmc-esdhc-imx.h>
#include "devices-common.h"

#define imx_sdhci_esdhc_imx_data_entry_single(soc, _devid, _id, hwid) \
{ \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include <mach/devices-common.h>
#include "devices-common.h"

#define imx_spi_imx_data_entry_single(soc, type, _devid, _id, hwid, _size) \
{ \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mm-imx21.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <linux/pinctrl/machine.h>
#include <mach/hardware.h>
#include <mach/common.h>
#include <mach/devices-common.h>
#include <asm/pgtable.h>
#include <asm/mach/map.h>

#include "devices/devices-common.h"
#include "iomux-v1.h"

/* MX21 memory map definition */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mm-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#include <asm/mach/map.h>

#include <mach/common.h>
#include <mach/devices-common.h>
#include <mach/hardware.h>
#include <mach/mx25.h>

#include "devices/devices-common.h"
#include "iomux-v3.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mm-imx27.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <linux/pinctrl/machine.h>
#include <mach/hardware.h>
#include <mach/common.h>
#include <mach/devices-common.h>
#include <asm/pgtable.h>
#include <asm/mach/map.h>

#include "devices/devices-common.h"
#include "iomux-v1.h"

/* MX27 memory map definition */
Expand Down
Loading

0 comments on commit e0557c0

Please sign in to comment.