162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/* IRQ definitions for Marvell MV78xx0 SoCs */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef __ASM_ARCH_IRQS_H
562306a36Sopenharmony_ci#define __ASM_ARCH_IRQS_H
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/*
862306a36Sopenharmony_ci * MV78xx0 Low Interrupt Controller
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci#define IRQ_MV78XX0_ERR		0
1162306a36Sopenharmony_ci#define IRQ_MV78XX0_SPI		1
1262306a36Sopenharmony_ci#define IRQ_MV78XX0_I2C_0	2
1362306a36Sopenharmony_ci#define IRQ_MV78XX0_I2C_1	3
1462306a36Sopenharmony_ci#define IRQ_MV78XX0_IDMA_0	4
1562306a36Sopenharmony_ci#define IRQ_MV78XX0_IDMA_1	5
1662306a36Sopenharmony_ci#define IRQ_MV78XX0_IDMA_2	6
1762306a36Sopenharmony_ci#define IRQ_MV78XX0_IDMA_3	7
1862306a36Sopenharmony_ci#define IRQ_MV78XX0_TIMER_0	8
1962306a36Sopenharmony_ci#define IRQ_MV78XX0_TIMER_1	9
2062306a36Sopenharmony_ci#define IRQ_MV78XX0_TIMER_2	10
2162306a36Sopenharmony_ci#define IRQ_MV78XX0_TIMER_3	11
2262306a36Sopenharmony_ci#define IRQ_MV78XX0_UART_0	12
2362306a36Sopenharmony_ci#define IRQ_MV78XX0_UART_1	13
2462306a36Sopenharmony_ci#define IRQ_MV78XX0_UART_2	14
2562306a36Sopenharmony_ci#define IRQ_MV78XX0_UART_3	15
2662306a36Sopenharmony_ci#define IRQ_MV78XX0_USB_0	16
2762306a36Sopenharmony_ci#define IRQ_MV78XX0_USB_1	17
2862306a36Sopenharmony_ci#define IRQ_MV78XX0_USB_2	18
2962306a36Sopenharmony_ci#define IRQ_MV78XX0_CRYPTO	19
3062306a36Sopenharmony_ci#define IRQ_MV78XX0_SDIO_0	20
3162306a36Sopenharmony_ci#define IRQ_MV78XX0_SDIO_1	21
3262306a36Sopenharmony_ci#define IRQ_MV78XX0_XOR_0	22
3362306a36Sopenharmony_ci#define IRQ_MV78XX0_XOR_1	23
3462306a36Sopenharmony_ci#define IRQ_MV78XX0_I2S_0	24
3562306a36Sopenharmony_ci#define IRQ_MV78XX0_I2S_1	25
3662306a36Sopenharmony_ci#define IRQ_MV78XX0_SATA	26
3762306a36Sopenharmony_ci#define IRQ_MV78XX0_TDMI	27
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci/*
4062306a36Sopenharmony_ci * MV78xx0 High Interrupt Controller
4162306a36Sopenharmony_ci */
4262306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_00	32
4362306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_01	33
4462306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_02	34
4562306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_03	35
4662306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_10	36
4762306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_11	37
4862306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_12	38
4962306a36Sopenharmony_ci#define IRQ_MV78XX0_PCIE_13	39
5062306a36Sopenharmony_ci#define IRQ_MV78XX0_GE00_SUM	40
5162306a36Sopenharmony_ci#define IRQ_MV78XX0_GE00_RX	41
5262306a36Sopenharmony_ci#define IRQ_MV78XX0_GE00_TX	42
5362306a36Sopenharmony_ci#define IRQ_MV78XX0_GE00_MISC	43
5462306a36Sopenharmony_ci#define IRQ_MV78XX0_GE01_SUM	44
5562306a36Sopenharmony_ci#define IRQ_MV78XX0_GE01_RX	45
5662306a36Sopenharmony_ci#define IRQ_MV78XX0_GE01_TX	46
5762306a36Sopenharmony_ci#define IRQ_MV78XX0_GE01_MISC	47
5862306a36Sopenharmony_ci#define IRQ_MV78XX0_GE10_SUM	48
5962306a36Sopenharmony_ci#define IRQ_MV78XX0_GE10_RX	49
6062306a36Sopenharmony_ci#define IRQ_MV78XX0_GE10_TX	50
6162306a36Sopenharmony_ci#define IRQ_MV78XX0_GE10_MISC	51
6262306a36Sopenharmony_ci#define IRQ_MV78XX0_GE11_SUM	52
6362306a36Sopenharmony_ci#define IRQ_MV78XX0_GE11_RX	53
6462306a36Sopenharmony_ci#define IRQ_MV78XX0_GE11_TX	54
6562306a36Sopenharmony_ci#define IRQ_MV78XX0_GE11_MISC	55
6662306a36Sopenharmony_ci#define IRQ_MV78XX0_GPIO_0_7	56
6762306a36Sopenharmony_ci#define IRQ_MV78XX0_GPIO_8_15	57
6862306a36Sopenharmony_ci#define IRQ_MV78XX0_GPIO_16_23	58
6962306a36Sopenharmony_ci#define IRQ_MV78XX0_GPIO_24_31	59
7062306a36Sopenharmony_ci#define IRQ_MV78XX0_DB_IN	60
7162306a36Sopenharmony_ci#define IRQ_MV78XX0_DB_OUT	61
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci/*
7462306a36Sopenharmony_ci * MV78xx0 Error Interrupt Controller
7562306a36Sopenharmony_ci */
7662306a36Sopenharmony_ci#define IRQ_MV78XX0_GE_ERR	70
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ci/*
7962306a36Sopenharmony_ci * MV78XX0 General Purpose Pins
8062306a36Sopenharmony_ci */
8162306a36Sopenharmony_ci#define IRQ_MV78XX0_GPIO_START	96
8262306a36Sopenharmony_ci#define NR_GPIO_IRQS		32
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci#define MV78XX0_NR_IRQS		(IRQ_MV78XX0_GPIO_START + NR_GPIO_IRQS)
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ci#endif
88