18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * IRQ helper macros for spear machine family 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2009-2012 ST Microelectronics 58c2ecf20Sopenharmony_ci * Rajeev Kumar <rajeev-dlh.kumar@st.com> 68c2ecf20Sopenharmony_ci * Viresh Kumar <vireshk@kernel.org> 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public 98c2ecf20Sopenharmony_ci * License version 2. This program is licensed "as is" without any 108c2ecf20Sopenharmony_ci * warranty of any kind, whether express or implied. 118c2ecf20Sopenharmony_ci */ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifndef __MACH_IRQS_H 148c2ecf20Sopenharmony_ci#define __MACH_IRQS_H 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#ifdef CONFIG_ARCH_SPEAR3XX 178c2ecf20Sopenharmony_ci#define NR_IRQS 256 188c2ecf20Sopenharmony_ci#endif 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#ifdef CONFIG_ARCH_SPEAR6XX 218c2ecf20Sopenharmony_ci/* IRQ definitions */ 228c2ecf20Sopenharmony_ci/* VIC 1 */ 238c2ecf20Sopenharmony_ci#define IRQ_VIC_END 64 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* GPIO pins virtual irqs */ 268c2ecf20Sopenharmony_ci#define VIRTUAL_IRQS 24 278c2ecf20Sopenharmony_ci#define NR_IRQS (IRQ_VIC_END + VIRTUAL_IRQS) 288c2ecf20Sopenharmony_ci#endif 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#ifdef CONFIG_ARCH_SPEAR13XX 318c2ecf20Sopenharmony_ci#define IRQ_GIC_END 160 328c2ecf20Sopenharmony_ci#define NR_IRQS IRQ_GIC_END 338c2ecf20Sopenharmony_ci#endif 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#endif /* __MACH_IRQS_H */ 36