18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * IRQ definitions for Marvell MV78xx0 SoCs 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public 58c2ecf20Sopenharmony_ci * License version 2. This program is licensed "as is" without any 68c2ecf20Sopenharmony_ci * warranty of any kind, whether express or implied. 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_IRQS_H 108c2ecf20Sopenharmony_ci#define __ASM_ARCH_IRQS_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* 138c2ecf20Sopenharmony_ci * MV78xx0 Low Interrupt Controller 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_ERR 0 168c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_SPI 1 178c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_I2C_0 2 188c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_I2C_1 3 198c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_IDMA_0 4 208c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_IDMA_1 5 218c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_IDMA_2 6 228c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_IDMA_3 7 238c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_TIMER_0 8 248c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_TIMER_1 9 258c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_TIMER_2 10 268c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_TIMER_3 11 278c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_UART_0 12 288c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_UART_1 13 298c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_UART_2 14 308c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_UART_3 15 318c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_USB_0 16 328c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_USB_1 17 338c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_USB_2 18 348c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_CRYPTO 19 358c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_SDIO_0 20 368c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_SDIO_1 21 378c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_XOR_0 22 388c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_XOR_1 23 398c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_I2S_0 24 408c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_I2S_1 25 418c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_SATA 26 428c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_TDMI 27 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/* 458c2ecf20Sopenharmony_ci * MV78xx0 High Interrupt Controller 468c2ecf20Sopenharmony_ci */ 478c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_00 32 488c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_01 33 498c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_02 34 508c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_03 35 518c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_10 36 528c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_11 37 538c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_12 38 548c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_PCIE_13 39 558c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE00_SUM 40 568c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE00_RX 41 578c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE00_TX 42 588c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE00_MISC 43 598c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE01_SUM 44 608c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE01_RX 45 618c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE01_TX 46 628c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE01_MISC 47 638c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE10_SUM 48 648c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE10_RX 49 658c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE10_TX 50 668c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE10_MISC 51 678c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE11_SUM 52 688c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE11_RX 53 698c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE11_TX 54 708c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE11_MISC 55 718c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GPIO_0_7 56 728c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GPIO_8_15 57 738c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GPIO_16_23 58 748c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GPIO_24_31 59 758c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_DB_IN 60 768c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_DB_OUT 61 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci/* 798c2ecf20Sopenharmony_ci * MV78xx0 Error Interrupt Controller 808c2ecf20Sopenharmony_ci */ 818c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GE_ERR 70 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci/* 848c2ecf20Sopenharmony_ci * MV78XX0 General Purpose Pins 858c2ecf20Sopenharmony_ci */ 868c2ecf20Sopenharmony_ci#define IRQ_MV78XX0_GPIO_START 96 878c2ecf20Sopenharmony_ci#define NR_GPIO_IRQS 32 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci#define MV78XX0_NR_IRQS (IRQ_MV78XX0_GPIO_START + NR_GPIO_IRQS) 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci#endif 93