blob: c42e07671934587b8cf1b68f7b592b1b50eb4d97 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -06002/*
3 * arch/mips/include/asm/prom.h
4 *
5 * Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com>
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -06006 */
Ralf Baechledd5d13802011-06-27 09:45:42 +01007#ifndef __ASM_PROM_H
8#define __ASM_PROM_H
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -06009
Rob Herring01306ae2015-06-02 17:46:42 -050010#ifdef CONFIG_USE_OF
Ralf Baechle0a4c5312012-04-30 11:32:58 +020011#include <linux/bug.h>
12#include <linux/io.h>
13#include <linux/types.h>
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060014#include <asm/bootinfo.h>
15
David Daney4c600712010-10-19 15:50:31 -070016extern void device_tree_init(void);
Ralf Baechle0a4c5312012-04-30 11:32:58 +020017
Ralf Baechle7d6168e52012-01-25 15:03:19 +010018struct boot_param_header;
19
Rob Herring0cdde832014-03-31 15:13:07 -050020extern void __dt_setup_arch(void *bph);
Kevin Cernekee84988c02014-10-20 21:28:02 -070021extern int __dt_register_buses(const char *bus0, const char *bus1);
Ralf Baechle7d6168e52012-01-25 15:03:19 +010022
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060023#else /* CONFIG_OF */
David Daney4c600712010-10-19 15:50:31 -070024static inline void device_tree_init(void) { }
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060025#endif /* CONFIG_OF */
26
John Crispin9169a5d2013-04-11 05:34:59 +000027extern char *mips_get_machine_name(void);
28extern void mips_set_machine_name(const char *name);
29
Ralf Baechledd5d13802011-06-27 09:45:42 +010030#endif /* __ASM_PROM_H */