Grant Likely | 9eb8f67 | 2011-04-28 14:27:20 -0600 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/include/asm/prom.h |
| 3 | * |
| 4 | * Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 10 | */ |
| 11 | #ifndef __ASMARM_PROM_H |
| 12 | #define __ASMARM_PROM_H |
| 13 | |
| 14 | #ifdef CONFIG_OF |
| 15 | |
Russell King | ff69a4c | 2013-07-26 14:55:59 +0100 | [diff] [blame] | 16 | extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys); |
Lorenzo Pieralisi | a0ae0240 | 2011-11-17 17:31:51 +0000 | [diff] [blame] | 17 | extern void __init arm_dt_init_cpu_maps(void); |
Grant Likely | 93c02ab | 2011-04-28 14:27:21 -0600 | [diff] [blame] | 18 | |
| 19 | #else /* CONFIG_OF */ |
| 20 | |
Russell King | ff69a4c | 2013-07-26 14:55:59 +0100 | [diff] [blame] | 21 | static inline const struct machine_desc *setup_machine_fdt(unsigned int dt_phys) |
Grant Likely | 93c02ab | 2011-04-28 14:27:21 -0600 | [diff] [blame] | 22 | { |
| 23 | return NULL; |
| 24 | } |
| 25 | |
Lorenzo Pieralisi | a0ae0240 | 2011-11-17 17:31:51 +0000 | [diff] [blame] | 26 | static inline void arm_dt_init_cpu_maps(void) { } |
Grant Likely | 93c02ab | 2011-04-28 14:27:21 -0600 | [diff] [blame] | 27 | |
Grant Likely | 9eb8f67 | 2011-04-28 14:27:20 -0600 | [diff] [blame] | 28 | #endif /* CONFIG_OF */ |
| 29 | #endif /* ASMARM_PROM_H */ |