[U-Boot] [PATCH] Honor /memory/reg node in DTB files

Scott Wood scottwood at freescale.com
Tue Dec 7 22:22:36 CET 2010


On Mon, 6 Dec 2010 16:56:26 -0800
Deepak Saxena <deepak_saxena at 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



More information about the U-Boot mailing list