diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index c00c68961bb8..d092d2a89ee0 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -17,21 +17,20 @@ | |||
17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | #include <linux/pinctrl/machine.h> | ||
20 | #include <linux/platform_data/omap4-keypad.h> | 21 | #include <linux/platform_data/omap4-keypad.h> |
21 | 22 | ||
22 | #include <mach/hardware.h> | ||
23 | #include <mach/irqs.h> | ||
24 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
25 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
26 | #include <asm/pmu.h> | ||
27 | 25 | ||
28 | #include "iomap.h" | 26 | #include "iomap.h" |
29 | #include <plat/board.h> | ||
30 | #include <plat/dma.h> | 27 | #include <plat/dma.h> |
31 | #include <plat/omap_hwmod.h> | 28 | #include <plat/omap_hwmod.h> |
32 | #include <plat/omap_device.h> | 29 | #include <plat/omap_device.h> |
33 | #include <plat/omap4-keypad.h> | 30 | #include "omap4-keypad.h" |
34 | 31 | ||
32 | #include "soc.h" | ||
33 | #include "common.h" | ||
35 | #include "mux.h" | 34 | #include "mux.h" |
36 | #include "control.h" | 35 | #include "control.h" |
37 | #include "devices.h" | 36 | #include "devices.h" |
@@ -112,7 +111,7 @@ static struct resource omap2cam_resources[] = { | |||
112 | .flags = IORESOURCE_MEM, | 111 | .flags = IORESOURCE_MEM, |
113 | }, | 112 | }, |
114 | { | 113 | { |
115 | .start = INT_24XX_CAM_IRQ, | 114 | .start = 24 + OMAP_INTC_START, |
116 | .flags = IORESOURCE_IRQ, | 115 | .flags = IORESOURCE_IRQ, |
117 | } | 116 | } |
118 | }; | 117 | }; |
@@ -201,7 +200,7 @@ static struct resource omap3isp_resources[] = { | |||
201 | .flags = IORESOURCE_MEM, | 200 | .flags = IORESOURCE_MEM, |
202 | }, | 201 | }, |
203 | { | 202 | { |
204 | .start = INT_34XX_CAM_IRQ, | 203 | .start = 24 + OMAP_INTC_START, |
205 | .flags = IORESOURCE_IRQ, | 204 | .flags = IORESOURCE_IRQ, |
206 | } | 205 | } |
207 | }; | 206 | }; |
@@ -385,7 +384,7 @@ static inline void omap_init_hdmi_audio(void) {} | |||
385 | 384 | ||
386 | #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE) | 385 | #if defined(CONFIG_SPI_OMAP24XX) || defined(CONFIG_SPI_OMAP24XX_MODULE) |
387 | 386 | ||
388 | #include <plat/mcspi.h> | 387 | #include <linux/platform_data/spi-omap2-mcspi.h> |
389 | 388 | ||
390 | static int __init omap_mcspi_init(struct omap_hwmod *oh, void *unused) | 389 | static int __init omap_mcspi_init(struct omap_hwmod *oh, void *unused) |
391 | { | 390 | { |
@@ -435,20 +434,18 @@ static inline void omap_init_mcspi(void) {} | |||
435 | #endif | 434 | #endif |
436 | 435 | ||
437 | static struct resource omap2_pmu_resource = { | 436 | static struct resource omap2_pmu_resource = { |
438 | .start = 3, | 437 | .start = 3 + OMAP_INTC_START, |
439 | .end = 3, | ||
440 | .flags = IORESOURCE_IRQ, | 438 | .flags = IORESOURCE_IRQ, |
441 | }; | 439 | }; |
442 | 440 | ||
443 | static struct resource omap3_pmu_resource = { | 441 | static struct resource omap3_pmu_resource = { |
444 | .start = INT_34XX_BENCH_MPU_EMUL, | 442 | .start = 3 + OMAP_INTC_START, |
445 | .end = INT_34XX_BENCH_MPU_EMUL, | ||
446 | .flags = IORESOURCE_IRQ, | 443 | .flags = IORESOURCE_IRQ, |
447 | }; | 444 | }; |
448 | 445 | ||
449 | static struct platform_device omap_pmu_device = { | 446 | static struct platform_device omap_pmu_device = { |
450 | .name = "arm-pmu", | 447 | .name = "arm-pmu", |
451 | .id = ARM_PMU_DEVICE_CPU, | 448 | .id = -1, |
452 | .num_resources = 1, | 449 | .num_resources = 1, |
453 | }; | 450 | }; |
454 | 451 | ||
@@ -475,7 +472,7 @@ static struct resource omap2_sham_resources[] = { | |||
475 | .flags = IORESOURCE_MEM, | 472 | .flags = IORESOURCE_MEM, |
476 | }, | 473 | }, |
477 | { | 474 | { |
478 | .start = INT_24XX_SHA1MD5, | 475 | .start = 51 + OMAP_INTC_START, |
479 | .flags = IORESOURCE_IRQ, | 476 | .flags = IORESOURCE_IRQ, |
480 | } | 477 | } |
481 | }; | 478 | }; |
@@ -493,7 +490,7 @@ static struct resource omap3_sham_resources[] = { | |||
493 | .flags = IORESOURCE_MEM, | 490 | .flags = IORESOURCE_MEM, |
494 | }, | 491 | }, |
495 | { | 492 | { |
496 | .start = INT_34XX_SHA1MD52_IRQ, | 493 | .start = 49 + OMAP_INTC_START, |
497 | .flags = IORESOURCE_IRQ, | 494 | .flags = IORESOURCE_IRQ, |
498 | }, | 495 | }, |
499 | { | 496 | { |
@@ -631,6 +628,10 @@ static inline void omap_init_vout(void) {} | |||
631 | 628 | ||
632 | static int __init omap2_init_devices(void) | 629 | static int __init omap2_init_devices(void) |
633 | { | 630 | { |
631 | /* Enable dummy states for those platforms without pinctrl support */ | ||
632 | if (!of_have_populated_dt()) | ||
633 | pinctrl_provide_dummies(); | ||
634 | |||
634 | /* | 635 | /* |
635 | * please keep these calls, and their implementations above, | 636 | * please keep these calls, and their implementations above, |
636 | * in alphabetical order so they're easier to sort through. | 637 | * in alphabetical order so they're easier to sort through. |