mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 14:06:07 -04:00
Fix conditional compilation of mpx8xxx_spi driver
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>
This commit is contained in:
parent
98b742489c
commit
8931ab1760
@ -22,11 +22,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#if defined(CONFIG_MPC8XXX_SPI) && defined(CONFIG_HARD_SPI)
|
||||||
|
|
||||||
#include <spi.h>
|
#include <spi.h>
|
||||||
#include <asm/mpc8xxx_spi.h>
|
#include <asm/mpc8xxx_spi.h>
|
||||||
|
|
||||||
#ifdef CONFIG_HARD_SPI
|
|
||||||
|
|
||||||
#define SPI_EV_NE (0x80000000 >> 22) /* Receiver Not Empty */
|
#define SPI_EV_NE (0x80000000 >> 22) /* Receiver Not Empty */
|
||||||
#define SPI_EV_NF (0x80000000 >> 23) /* Transmitter Not Full */
|
#define SPI_EV_NF (0x80000000 >> 23) /* Transmitter Not Full */
|
||||||
|
|
||||||
|
@ -356,6 +356,7 @@
|
|||||||
#define CFG_I2C2_OFFSET 0x3100
|
#define CFG_I2C2_OFFSET 0x3100
|
||||||
|
|
||||||
/* SPI */
|
/* SPI */
|
||||||
|
#define CONFIG_MPC8XXX_SPI
|
||||||
#define CONFIG_HARD_SPI /* SPI with hardware support */
|
#define CONFIG_HARD_SPI /* SPI with hardware support */
|
||||||
#undef CONFIG_SOFT_SPI /* SPI bit-banged */
|
#undef CONFIG_SOFT_SPI /* SPI bit-banged */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user