]> git.sur5r.net Git - u-boot/blobdiff - include/libfdt.h
libfdt: move working_fdt and FDT_RAMDISK_OVERHEAD to include/libfdt.h
[u-boot] / include / libfdt.h
index 7ba13e634b654b2023d5bdb75b7ac927f24857f0..dbc56ec62e9f4803fe7f9cbec4e5830fd509e321 100644 (file)
@@ -1 +1,14 @@
+#ifndef UBOOT_LIBFDT_H
+#define UBOOT_LIBFDT_H
+/*
+ * SPDX-License-Identifier:     GPL-2.0+ BSD-2-Clause
+ */
+
 #include "../lib/libfdt/libfdt.h"
+
+extern struct fdt_header *working_fdt; /* Pointer to the working fdt */
+
+/* adding a ramdisk needs 0x44 bytes in version 2008.10 */
+#define FDT_RAMDISK_OVERHEAD   0x80
+
+#endif /* UBOOT_LIBFDT_H */