写在前面
本系列文章主要讲解地平线征程2(Journey 2-J2)芯片的相关知识,希望能帮助更多的同学认识和了解征程2(Journey 2-J2)芯片。
若有相关问题,欢迎评论沟通,共同进步。(*^▽^*)
错过其他章节的同学可以电梯直达目录↓↓↓
地平线—征程2(Journey 2-J2)芯片详解——目录-CSDN博客
3. 系统架构
本章主要从时钟结构、复位结构、电源管理和电源模式以及中断映射四个方面描述系统架构。
3.4 中断映射
3.4.1 SGI中断映射
下表列举了IRQ编号和软件生成中断源(Software Generated Interrupt-SGI)的详细映射,如下表所示:
| IRQ ID | Interrupt Source |
| 0 | Software interrupt 1 |
| 1 | Software interrupt 2 |
| 2 | Software interrupt 3 |
| 3 | Software interrupt 4 |
| 4 | Software interrupt 5 |
| 5 | Software interrupt 6 |
| 6 | Software interrupt 7 |
| 7 | Software interrupt 8 |
| 8 | Software interrupt 9 |
| 9 | Software interrupt 10 |
| 10 | Software interrupt 11 |
| 11 | Software interrupt 12 |
| 12 | Software interrupt 13 |
| 13 | Software interrupt 14 |
| 14 | Software interrupt 15 |
| 15 | Software interrupt 16 |
3.4.2 PPI中断映射
下表列举了IRQ编号和专用外设中断源(Private Peripheral Interrupt-PPI)的详细映射,如下表所示:
| IRQ ID | Interrupt Source | Description |
| 25 | NA | Virtual Maintenance IRQ, not used in the chip |
| 26 | CORE[n].nCNTHPIRQ | Hypervisor Physical Timer IRQ, low active |
| 27 | CORE[n].nCNTVIRQ | Virtual Timer IRQ, low active |
| 28 | NA | Legacy FIQ, not used in the chip |
| 29 | CORE[n].nCNTPSIRQ | Secure Physical Timer IRQ, low active |
| 30 | CORE[n].nCNTPNSIRQ | Non-Secure Physical Timer IRQ, low active |
| 31 | NA | Legacy IRQ, not used in the chip |
3.4.3 SPI中断映射
下表列举了IRQ编号和共享外设中断源(Shared Peripheral Interrupt-SPI)的详细映射,如下表所示:
| IRQ ID | Interrupt Source | Description |
| 32 | CORE[0].CTIIRQ | Edge triggered, rising edge active |
| 33 | CORE[1].CTIIRQ | / |
| 34 | CORE[0].COMMIRQ | High active (The original CPU output is low active, and is inverted when connected for keeping consistent with SPI.) |
| 35 | CORE[1].COMMIRQ | |
| 36 | CORE[0].PMUIRQ | |
| 37 | CORE[1].PMUIRQ | |
| 38 | CPU.EXTERRIRQ | |
| 39 | timer0_irq0 | High active |
| 40 | timer0_irq1 | High active |
| 41 | timer0_irq2 | High active |
| 42 | timer1_irq0 | High active |
| 43 | timer1_irq1 | High active |
| 44 | timer1_irq2 | High active |
| 45 | timer2_irq0 | High active |
| 46 | timer2_irq1 | High active |
| 47 | timer2_irq2 | High active |
| 48 | bifspi_irq | High active |
| 49 | bifsd_irq | High active |
| 50 | dmac_irq | High active |
| 51 | qspi_irq | High active |
| 52 | Reserved | High active |
| 53 | ddrc_irq | High active |
| 54 | ddrphy_irq | High active |
| 55 | uart0_irq | High active |
| 56 | uart1_irq | High active |
| 57 | uart2_irq | High active |
| 58 | uart3_irq | High active |
| 59 | spi0_irq | High active |
| 60 | spi1_irq | High active |
| 61 | spi2_irq | High active |
| 62 | i2s0_irq | High active |
| 63 | i2s1_irq | High active |
| 64 | i2c0_irq | High active |
| 65 | i2c1_irq | High active |
| 66 | i2c2_irq | High active |
| 67 | i2c3_irq | High active |
| 68 | pwm0_irq | High active |
| 69 | pwm1_irq | High active |
| 70 | pwm2_irq | High active |
| 71 | sd0_irq | High active |
| 72 | sd1_irq | High active |
| 73 | eth0_perch_rx_irq | High active |
| 74 | eth0_perch_tx_irq | High active |
| 75 | eth0_irq | High active |
| 76 | rtc_irq | High active |
| 77 | padc_irq | High active |
| 78 | cnn0_irq | High active |
| 79 | cnn1_irq | High active |
| 80 | mipi_host_irq | High active |
| 81 | mipi_dev_irq | High active |
| 82 | ips_irq | High active |
| 83 | iar_irq | High active |
| 84 | perf_monitor_irq | High active |
| 85 | cpu_tsensor_irq | High active |
| 86 | apb_timeout_irq | High active |
| 87~95 | Reserved | / |
总结:本部分主要讲解了J2的中断映射,其中包含SGI中断映射、PPI中断映射和SPI中断映射。
本文章是博主花费大量的时间精力进行梳理和总结而成,希望能帮助更多的小伙伴~ 🙏🙏🙏
后续内容将持续更新,敬请期待(*^▽^*)
欢迎大家评论,点赞,收藏→→→