projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ppc4xx: Update Kilauea to use PPC4xx DDR autocalibration routines
[oweals/u-boot.git]
/
include
/
spi.h
diff --git
a/include/spi.h
b/include/spi.h
index 7744c2e36b057c02e9d22be42be6a6dd6a1f330d..320e50e5296ca1914cc30c36c882cf576abdd4a5 100644
(file)
--- a/
include/spi.h
+++ b/
include/spi.h
@@
-24,6
+24,15
@@
#ifndef _SPI_H_
#define _SPI_H_
#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 */
/* SPI mode flags */
#define SPI_CPHA 0x01 /* clock phase */
#define SPI_CPOL 0x02 /* clock polarity */