[patch 6/6] Walnut zImage wrapper

Josh Boyer jwboyer at linux.vnet.ibm.com
Sun Sep 2 23:58:38 EST 2007


On Mon, 2007-09-03 at 11:13 +1000, David Gibson wrote:
> On Fri, Aug 31, 2007 at 03:04:55PM -0500, Josh Boyer wrote:
> > Add zImage wrapper for walnut board
> > 
> > Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>
> 
> [snip]
> > --- /dev/null
> > +++ linux-2.6/arch/powerpc/boot/treeboot-walnut.c
> > @@ -0,0 +1,133 @@
> > +/*
> > + * Old U-boot compatibility for Walnut
> > + *
> > + * Author: Josh Boyer <jwboyer at linux.vnet.ibm.com>
> > + *
> > + * Copyright 2007 IBM Corporation
> > + *   Based on cuboot-83xx.c, which is:
> > + * Copyright (c) 2007 Freescale Semiconductor, Inc.
> > + *
> > + * This program is free software; you can redistribute it and/or modify it
> > + * under the terms of the GNU General Public License version 2 as published
> > + * by the Free Software Foundation.
> > + */
> > +
> > +#include "ops.h"
> > +#include "stdio.h"
> > +#include "dcr.h"
> > +#include "4xx.h"
> > +#include "io.h"
> > +
> > +BSS_STACK(4096);
> > +
> > +void ibm405gp_fixup_clocks(unsigned int sysclk, unsigned int ser_clk)
> > +{
> > +	u32 pllmr = mfdcr(0xb0);
> 
> Please add #defines for the DCR numbers, rather than using literals.

Oops.  Meant to do that cleanup before I sent out this round.  Will be
fixed.

josh




More information about the Linuxppc-dev mailing list