18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * IRQ definitions for Marvell Dove 88AP510 SoC
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 * Dove Low Interrupt Controller
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#define IRQ_DOVE_BRIDGE		(1 + 0)
168c2ecf20Sopenharmony_ci#define IRQ_DOVE_H2C		(1 + 1)
178c2ecf20Sopenharmony_ci#define IRQ_DOVE_C2H		(1 + 2)
188c2ecf20Sopenharmony_ci#define IRQ_DOVE_NAND		(1 + 3)
198c2ecf20Sopenharmony_ci#define IRQ_DOVE_PDMA		(1 + 4)
208c2ecf20Sopenharmony_ci#define IRQ_DOVE_SPI1		(1 + 5)
218c2ecf20Sopenharmony_ci#define IRQ_DOVE_SPI0		(1 + 6)
228c2ecf20Sopenharmony_ci#define IRQ_DOVE_UART_0		(1 + 7)
238c2ecf20Sopenharmony_ci#define IRQ_DOVE_UART_1		(1 + 8)
248c2ecf20Sopenharmony_ci#define IRQ_DOVE_UART_2		(1 + 9)
258c2ecf20Sopenharmony_ci#define IRQ_DOVE_UART_3		(1 + 10)
268c2ecf20Sopenharmony_ci#define IRQ_DOVE_I2C		(1 + 11)
278c2ecf20Sopenharmony_ci#define IRQ_DOVE_GPIO_0_7	(1 + 12)
288c2ecf20Sopenharmony_ci#define IRQ_DOVE_GPIO_8_15	(1 + 13)
298c2ecf20Sopenharmony_ci#define IRQ_DOVE_GPIO_16_23	(1 + 14)
308c2ecf20Sopenharmony_ci#define IRQ_DOVE_PCIE0_ERR	(1 + 15)
318c2ecf20Sopenharmony_ci#define IRQ_DOVE_PCIE0		(1 + 16)
328c2ecf20Sopenharmony_ci#define IRQ_DOVE_PCIE1_ERR	(1 + 17)
338c2ecf20Sopenharmony_ci#define IRQ_DOVE_PCIE1		(1 + 18)
348c2ecf20Sopenharmony_ci#define IRQ_DOVE_I2S0		(1 + 19)
358c2ecf20Sopenharmony_ci#define IRQ_DOVE_I2S0_ERR	(1 + 20)
368c2ecf20Sopenharmony_ci#define IRQ_DOVE_I2S1		(1 + 21)
378c2ecf20Sopenharmony_ci#define IRQ_DOVE_I2S1_ERR	(1 + 22)
388c2ecf20Sopenharmony_ci#define IRQ_DOVE_USB_ERR	(1 + 23)
398c2ecf20Sopenharmony_ci#define IRQ_DOVE_USB0		(1 + 24)
408c2ecf20Sopenharmony_ci#define IRQ_DOVE_USB1		(1 + 25)
418c2ecf20Sopenharmony_ci#define IRQ_DOVE_GE00_RX	(1 + 26)
428c2ecf20Sopenharmony_ci#define IRQ_DOVE_GE00_TX	(1 + 27)
438c2ecf20Sopenharmony_ci#define IRQ_DOVE_GE00_MISC	(1 + 28)
448c2ecf20Sopenharmony_ci#define IRQ_DOVE_GE00_SUM	(1 + 29)
458c2ecf20Sopenharmony_ci#define IRQ_DOVE_GE00_ERR	(1 + 30)
468c2ecf20Sopenharmony_ci#define IRQ_DOVE_CRYPTO		(1 + 31)
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci/*
498c2ecf20Sopenharmony_ci * Dove High Interrupt Controller
508c2ecf20Sopenharmony_ci */
518c2ecf20Sopenharmony_ci#define IRQ_DOVE_AC97		(1 + 32)
528c2ecf20Sopenharmony_ci#define IRQ_DOVE_PMU		(1 + 33)
538c2ecf20Sopenharmony_ci#define IRQ_DOVE_CAM		(1 + 34)
548c2ecf20Sopenharmony_ci#define IRQ_DOVE_SDIO0		(1 + 35)
558c2ecf20Sopenharmony_ci#define IRQ_DOVE_SDIO1		(1 + 36)
568c2ecf20Sopenharmony_ci#define IRQ_DOVE_SDIO0_WAKEUP	(1 + 37)
578c2ecf20Sopenharmony_ci#define IRQ_DOVE_SDIO1_WAKEUP	(1 + 38)
588c2ecf20Sopenharmony_ci#define IRQ_DOVE_XOR_00		(1 + 39)
598c2ecf20Sopenharmony_ci#define IRQ_DOVE_XOR_01		(1 + 40)
608c2ecf20Sopenharmony_ci#define IRQ_DOVE_XOR0_ERR	(1 + 41)
618c2ecf20Sopenharmony_ci#define IRQ_DOVE_XOR_10		(1 + 42)
628c2ecf20Sopenharmony_ci#define IRQ_DOVE_XOR_11		(1 + 43)
638c2ecf20Sopenharmony_ci#define IRQ_DOVE_XOR1_ERR	(1 + 44)
648c2ecf20Sopenharmony_ci#define IRQ_DOVE_LCD_DCON	(1 + 45)
658c2ecf20Sopenharmony_ci#define IRQ_DOVE_LCD1		(1 + 46)
668c2ecf20Sopenharmony_ci#define IRQ_DOVE_LCD0		(1 + 47)
678c2ecf20Sopenharmony_ci#define IRQ_DOVE_GPU		(1 + 48)
688c2ecf20Sopenharmony_ci#define IRQ_DOVE_PERFORM_MNTR	(1 + 49)
698c2ecf20Sopenharmony_ci#define IRQ_DOVE_VPRO_DMA1	(1 + 51)
708c2ecf20Sopenharmony_ci#define IRQ_DOVE_SSP_TIMER	(1 + 54)
718c2ecf20Sopenharmony_ci#define IRQ_DOVE_SSP		(1 + 55)
728c2ecf20Sopenharmony_ci#define IRQ_DOVE_MC_L2_ERR	(1 + 56)
738c2ecf20Sopenharmony_ci#define IRQ_DOVE_CRYPTO_ERR	(1 + 59)
748c2ecf20Sopenharmony_ci#define IRQ_DOVE_GPIO_24_31	(1 + 60)
758c2ecf20Sopenharmony_ci#define IRQ_DOVE_HIGH_GPIO	(1 + 61)
768c2ecf20Sopenharmony_ci#define IRQ_DOVE_SATA		(1 + 62)
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci/*
798c2ecf20Sopenharmony_ci * DOVE General Purpose Pins
808c2ecf20Sopenharmony_ci */
818c2ecf20Sopenharmony_ci#define IRQ_DOVE_GPIO_START	65
828c2ecf20Sopenharmony_ci#define NR_GPIO_IRQS		64
838c2ecf20Sopenharmony_ci
848c2ecf20Sopenharmony_ci/*
858c2ecf20Sopenharmony_ci * PMU interrupts
868c2ecf20Sopenharmony_ci */
878c2ecf20Sopenharmony_ci#define IRQ_DOVE_PMU_START	(IRQ_DOVE_GPIO_START + NR_GPIO_IRQS)
888c2ecf20Sopenharmony_ci#define NR_PMU_IRQS		7
898c2ecf20Sopenharmony_ci#define IRQ_DOVE_RTC		(IRQ_DOVE_PMU_START + 5)
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci#define DOVE_NR_IRQS		(IRQ_DOVE_PMU_START + NR_PMU_IRQS)
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci#endif
95