diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /arch/arm/mach-imx/mach-pcm038.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'arch/arm/mach-imx/mach-pcm038.c')
-rw-r--r-- | arch/arm/mach-imx/mach-pcm038.c | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c index 9212e8f37001..853bb871c7ed 100644 --- a/arch/arm/mach-imx/mach-pcm038.c +++ b/arch/arm/mach-imx/mach-pcm038.c | |||
@@ -36,14 +36,11 @@ | |||
36 | #include <mach/common.h> | 36 | #include <mach/common.h> |
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | #include <mach/iomux-mx27.h> | 38 | #include <mach/iomux-mx27.h> |
39 | #include <mach/mxc_nand.h> | ||
40 | #include <mach/mxc_ehci.h> | ||
41 | #include <mach/ulpi.h> | 39 | #include <mach/ulpi.h> |
42 | 40 | ||
43 | #include "devices-imx27.h" | 41 | #include "devices-imx27.h" |
44 | #include "devices.h" | ||
45 | 42 | ||
46 | static int pcm038_pins[] = { | 43 | static const int pcm038_pins[] __initconst = { |
47 | /* UART1 */ | 44 | /* UART1 */ |
48 | PE12_PF_UART1_TXD, | 45 | PE12_PF_UART1_TXD, |
49 | PE13_PF_UART1_RXD, | 46 | PE13_PF_UART1_RXD, |
@@ -172,10 +169,7 @@ pcm038_nand_board_info __initconst = { | |||
172 | 169 | ||
173 | static struct platform_device *platform_devices[] __initdata = { | 170 | static struct platform_device *platform_devices[] __initdata = { |
174 | &pcm038_nor_mtd_device, | 171 | &pcm038_nor_mtd_device, |
175 | &mxc_w1_master_device, | ||
176 | &mxc_fec_device, | ||
177 | &pcm038_sram_mtd_device, | 172 | &pcm038_sram_mtd_device, |
178 | &mxc_wdt, | ||
179 | }; | 173 | }; |
180 | 174 | ||
181 | /* On pcm038 there's a sram attached to CS1, we enable the chipselect here and | 175 | /* On pcm038 there's a sram attached to CS1, we enable the chipselect here and |
@@ -215,7 +209,7 @@ static const struct spi_imx_master pcm038_spi0_data __initconst = { | |||
215 | 209 | ||
216 | static struct regulator_consumer_supply sdhc1_consumers[] = { | 210 | static struct regulator_consumer_supply sdhc1_consumers[] = { |
217 | { | 211 | { |
218 | .dev = &mxc_sdhc_device1.dev, | 212 | .dev_name = "mxc-mmc.1", |
219 | .supply = "sdhc_vcc", | 213 | .supply = "sdhc_vcc", |
220 | }, | 214 | }, |
221 | }; | 215 | }; |
@@ -257,19 +251,21 @@ static struct regulator_init_data cam_data = { | |||
257 | .consumer_supplies = cam_consumers, | 251 | .consumer_supplies = cam_consumers, |
258 | }; | 252 | }; |
259 | 253 | ||
260 | struct mc13783_regulator_init_data pcm038_regulators[] = { | 254 | static struct mc13xxx_regulator_init_data pcm038_regulators[] = { |
261 | { | 255 | { |
262 | .id = MC13783_REGU_VCAM, | 256 | .id = MC13783_REG_VCAM, |
263 | .init_data = &cam_data, | 257 | .init_data = &cam_data, |
264 | }, { | 258 | }, { |
265 | .id = MC13783_REGU_VMMC1, | 259 | .id = MC13783_REG_VMMC1, |
266 | .init_data = &sdhc1_data, | 260 | .init_data = &sdhc1_data, |
267 | }, | 261 | }, |
268 | }; | 262 | }; |
269 | 263 | ||
270 | static struct mc13783_platform_data pcm038_pmic = { | 264 | static struct mc13xxx_platform_data pcm038_pmic = { |
271 | .regulators = pcm038_regulators, | 265 | .regulators = { |
272 | .num_regulators = ARRAY_SIZE(pcm038_regulators), | 266 | .regulators = pcm038_regulators, |
267 | .num_regulators = ARRAY_SIZE(pcm038_regulators), | ||
268 | }, | ||
273 | .flags = MC13783_USE_ADC | MC13783_USE_REGULATOR | | 269 | .flags = MC13783_USE_ADC | MC13783_USE_REGULATOR | |
274 | MC13783_USE_TOUCHSCREEN, | 270 | MC13783_USE_TOUCHSCREEN, |
275 | }; | 271 | }; |
@@ -286,9 +282,15 @@ static struct spi_board_info pcm038_spi_board_info[] __initdata = { | |||
286 | } | 282 | } |
287 | }; | 283 | }; |
288 | 284 | ||
289 | static struct mxc_usbh_platform_data usbh2_pdata = { | 285 | static int pcm038_usbh2_init(struct platform_device *pdev) |
286 | { | ||
287 | return mx27_initialize_usb_hw(pdev->id, MXC_EHCI_POWER_PINS_ENABLED | | ||
288 | MXC_EHCI_INTERFACE_DIFF_UNI); | ||
289 | } | ||
290 | |||
291 | static const struct mxc_usbh_platform_data usbh2_pdata __initconst = { | ||
292 | .init = pcm038_usbh2_init, | ||
290 | .portsc = MXC_EHCI_MODE_ULPI, | 293 | .portsc = MXC_EHCI_MODE_ULPI, |
291 | .flags = MXC_EHCI_POWER_PINS_ENABLED | MXC_EHCI_INTERFACE_DIFF_UNI, | ||
292 | }; | 294 | }; |
293 | 295 | ||
294 | static void __init pcm038_init(void) | 296 | static void __init pcm038_init(void) |
@@ -309,7 +311,7 @@ static void __init pcm038_init(void) | |||
309 | i2c_register_board_info(1, pcm038_i2c_devices, | 311 | i2c_register_board_info(1, pcm038_i2c_devices, |
310 | ARRAY_SIZE(pcm038_i2c_devices)); | 312 | ARRAY_SIZE(pcm038_i2c_devices)); |
311 | 313 | ||
312 | imx27_add_i2c_imx1(&pcm038_i2c1_data); | 314 | imx27_add_imx_i2c(1, &pcm038_i2c1_data); |
313 | 315 | ||
314 | /* PE18 for user-LED D40 */ | 316 | /* PE18 for user-LED D40 */ |
315 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); | 317 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); |
@@ -323,9 +325,12 @@ static void __init pcm038_init(void) | |||
323 | spi_register_board_info(pcm038_spi_board_info, | 325 | spi_register_board_info(pcm038_spi_board_info, |
324 | ARRAY_SIZE(pcm038_spi_board_info)); | 326 | ARRAY_SIZE(pcm038_spi_board_info)); |
325 | 327 | ||
326 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | 328 | imx27_add_mxc_ehci_hs(2, &usbh2_pdata); |
327 | 329 | ||
330 | imx27_add_fec(NULL); | ||
328 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 331 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
332 | imx27_add_imx2_wdt(NULL); | ||
333 | imx27_add_mxc_w1(NULL); | ||
329 | 334 | ||
330 | #ifdef CONFIG_MACH_PCM970_BASEBOARD | 335 | #ifdef CONFIG_MACH_PCM970_BASEBOARD |
331 | pcm970_baseboard_init(); | 336 | pcm970_baseboard_init(); |
@@ -342,11 +347,10 @@ static struct sys_timer pcm038_timer = { | |||
342 | }; | 347 | }; |
343 | 348 | ||
344 | MACHINE_START(PCM038, "phyCORE-i.MX27") | 349 | MACHINE_START(PCM038, "phyCORE-i.MX27") |
345 | .phys_io = MX27_AIPI_BASE_ADDR, | 350 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
346 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 351 | .map_io = mx27_map_io, |
347 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 352 | .init_early = imx27_init_early, |
348 | .map_io = mx27_map_io, | 353 | .init_irq = mx27_init_irq, |
349 | .init_irq = mx27_init_irq, | 354 | .timer = &pcm038_timer, |
350 | .init_machine = pcm038_init, | 355 | .init_machine = pcm038_init, |
351 | .timer = &pcm038_timer, | ||
352 | MACHINE_END | 356 | MACHINE_END |