Go to the documentation of this file.
18 #ifndef __linux_pxa2xx_spi_h
19 #define __linux_pxa2xx_spi_h
23 #define PXA2XX_CS_ASSERT (0x01)
24 #define PXA2XX_CS_DEASSERT (0x02)
46 #if defined(CONFIG_ARCH_PXA) || defined(CONFIG_ARCH_MMP)
68 #define DCSR_RUN (1 << 31)
69 #define DCSR_NODESC (1 << 30)
70 #define DCSR_STOPIRQEN (1 << 29)
71 #define DCSR_REQPEND (1 << 8)
72 #define DCSR_STOPSTATE (1 << 3)
73 #define DCSR_ENDINTR (1 << 2)
74 #define DCSR_STARTINTR (1 << 1)
75 #define DCSR_BUSERR (1 << 0)
77 #define DCSR_EORIRQEN (1 << 28)
78 #define DCSR_EORJMPEN (1 << 27)
79 #define DCSR_EORSTOPEN (1 << 26)
80 #define DCSR_SETCMPST (1 << 25)
81 #define DCSR_CLRCMPST (1 << 24)
82 #define DCSR_CMPST (1 << 10)
83 #define DCSR_EORINTR (1 << 9)
85 #define DRCMR_MAPVLD (1 << 7)
86 #define DRCMR_CHLNUM 0x1f
88 #define DDADR_DESCADDR 0xfffffff0
89 #define DDADR_STOP (1 << 0)
91 #define DCMD_INCSRCADDR (1 << 31)
92 #define DCMD_INCTRGADDR (1 << 30)
93 #define DCMD_FLOWSRC (1 << 29)
94 #define DCMD_FLOWTRG (1 << 28)
95 #define DCMD_STARTIRQEN (1 << 22)
96 #define DCMD_ENDIRQEN (1 << 21)
97 #define DCMD_ENDIAN (1 << 18)
98 #define DCMD_BURST8 (1 << 16)
99 #define DCMD_BURST16 (2 << 16)
100 #define DCMD_BURST32 (3 << 16)
101 #define DCMD_WIDTH1 (1 << 14)
102 #define DCMD_WIDTH2 (2 << 14)
103 #define DCMD_WIDTH4 (3 << 14)
104 #define DCMD_LENGTH 0x01fff