[U-Boot-Users] [PATCH] [DRIVERS] <asm/mpc8xxx_spi.h> is only available for ppc boards.

Ben Warren biggerbadderben at gmail.com
Sat Feb 9 01:10:44 CET 2008


On Feb 8, 2008 5:48 PM, Ladislav Michl <ladis at linux-mips.org> wrote:
> On Thu, Jan 24, 2008 at 11:01:30AM -0600, Kim Phillips wrote:
> > On Thu, 24 Jan 2008 10:50:09 -0600
> > "Andy Fleming" <afleming at gmail.com> wrote:
> >
> > > On Jan 24, 2008 10:33 AM, Peter Pearse <peter.pearse at arm.com> wrote:
> > > >
> > > > +#if defined(CONFIG_MPC834X) || \
> > > > +       defined(CONFIG_MPC8313) || \
> > > > +       defined(CONFIG_MPC8315) || \
> > > > +       defined(CONFIG_MPC837X)
> > > >  #include <asm/mpc8xxx_spi.h>
> > > > +#endif
> > > >
> > > >  #ifdef CONFIG_HARD_SPI
> > > > ---
> > does Vlad's post not work for you?:
> >
> > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/35888
>
> Ping? Above bug is still present in current git. And while there what
> about fixing it this way? (controling mpc8xxx_spi compilation with
> CONFIG_HARD_SPI is a bit misleading, but lets fix it with separate
> patch. Any CONFIG_* name proposals?)
>
Here's the patch that will be going in:
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/36039

I guess Wolfgang just hasn't had a chance to pull the 83xx tree.

CONFIG_HARD_SPI is intended to be used by multiple controllers, not
just MPC_8XXX

> Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
>
> * Convert drivers/spi/Makefile to use CONFIG_
>   fixes "<asm/mpc8xxx_spi.h> is only available for ppc board" bug
>
> diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
> index 0b7a2df..6403a1c 100644
> --- a/drivers/spi/Makefile
> +++ b/drivers/spi/Makefile
> @@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
>
>  LIB    := $(obj)libspi.a
>
> -COBJS-y += mpc8xxx_spi.o
> +COBJS-$(CONFIG_HARD_SPI) += mpc8xxx_spi.o

Can't do this for the reason mentioned above.
>
>  COBJS  := $(COBJS-y)
>  SRCS   := $(COBJS:.o=.c)
> diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c
> index a3d1c95..5635047 100644
> --- a/drivers/spi/mpc8xxx_spi.c
> +++ b/drivers/spi/mpc8xxx_spi.c
> @@ -25,8 +25,6 @@
>  #include <spi.h>
>  #include <asm/mpc8xxx_spi.h>
>
> -#ifdef CONFIG_HARD_SPI
> -
>  #define SPI_EV_NE      (0x80000000 >> 22)      /* Receiver Not Empty */
>  #define SPI_EV_NF      (0x80000000 >> 23)      /* Transmitter Not Full */
>
> @@ -140,4 +138,3 @@ int spi_xfer(spi_chipsel_type chipsel, int bitlen, uchar *dout, uchar *din)
>
>         return 0;
>  }
> -#endif                         /* CONFIG_HARD_SPI */
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>




More information about the U-Boot mailing list