[DTC PATCH] Add support for decimal, octal and binary based cell values.

David Gibson david at gibson.dropbear.id.au
Fri Feb 16 09:57:39 EST 2007


On Thu, Feb 15, 2007 at 02:33:47PM -0800, Dan Malek wrote:
> 
> On Feb 15, 2007, at 9:13 AM, Jon Loeliger wrote:
> 
> > New syntax d#, b#, o# and h# allow for an explicit prefix
> > on cell values to specify their base.  Eg: <d# 123>
> 
> Why do we need yet another syntax?  Everyone
> else, including most silicon documentation, uses
> the standard "C" syntax 0x for hex, 0 for octal, and
> nothing for decimal.  If really needed binary, we
> could us the '0b'.  Of the few dts files I've done,
> anything to make this easier, rather than inventing
> something new, would be appreciated.

Yes, but hex-by-default is already implemented and out there.  We
can't change it without breaking compatibility horribly.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list