diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2008-06-08 23:28:33 -0700 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-01 21:02:11 +0200 |
commit | f8cc312bbee69257d741dc9f4062f4a0f5adf609 (patch) | |
tree | 3368d2d4fa192b0274d9ed9dd9c84f07482710ab /include | |
parent | d92ea21bafb674ee2bf27447970b047845e7b0a2 (diff) | |
download | bootable_bootloader_goldelico_gta04-f8cc312bbee69257d741dc9f4062f4a0f5adf609.zip bootable_bootloader_goldelico_gta04-f8cc312bbee69257d741dc9f4062f4a0f5adf609.tar.gz bootable_bootloader_goldelico_gta04-f8cc312bbee69257d741dc9f4062f4a0f5adf609.tar.bz2 |
Move conditional compilation of MPC8XXX SPI driver to Makefile
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/MPC8349EMDS.h | 1 | ||||
-rw-r--r-- | include/spi.h | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/configs/MPC8349EMDS.h b/include/configs/MPC8349EMDS.h index 37e3ca4..8705838 100644 --- a/include/configs/MPC8349EMDS.h +++ b/include/configs/MPC8349EMDS.h @@ -355,7 +355,6 @@ /* SPI */ #define CONFIG_MPC8XXX_SPI -#define CONFIG_HARD_SPI /* SPI with hardware support */ #undef CONFIG_SOFT_SPI /* SPI bit-banged */ /* GPIOs. Used as SPI chip selects */ diff --git a/include/spi.h b/include/spi.h index 7744c2e..320e50e 100644 --- a/include/spi.h +++ b/include/spi.h @@ -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 */ |