fdtdec.c (17059f972fa6768ebf15a575c00083b3a431b79a) fdtdec.c (a733b06b69d2cb058c4363952bc0793b1f514305)
1/*
2 * Copyright (c) 2011 The Chromium OS Authors.
3 * See file CREDITS for list of people who contributed to this
4 * project.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of

--- 343 unchanged lines hidden (view full) ---

352 * point if the architecture board.c files merge this will make more sense.
353 * Even now, it is common code.
354 */
355int fdtdec_prepare_fdt(void)
356{
357 if (((uintptr_t)gd->fdt_blob & 3) || fdt_check_header(gd->fdt_blob)) {
358 printf("No valid FDT found - please append one to U-Boot "
359 "binary, use u-boot-dtb.bin or define "
1/*
2 * Copyright (c) 2011 The Chromium OS Authors.
3 * See file CREDITS for list of people who contributed to this
4 * project.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of

--- 343 unchanged lines hidden (view full) ---

352 * point if the architecture board.c files merge this will make more sense.
353 * Even now, it is common code.
354 */
355int fdtdec_prepare_fdt(void)
356{
357 if (((uintptr_t)gd->fdt_blob & 3) || fdt_check_header(gd->fdt_blob)) {
358 printf("No valid FDT found - please append one to U-Boot "
359 "binary, use u-boot-dtb.bin or define "
360 "CONFIG_OF_EMBED\n");
360 "CONFIG_OF_EMBED. For sandbox, use -d <file.dtb>\n");
361 return -1;
362 }
363 return 0;
364}
365
366int fdtdec_lookup_phandle(const void *blob, int node, const char *prop_name)
367{
368 const u32 *phandle;

--- 255 unchanged lines hidden ---
361 return -1;
362 }
363 return 0;
364}
365
366int fdtdec_lookup_phandle(const void *blob, int node, const char *prop_name)
367{
368 const u32 *phandle;

--- 255 unchanged lines hidden ---