blob: cd94ef2ef283e14e679dbd1802aecfa78ca9bebc [file] [log] [blame]
Grant Likely9eb8f672011-04-28 14:27:20 -06001/*
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 Kingff69a4c2013-07-26 14:55:59 +010016extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
Lorenzo Pieralisia0ae02402011-11-17 17:31:51 +000017extern void __init arm_dt_init_cpu_maps(void);
Grant Likely93c02ab2011-04-28 14:27:21 -060018
19#else /* CONFIG_OF */
20
Russell Kingff69a4c2013-07-26 14:55:59 +010021static inline const struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
Grant Likely93c02ab2011-04-28 14:27:21 -060022{
23 return NULL;
24}
25
Lorenzo Pieralisia0ae02402011-11-17 17:31:51 +000026static inline void arm_dt_init_cpu_maps(void) { }
Grant Likely93c02ab2011-04-28 14:27:21 -060027
Grant Likely9eb8f672011-04-28 14:27:20 -060028#endif /* CONFIG_OF */
29#endif /* ASMARM_PROM_H */