1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Ultravisor high level interfaces
4  *
5  * Copyright 2019, IBM Corporation.
6  *
7  */
8 #include <linux/init.h>
9 #include <linux/printk.h>
10 #include <linux/of_fdt.h>
11 
12 #include <asm/ultravisor.h>
13 #include <asm/firmware.h>
14 
15 int __init early_init_dt_scan_ultravisor(unsigned long node, const char *uname,
16 					 int depth, void *data)
17 {
18 	if (!of_flat_dt_is_compatible(node, "ibm,ultravisor"))
19 		return 0;
20 
21 	powerpc_firmware_features |= FW_FEATURE_ULTRAVISOR;
22 	pr_debug("Ultravisor detected!\n");
23 	return 1;
24 }
25