[PATCH] ppc: Add support for AMCC Taishan 440GX eval board

Scott Wood scottwood at freescale.com
Tue Feb 13 07:32:06 EST 2007


Jon Loeliger wrote:
> So, like, the other day Benjamin Herrenschmidt mumbled:
> 
>>Note that there are still things that we might want to change. For
>>example, I think we really should look into adding a macro mecanism
>>and/or an include mecanism to dtc so that we can do things like #include
>><ibm440gp.dtc> to get the base processor/SoC definition and then
>>"overlay" some properties on top of it (like emac phy mode etc...)
> 
> 
> What do people prefer here?  Straight CPP pre-run?
> Direct support built into dtc to do file-inclusion, macros?

Simple textual macros would make it difficult to define 123A and 123B 
SoCs whose device tree nodes are mostly a generic 123, but require a few 
changes in various parts.  I'd rather see dtc support overlaying trees, 
with the "newer" tree able to add, modify, and remove nodes and 
properties from the "older", more generic tree.

Parametric macros (or "template" nodes) might be nice for a few things 
on top of that, though (preferably with better syntax than CPP).

-Scott



More information about the Linuxppc-embedded mailing list