On Mon, 6 Dec 2010 16:56:26 -0800 Deepak Saxena <deepak_sax...@mentor.com> wrote:
> +/* > + * Check to see if an valid memory/reg property exists > + * in the fdt. If so, we do not overwrite it with what's > + * been scanned. > + * > + * Valid mean all the following: > + * > + * - Memory node has a device-type of "memory" > + * - A reg property exists which: > + * + has exactly as many cells as #address-cells + #size-cells > + * + provides a range that is within [bi_memstart, bi_memstart + > bi_memsize] > + */ This will get false positives -- a lot of existing device tree templates have something like this: memory { device_type = "memory"; reg = <0 0 0 0>; // Filled by U-Boot }; -Scott _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot