summaryrefslogtreecommitdiff
path: root/include/mpc5xxx.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-07-07 21:06:07 +0200
committerWolfgang Denk <wd@denx.de>2009-07-07 21:06:07 +0200
commitbec9cab9291bb221714d559a44fe37669a8ca604 (patch)
tree81498e05ecb1efdeae49915d4f2015653c1f4a0b /include/mpc5xxx.h
parent37572cde7f0bf3f33b6d3b9ed5cc7c479f6802c4 (diff)
parent1260233982f7dfbdfd1adee12daa95a0c0e84a43 (diff)
downloadu-boot-imx-bec9cab9291bb221714d559a44fe37669a8ca604.zip
u-boot-imx-bec9cab9291bb221714d559a44fe37669a8ca604.tar.gz
u-boot-imx-bec9cab9291bb221714d559a44fe37669a8ca604.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-mpc5xxx
Diffstat (limited to 'include/mpc5xxx.h')
-rw-r--r--include/mpc5xxx.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mpc5xxx.h b/include/mpc5xxx.h
index 463d5ae..476d149 100644
--- a/include/mpc5xxx.h
+++ b/include/mpc5xxx.h
@@ -392,6 +392,24 @@
#define I2C_IF 0x02
#define I2C_RXAK 0x01
+/* SPI control register 1 bits */
+#define SPI_CR_LSBFE 0x01
+#define SPI_CR_SSOE 0x02
+#define SPI_CR_CPHA 0x04
+#define SPI_CR_CPOL 0x08
+#define SPI_CR_MSTR 0x10
+#define SPI_CR_SWOM 0x20
+#define SPI_CR_SPE 0x40
+#define SPI_CR_SPIE 0x80
+
+/* SPI status register bits */
+#define SPI_SR_MODF 0x10
+#define SPI_SR_WCOL 0x40
+#define SPI_SR_SPIF 0x80
+
+/* SPI port data register bits */
+#define SPI_PDR_SS 0x08
+
/* Programmable Serial Controller (PSC) status register bits */
#define PSC_SR_CDE 0x0080
#define PSC_SR_RXRDY 0x0100