diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index d6b4b2f8722f..894cc355818a 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <mach/board.h> | 25 | #include <mach/board.h> |
26 | #include <mach/mux.h> | 26 | #include <mach/mux.h> |
27 | #include <mach/gpio.h> | 27 | #include <mach/gpio.h> |
28 | #include <mach/eac.h> | ||
29 | #include <mach/mmc.h> | 28 | #include <mach/mmc.h> |
30 | 29 | ||
31 | #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE) | 30 | #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE) |
@@ -355,10 +354,12 @@ static void omap_init_mcspi(void) | |||
355 | platform_device_register(&omap2_mcspi1); | 354 | platform_device_register(&omap2_mcspi1); |
356 | platform_device_register(&omap2_mcspi2); | 355 | platform_device_register(&omap2_mcspi2); |
357 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) | 356 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) |
358 | platform_device_register(&omap2_mcspi3); | 357 | if (cpu_is_omap2430() || cpu_is_omap343x()) |
358 | platform_device_register(&omap2_mcspi3); | ||
359 | #endif | 359 | #endif |
360 | #ifdef CONFIG_ARCH_OMAP3 | 360 | #ifdef CONFIG_ARCH_OMAP3 |
361 | platform_device_register(&omap2_mcspi4); | 361 | if (cpu_is_omap343x()) |
362 | platform_device_register(&omap2_mcspi4); | ||
362 | #endif | 363 | #endif |
363 | } | 364 | } |
364 | 365 | ||
@@ -366,38 +367,6 @@ static void omap_init_mcspi(void) | |||
366 | static inline void omap_init_mcspi(void) {} | 367 | static inline void omap_init_mcspi(void) {} |
367 | #endif | 368 | #endif |
368 | 369 | ||
369 | #ifdef CONFIG_SND_OMAP24XX_EAC | ||
370 | |||
371 | #define OMAP2_EAC_BASE 0x48090000 | ||
372 | |||
373 | static struct resource omap2_eac_resources[] = { | ||
374 | { | ||
375 | .start = OMAP2_EAC_BASE, | ||
376 | .end = OMAP2_EAC_BASE + 0x109, | ||
377 | .flags = IORESOURCE_MEM, | ||
378 | }, | ||
379 | }; | ||
380 | |||
381 | static struct platform_device omap2_eac_device = { | ||
382 | .name = "omap24xx-eac", | ||
383 | .id = -1, | ||
384 | .num_resources = ARRAY_SIZE(omap2_eac_resources), | ||
385 | .resource = omap2_eac_resources, | ||
386 | .dev = { | ||
387 | .platform_data = NULL, | ||
388 | }, | ||
389 | }; | ||
390 | |||
391 | void omap_init_eac(struct eac_platform_data *pdata) | ||
392 | { | ||
393 | omap2_eac_device.dev.platform_data = pdata; | ||
394 | platform_device_register(&omap2_eac_device); | ||
395 | } | ||
396 | |||
397 | #else | ||
398 | void omap_init_eac(struct eac_platform_data *pdata) {} | ||
399 | #endif | ||
400 | |||
401 | #ifdef CONFIG_OMAP_SHA1_MD5 | 370 | #ifdef CONFIG_OMAP_SHA1_MD5 |
402 | static struct resource sha1_md5_resources[] = { | 371 | static struct resource sha1_md5_resources[] = { |
403 | { | 372 | { |