mv64x60 updates

Nicolas DET det.nicolas at
Mon Mar 7 21:58:09 EST 2005

Hello Sven,

On 07/03/2005, you wrote:

> But i hear Nicolas has done some useful work yesterday evening, i will
> review it as soon as he is back from dreamland :)

You can find the patch against 2.6.11 from here:

This patch shouldn't break mv code for others platform (non PegasosII), and
fix Pegasos II init...

Basicly, I added mv64360_ispegasos2() in include/asm-ppc/mv64x60.h. Then:

in arch/ppc/syslibs/mv64360_pic.c, I skip the IRQ init code
in arch/ppc/syslibs/mv64x60.c, I skip all the chip init & patch the
ressources tables for Pegasos II hardware (register base & IRQ).
in include/asm-ppc/mv64x60.h: added mv64360_ispegasos2()
in arch/ppc/kernel/chrp_setup.c, rename/added pegasos2_stuff() and call
mv64x60_init() if CONFIG_MV64x60
in drivers/net/mv64xx_eth.c, use SA_SHIRQ instead of SA_INTERRUPT for
request_irq if pegasos II detected

The only thing to do is to add mv64360_ispegasos2() in include/asm-mips/...
because I use this function to use the correct flags in the ethernet

Of course, this patch may be discuss as there are several architecture
using Marvell chipsets and each requieres some specific code.
I don't know where it's the best to place mv64360_ispeasos2(), maybe this
func could even be renamed mv64x60_ispegasos2()..

Please, people from others MV64x60 architectures review this patch, modify
if it neeeded and check it doesn't break your architecture (I shouldn't but
for MIPS ethernet).

Nicolas DET
MorphOS & Linux developer

More information about the Linuxppc-dev mailing list