macros and dtc

Dan Malek dan at embeddedalley.com
Tue Feb 20 07:16:49 EST 2007


On Feb 19, 2007, at 1:57 PM, Yoder Stuart-B08248 wrote:

> bus-frequency = <33MHZ> is much better than
> bus-frequency = <13ab6680>

Except, 33MHZ isn't a valid macro name, and if
these constants would have been _decimal_
in the first place, 33000000, or 33333333 would
be understandable :-)  I've screwed up by thinking
(or not, I guess) these are decimal numbers.....
I agree with you, though.  Of course, these values
should be zero in the dts and filled in by
the boot loader/wrapper.

A real programmer would recognize these
standard constants in hex (or octal), too :-)


Thanks.

	-- Dan




More information about the Linuxppc-dev mailing list