prom.h 845 字节
Newer Older
G
Grant Likely 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 *  arch/arm/include/asm/prom.h
 *
 *  Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 */
#ifndef __ASMARM_PROM_H
#define __ASMARM_PROM_H

14 15
#define HAVE_ARCH_DEVTREE_FIXUPS

G
Grant Likely 已提交
16 17
#ifdef CONFIG_OF

18
extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
19
extern void arm_dt_memblock_reserve(void);
20
extern void __init arm_dt_init_cpu_maps(void);
21 22 23

#else /* CONFIG_OF */

24
static inline const struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
25 26 27 28 29
{
	return NULL;
}

static inline void arm_dt_memblock_reserve(void) { }
30
static inline void arm_dt_init_cpu_maps(void) { }
31

G
Grant Likely 已提交
32 33
#endif /* CONFIG_OF */
#endif /* ASMARM_PROM_H */