diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-07-22 15:55:42 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 03:01:40 -0500 |
commit | d4fb5ebd83c7044ce0784e899271f6fcb42d0713 (patch) | |
tree | fca4a27cb58db825f50812fe882efc800871d4d8 /arch/powerpc/platforms/83xx/mpc836x_rdk.c | |
parent | c0019a4d6700e22409ffeaf6dbfa0b0700d128ca (diff) |
powerpc/83xx: consolidate init_IRQ functions
On mpc83xx platform nearly all _init_IRQ functions look alike. They either
just setup ipic, or setup ipic and QE PIC. Separate this to special functions
to be either referenced from ppc_md, or called from board file.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc836x_rdk.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc836x_rdk.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc836x_rdk.c b/arch/powerpc/platforms/83xx/mpc836x_rdk.c index b0090aac9642..cd8f0782a66b 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_rdk.c +++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c | |||
@@ -56,32 +56,6 @@ static void __init mpc836x_rdk_setup_arch(void) | |||
56 | #endif | 56 | #endif |
57 | } | 57 | } |
58 | 58 | ||
59 | static void __init mpc836x_rdk_init_IRQ(void) | ||
60 | { | ||
61 | struct device_node *np; | ||
62 | |||
63 | np = of_find_compatible_node(NULL, NULL, "fsl,ipic"); | ||
64 | if (!np) | ||
65 | return; | ||
66 | |||
67 | ipic_init(np, 0); | ||
68 | |||
69 | /* | ||
70 | * Initialize the default interrupt mapping priorities, | ||
71 | * in case the boot rom changed something on us. | ||
72 | */ | ||
73 | ipic_set_default_priority(); | ||
74 | of_node_put(np); | ||
75 | #ifdef CONFIG_QUICC_ENGINE | ||
76 | np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); | ||
77 | if (!np) | ||
78 | return; | ||
79 | |||
80 | qe_ic_init(np, 0, qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic); | ||
81 | of_node_put(np); | ||
82 | #endif | ||
83 | } | ||
84 | |||
85 | /* | 59 | /* |
86 | * Called very early, MMU is off, device-tree isn't unflattened. | 60 | * Called very early, MMU is off, device-tree isn't unflattened. |
87 | */ | 61 | */ |
@@ -96,7 +70,7 @@ define_machine(mpc836x_rdk) { | |||
96 | .name = "MPC836x RDK", | 70 | .name = "MPC836x RDK", |
97 | .probe = mpc836x_rdk_probe, | 71 | .probe = mpc836x_rdk_probe, |
98 | .setup_arch = mpc836x_rdk_setup_arch, | 72 | .setup_arch = mpc836x_rdk_setup_arch, |
99 | .init_IRQ = mpc836x_rdk_init_IRQ, | 73 | .init_IRQ = mpc83xx_ipic_and_qe_init_IRQ, |
100 | .get_irq = ipic_get_irq, | 74 | .get_irq = ipic_get_irq, |
101 | .restart = mpc83xx_restart, | 75 | .restart = mpc83xx_restart, |
102 | .time_init = mpc83xx_time_init, | 76 | .time_init = mpc83xx_time_init, |