Move conditional compilation of MPC8XXX SPI driver to Makefile

Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
Ben Warren
2008-06-08 23:28:33 -07:00
committed by Wolfgang Denk
parent d92ea21baf
commit f8cc312bbe
6 changed files with 11 additions and 7 deletions

View File

@ -24,6 +24,15 @@
#ifndef _SPI_H_
#define _SPI_H_
/* Controller-specific definitions: */
/* CONFIG_HARD_SPI triggers SPI bus initialization in PowerPC */
#ifdef CONFIG_MPC8XXX_SPI
# ifndef CONFIG_HARD_SPI
# define CONFIG_HARD_SPI
# endif
#endif
/* SPI mode flags */
#define SPI_CPHA 0x01 /* clock phase */
#define SPI_CPOL 0x02 /* clock polarity */