@@ -7,33 +7,27 @@ Not all of these registers are mapped, most importantly we only have one core, s
77
88The following table shows the current list of interrupts that are fed through the PLIC.
99For more detailed descriptions of what each interrupt means, please refer to the documentation of each individual hardware IP block.
10- More interrupts may be added to this table in the future.
11-
12- | Number | Block | Interrupt description |
13- | --------| -----------| -----------------------|
14- | 0 | None | Tied to zero
15- | 1, 9 | UART 0, 1 | Transmit watermark
16- | 2, 10 | UART 0, 1 | Receive watermark
17- | 3, 11 | UART 0, 1 | Transmit empty
18- | 4, 12 | UART 0, 1 | Receive overflow
19- | 5, 13 | UART 0, 1 | Receive frame error
20- | 6, 14 | UART 0, 1 | Receive break error
21- | 7, 15 | UART 0, 1 | Receive timeout
22- | 8, 16 | UART 0, 1 | Receive parity error
23- | 17, 32 | I2C 0, 1 | Format FIFO threshold
24- | 18, 33 | I2C 0, 1 | Receive FIFO threshold
25- | 19, 34 | I2C 0, 1 | Acquire FIFO threshold
26- | 20, 35 | I2C 0, 1 | Receive FIFO overflow
27- | 21, 36 | I2C 0, 1 | Received NACK
28- | 22, 37 | I2C 0, 1 | SCL interference
29- | 23, 38 | I2C 0, 1 | SDA interference
30- | 24, 39 | I2C 0, 1 | Stretch timeout
31- | 25, 40 | I2C 0, 1 | SDA unstable
32- | 26, 41 | I2C 0, 1 | Command complete
33- | 27, 42 | I2C 0, 1 | Transmit stretch
34- | 28, 43 | I2C 0, 1 | Transmit threshold
35- | 29, 44 | I2C 0, 1 | Acquire FIFO full
36- | 30, 45 | I2C 0, 1 | Unexpected stop
37- | 31, 46 | I2C 0, 1 | Host timeout
38- | 47 | Ethernet | Interrupt from external SPI ethernet chip (KSZ8851SNLI-TR). Check the interrupt status register for details.
10+ For most blocks, interrupts are multiplexed - all hardware interrupt sources are presented as a single interrupt to the PLIC.
11+ The relevant software ` INTR_STATE ` registers should be queried by software to determine the interrupt cause.
3912
13+ | Number | Block | Interrupt description |
14+ | --------| ------------| -----------------------|
15+ | 0 | None | Tied to zero
16+ | 1 | Revoker | Hardware revoker sweep complete
17+ | 2 | Ethernet | Interrupt from external SPI ethernet chip (KSZ8851SNLI-TR)
18+ | 3 | USB Dev | Shared USB Device interrupt
19+ | 4 | GPIO | Shared GPIO interrupt
20+ | 5-7 | None | Reserved
21+ | 8 | UART 0 | Shared interrupt for UART0
22+ | 9 | UART 1 | Shared interrupt for UART1
23+ | 10 | UART 2 | Shared interrupt for UART2
24+ | 11-15 | None | Reserved
25+ | 16 | I2C 0 | Shared interrupt for I2C0
26+ | 17 | I2C 1 | Shared interrupt for I2C1
27+ | 18-23 | None | Reserved
28+ | 24 | SPI LCD | Shared interrupt for the LCD SPI
29+ | 25 | SPI Ethmac | Shared interrupt for the Ethernet SPI
30+ | 26 | SPI 0 | Shared interrupt for SPI0
31+ | 27 | SPI 1 | Shared interrupt for SPI1
32+ | 28 | SPI 2 | Shared interrupt for SPI2
33+ | 29-31 | None | Reserved
0 commit comments