]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix conditional compilation of mpx8xxx_spi driver
authorBen Warren <biggerbadderben@gmail.com>
Sun, 27 Jan 2008 04:41:19 +0000 (23:41 -0500)
committerKim Phillips <kim.phillips@freescale.com>
Tue, 29 Jan 2008 17:53:00 +0000 (11:53 -0600)
This driver should only compile if CONFIG_MPC8XXX_SPI is set

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
drivers/spi/mpc8xxx_spi.c
include/configs/MPC8349EMDS.h

index a3d1c955152de3f8cbd1198037e0cbbcd22e9cbd..2fe838c45d59f441b355ed10eb4ff5a357c89aff 100644 (file)
  */
 
 #include <common.h>
+#if defined(CONFIG_MPC8XXX_SPI) && defined(CONFIG_HARD_SPI)
+
 #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 */
 
index 07f2f30ef87726a30e0162b672ca70aade7d7da2..bb90c2d0a709afca61fcda27212540930f95cdb4 100644 (file)
 #define CFG_I2C2_OFFSET                0x3100
 
 /* SPI */
+#define CONFIG_MPC8XXX_SPI
 #define CONFIG_HARD_SPI                        /* SPI with hardware support */
 #undef CONFIG_SOFT_SPI                 /* SPI bit-banged */