|
@@ -17,8 +17,6 @@
|
|
|
|
|
|
#include <common.h>
|
|
#include <common.h>
|
|
#include <inttypes.h>
|
|
#include <inttypes.h>
|
|
-#include <libfdt.h>
|
|
|
|
-#include <malloc.h>
|
|
|
|
#include <asm/u-boot-x86.h>
|
|
#include <asm/u-boot-x86.h>
|
|
#include <asm/relocate.h>
|
|
#include <asm/relocate.h>
|
|
#include <asm/sections.h>
|
|
#include <asm/sections.h>
|
|
@@ -35,22 +33,6 @@ int copy_uboot_to_ram(void)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-int copy_fdt_to_ram(void)
|
|
|
|
-{
|
|
|
|
- if (gd->new_fdt) {
|
|
|
|
- ulong fdt_size;
|
|
|
|
-
|
|
|
|
- fdt_size = ALIGN(fdt_totalsize(gd->fdt_blob) + 0x1000, 32);
|
|
|
|
-
|
|
|
|
- memcpy(gd->new_fdt, gd->fdt_blob, fdt_size);
|
|
|
|
- debug("Relocated fdt from %p to %p, size %lx\n",
|
|
|
|
- gd->fdt_blob, gd->new_fdt, fdt_size);
|
|
|
|
- gd->fdt_blob = gd->new_fdt;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
int clear_bss(void)
|
|
int clear_bss(void)
|
|
{
|
|
{
|
|
ulong dst_addr = (ulong)&__bss_start + gd->reloc_off;
|
|
ulong dst_addr = (ulong)&__bss_start + gd->reloc_off;
|