Question on mpc52xx_common.c
David Gibson
david at gibson.dropbear.id.au
Wed Apr 9 09:51:50 EST 2008
On Tue, Apr 08, 2008 at 03:07:58PM -0500, Scott Wood wrote:
> Robert Schwebel wrote:
>> Well observed; isn't this the prove of the assumption that the whole
>> device tree idea is not working? It is *always* inconsistent and it is
>> *maintenance hell* because out-of-tree ports do *always* breakt because
>> of string inconsistencies. We have just ported a 8260 board from 2.6.22
>> to 2.6.25 and it is almost 100% oftree porting.
>
> There's going to be more churn in the initial stages than down the road.
> 82xx had barely been added to arch/powerpc in 2.6.22, and there was little
> review of the initial device tree bindings.
>
>> The ARM method of using just a device number is so much easier ...
>
> Yeah, it's so much fun to have to allocate a globally unique number for
> every minor tweak of a board, and to have to maintain a mapping from said
> numbers to information that is semantically equivalent to a device tree but
> in less maintainable form in the kernel source.
And we can already do device numbers if we really want. A bootwrapper
that identifies the board and supplies a device tree essentially does
that, and that way the device tree is maintained in sync with the
kernel.
This is why I've always had mixed feelings about merging device trees
into u-boot, rather than having them supplied by the wrapper.
--
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