[U-Boot-Users] [PATCH] MPC5121e ADS PCI support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Feb 26 08:08:41 CET 2008


On 08:02 Tue 26 Feb     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 17:03 Mon 25 Feb     , John Rigby wrote:
> > Third time's the charm.
> > 
> > Adds PCI support for MPC5121
> > 
> > Tested with drivers/net/rtl8139.c
> > 
> > This patch is identical to the previous except PCI support is
> > now conditonal since pci on old silicon (most silicon currently in field)
> > does not work.
> > 
> > ads5121_PCI_config turns on PCI
> > 
> > Signed-off-by: John Rigby <jrigby at freescale.com>
> > ---
> >  Makefile                      |   11 ++-
> >  board/ads5121/Makefile        |    2 +-
> >  board/ads5121/ads5121.c       |    1 +
> >  board/ads5121/pci.c           |  216 +++++++++++++++++++++++++++++++++++++++++
> >  cpu/mpc512x/speed.c           |   21 +++-
> >  include/asm-ppc/global_data.h |    1 +
> >  include/asm-ppc/immap_512x.h  |   61 +++++++++++-
> >  include/configs/ads5121.h     |   32 ++++++-
> >  include/mpc512x.h             |   84 ++++++++++++++++
> >  9 files changed, 414 insertions(+), 15 deletions(-)
> >  create mode 100644 board/ads5121/pci.c
> > 
> > diff --git a/Makefile b/Makefile
> > index d6a0299..4f4efa4 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -733,8 +733,15 @@ motionpro_config:	unconfig
> >  #########################################################################
> >  ## MPC512x Systems
> >  #########################################################################
> > -ads5121_config: unconfig
> > -	@$(MKCONFIG) ads5121 ppc mpc512x ads5121
> > +ads5121_config \
> > +ads5121_PCI_config \
> > +	:		 unconfig
> > +	@echo "" >$(obj)include/config.h
> > +	@if [ "$(findstring _PCI_,$@)" ] ; then \
> > +		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
> > +		$(XECHO) "... with PCI enabled" ; \
> > +	fi
> > +	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
> >  
> >  
> >  #########################################################################
> > diff --git a/board/ads5121/Makefile b/board/ads5121/Makefile
> > index cd8148c..f15a88b 100644
> 
> I think I'll be better ot move the CONFIG_PCI to Makefile as follow
> 
> > --- a/board/ads5121/Makefile
> > +++ b/board/ads5121/Makefile
> > @@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
> >  
> >  LIB	= $(obj)lib$(BOARD).a
> COBJS-y	:= $(BOARD).o
> COBJS-$(CONFIG_PCI)	:= pci
sorry a few missing, it will be this
 COBJS-y	+= $(BOARD).o
 COBJS-$(CONFIG_PCI)	+= pci
> 
> SRCS    := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
> OBJS	:= $(addprefix $(obj),$(COBJS-y))
> 
> instead of
> >  
> > -COBJS	:= $(BOARD).o
> > +COBJS	:= $(BOARD).o pci.o

Best Regards,
J.




More information about the U-Boot mailing list