From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 12 Mar 2008 23:54:39 +0100 Subject: [U-Boot-Users] [PATCH 2/3] 83xx: serdes setup routines In-Reply-To: <20080307150739.GB22072@localhost.localdomain> References: <20080307150739.GB22072@localhost.localdomain> Message-ID: <20080312225439.GH18968@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 18:07 Fri 07 Mar , Anton Vorontsov wrote: > This patch adds few routines to configure serdes on 837x targets. > > Signed-off-by: Anton Vorontsov > --- > cpu/mpc83xx/Makefile | 2 +- > cpu/mpc83xx/serdes.c | 161 ++++++++++++++++++++++++++++++++++++++++++++++++++ > include/fsl_serdes.h | 25 ++++++++ > 3 files changed, 187 insertions(+), 1 deletions(-) > create mode 100644 cpu/mpc83xx/serdes.c > create mode 100644 include/fsl_serdes.h > > diff --git a/cpu/mpc83xx/Makefile b/cpu/mpc83xx/Makefile > index 94a3cb8..678be29 100644 > --- a/cpu/mpc83xx/Makefile > +++ b/cpu/mpc83xx/Makefile > @@ -29,7 +29,7 @@ LIB = $(obj)lib$(CPU).a > > START = start.o > COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o \ > - spd_sdram.o ecc.o qe_io.o pci.o fdt.o > + spd_sdram.o ecc.o qe_io.o pci.o fdt.o serdes.o Please split it with on line for one file > > SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) > OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) > diff --git a/cpu/mpc83xx/serdes.c b/cpu/mpc83xx/serdes.c > new file mode 100644 > index 0000000..666bffd > --- /dev/null > +++ b/cpu/mpc83xx/serdes.c > @@ -0,0 +1,161 @@ > +/* > + * Freescale SerDes initialization routine > + * > + * Copyright (C) 2007 Freescale Semicondutor, Inc. All rights reserved. > + * Copyright (C) 2008 MontaVista Software, Inc. All rights reserved. > + * > + * Author: Li Yang > + * > + * This program is free software; you can redistribute it and/or modify it > + * under the terms of the GNU General Public License as published by the > + * Free Software Foundation; either version 2 of the License, or (at your > + * option) any later version. > + */ > + > +#include > + > +#ifdef CONFIG_FSL_SERDES Please move it to the Makefile > + > +#include > +#include > +#include > + Best Regards, J.