From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 29 Aug 2007 16:33:23 +1000 From: David Gibson To: Valentine Barshak Subject: Re: [PATCH 1/4] PowerPC 440EPx: Sequoia bootwrapper Message-ID: <20070829063323.GG3206@localhost.localdomain> References: <20070828165321.GA1501@ru.mvista.com> <20070828165610.GA1552@ru.mvista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20070828165610.GA1552@ru.mvista.com> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Aug 28, 2007 at 08:56:10PM +0400, Valentine Barshak wrote: > Bootwrapper code for AMCC PPC440EPx Sequoia. > > Signed-off-by: Valentine Barshak [snip] > +static void sequoia_fixups(void) > +{ > + unsigned long sysclk = 33333333; > + > + ibm440ep_fixup_clocks(sysclk, 11059200); > + ibm4xx_fixup_ebc_ranges("/plb/opb/ebc"); > + ibm4xx_denali_fixup_memsize(); > + dt_fixup_mac_addresses(sequoia_mac0, sequoia_mac1); > +} > + > +static void sequoia_init(void *mac0, void *mac1) No need to separate this function out, just drop it into platform_init(). Also no need for the seqouia_mac* variables - they were in ebony to handle the cuboot vs. openbios variants. For sequoia, you can just pull the values straight from the bd_t in sequoia_fixups() -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson