Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Dezhong Diao | f2ffa5a | 2010-10-13 00:52:46 -0600 | [diff] [blame] | 2 | /* |
| 3 | * arch/mips/include/asm/prom.h |
| 4 | * |
| 5 | * Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com> |
Dezhong Diao | f2ffa5a | 2010-10-13 00:52:46 -0600 | [diff] [blame] | 6 | */ |
Ralf Baechle | dd5d1380 | 2011-06-27 09:45:42 +0100 | [diff] [blame] | 7 | #ifndef __ASM_PROM_H |
| 8 | #define __ASM_PROM_H |
Dezhong Diao | f2ffa5a | 2010-10-13 00:52:46 -0600 | [diff] [blame] | 9 | |
Rob Herring | 01306ae | 2015-06-02 17:46:42 -0500 | [diff] [blame] | 10 | #ifdef CONFIG_USE_OF |
Ralf Baechle | 0a4c531 | 2012-04-30 11:32:58 +0200 | [diff] [blame] | 11 | #include <linux/bug.h> |
| 12 | #include <linux/io.h> |
| 13 | #include <linux/types.h> |
Dezhong Diao | f2ffa5a | 2010-10-13 00:52:46 -0600 | [diff] [blame] | 14 | #include <asm/bootinfo.h> |
| 15 | |
David Daney | 4c60071 | 2010-10-19 15:50:31 -0700 | [diff] [blame] | 16 | extern void device_tree_init(void); |
Ralf Baechle | 0a4c531 | 2012-04-30 11:32:58 +0200 | [diff] [blame] | 17 | |
Ralf Baechle | 7d6168e5 | 2012-01-25 15:03:19 +0100 | [diff] [blame] | 18 | struct boot_param_header; |
| 19 | |
Rob Herring | 0cdde83 | 2014-03-31 15:13:07 -0500 | [diff] [blame] | 20 | extern void __dt_setup_arch(void *bph); |
Kevin Cernekee | 84988c0 | 2014-10-20 21:28:02 -0700 | [diff] [blame] | 21 | extern int __dt_register_buses(const char *bus0, const char *bus1); |
Ralf Baechle | 7d6168e5 | 2012-01-25 15:03:19 +0100 | [diff] [blame] | 22 | |
Dezhong Diao | f2ffa5a | 2010-10-13 00:52:46 -0600 | [diff] [blame] | 23 | #else /* CONFIG_OF */ |
David Daney | 4c60071 | 2010-10-19 15:50:31 -0700 | [diff] [blame] | 24 | static inline void device_tree_init(void) { } |
Dezhong Diao | f2ffa5a | 2010-10-13 00:52:46 -0600 | [diff] [blame] | 25 | #endif /* CONFIG_OF */ |
| 26 | |
John Crispin | 9169a5d | 2013-04-11 05:34:59 +0000 | [diff] [blame] | 27 | extern char *mips_get_machine_name(void); |
| 28 | extern void mips_set_machine_name(const char *name); |
| 29 | |
Ralf Baechle | dd5d1380 | 2011-06-27 09:45:42 +0100 | [diff] [blame] | 30 | #endif /* __ASM_PROM_H */ |