[Power.org:parch] devicetree: Musings on reserved regions

Scott Wood scottwood at freescale.com
Tue Feb 8 08:58:26 EST 2011


On Mon, 7 Feb 2011 15:53:09 -0600
Yoder Stuart-B08248 <B08248 at freescale.com> wrote:

> Could we not do both? Use an enum to identify the region type:
> 
>     reserved = <0x1 0xc00000 0x200000>; /* 2MB ramdisk
>     reserved = <0x2 0xbf0000 0x1000>; /* devicetree */
>     reserved = <0x3 0x1000000 0x400000>; /* framebuffer */

Enums are bad, you're asking for conflicts (this is worse than the mmu
type enum, since it's tied to the needs of software which changes faster
than hardware).

And you can't define the same property multiple times, it'd have to be one
large array.

-Scott



More information about the devicetree-discuss mailing list