blob: 1e36c40533c161aa759a61b6d23b2f09475d7b60 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * arch/arm/include/asm/prom.h
4 *
5 * Copyright (C) 2009 Canonical Ltd. <jeremy.kerr@canonical.com>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 */
7#ifndef __ASMARM_PROM_H
8#define __ASMARM_PROM_H
9
10#ifdef CONFIG_OF
11
12extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
13extern void __init arm_dt_init_cpu_maps(void);
14
15#else /* CONFIG_OF */
16
17static inline const struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
18{
19 return NULL;
20}
21
22static inline void arm_dt_init_cpu_maps(void) { }
23
24#endif /* CONFIG_OF */
25#endif /* ASMARM_PROM_H */