linux-stable/arch/powerpc/platforms/85xx/mpc85xx.h
Pali Rohár 7d8ae6e081 powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks
Make just one .setup_arch and one .init_IRQ callback implementation for all
P2020 board code. This deduplicate repeated and same code.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230408140122.25293-11-pali@kernel.org
2023-04-20 12:23:13 +10:00

24 lines
550 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef MPC85xx_H
#define MPC85xx_H
extern int mpc85xx_common_publish_devices(void);
#ifdef CONFIG_CPM2
extern void mpc85xx_cpm2_pic_init(void);
#else
static inline void __init mpc85xx_cpm2_pic_init(void) {}
#endif /* CONFIG_CPM2 */
#ifdef CONFIG_QUICC_ENGINE
extern void mpc85xx_qe_par_io_init(void);
#else
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
#endif