Commit c960a68e200057b0e8b3aa627aa4b0c9b31ca2d8

Authored by Masahiro Yamada
Committed by Simon Glass
1 parent e8d5291824

libfdt: move FDT_RAMDISK_OVERHEAD to image-fdt.c

This macro is locally referenced in common/image-fdt.c

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -21,6 +21,9 @@
21 21 #define CONFIG_SYS_FDT_PAD 0x3000
22 22 #endif
23 23  
  24 +/* adding a ramdisk needs 0x44 bytes in version 2008.10 */
  25 +#define FDT_RAMDISK_OVERHEAD 0x80
  26 +
24 27 DECLARE_GLOBAL_DATA_PTR;
25 28  
26 29 static void fdt_error(const char *msg)
include/linux/libfdt.h
... ... @@ -309,8 +309,5 @@
309 309  
310 310 extern struct fdt_header *working_fdt; /* Pointer to the working fdt */
311 311  
312   -/* adding a ramdisk needs 0x44 bytes in version 2008.10 */
313   -#define FDT_RAMDISK_OVERHEAD 0x80
314   -
315 312 #endif /* _INCLUDE_LIBFDT_H_ */