Merge dtc

Stephen Neuendorffer stephen.neuendorffer at xilinx.com
Thu Oct 18 02:22:00 EST 2007


 
> -----Original Message-----
> From: 
> linuxppc-dev-bounces+stephen.neuendorffer=xilinx.com at ozlabs.or
> g 
> [mailto:linuxppc-dev-bounces+stephen.neuendorffer=xilinx.com at o
zlabs.org] On Behalf Of Grant Likely
> Sent: Wednesday, October 17, 2007 6:15 AM
> To: Grant Likely; Paul Mackerras; Josh Boyer; linuxppc-dev at ozlabs.org
> Subject: Re: Merge dtc
> 
> On 10/16/07, David Gibson <dwg at au1.ibm.com> wrote:
> > On Tue, Oct 16, 2007 at 07:17:01AM -0600, Grant Likely wrote:
> > > On 10/15/07, David Gibson <david at gibson.dropbear.id.au> wrote:
> > > > This very large patch incorporates a copy of dtc into the kernel
> > > > source, in arch/powerpc/boot/dtc-src.  This means that dtc is no
> > > > longer an external dependency to build kernels with 
> configurations
> > > > which need a dtb file.
> > >
> > > Powerpc is probably not going to be the only user of dtc. 
>  Microblaze
> > > will be using it too.  Can it be put somewhere more common?
> >
> > Well, I guess we can move it to scripts/ when microblaze 
> starts using
> > it.
> >
> > Also, tell me more about this microblaze, I'm certainly 
> interested in
> > new users of dtc...
> 
> It's a 'soft processor'.  Implemented in the fabric of an FPGA.  It's
> a ucLinux target.  Xilinx Virtex and Xilinx MicroBlaze targets share a
> lot of common devices.
> 
> Cheers,
> g.

Basically, this partially works today.   Most of the device information
can come out of a flat device tree, with most of the kernel code copied
straight from arch/powerpc.  I'm still trying to sort out how some of
the architecture specific stuff can be extracted in a smart way.  For
instance, the microblaze has configurable cache sizes, and may or may
not be available.  Currently, this is #defined in the kernel, but I'd
like to get to the point where the same information is pulled out of a
device tree.  My main quandry at the moment is that I'm not wild about
self-modifying code and I'm not sure if the extra overhead of
implementing it with conditionals is significant.

In any event, my plan is to get this into a reasonable state and then
post it here for review.  The main reason why we went with flat device
trees for this was to get as much symmettry as possible between the soft
microblaze and the embedded ppc405 hard core in some FPGAs.

Steve




More information about the Linuxppc-dev mailing list