mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00: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
2 changed files with 3 additions and 2 deletions
|
@ -22,11 +22,11 @@
|
|||
*/
|
||||
|
||||
#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 */
|
||||
|
||||
|
|
|
@ -356,6 +356,7 @@
|
|||
#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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue