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/mpc83xx.h | |
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/mpc83xx.h')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc83xx.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h index 82a434510d83..f07751ab9b11 100644 --- a/arch/powerpc/platforms/83xx/mpc83xx.h +++ b/arch/powerpc/platforms/83xx/mpc83xx.h | |||
@@ -70,5 +70,14 @@ extern long mpc83xx_time_init(void); | |||
70 | extern int mpc837x_usb_cfg(void); | 70 | extern int mpc837x_usb_cfg(void); |
71 | extern int mpc834x_usb_cfg(void); | 71 | extern int mpc834x_usb_cfg(void); |
72 | extern int mpc831x_usb_cfg(void); | 72 | extern int mpc831x_usb_cfg(void); |
73 | extern void mpc83xx_ipic_init_IRQ(void); | ||
74 | #ifdef CONFIG_QUICC_ENGINE | ||
75 | extern void mpc83xx_qe_init_IRQ(void); | ||
76 | extern void mpc83xx_ipic_and_qe_init_IRQ(void); | ||
77 | #else | ||
78 | static inline void __init mpc83xx_qe_init_IRQ(void) {} | ||
79 | #define mpc83xx_ipic_and_qe_init_IRQ mpc83xx_ipic_init_IRQ | ||
80 | #endif /* CONFIG_QUICC_ENGINE */ | ||
81 | |||
73 | 82 | ||
74 | #endif /* __MPC83XX_H__ */ | 83 | #endif /* __MPC83XX_H__ */ |