summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-aspeed/include/mach/ast1520_irqs.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-aspeed/include/mach/ast1520_irqs.h')
-rw-r--r--arch/arm/mach-aspeed/include/mach/ast1520_irqs.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/arch/arm/mach-aspeed/include/mach/ast1520_irqs.h b/arch/arm/mach-aspeed/include/mach/ast1520_irqs.h
new file mode 100644
index 0000000..3ebc91b
--- /dev/null
+++ b/arch/arm/mach-aspeed/include/mach/ast1520_irqs.h
@@ -0,0 +1,107 @@
+/*
+ * arch/arm/plat-aspeed/include/plat/irqs.h
+ *
+ * Copyright (C) 2012-2020 ASPEED Technology Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _AST1520_IRQS_H_
+#define _AST1520_IRQS_H_ 1
+
+
+#ifdef CONFIG_PCIE
+#define NR_IRQS (ARCH_NR_GPIOS +ARCH_NR_PCIE + AST_VIC_NUM)
+
+//--------------GPIO ---------------------------------------------------------------
+#define ARCH_NR_GPIOS (GPIO_PORT_NUM*8)
+#define IRQ_GPIO_CHAIN_START AST_VIC_NUM
+//------------------- ---------------------------------------------------------------
+
+#define ARCH_NR_PCIE 5
+#define IRQ_PCIE_CHAIN IRQ_PCIE
+#define IRQ_PCIE_CHAIN_START (ARCH_NR_GPIOS + AST_VIC_NUM)
+
+#define IRQ_PCIE_INTA (IRQ_PCIE_CHAIN_START)
+#define IRQ_PCIE_INTB (IRQ_PCIE_CHAIN_START + 1)
+#define IRQ_PCIE_INTC (IRQ_PCIE_CHAIN_START + 2)
+#define IRQ_PCIE_INTD (IRQ_PCIE_CHAIN_START + 3)
+#define IRQ_PCIE_MSI0 (IRQ_PCIE_INTD + 1) // support max 32 MSI
+
+#else
+#define NR_IRQS (AST_VIC_NUM + ARCH_NR_GPIOS)
+//--------------GPIO ---------------------------------------------------------------
+#define ARCH_NR_GPIOS (GPIO_PORT_NUM*8)
+#define IRQ_GPIO_CHAIN_START AST_VIC_NUM
+//------------------- ---------------------------------------------------------------
+#endif
+
+#define AST_VIC_NUM 51
+
+//#define IRQ_SDRAM_ECC 0
+//#define IRQ_MIC 1
+#define IRQ_MAC0 2 /* MAC 1 interrupt */
+//#define IRQ_MAC1 3 /* MAC 2 interrupt */
+#define IRQ_CRYPTO 4
+#define IRQ_USB20_HUB 5
+#define IRQ_EHCI 5
+#define IRQ_XDMA 6
+#define IRQ_VIDEO 7
+//#define IRQ_LPC 8
+#define IRQ_UART1 9 /* UART 1 interrupt */
+#define IRQ_UART0 10 /* UART 3 interrupt */
+//11 Reserved
+#define IRQ_I2C 12
+//#define IRQ_UDC11 13
+#define IRQ_UHCI 14
+//#define IRQ_PECI 15
+#define IRQ_TIMER0 16 /* TIMER 1 interrupt */
+#define IRQ_TIMER1 17 /* TIMER 2 interrupt */
+#define IRQ_TIMER2 18 /* TIMER 3 interrupt */
+//#define IRQ_SMC 19
+#define IRQ_GPIO 20
+#define IRQ_SCU 21
+#define IRQ_RTC 22
+//23 , 24 reserverd
+#define IRQ_CRT 25
+#define IRQ_SDHC 26
+#define IRQ_WDT 27
+#define IRQ_TACHO 28
+#define IRQ_2D 29
+#define IRQ_SYS_WAKEUP 30
+//#define IRQ_ADC 31
+#define IRQ_UART2 32 /* UART 2 interrupt */
+//#define IRQ_UART2 33 /* UART 3 interrupt */
+//#define IRQ_UART3 34 /* UART 4 interrupt */
+//#define IRQ_TIMER3 35 /* TIMER 4 interrupt */
+//#define IRQ_TIMER4 36
+//#define IRQ_TIMER5 37
+//#define IRQ_TIMER6 38
+//#define IRQ_TIMER7 39 /* TIMER 8 interrupt */
+//#define IRQ_SGPIO_MASTER 40
+//#define IRQ_SGPIO_SLAVE 41
+#define IRQ_PCIE 41
+
+#define IRQ_MCTP 42
+//#define IRQ_JTAG 43
+#define IRQ_PS2 44
+#define IRQ_CPU1 45
+//#define IRQ_MAILBOX 46
+#define IRQ_EXT0_GPIOL1 47
+#define IRQ_EXT1_GPIOL3 48
+#define IRQ_EXT2_GPIOM3 49
+#define IRQ_EXT3_GPIOM3 50
+
+#endif
OpenPOWER on IntegriCloud