[U-Boot-Users] different definition of struct bd_info between U-Boot and Linux

Linux OneAccess linux.oneaccess at gmail.com
Thu May 24 14:03:13 CEST 2007

On 5/24/07, Stefan Roese <sr at denx.de> wrote:
> On Wednesday 23 May 2007, Linux OneAccess wrote:
> > I was figuring out how to pass board info from U-Boot to Linux and
> > I saw that Linux references the bd_info structure.
> >
> > I'm not sure, however, which definition to use:
> > In U-Boot, struct bd_info is defined in include/asm/u-boot.h
> > In Linux, it's defined in include/asm-ppc/ppcboot.h.
> > ...
> > Furthermore, in Linux there are several boards that define their
> > own structure for this. Should we use the ppcboot.h definition,
> > or is it there an intention to push the u-boot.h to the Linux tree one
> day?
> This depends on the PPC platform you are using. What PPC platform are you
> talking about? MPC8xx, PPC4xx? MPC8xxx is quite dead in arch/ppc already
> for
> example and you should start your board port in arch/powerpc. If it's
> PPC4xx,
> then you should probably still use bd_info in arch/ppc, and it really
> doesn't
> matter how you hack the bd_info in the kernel, since it has to be moved to
> arch/powerpc in the future anyway. I would suggest to define a "own" board
> specific bd_info for now, to not pollute the asm-ppc/ppcboot.h with
> further
> #ifdefs.

It's an MPC8280.
I agree it's best for now to pass the info our own way.

> Hope this helps.
> Best regards,
> Stefan
Thanks for helping,

Marnix Coppens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070524/8bfa5755/attachment.htm 

More information about the U-Boot mailing list