diff options
Diffstat (limited to 'arch/arm/mach-omap2/prm_common.c')
-rw-r--r-- | arch/arm/mach-omap2/prm_common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index 228b850e632f..a2e1174ad1b6 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | 26 | ||
27 | #include "soc.h" | ||
27 | #include "prm2xxx_3xxx.h" | 28 | #include "prm2xxx_3xxx.h" |
28 | #include "prm2xxx.h" | 29 | #include "prm2xxx.h" |
29 | #include "prm3xxx.h" | 30 | #include "prm3xxx.h" |
@@ -322,6 +323,16 @@ int omap_prcm_register_chain_handler(struct omap_prcm_irq_setup *irq_setup) | |||
322 | prcm_irq_chips[i] = gc; | 323 | prcm_irq_chips[i] = gc; |
323 | } | 324 | } |
324 | 325 | ||
326 | if (of_have_populated_dt()) { | ||
327 | int irq = omap_prcm_event_to_irq("io"); | ||
328 | if (cpu_is_omap34xx()) | ||
329 | omap_pcs_legacy_init(irq, | ||
330 | omap3xxx_prm_reconfigure_io_chain); | ||
331 | else | ||
332 | omap_pcs_legacy_init(irq, | ||
333 | omap44xx_prm_reconfigure_io_chain); | ||
334 | } | ||
335 | |||
325 | return 0; | 336 | return 0; |
326 | 337 | ||
327 | err: | 338 | err: |