162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __ASM_RC32434_IRQ_H 362306a36Sopenharmony_ci#define __ASM_RC32434_IRQ_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#define NR_IRQS 256 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#include <asm/mach-generic/irq.h> 862306a36Sopenharmony_ci#include <asm/mach-rc32434/rb.h> 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci/* Interrupt Controller */ 1162306a36Sopenharmony_ci#define IC_GROUP0_PEND (REGBASE + 0x38000) 1262306a36Sopenharmony_ci#define IC_GROUP0_MASK (REGBASE + 0x38008) 1362306a36Sopenharmony_ci#define IC_GROUP_OFFSET 0x0C 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#define NUM_INTR_GROUPS 5 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci/* 16550 UARTs */ 1862306a36Sopenharmony_ci#define GROUP0_IRQ_BASE 8 /* GRP2 IRQ numbers start here */ 1962306a36Sopenharmony_ci /* GRP3 IRQ numbers start here */ 2062306a36Sopenharmony_ci#define GROUP1_IRQ_BASE (GROUP0_IRQ_BASE + 32) 2162306a36Sopenharmony_ci /* GRP4 IRQ numbers start here */ 2262306a36Sopenharmony_ci#define GROUP2_IRQ_BASE (GROUP1_IRQ_BASE + 32) 2362306a36Sopenharmony_ci /* GRP5 IRQ numbers start here */ 2462306a36Sopenharmony_ci#define GROUP3_IRQ_BASE (GROUP2_IRQ_BASE + 32) 2562306a36Sopenharmony_ci#define GROUP4_IRQ_BASE (GROUP3_IRQ_BASE + 32) 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci#define UART0_IRQ (GROUP3_IRQ_BASE + 0) 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci#define ETH0_DMA_RX_IRQ (GROUP1_IRQ_BASE + 0) 3062306a36Sopenharmony_ci#define ETH0_DMA_TX_IRQ (GROUP1_IRQ_BASE + 1) 3162306a36Sopenharmony_ci#define ETH0_RX_OVR_IRQ (GROUP3_IRQ_BASE + 9) 3262306a36Sopenharmony_ci#define ETH0_TX_UND_IRQ (GROUP3_IRQ_BASE + 10) 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#define GPIO_MAPPED_IRQ_BASE GROUP4_IRQ_BASE 3562306a36Sopenharmony_ci#define GPIO_MAPPED_IRQ_GROUP 4 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci#endif /* __ASM_RC32434_IRQ_H */ 38