summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/um_arch.h
diff options
context:
space:
mode:
authorVincent Whitchurch <vincent.whitchurch@axis.com>2021-12-08 16:11:23 +0100
committerRichard Weinberger <richard@nod.at>2021-12-22 20:35:01 +0100
commitb31297f04e86e4115ece79ca530d8ae1c454db75 (patch)
tree0de0a845d29525262d48d3b81c829a855806ff23 /arch/um/kernel/um_arch.h
parentum: Extract load file helper from initrd.c (diff)
downloadlinux-b31297f04e86e4115ece79ca530d8ae1c454db75.tar.xz
linux-b31297f04e86e4115ece79ca530d8ae1c454db75.zip
um: Add devicetree support
Add a dtb=<filename> option to boot UML with a devicetree blob. This can be used for testing driver code using UML. Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com> [rw: Add dependency on CONFIG_OF] Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/um_arch.h')
-rw-r--r--arch/um/kernel/um_arch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/um/kernel/um_arch.h b/arch/um/kernel/um_arch.h
index b195df3a09a0..1e07fb7ee35e 100644
--- a/arch/um/kernel/um_arch.h
+++ b/arch/um/kernel/um_arch.h
@@ -5,4 +5,10 @@
extern void * __init uml_load_file(const char *filename, unsigned long long *size);
+#ifdef CONFIG_OF
+extern void __init uml_dtb_init(void);
+#else
+static inline void uml_dtb_init(void) { }
+#endif
+
#endif