18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef __ASM_MACH_IRQS_H
38c2ecf20Sopenharmony_ci#define __ASM_MACH_IRQS_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * Interrupt numbers for PXA168
78c2ecf20Sopenharmony_ci */
88c2ecf20Sopenharmony_ci#define IRQ_PXA168_NONE			(-1)
98c2ecf20Sopenharmony_ci#define IRQ_PXA168_SSP4			0
108c2ecf20Sopenharmony_ci#define IRQ_PXA168_SSP3			1
118c2ecf20Sopenharmony_ci#define IRQ_PXA168_SSP2			2
128c2ecf20Sopenharmony_ci#define IRQ_PXA168_SSP1			3
138c2ecf20Sopenharmony_ci#define IRQ_PXA168_PMIC_INT		4
148c2ecf20Sopenharmony_ci#define IRQ_PXA168_RTC_INT		5
158c2ecf20Sopenharmony_ci#define IRQ_PXA168_RTC_ALARM		6
168c2ecf20Sopenharmony_ci#define IRQ_PXA168_TWSI0		7
178c2ecf20Sopenharmony_ci#define IRQ_PXA168_GPU			8
188c2ecf20Sopenharmony_ci#define IRQ_PXA168_KEYPAD		9
198c2ecf20Sopenharmony_ci#define IRQ_PXA168_ONEWIRE		12
208c2ecf20Sopenharmony_ci#define IRQ_PXA168_TIMER1		13
218c2ecf20Sopenharmony_ci#define IRQ_PXA168_TIMER2		14
228c2ecf20Sopenharmony_ci#define IRQ_PXA168_TIMER3		15
238c2ecf20Sopenharmony_ci#define IRQ_PXA168_CMU			16
248c2ecf20Sopenharmony_ci#define IRQ_PXA168_SSP5			17
258c2ecf20Sopenharmony_ci#define IRQ_PXA168_MSP_WAKEUP		19
268c2ecf20Sopenharmony_ci#define IRQ_PXA168_CF_WAKEUP		20
278c2ecf20Sopenharmony_ci#define IRQ_PXA168_XD_WAKEUP		21
288c2ecf20Sopenharmony_ci#define IRQ_PXA168_MFU			22
298c2ecf20Sopenharmony_ci#define IRQ_PXA168_MSP			23
308c2ecf20Sopenharmony_ci#define IRQ_PXA168_CF			24
318c2ecf20Sopenharmony_ci#define IRQ_PXA168_XD			25
328c2ecf20Sopenharmony_ci#define IRQ_PXA168_DDR_INT		26
338c2ecf20Sopenharmony_ci#define IRQ_PXA168_UART1		27
348c2ecf20Sopenharmony_ci#define IRQ_PXA168_UART2		28
358c2ecf20Sopenharmony_ci#define IRQ_PXA168_UART3		29
368c2ecf20Sopenharmony_ci#define IRQ_PXA168_WDT			35
378c2ecf20Sopenharmony_ci#define IRQ_PXA168_MAIN_PMU		36
388c2ecf20Sopenharmony_ci#define IRQ_PXA168_FRQ_CHANGE		38
398c2ecf20Sopenharmony_ci#define IRQ_PXA168_SDH1			39
408c2ecf20Sopenharmony_ci#define IRQ_PXA168_SDH2			40
418c2ecf20Sopenharmony_ci#define IRQ_PXA168_LCD			41
428c2ecf20Sopenharmony_ci#define IRQ_PXA168_CI			42
438c2ecf20Sopenharmony_ci#define IRQ_PXA168_USB1			44
448c2ecf20Sopenharmony_ci#define IRQ_PXA168_NAND			45
458c2ecf20Sopenharmony_ci#define IRQ_PXA168_HIFI_DMA		46
468c2ecf20Sopenharmony_ci#define IRQ_PXA168_DMA_INT0		47
478c2ecf20Sopenharmony_ci#define IRQ_PXA168_DMA_INT1		48
488c2ecf20Sopenharmony_ci#define IRQ_PXA168_GPIOX		49
498c2ecf20Sopenharmony_ci#define IRQ_PXA168_USB2			51
508c2ecf20Sopenharmony_ci#define IRQ_PXA168_AC97			57
518c2ecf20Sopenharmony_ci#define IRQ_PXA168_TWSI1		58
528c2ecf20Sopenharmony_ci#define IRQ_PXA168_AP_PMU		60
538c2ecf20Sopenharmony_ci#define IRQ_PXA168_SM_INT		63
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci/*
568c2ecf20Sopenharmony_ci * Interrupt numbers for PXA910
578c2ecf20Sopenharmony_ci */
588c2ecf20Sopenharmony_ci#define IRQ_PXA910_NONE			(-1)
598c2ecf20Sopenharmony_ci#define IRQ_PXA910_AIRQ			0
608c2ecf20Sopenharmony_ci#define IRQ_PXA910_SSP3			1
618c2ecf20Sopenharmony_ci#define IRQ_PXA910_SSP2			2
628c2ecf20Sopenharmony_ci#define IRQ_PXA910_SSP1			3
638c2ecf20Sopenharmony_ci#define IRQ_PXA910_PMIC_INT		4
648c2ecf20Sopenharmony_ci#define IRQ_PXA910_RTC_INT		5
658c2ecf20Sopenharmony_ci#define IRQ_PXA910_RTC_ALARM		6
668c2ecf20Sopenharmony_ci#define IRQ_PXA910_TWSI0		7
678c2ecf20Sopenharmony_ci#define IRQ_PXA910_GPU			8
688c2ecf20Sopenharmony_ci#define IRQ_PXA910_KEYPAD		9
698c2ecf20Sopenharmony_ci#define IRQ_PXA910_ROTARY		10
708c2ecf20Sopenharmony_ci#define IRQ_PXA910_TRACKBALL		11
718c2ecf20Sopenharmony_ci#define IRQ_PXA910_ONEWIRE		12
728c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP1_TIMER1		13
738c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP1_TIMER2		14
748c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP1_TIMER3		15
758c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_AP0		16
768c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_AP1		17
778c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_AP2		18
788c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_AP3		19
798c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_AP4		20
808c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_CP0		21
818c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_CP1		22
828c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_CP2		23
838c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_CP3		24
848c2ecf20Sopenharmony_ci#define IRQ_PXA910_IPC_CP4		25
858c2ecf20Sopenharmony_ci#define IRQ_PXA910_L2_DDR		26
868c2ecf20Sopenharmony_ci#define IRQ_PXA910_UART2		27
878c2ecf20Sopenharmony_ci#define IRQ_PXA910_UART3		28
888c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP2_TIMER1		29
898c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP2_TIMER2		30
908c2ecf20Sopenharmony_ci#define IRQ_PXA910_CP2_TIMER1		31
918c2ecf20Sopenharmony_ci#define IRQ_PXA910_CP2_TIMER2		32
928c2ecf20Sopenharmony_ci#define IRQ_PXA910_CP2_TIMER3		33
938c2ecf20Sopenharmony_ci#define IRQ_PXA910_GSSP			34
948c2ecf20Sopenharmony_ci#define IRQ_PXA910_CP2_WDT		35
958c2ecf20Sopenharmony_ci#define IRQ_PXA910_MAIN_PMU		36
968c2ecf20Sopenharmony_ci#define IRQ_PXA910_CP_FREQ_CHG		37
978c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP_FREQ_CHG		38
988c2ecf20Sopenharmony_ci#define IRQ_PXA910_MMC			39
998c2ecf20Sopenharmony_ci#define IRQ_PXA910_AEU			40
1008c2ecf20Sopenharmony_ci#define IRQ_PXA910_LCD			41
1018c2ecf20Sopenharmony_ci#define IRQ_PXA910_CCIC			42
1028c2ecf20Sopenharmony_ci#define IRQ_PXA910_IRE			43
1038c2ecf20Sopenharmony_ci#define IRQ_PXA910_USB1			44
1048c2ecf20Sopenharmony_ci#define IRQ_PXA910_NAND			45
1058c2ecf20Sopenharmony_ci#define IRQ_PXA910_HIFI_DMA		46
1068c2ecf20Sopenharmony_ci#define IRQ_PXA910_DMA_INT0		47
1078c2ecf20Sopenharmony_ci#define IRQ_PXA910_DMA_INT1		48
1088c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP_GPIO		49
1098c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP2_TIMER3		50
1108c2ecf20Sopenharmony_ci#define IRQ_PXA910_USB2			51
1118c2ecf20Sopenharmony_ci#define IRQ_PXA910_TWSI1		54
1128c2ecf20Sopenharmony_ci#define IRQ_PXA910_CP_GPIO		55
1138c2ecf20Sopenharmony_ci#define IRQ_PXA910_UART1		59	/* Slow UART */
1148c2ecf20Sopenharmony_ci#define IRQ_PXA910_AP_PMU		60
1158c2ecf20Sopenharmony_ci#define IRQ_PXA910_SM_INT		63	/* from PinMux */
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci/*
1188c2ecf20Sopenharmony_ci * Interrupt numbers for MMP2
1198c2ecf20Sopenharmony_ci */
1208c2ecf20Sopenharmony_ci#define IRQ_MMP2_NONE			(-1)
1218c2ecf20Sopenharmony_ci#define IRQ_MMP2_SSP1			0
1228c2ecf20Sopenharmony_ci#define IRQ_MMP2_SSP2			1
1238c2ecf20Sopenharmony_ci#define IRQ_MMP2_SSPA1			2
1248c2ecf20Sopenharmony_ci#define IRQ_MMP2_SSPA2			3
1258c2ecf20Sopenharmony_ci#define IRQ_MMP2_PMIC_MUX		4	/* PMIC & Charger */
1268c2ecf20Sopenharmony_ci#define IRQ_MMP2_RTC_MUX		5
1278c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI1			7
1288c2ecf20Sopenharmony_ci#define IRQ_MMP2_GPU			8
1298c2ecf20Sopenharmony_ci#define IRQ_MMP2_KEYPAD_MUX		9
1308c2ecf20Sopenharmony_ci#define IRQ_MMP2_ROTARY			10
1318c2ecf20Sopenharmony_ci#define IRQ_MMP2_TRACKBALL		11
1328c2ecf20Sopenharmony_ci#define IRQ_MMP2_ONEWIRE		12
1338c2ecf20Sopenharmony_ci#define IRQ_MMP2_TIMER1			13
1348c2ecf20Sopenharmony_ci#define IRQ_MMP2_TIMER2			14
1358c2ecf20Sopenharmony_ci#define IRQ_MMP2_TIMER3			15
1368c2ecf20Sopenharmony_ci#define IRQ_MMP2_RIPC			16
1378c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI_MUX		17	/* TWSI2 ~ TWSI6 */
1388c2ecf20Sopenharmony_ci#define IRQ_MMP2_HDMI			19
1398c2ecf20Sopenharmony_ci#define IRQ_MMP2_SSP3			20
1408c2ecf20Sopenharmony_ci#define IRQ_MMP2_SSP4			21
1418c2ecf20Sopenharmony_ci#define IRQ_MMP2_USB_HS1		22
1428c2ecf20Sopenharmony_ci#define IRQ_MMP2_USB_HS2		23
1438c2ecf20Sopenharmony_ci#define IRQ_MMP2_UART3			24
1448c2ecf20Sopenharmony_ci#define IRQ_MMP2_UART1			27
1458c2ecf20Sopenharmony_ci#define IRQ_MMP2_UART2			28
1468c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_DSI		29
1478c2ecf20Sopenharmony_ci#define IRQ_MMP2_CI2			30
1488c2ecf20Sopenharmony_ci#define IRQ_MMP2_PMU_TIMER1		31
1498c2ecf20Sopenharmony_ci#define IRQ_MMP2_PMU_TIMER2		32
1508c2ecf20Sopenharmony_ci#define IRQ_MMP2_PMU_TIMER3		33
1518c2ecf20Sopenharmony_ci#define IRQ_MMP2_USB_FS			34
1528c2ecf20Sopenharmony_ci#define IRQ_MMP2_MISC_MUX		35
1538c2ecf20Sopenharmony_ci#define IRQ_MMP2_WDT1			36
1548c2ecf20Sopenharmony_ci#define IRQ_MMP2_NAND_DMA		37
1558c2ecf20Sopenharmony_ci#define IRQ_MMP2_USIM			38
1568c2ecf20Sopenharmony_ci#define IRQ_MMP2_MMC			39
1578c2ecf20Sopenharmony_ci#define IRQ_MMP2_WTM			40
1588c2ecf20Sopenharmony_ci#define IRQ_MMP2_LCD			41
1598c2ecf20Sopenharmony_ci#define IRQ_MMP2_CI			42
1608c2ecf20Sopenharmony_ci#define IRQ_MMP2_IRE			43
1618c2ecf20Sopenharmony_ci#define IRQ_MMP2_USB_OTG		44
1628c2ecf20Sopenharmony_ci#define IRQ_MMP2_NAND			45
1638c2ecf20Sopenharmony_ci#define IRQ_MMP2_UART4			46
1648c2ecf20Sopenharmony_ci#define IRQ_MMP2_DMA_FIQ		47
1658c2ecf20Sopenharmony_ci#define IRQ_MMP2_DMA_RIQ		48
1668c2ecf20Sopenharmony_ci#define IRQ_MMP2_GPIO			49
1678c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_HSI1_MUX		51
1688c2ecf20Sopenharmony_ci#define IRQ_MMP2_MMC2			52
1698c2ecf20Sopenharmony_ci#define IRQ_MMP2_MMC3			53
1708c2ecf20Sopenharmony_ci#define IRQ_MMP2_MMC4			54
1718c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_HSI0_MUX		55
1728c2ecf20Sopenharmony_ci#define IRQ_MMP2_MSP			58
1738c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_SLIM_DMA		59
1748c2ecf20Sopenharmony_ci#define IRQ_MMP2_PJ4_FREQ_CHG		60
1758c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_SLIM		62
1768c2ecf20Sopenharmony_ci#define IRQ_MMP2_SM			63
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci#define IRQ_MMP2_MUX_BASE		64
1798c2ecf20Sopenharmony_ci
1808c2ecf20Sopenharmony_ci/* secondary interrupt of INT #4 */
1818c2ecf20Sopenharmony_ci#define IRQ_MMP2_PMIC_BASE		(IRQ_MMP2_MUX_BASE)
1828c2ecf20Sopenharmony_ci#define IRQ_MMP2_CHARGER		(IRQ_MMP2_PMIC_BASE + 0)
1838c2ecf20Sopenharmony_ci#define IRQ_MMP2_PMIC			(IRQ_MMP2_PMIC_BASE + 1)
1848c2ecf20Sopenharmony_ci
1858c2ecf20Sopenharmony_ci/* secondary interrupt of INT #5 */
1868c2ecf20Sopenharmony_ci#define IRQ_MMP2_RTC_BASE		(IRQ_MMP2_PMIC_BASE + 2)
1878c2ecf20Sopenharmony_ci#define IRQ_MMP2_RTC_ALARM		(IRQ_MMP2_RTC_BASE + 0)
1888c2ecf20Sopenharmony_ci#define IRQ_MMP2_RTC			(IRQ_MMP2_RTC_BASE + 1)
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_ci/* secondary interrupt of INT #9 */
1918c2ecf20Sopenharmony_ci#define IRQ_MMP2_KEYPAD_BASE		(IRQ_MMP2_RTC_BASE + 2)
1928c2ecf20Sopenharmony_ci#define IRQ_MMP2_KPC			(IRQ_MMP2_KEYPAD_BASE + 0)
1938c2ecf20Sopenharmony_ci#define IRQ_MMP2_ROTORY			(IRQ_MMP2_KEYPAD_BASE + 1)
1948c2ecf20Sopenharmony_ci#define IRQ_MMP2_TBALL			(IRQ_MMP2_KEYPAD_BASE + 2)
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci/* secondary interrupt of INT #17 */
1978c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI_BASE		(IRQ_MMP2_KEYPAD_BASE + 3)
1988c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI2			(IRQ_MMP2_TWSI_BASE + 0)
1998c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI3			(IRQ_MMP2_TWSI_BASE + 1)
2008c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI4			(IRQ_MMP2_TWSI_BASE + 2)
2018c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI5			(IRQ_MMP2_TWSI_BASE + 3)
2028c2ecf20Sopenharmony_ci#define IRQ_MMP2_TWSI6			(IRQ_MMP2_TWSI_BASE + 4)
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci/* secondary interrupt of INT #35 */
2058c2ecf20Sopenharmony_ci#define IRQ_MMP2_MISC_BASE		(IRQ_MMP2_TWSI_BASE + 5)
2068c2ecf20Sopenharmony_ci#define IRQ_MMP2_PERF			(IRQ_MMP2_MISC_BASE + 0)
2078c2ecf20Sopenharmony_ci#define IRQ_MMP2_L2_PA_ECC		(IRQ_MMP2_MISC_BASE + 1)
2088c2ecf20Sopenharmony_ci#define IRQ_MMP2_L2_ECC			(IRQ_MMP2_MISC_BASE + 2)
2098c2ecf20Sopenharmony_ci#define IRQ_MMP2_L2_UECC		(IRQ_MMP2_MISC_BASE + 3)
2108c2ecf20Sopenharmony_ci#define IRQ_MMP2_DDR			(IRQ_MMP2_MISC_BASE + 4)
2118c2ecf20Sopenharmony_ci#define IRQ_MMP2_FAB0_TIMEOUT		(IRQ_MMP2_MISC_BASE + 5)
2128c2ecf20Sopenharmony_ci#define IRQ_MMP2_FAB1_TIMEOUT		(IRQ_MMP2_MISC_BASE + 6)
2138c2ecf20Sopenharmony_ci#define IRQ_MMP2_FAB2_TIMEOUT		(IRQ_MMP2_MISC_BASE + 7)
2148c2ecf20Sopenharmony_ci#define IRQ_MMP2_THERMAL		(IRQ_MMP2_MISC_BASE + 9)
2158c2ecf20Sopenharmony_ci#define IRQ_MMP2_MAIN_PMU		(IRQ_MMP2_MISC_BASE + 10)
2168c2ecf20Sopenharmony_ci#define IRQ_MMP2_WDT2			(IRQ_MMP2_MISC_BASE + 11)
2178c2ecf20Sopenharmony_ci#define IRQ_MMP2_CORESIGHT		(IRQ_MMP2_MISC_BASE + 12)
2188c2ecf20Sopenharmony_ci#define IRQ_MMP2_COMMTX			(IRQ_MMP2_MISC_BASE + 13)
2198c2ecf20Sopenharmony_ci#define IRQ_MMP2_COMMRX			(IRQ_MMP2_MISC_BASE + 14)
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci/* secondary interrupt of INT #51 */
2228c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_HSI1_BASE		(IRQ_MMP2_MISC_BASE + 15)
2238c2ecf20Sopenharmony_ci#define IRQ_MMP2_HSI1_CAWAKE		(IRQ_MMP2_MIPI_HSI1_BASE + 0)
2248c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_HSI_INT1		(IRQ_MMP2_MIPI_HSI1_BASE + 1)
2258c2ecf20Sopenharmony_ci
2268c2ecf20Sopenharmony_ci/* secondary interrupt of INT #55 */
2278c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_HSI0_BASE		(IRQ_MMP2_MIPI_HSI1_BASE + 2)
2288c2ecf20Sopenharmony_ci#define IRQ_MMP2_HSI0_CAWAKE		(IRQ_MMP2_MIPI_HSI0_BASE + 0)
2298c2ecf20Sopenharmony_ci#define IRQ_MMP2_MIPI_HSI_INT0		(IRQ_MMP2_MIPI_HSI0_BASE + 1)
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci#define IRQ_MMP2_MUX_END		(IRQ_MMP2_MIPI_HSI0_BASE + 2)
2328c2ecf20Sopenharmony_ci
2338c2ecf20Sopenharmony_ci#define IRQ_GPIO_START			128
2348c2ecf20Sopenharmony_ci#define MMP_NR_BUILTIN_GPIO		192
2358c2ecf20Sopenharmony_ci#define MMP_GPIO_TO_IRQ(gpio)		(IRQ_GPIO_START + (gpio))
2368c2ecf20Sopenharmony_ci
2378c2ecf20Sopenharmony_ci#define IRQ_BOARD_START			(IRQ_GPIO_START + MMP_NR_BUILTIN_GPIO)
2388c2ecf20Sopenharmony_ci#define MMP_NR_IRQS			IRQ_BOARD_START
2398c2ecf20Sopenharmony_ci
2408c2ecf20Sopenharmony_ci#endif /* __ASM_MACH_IRQS_H */
241