18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * IRQ definitions for Orion SoC
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci *  Maintainer: Tzachi Perelstein <tzachi@marvell.com>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci *  This file is licensed under the terms of the GNU General Public
78c2ecf20Sopenharmony_ci *  License version 2. This program is licensed "as is" without any
88c2ecf20Sopenharmony_ci *  warranty of any kind, whether express or implied.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_IRQS_H
128c2ecf20Sopenharmony_ci#define __ASM_ARCH_IRQS_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/*
158c2ecf20Sopenharmony_ci * Orion Main Interrupt Controller
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#define IRQ_ORION5X_BRIDGE		(1 + 0)
188c2ecf20Sopenharmony_ci#define IRQ_ORION5X_DOORBELL_H2C	(1 + 1)
198c2ecf20Sopenharmony_ci#define IRQ_ORION5X_DOORBELL_C2H	(1 + 2)
208c2ecf20Sopenharmony_ci#define IRQ_ORION5X_UART0		(1 + 3)
218c2ecf20Sopenharmony_ci#define IRQ_ORION5X_UART1		(1 + 4)
228c2ecf20Sopenharmony_ci#define IRQ_ORION5X_I2C			(1 + 5)
238c2ecf20Sopenharmony_ci#define IRQ_ORION5X_GPIO_0_7		(1 + 6)
248c2ecf20Sopenharmony_ci#define IRQ_ORION5X_GPIO_8_15		(1 + 7)
258c2ecf20Sopenharmony_ci#define IRQ_ORION5X_GPIO_16_23		(1 + 8)
268c2ecf20Sopenharmony_ci#define IRQ_ORION5X_GPIO_24_31		(1 + 9)
278c2ecf20Sopenharmony_ci#define IRQ_ORION5X_PCIE0_ERR		(1 + 10)
288c2ecf20Sopenharmony_ci#define IRQ_ORION5X_PCIE0_INT		(1 + 11)
298c2ecf20Sopenharmony_ci#define IRQ_ORION5X_USB1_CTRL		(1 + 12)
308c2ecf20Sopenharmony_ci#define IRQ_ORION5X_DEV_BUS_ERR		(1 + 14)
318c2ecf20Sopenharmony_ci#define IRQ_ORION5X_PCI_ERR		(1 + 15)
328c2ecf20Sopenharmony_ci#define IRQ_ORION5X_USB_BR_ERR		(1 + 16)
338c2ecf20Sopenharmony_ci#define IRQ_ORION5X_USB0_CTRL		(1 + 17)
348c2ecf20Sopenharmony_ci#define IRQ_ORION5X_ETH_RX		(1 + 18)
358c2ecf20Sopenharmony_ci#define IRQ_ORION5X_ETH_TX		(1 + 19)
368c2ecf20Sopenharmony_ci#define IRQ_ORION5X_ETH_MISC		(1 + 20)
378c2ecf20Sopenharmony_ci#define IRQ_ORION5X_ETH_SUM		(1 + 21)
388c2ecf20Sopenharmony_ci#define IRQ_ORION5X_ETH_ERR		(1 + 22)
398c2ecf20Sopenharmony_ci#define IRQ_ORION5X_IDMA_ERR		(1 + 23)
408c2ecf20Sopenharmony_ci#define IRQ_ORION5X_IDMA_0		(1 + 24)
418c2ecf20Sopenharmony_ci#define IRQ_ORION5X_IDMA_1		(1 + 25)
428c2ecf20Sopenharmony_ci#define IRQ_ORION5X_IDMA_2		(1 + 26)
438c2ecf20Sopenharmony_ci#define IRQ_ORION5X_IDMA_3		(1 + 27)
448c2ecf20Sopenharmony_ci#define IRQ_ORION5X_CESA		(1 + 28)
458c2ecf20Sopenharmony_ci#define IRQ_ORION5X_SATA		(1 + 29)
468c2ecf20Sopenharmony_ci#define IRQ_ORION5X_XOR0		(1 + 30)
478c2ecf20Sopenharmony_ci#define IRQ_ORION5X_XOR1		(1 + 31)
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci/*
508c2ecf20Sopenharmony_ci * Orion General Purpose Pins
518c2ecf20Sopenharmony_ci */
528c2ecf20Sopenharmony_ci#define IRQ_ORION5X_GPIO_START	33
538c2ecf20Sopenharmony_ci#define NR_GPIO_IRQS		32
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#define ORION5X_NR_IRQS		(IRQ_ORION5X_GPIO_START + NR_GPIO_IRQS)
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci#endif
59