[PATCH v2 REPOST] dtc: Add support for named integer constants

Simon Glass sjg at chromium.org
Tue Dec 13 07:19:07 EST 2011


Hi Stephen,

On Mon, Dec 12, 2011 at 12:04 PM, Stephen Warren <swarren at nvidia.com> wrote:
> You may define constants as follows:
>
> /define/ TWO 2;
> /define/ FOUR 4;
> /define/ OTHER FOUR;
>
> And properties may use these values as follows:
>
> foo = <1 TWO 3 FOUR 5>;
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> I posted this back in early September. I'd like to ask again that this
> feature be merged into dtc; there are many situations where it'd allow
> .dts files to be simplified.

Yes I agree, it is very useful.

I get conflicts with this - does it need a rebase?

Regards,
Simon


More information about the devicetree-discuss mailing list