projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtc: Allow child drivers
[oweals/u-boot.git]
/
common
/
image-fdt.c
diff --git
a/common/image-fdt.c
b/common/image-fdt.c
index 24e4c7c6c8143f946065dcf5f48bc5c2baf24cdb..95748f0ae108035cc71845d2d7d99e7ff2118115 100644
(file)
--- a/
common/image-fdt.c
+++ b/
common/image-fdt.c
@@
-1,3
+1,4
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2013, Google Inc.
*
/*
* Copyright (c) 2013, Google Inc.
*
@@
-5,15
+6,13
@@
*
* (C) Copyright 2000-2006
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* (C) Copyright 2000-2006
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <fdt_support.h>
#include <errno.h>
#include <image.h>
*/
#include <common.h>
#include <fdt_support.h>
#include <errno.h>
#include <image.h>
-#include <libfdt.h>
+#include <li
nux/li
bfdt.h>
#include <mapmem.h>
#include <asm/io.h>
#include <mapmem.h>
#include <asm/io.h>
@@
-21,6
+20,9
@@
#define CONFIG_SYS_FDT_PAD 0x3000
#endif
#define CONFIG_SYS_FDT_PAD 0x3000
#endif
+/* adding a ramdisk needs 0x44 bytes in version 2008.10 */
+#define FDT_RAMDISK_OVERHEAD 0x80
+
DECLARE_GLOBAL_DATA_PTR;
static void fdt_error(const char *msg)
DECLARE_GLOBAL_DATA_PTR;
static void fdt_error(const char *msg)
@@
-191,7
+193,7
@@
int boot_relocate_fdt(struct lmb *lmb, char **of_flat_tree, ulong *of_size)
*of_flat_tree = of_start;
*of_size = of_len;
*of_flat_tree = of_start;
*of_size = of_len;
- set_working_fdt_addr(
(ulong)*of_flat_tree
);
+ set_working_fdt_addr(
map_to_sysmem(*of_flat_tree)
);
return 0;
error:
return 0;
error: