blob: 4a2985e21969ab283889935c20ad44a486ed1dcd [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
Pantelis Antoniou31982e52012-10-31 17:57:49 +020014#define HAVE_ARCH_DEVTREE_FIXUPS
15
Grant Likely9eb8f672011-04-28 14:27:20 -060016#ifdef CONFIG_OF
17
Russell Kingff69a4c2013-07-26 14:55:59 +010018extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
Grant Likely93c02ab2011-04-28 14:27:21 -060019extern void arm_dt_memblock_reserve(void);
Lorenzo Pieralisia0ae02402011-11-17 17:31:51 +000020extern void __init arm_dt_init_cpu_maps(void);
Grant Likely93c02ab2011-04-28 14:27:21 -060021
22#else /* CONFIG_OF */
23
Russell Kingff69a4c2013-07-26 14:55:59 +010024static inline const struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
Grant Likely93c02ab2011-04-28 14:27:21 -060025{
26 return NULL;
27}
28
29static inline void arm_dt_memblock_reserve(void) { }
Lorenzo Pieralisia0ae02402011-11-17 17:31:51 +000030static inline void arm_dt_init_cpu_maps(void) { }
Grant Likely93c02ab2011-04-28 14:27:21 -060031
Grant Likely9eb8f672011-04-28 14:27:20 -060032#endif /* CONFIG_OF */
33#endif /* ASMARM_PROM_H */