usb: gadget: udc: pch_udc: Fix a plethora of function documentation related issues
[linux/fpc-iii.git] / arch / unicore32 / include / mach / regs-spi.h
blob3460647a9c2adbb69746591291e5e4a2cf37f6ec
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * PKUnity Serial Peripheral Interface (SPI) Registers
4 */
5 /*
6 * Control reg. 0 SPI_CR0
7 */
8 #define SPI_CR0 (PKUNITY_SPI_BASE + 0x0000)
9 /*
10 * Control reg. 1 SPI_CR1
12 #define SPI_CR1 (PKUNITY_SPI_BASE + 0x0004)
14 * Enable reg SPI_SSIENR
16 #define SPI_SSIENR (PKUNITY_SPI_BASE + 0x0008)
18 * Status reg SPI_SR
20 #define SPI_SR (PKUNITY_SPI_BASE + 0x0028)
22 * Interrupt Mask reg SPI_IMR
24 #define SPI_IMR (PKUNITY_SPI_BASE + 0x002C)
26 * Interrupt Status reg SPI_ISR
28 #define SPI_ISR (PKUNITY_SPI_BASE + 0x0030)
31 * Enable SPI Controller SPI_SSIENR_EN
33 #define SPI_SSIENR_EN FIELD(1, 1, 0)
36 * SPI Busy SPI_SR_BUSY
38 #define SPI_SR_BUSY FIELD(1, 1, 0)
40 * Transmit FIFO Not Full SPI_SR_TFNF
42 #define SPI_SR_TFNF FIELD(1, 1, 1)
44 * Transmit FIFO Empty SPI_SR_TFE
46 #define SPI_SR_TFE FIELD(1, 1, 2)
48 * Receive FIFO Not Empty SPI_SR_RFNE
50 #define SPI_SR_RFNE FIELD(1, 1, 3)
52 * Receive FIFO Full SPI_SR_RFF
54 #define SPI_SR_RFF FIELD(1, 1, 4)
57 * Trans. FIFO Empty Interrupt Status SPI_ISR_TXEIS
59 #define SPI_ISR_TXEIS FIELD(1, 1, 0)
61 * Trans. FIFO Overflow Interrupt Status SPI_ISR_TXOIS
63 #define SPI_ISR_TXOIS FIELD(1, 1, 1)
65 * Receiv. FIFO Underflow Interrupt Status SPI_ISR_RXUIS
67 #define SPI_ISR_RXUIS FIELD(1, 1, 2)
69 * Receiv. FIFO Overflow Interrupt Status SPI_ISR_RXOIS
71 #define SPI_ISR_RXOIS FIELD(1, 1, 3)
73 * Receiv. FIFO Full Interrupt Status SPI_ISR_RXFIS
75 #define SPI_ISR_RXFIS FIELD(1, 1, 4)
76 #define SPI_ISR_MSTIS FIELD(1, 1, 5)
79 * Trans. FIFO Empty Interrupt Mask SPI_IMR_TXEIM
81 #define SPI_IMR_TXEIM FIELD(1, 1, 0)
83 * Trans. FIFO Overflow Interrupt Mask SPI_IMR_TXOIM
85 #define SPI_IMR_TXOIM FIELD(1, 1, 1)
87 * Receiv. FIFO Underflow Interrupt Mask SPI_IMR_RXUIM
89 #define SPI_IMR_RXUIM FIELD(1, 1, 2)
91 * Receiv. FIFO Overflow Interrupt Mask SPI_IMR_RXOIM
93 #define SPI_IMR_RXOIM FIELD(1, 1, 3)
95 * Receiv. FIFO Full Interrupt Mask SPI_IMR_RXFIM
97 #define SPI_IMR_RXFIM FIELD(1, 1, 4)
98 #define SPI_IMR_MSTIM FIELD(1, 1, 5)