Moving from arch/ppc to arch/powerpc with an MPC8248 (part 1)
Guennadi Liakhovetski
g.liakhovetski at gmx.de
Thu Feb 15 07:42:33 EST 2007
On Wed, 14 Feb 2007, Laurent Pinchart wrote:
> arch/ppc defines some 8260 generic handlers in syslib/mpc8260_setup.c for
> operations such as halt, reset, show_cpuinfo, ... The MPC82xx ADS in
> arch/powerpc/platforms/82xx redefines those handles as board-specific
> functions. Should they be made generic to all 82xx boards, or should I copy
> them to my board-specific file ? If the code should be shared by all 82xx
> boards, I'll probably end up copying most of the
> arch/ppc/syslib/mpc8260_setup.c code to
> arch/powerpc/platforms/82xx/mpc82xx.c.
Emn, sorry, don't know about 8248 and 8260 specifically, but just looking
at notation 8248 should be closer to 8245 than to 8260, is it not?
If there are enough similarities, you might also look at
arch/powerpc/platforms/embedded6xx/linkstation.c for an example of such a
ppc -> powerpc migration. Not that I considered it an ideal example to
follow. Rather, if it helps you - good. If you find anything that can be
improved there - would be happy to know.
Thanks
Guennadi
---
Guennadi Liakhovetski
More information about the Linuxppc-embedded
mailing list