diff options
Diffstat (limited to 'arch/arm/mach-imx/imx53-dt.c')
-rw-r--r-- | arch/arm/mach-imx/imx53-dt.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-imx/imx53-dt.c b/arch/arm/mach-imx/imx53-dt.c index eb04b6248e48..fdd90805d98e 100644 --- a/arch/arm/mach-imx/imx53-dt.c +++ b/arch/arm/mach-imx/imx53-dt.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/err.h> | 15 | #include <linux/err.h> |
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <linux/irq.h> | 17 | #include <linux/irq.h> |
18 | #include <linux/irqdomain.h> | ||
19 | #include <linux/of_irq.h> | 18 | #include <linux/of_irq.h> |
20 | #include <linux/of_platform.h> | 19 | #include <linux/of_platform.h> |
21 | #include <linux/pinctrl/machine.h> | 20 | #include <linux/pinctrl/machine.h> |
@@ -52,30 +51,6 @@ static const struct of_dev_auxdata imx53_auxdata_lookup[] __initconst = { | |||
52 | { /* sentinel */ } | 51 | { /* sentinel */ } |
53 | }; | 52 | }; |
54 | 53 | ||
55 | static int __init imx53_tzic_add_irq_domain(struct device_node *np, | ||
56 | struct device_node *interrupt_parent) | ||
57 | { | ||
58 | irq_domain_add_legacy(np, 128, 0, 0, &irq_domain_simple_ops, NULL); | ||
59 | return 0; | ||
60 | } | ||
61 | |||
62 | static int __init imx53_gpio_add_irq_domain(struct device_node *np, | ||
63 | struct device_node *interrupt_parent) | ||
64 | { | ||
65 | static int gpio_irq_base = MXC_GPIO_IRQ_START + ARCH_NR_GPIOS; | ||
66 | |||
67 | gpio_irq_base -= 32; | ||
68 | irq_domain_add_legacy(np, 32, gpio_irq_base, 0, &irq_domain_simple_ops, NULL); | ||
69 | |||
70 | return 0; | ||
71 | } | ||
72 | |||
73 | static const struct of_device_id imx53_irq_match[] __initconst = { | ||
74 | { .compatible = "fsl,imx53-tzic", .data = imx53_tzic_add_irq_domain, }, | ||
75 | { .compatible = "fsl,imx53-gpio", .data = imx53_gpio_add_irq_domain, }, | ||
76 | { /* sentinel */ } | ||
77 | }; | ||
78 | |||
79 | static const struct of_device_id imx53_iomuxc_of_match[] __initconst = { | 54 | static const struct of_device_id imx53_iomuxc_of_match[] __initconst = { |
80 | { .compatible = "fsl,imx53-iomuxc-ard", .data = imx53_ard_common_init, }, | 55 | { .compatible = "fsl,imx53-iomuxc-ard", .data = imx53_ard_common_init, }, |
81 | { .compatible = "fsl,imx53-iomuxc-evk", .data = imx53_evk_common_init, }, | 56 | { .compatible = "fsl,imx53-iomuxc-evk", .data = imx53_evk_common_init, }, |
@@ -103,8 +78,6 @@ static void __init imx53_dt_init(void) | |||
103 | const struct of_device_id *of_id; | 78 | const struct of_device_id *of_id; |
104 | void (*func)(void); | 79 | void (*func)(void); |
105 | 80 | ||
106 | of_irq_init(imx53_irq_match); | ||
107 | |||
108 | pinctrl_provide_dummies(); | 81 | pinctrl_provide_dummies(); |
109 | 82 | ||
110 | node = of_find_matching_node(NULL, imx53_iomuxc_of_match); | 83 | node = of_find_matching_node(NULL, imx53_iomuxc_of_match); |