xref: /linux/arch/arm/include/asm/prom.h (revision 4b132aacb0768ac1e652cf517097ea6f237214b9)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  arch/arm/include/asm/prom.h
4  *
5  *  Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
6  */
7 #ifndef __ASMARM_PROM_H
8 #define __ASMARM_PROM_H
9 
10 #ifdef CONFIG_OF
11 
12 extern const struct machine_desc *setup_machine_fdt(void *dt_virt);
13 extern void __init arm_dt_init_cpu_maps(void);
14 
15 #else /* CONFIG_OF */
16 
17 static inline const struct machine_desc *setup_machine_fdt(void *dt_virt)
18 {
19 	return NULL;
20 }
21 
22 static inline void arm_dt_init_cpu_maps(void) { }
23 
24 #endif /* CONFIG_OF */
25 #endif /* ASMARM_PROM_H */
26