diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 06:16:24 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-07-26 08:27:25 -0400 |
commit | 2dcf78c0eeae3bd07082821557014f25f02ca2e9 (patch) | |
tree | 8ca5c4c7f35c9a9ab07fcd9732124c905e609aa1 /arch/arm/mach-mx25/mach-cpuimx25.c | |
parent | 6b6322676add0fa2713d0ec89a28390fd4d907f5 (diff) | |
parent | 5109a4597f7e758b8d20694392d0361a0b4c43b1 (diff) |
Merge branch 'imx/for-2.6.36' of git://git.pengutronix.de/git/ukl/linux-2.6 into HEAD
There are some more conflicts than detected by git, namely support for
the newly added cpuimx machines needed to be converted to dynamic device
registration.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Conflicts:
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/devices.c
arch/arm/mach-imx/devices.h
arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
arch/arm/mach-mx2/Kconfig
arch/arm/mach-mx25/Makefile
arch/arm/mach-mx25/devices.c
arch/arm/plat-mxc/include/mach/mx25.h
arch/arm/plat-mxc/include/mach/mxc_nand.h
Diffstat (limited to 'arch/arm/mach-mx25/mach-cpuimx25.c')
-rw-r--r-- | arch/arm/mach-mx25/mach-cpuimx25.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/mach-mx25/mach-cpuimx25.c b/arch/arm/mach-mx25/mach-cpuimx25.c index 4796484830a0..d39f9ccd4be0 100644 --- a/arch/arm/mach-mx25/mach-cpuimx25.c +++ b/arch/arm/mach-mx25/mach-cpuimx25.c | |||
@@ -37,18 +37,17 @@ | |||
37 | #include <asm/memory.h> | 37 | #include <asm/memory.h> |
38 | #include <asm/mach/map.h> | 38 | #include <asm/mach/map.h> |
39 | #include <mach/common.h> | 39 | #include <mach/common.h> |
40 | #include <mach/imx-uart.h> | ||
41 | #include <mach/i2c.h> | ||
42 | #include <mach/mx25.h> | 40 | #include <mach/mx25.h> |
43 | #include <mach/mxc_nand.h> | 41 | #include <mach/mxc_nand.h> |
44 | #include <mach/imxfb.h> | 42 | #include <mach/imxfb.h> |
45 | #include <mach/mxc_ehci.h> | 43 | #include <mach/mxc_ehci.h> |
46 | #include <mach/ulpi.h> | 44 | #include <mach/ulpi.h> |
45 | #include <mach/iomux-mx25.h> | ||
47 | 46 | ||
47 | #include "devices-imx25.h" | ||
48 | #include "devices.h" | 48 | #include "devices.h" |
49 | #include <mach/iomux-mx25.h> | ||
50 | 49 | ||
51 | static struct imxuart_platform_data uart_pdata = { | 50 | static const struct imxuart_platform_data uart_pdata __initconst = { |
52 | .flags = IMXUART_HAVE_RTSCTS, | 51 | .flags = IMXUART_HAVE_RTSCTS, |
53 | }; | 52 | }; |
54 | 53 | ||
@@ -72,13 +71,15 @@ static struct fec_platform_data mx25_fec_pdata = { | |||
72 | .phy = PHY_INTERFACE_MODE_RMII, | 71 | .phy = PHY_INTERFACE_MODE_RMII, |
73 | }; | 72 | }; |
74 | 73 | ||
75 | static struct mxc_nand_platform_data eukrea_cpuimx25_nand_board_info = { | 74 | static const struct mxc_nand_platform_data |
75 | eukrea_cpuimx25_nand_board_info __initconst = { | ||
76 | .width = 1, | 76 | .width = 1, |
77 | .hw_ecc = 1, | 77 | .hw_ecc = 1, |
78 | .flash_bbt = 1, | 78 | .flash_bbt = 1, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static struct imxi2c_platform_data eukrea_cpuimx25_i2c_1_data = { | 81 | static const struct imxi2c_platform_data |
82 | eukrea_cpuimx25_i2c0_data __initconst = { | ||
82 | .bitrate = 100000, | 83 | .bitrate = 100000, |
83 | }; | 84 | }; |
84 | 85 | ||
@@ -125,14 +126,14 @@ static void __init eukrea_cpuimx25_init(void) | |||
125 | ARRAY_SIZE(eukrea_cpuimx25_pads))) | 126 | ARRAY_SIZE(eukrea_cpuimx25_pads))) |
126 | printk(KERN_ERR "error setting cpuimx25 pads !\n"); | 127 | printk(KERN_ERR "error setting cpuimx25 pads !\n"); |
127 | 128 | ||
128 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 129 | imx25_add_imx_uart0(&uart_pdata); |
129 | mxc_register_device(&mxc_nand_device, &eukrea_cpuimx25_nand_board_info); | 130 | imx25_add_mxc_nand(&eukrea_cpuimx25_nand_board_info); |
130 | mxc_register_device(&mx25_rtc_device, NULL); | 131 | mxc_register_device(&mx25_rtc_device, NULL); |
131 | mxc_register_device(&mx25_fec_device, &mx25_fec_pdata); | 132 | mxc_register_device(&mx25_fec_device, &mx25_fec_pdata); |
132 | 133 | ||
133 | i2c_register_board_info(0, eukrea_cpuimx25_i2c_devices, | 134 | i2c_register_board_info(0, eukrea_cpuimx25_i2c_devices, |
134 | ARRAY_SIZE(eukrea_cpuimx25_i2c_devices)); | 135 | ARRAY_SIZE(eukrea_cpuimx25_i2c_devices)); |
135 | mxc_register_device(&mxc_i2c_device0, &eukrea_cpuimx25_i2c_1_data); | 136 | imx25_add_imx_i2c0(&eukrea_cpuimx25_i2c0_data); |
136 | 137 | ||
137 | #if defined(CONFIG_USB_ULPI) | 138 | #if defined(CONFIG_USB_ULPI) |
138 | if (otg_mode_host) { | 139 | if (otg_mode_host) { |