xref: /openbmc/linux/arch/arm/include/asm/prom.h (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
29eb8f674SGrant Likely /*
39eb8f674SGrant Likely  *  arch/arm/include/asm/prom.h
49eb8f674SGrant Likely  *
59eb8f674SGrant Likely  *  Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
69eb8f674SGrant Likely  */
79eb8f674SGrant Likely #ifndef __ASMARM_PROM_H
89eb8f674SGrant Likely #define __ASMARM_PROM_H
99eb8f674SGrant Likely 
109eb8f674SGrant Likely #ifdef CONFIG_OF
119eb8f674SGrant Likely 
12*e9a2f8b5SArd Biesheuvel extern const struct machine_desc *setup_machine_fdt(void *dt_virt);
13a0ae0240SLorenzo Pieralisi extern void __init arm_dt_init_cpu_maps(void);
1493c02ab4SGrant Likely 
1593c02ab4SGrant Likely #else /* CONFIG_OF */
1693c02ab4SGrant Likely 
setup_machine_fdt(void * dt_virt)17*e9a2f8b5SArd Biesheuvel static inline const struct machine_desc *setup_machine_fdt(void *dt_virt)
1893c02ab4SGrant Likely {
1993c02ab4SGrant Likely 	return NULL;
2093c02ab4SGrant Likely }
2193c02ab4SGrant Likely 
arm_dt_init_cpu_maps(void)22a0ae0240SLorenzo Pieralisi static inline void arm_dt_init_cpu_maps(void) { }
2393c02ab4SGrant Likely 
249eb8f674SGrant Likely #endif /* CONFIG_OF */
259eb8f674SGrant Likely #endif /* ASMARM_PROM_H */
26