diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-06-12 22:20:58 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-07-01 09:57:29 -0400 |
commit | f3eac29da1f6a477722b56ff00228e8a13f8f6c6 (patch) | |
tree | 8b50b39a755008a9f890d7b31600940584140dc1 /arch/arm/mach-imx/imx51-dt.c | |
parent | 1ab7ef158dfbaf6314b6660a3e3fb037cba2a1ca (diff) |
ARM: imx: move irq_domain_add_legacy call into tzic driver
Move irq_domain_add_legacy call from imx5*-dt.c into tzic init function
and have the tzic driver adopt irqdomain support for both DT and non-DT
boot.
Now tzic init function calls irq_alloc_descs to get irq_base and adds
a lenacy irqdomain with the irq_base, so that the mapping between tzic
irq and Linux irq number can be handled by irqdomain.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/imx51-dt.c')
-rw-r--r-- | arch/arm/mach-imx/imx51-dt.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c index 3bdabbc64f43..d4067fe36357 100644 --- a/arch/arm/mach-imx/imx51-dt.c +++ b/arch/arm/mach-imx/imx51-dt.c | |||
@@ -11,7 +11,6 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/irq.h> | 13 | #include <linux/irq.h> |
14 | #include <linux/irqdomain.h> | ||
15 | #include <linux/of_irq.h> | 14 | #include <linux/of_irq.h> |
16 | #include <linux/of_platform.h> | 15 | #include <linux/of_platform.h> |
17 | #include <linux/pinctrl/machine.h> | 16 | #include <linux/pinctrl/machine.h> |
@@ -45,18 +44,6 @@ static const struct of_dev_auxdata imx51_auxdata_lookup[] __initconst = { | |||
45 | { /* sentinel */ } | 44 | { /* sentinel */ } |
46 | }; | 45 | }; |
47 | 46 | ||
48 | static int __init imx51_tzic_add_irq_domain(struct device_node *np, | ||
49 | struct device_node *interrupt_parent) | ||
50 | { | ||
51 | irq_domain_add_legacy(np, 128, 0, 0, &irq_domain_simple_ops, NULL); | ||
52 | return 0; | ||
53 | } | ||
54 | |||
55 | static const struct of_device_id imx51_irq_match[] __initconst = { | ||
56 | { .compatible = "fsl,imx51-tzic", .data = imx51_tzic_add_irq_domain, }, | ||
57 | { /* sentinel */ } | ||
58 | }; | ||
59 | |||
60 | static const struct of_device_id imx51_iomuxc_of_match[] __initconst = { | 47 | static const struct of_device_id imx51_iomuxc_of_match[] __initconst = { |
61 | { .compatible = "fsl,imx51-iomuxc-babbage", .data = imx51_babbage_common_init, }, | 48 | { .compatible = "fsl,imx51-iomuxc-babbage", .data = imx51_babbage_common_init, }, |
62 | { /* sentinel */ } | 49 | { /* sentinel */ } |
@@ -68,8 +55,6 @@ static void __init imx51_dt_init(void) | |||
68 | const struct of_device_id *of_id; | 55 | const struct of_device_id *of_id; |
69 | void (*func)(void); | 56 | void (*func)(void); |
70 | 57 | ||
71 | of_irq_init(imx51_irq_match); | ||
72 | |||
73 | pinctrl_provide_dummies(); | 58 | pinctrl_provide_dummies(); |
74 | 59 | ||
75 | node = of_find_matching_node(NULL, imx51_iomuxc_of_match); | 60 | node = of_find_matching_node(NULL, imx51_iomuxc_of_match); |