mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
Move conditional compilation of MPC8XXX SPI driver to Makefile
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:

committed by
Wolfgang Denk

parent
d92ea21baf
commit
f8cc312bbe
@ -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 */
|
||||
|
Reference in New Issue
Block a user