162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/* IRQ definitions for Marvell Dove 88AP510 SoC */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef __ASM_ARCH_IRQS_H
562306a36Sopenharmony_ci#define __ASM_ARCH_IRQS_H
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/*
862306a36Sopenharmony_ci * Dove Low Interrupt Controller
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci#define IRQ_DOVE_BRIDGE		(1 + 0)
1162306a36Sopenharmony_ci#define IRQ_DOVE_H2C		(1 + 1)
1262306a36Sopenharmony_ci#define IRQ_DOVE_C2H		(1 + 2)
1362306a36Sopenharmony_ci#define IRQ_DOVE_NAND		(1 + 3)
1462306a36Sopenharmony_ci#define IRQ_DOVE_PDMA		(1 + 4)
1562306a36Sopenharmony_ci#define IRQ_DOVE_SPI1		(1 + 5)
1662306a36Sopenharmony_ci#define IRQ_DOVE_SPI0		(1 + 6)
1762306a36Sopenharmony_ci#define IRQ_DOVE_UART_0		(1 + 7)
1862306a36Sopenharmony_ci#define IRQ_DOVE_UART_1		(1 + 8)
1962306a36Sopenharmony_ci#define IRQ_DOVE_UART_2		(1 + 9)
2062306a36Sopenharmony_ci#define IRQ_DOVE_UART_3		(1 + 10)
2162306a36Sopenharmony_ci#define IRQ_DOVE_I2C		(1 + 11)
2262306a36Sopenharmony_ci#define IRQ_DOVE_GPIO_0_7	(1 + 12)
2362306a36Sopenharmony_ci#define IRQ_DOVE_GPIO_8_15	(1 + 13)
2462306a36Sopenharmony_ci#define IRQ_DOVE_GPIO_16_23	(1 + 14)
2562306a36Sopenharmony_ci#define IRQ_DOVE_PCIE0_ERR	(1 + 15)
2662306a36Sopenharmony_ci#define IRQ_DOVE_PCIE0		(1 + 16)
2762306a36Sopenharmony_ci#define IRQ_DOVE_PCIE1_ERR	(1 + 17)
2862306a36Sopenharmony_ci#define IRQ_DOVE_PCIE1		(1 + 18)
2962306a36Sopenharmony_ci#define IRQ_DOVE_I2S0		(1 + 19)
3062306a36Sopenharmony_ci#define IRQ_DOVE_I2S0_ERR	(1 + 20)
3162306a36Sopenharmony_ci#define IRQ_DOVE_I2S1		(1 + 21)
3262306a36Sopenharmony_ci#define IRQ_DOVE_I2S1_ERR	(1 + 22)
3362306a36Sopenharmony_ci#define IRQ_DOVE_USB_ERR	(1 + 23)
3462306a36Sopenharmony_ci#define IRQ_DOVE_USB0		(1 + 24)
3562306a36Sopenharmony_ci#define IRQ_DOVE_USB1		(1 + 25)
3662306a36Sopenharmony_ci#define IRQ_DOVE_GE00_RX	(1 + 26)
3762306a36Sopenharmony_ci#define IRQ_DOVE_GE00_TX	(1 + 27)
3862306a36Sopenharmony_ci#define IRQ_DOVE_GE00_MISC	(1 + 28)
3962306a36Sopenharmony_ci#define IRQ_DOVE_GE00_SUM	(1 + 29)
4062306a36Sopenharmony_ci#define IRQ_DOVE_GE00_ERR	(1 + 30)
4162306a36Sopenharmony_ci#define IRQ_DOVE_CRYPTO		(1 + 31)
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ci/*
4462306a36Sopenharmony_ci * Dove High Interrupt Controller
4562306a36Sopenharmony_ci */
4662306a36Sopenharmony_ci#define IRQ_DOVE_AC97		(1 + 32)
4762306a36Sopenharmony_ci#define IRQ_DOVE_PMU		(1 + 33)
4862306a36Sopenharmony_ci#define IRQ_DOVE_CAM		(1 + 34)
4962306a36Sopenharmony_ci#define IRQ_DOVE_SDIO0		(1 + 35)
5062306a36Sopenharmony_ci#define IRQ_DOVE_SDIO1		(1 + 36)
5162306a36Sopenharmony_ci#define IRQ_DOVE_SDIO0_WAKEUP	(1 + 37)
5262306a36Sopenharmony_ci#define IRQ_DOVE_SDIO1_WAKEUP	(1 + 38)
5362306a36Sopenharmony_ci#define IRQ_DOVE_XOR_00		(1 + 39)
5462306a36Sopenharmony_ci#define IRQ_DOVE_XOR_01		(1 + 40)
5562306a36Sopenharmony_ci#define IRQ_DOVE_XOR0_ERR	(1 + 41)
5662306a36Sopenharmony_ci#define IRQ_DOVE_XOR_10		(1 + 42)
5762306a36Sopenharmony_ci#define IRQ_DOVE_XOR_11		(1 + 43)
5862306a36Sopenharmony_ci#define IRQ_DOVE_XOR1_ERR	(1 + 44)
5962306a36Sopenharmony_ci#define IRQ_DOVE_LCD_DCON	(1 + 45)
6062306a36Sopenharmony_ci#define IRQ_DOVE_LCD1		(1 + 46)
6162306a36Sopenharmony_ci#define IRQ_DOVE_LCD0		(1 + 47)
6262306a36Sopenharmony_ci#define IRQ_DOVE_GPU		(1 + 48)
6362306a36Sopenharmony_ci#define IRQ_DOVE_PERFORM_MNTR	(1 + 49)
6462306a36Sopenharmony_ci#define IRQ_DOVE_VPRO_DMA1	(1 + 51)
6562306a36Sopenharmony_ci#define IRQ_DOVE_SSP_TIMER	(1 + 54)
6662306a36Sopenharmony_ci#define IRQ_DOVE_SSP		(1 + 55)
6762306a36Sopenharmony_ci#define IRQ_DOVE_MC_L2_ERR	(1 + 56)
6862306a36Sopenharmony_ci#define IRQ_DOVE_CRYPTO_ERR	(1 + 59)
6962306a36Sopenharmony_ci#define IRQ_DOVE_GPIO_24_31	(1 + 60)
7062306a36Sopenharmony_ci#define IRQ_DOVE_HIGH_GPIO	(1 + 61)
7162306a36Sopenharmony_ci#define IRQ_DOVE_SATA		(1 + 62)
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci/*
7462306a36Sopenharmony_ci * DOVE General Purpose Pins
7562306a36Sopenharmony_ci */
7662306a36Sopenharmony_ci#define IRQ_DOVE_GPIO_START	65
7762306a36Sopenharmony_ci#define NR_GPIO_IRQS		64
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ci/*
8062306a36Sopenharmony_ci * PMU interrupts
8162306a36Sopenharmony_ci */
8262306a36Sopenharmony_ci#define IRQ_DOVE_PMU_START	(IRQ_DOVE_GPIO_START + NR_GPIO_IRQS)
8362306a36Sopenharmony_ci#define NR_PMU_IRQS		7
8462306a36Sopenharmony_ci#define IRQ_DOVE_RTC		(IRQ_DOVE_PMU_START + 5)
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci#define DOVE_NR_IRQS		(IRQ_DOVE_PMU_START + NR_PMU_IRQS)
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci#endif
90