[U-Boot] [PATCH 06/11] at91: Add defines for spi SoC access
Alexander Stein
alexander.stein at systec-electronic.com
Mon Nov 1 09:29:50 CET 2010
Signed-off-by: Alexander Stein <alexander.stein at systec-electronic.com>
---
arch/arm/include/asm/arch-at91/at91_spi.h | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/arch/arm/include/asm/arch-at91/at91_spi.h b/arch/arm/include/asm/arch-at91/at91_spi.h
index c520e89..75d4324 100644
--- a/arch/arm/include/asm/arch-at91/at91_spi.h
+++ b/arch/arm/include/asm/arch-at91/at91_spi.h
@@ -33,6 +33,20 @@ typedef struct at91_spi {
at91_pdc_t pdc;
} at91_spi_t;
+#define AT91_SPI_CR_SPIEN 0x00000001
+#define AT91_SPI_CR_SWRST 0x00000080
+
+#define AT91_SPI_MR_MSTR 0x00000001
+#define AT91_SPI_MR_MODFDIS 0x00000004
+#define AT91_SPI_MR_PCS 0x000f0000
+
+#define AT91_SPI_SR_RXBUFF 0x00000040
+#define AT91_SPI_SR_SPIENS 0x00010000
+
+#define AT91_SPI_CSR_NCPHA 0x00000001
+#define AT91_SPI_CSR_DLYBS 0x00ff0000
+#define AT91_SPI_CSR_DLYBCT 0xff000000
+
#ifdef CONFIG_AT91_LEGACY
#define AT91_SPI_CR 0x00 /* Control Register */
--
1.7.2.2
More information about the U-Boot
mailing list