Re: [RFC PATCH] dtc: Add support for named constants

2011-08-30 Thread David Gibson
On Tue, Aug 30, 2011 at 03:04:08PM -0600, Paul Walmsley wrote: > Hi, > > On Tue, 30 Aug 2011, Stephen Warren wrote: > > > David Gibson wrote at Monday, August 29, 2011 10:23 PM: > > > On Tue, Aug 23, 2011 at 04:43:20PM -0600, Stephen Warren wrote: > > > > You may define constants as follows: > >

Re: [RFC PATCH] dtc: Add support for named constants

2011-08-30 Thread David Gibson
On Tue, Aug 30, 2011 at 09:37:40AM -0700, Stephen Warren wrote: > David Gibson wrote at Monday, August 29, 2011 10:23 PM: > > On Tue, Aug 23, 2011 at 04:43:20PM -0600, Stephen Warren wrote: > > > You may define constants as follows: > > > > > > /define/ $TWO 2; > > > /define/ $FOUR 4; > > > /define

RE: [RFC PATCH] dtc: Add support for named constants

2011-08-30 Thread Paul Walmsley
Hi, On Tue, 30 Aug 2011, Stephen Warren wrote: > David Gibson wrote at Monday, August 29, 2011 10:23 PM: > > On Tue, Aug 23, 2011 at 04:43:20PM -0600, Stephen Warren wrote: > > > You may define constants as follows: > > > > > > /define/ $TWO 2; > > > /define/ $FOUR 4; > > > /define/ $OTHER $FOUR;

RE: [RFC PATCH] dtc: Add support for named constants

2011-08-30 Thread Stephen Warren
David Gibson wrote at Monday, August 29, 2011 10:23 PM: > On Tue, Aug 23, 2011 at 04:43:20PM -0600, Stephen Warren wrote: > > You may define constants as follows: > > > > /define/ $TWO 2; > > /define/ $FOUR 4; > > /define/ $OTHER $FOUR; > > > > And properties may use these values as follows: > > >

Re: [RFC PATCH] dtc: Add support for named constants

2011-08-30 Thread David Gibson
On Tue, Aug 23, 2011 at 04:43:20PM -0600, Stephen Warren 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 > --- > N

[RFC PATCH] dtc: Add support for named constants

2011-08-23 Thread Stephen Warren
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 --- Note 1: This is against dtc in the Linux kernel. Should this patch be against upstream dtc,