summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/85xx/mpc85xx.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2023-04-08 16:01:18 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2023-04-20 12:22:51 +1000
commit92189c902c2e2f8c0d4238310686e93da99156b5 (patch)
treed19a1af7464f132daff7b9dcad163aa2f7785a42 /arch/powerpc/platforms/85xx/mpc85xx.h
parentc30aa8fd6cabd12917277facbd2bd81dc3a226d6 (diff)
powerpc/85xx: mpc85xx_ds: Move i8259 code into own file
In order to share mpc85xx i8259 code between DS and P2020. Prefix i8259 debug and error messages by i8259 word. Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> [mpe: Fix some coding style warnings in the moved code] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230408140122.25293-10-pali@kernel.org
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc85xx.h')
-rw-r--r--arch/powerpc/platforms/85xx/mpc85xx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx.h b/arch/powerpc/platforms/85xx/mpc85xx.h
index 8f7b37c1de87..e792907ee3d5 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx.h
+++ b/arch/powerpc/platforms/85xx/mpc85xx.h
@@ -15,6 +15,12 @@ extern void mpc85xx_qe_par_io_init(void);
static inline void __init mpc85xx_qe_par_io_init(void) {}
#endif
+#ifdef CONFIG_PPC_I8259
+void __init mpc85xx_8259_init(void);
+#else
+static inline void __init mpc85xx_8259_init(void) {}
+#endif
+
void __init mpc85xx_ds_pic_init(void);
void __init mpc85xx_ds_setup_arch(void);
void __init mpc85xx_rdb_setup_arch(void);