xref: /openbmc/linux/arch/arm64/include/asm/setup.h (revision 603c09f2)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #ifndef __ARM64_ASM_SETUP_H
4 #define __ARM64_ASM_SETUP_H
5 
6 #include <linux/string.h>
7 
8 #include <uapi/asm/setup.h>
9 
10 void *get_early_fdt_ptr(void);
11 void early_fdt_map(u64 dt_phys);
12 
13 /*
14  * These two variables are used in the head.S file.
15  */
16 extern phys_addr_t __fdt_pointer __initdata;
17 extern u64 __cacheline_aligned boot_args[4];
18 
19 static inline bool arch_parse_debug_rodata(char *arg)
20 {
21 	extern bool rodata_enabled;
22 	extern bool rodata_full;
23 
24 	if (arg && !strcmp(arg, "full")) {
25 		rodata_enabled = true;
26 		rodata_full = true;
27 		return true;
28 	}
29 
30 	return false;
31 }
32 #define arch_parse_debug_rodata arch_parse_debug_rodata
33 
34 #endif
35