| 
									
										
										
										
											2010-04-30 21:33:38 -07:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2007-11-26 04:11:43 -08:00
										 |  |  |  * Copyright (C) 2007 Google, Inc. | 
					
						
							| 
									
										
										
										
											2010-04-30 21:33:38 -07:00
										 |  |  |  * Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved. | 
					
						
							| 
									
										
										
										
											2007-11-26 04:11:43 -08:00
										 |  |  |  * Author: Brian Swetland <swetland@google.com> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This software is licensed under the terms of the GNU General Public | 
					
						
							|  |  |  |  * License version 2, as published by the Free Software Foundation, and | 
					
						
							|  |  |  |  * may be copied, distributed, and modified under those terms. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 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. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __ASM_ARCH_MSM_IRQS_H
 | 
					
						
							| 
									
										
										
										
											2008-06-09 16:24:10 -07:00
										 |  |  | #define __ASM_ARCH_MSM_IRQS_H
 | 
					
						
							| 
									
										
										
										
											2007-11-26 04:11:43 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #define MSM_IRQ_BIT(irq)     (1 << ((irq) & 31))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-05-05 06:53:23 -07:00
										 |  |  | #if defined(CONFIG_ARCH_MSM7X30)
 | 
					
						
							|  |  |  | #include "irqs-7x30.h"
 | 
					
						
							|  |  |  | #elif defined(CONFIG_ARCH_QSD8X50)
 | 
					
						
							| 
									
										
										
										
											2010-05-05 06:45:20 -07:00
										 |  |  | #include "irqs-8x50.h"
 | 
					
						
							|  |  |  | #include "sirc.h"
 | 
					
						
							| 
									
										
										
										
											2009-11-28 13:00:13 -08:00
										 |  |  | #elif defined(CONFIG_ARCH_MSM8X60)
 | 
					
						
							|  |  |  | #include "irqs-8x60.h"
 | 
					
						
							| 
									
										
										
										
											2010-12-01 19:30:35 -08:00
										 |  |  | #elif defined(CONFIG_ARCH_MSM8960)
 | 
					
						
							|  |  |  | /* TODO: Make these not generic. */ | 
					
						
							|  |  |  | #include "irqs-8960.h"
 | 
					
						
							| 
									
										
										
										
											2010-05-05 06:45:20 -07:00
										 |  |  | #elif defined(CONFIG_ARCH_MSM_ARM11)
 | 
					
						
							| 
									
										
										
										
											2010-04-30 21:33:38 -07:00
										 |  |  | #include "irqs-7x00.h"
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | #error "Unknown architecture specification"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-11-26 04:11:43 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-30 21:33:38 -07:00
										 |  |  | #define NR_IRQS (NR_MSM_IRQS + NR_GPIO_IRQS + NR_BOARD_IRQS)
 | 
					
						
							| 
									
										
										
										
											2007-11-26 04:11:43 -08:00
										 |  |  | #define MSM_GPIO_TO_INT(n) (NR_MSM_IRQS + (n))
 | 
					
						
							| 
									
										
										
										
											2010-04-30 21:33:38 -07:00
										 |  |  | #define MSM_INT_TO_REG(base, irq) (base + irq / 32)
 | 
					
						
							| 
									
										
										
										
											2007-11-26 04:11:43 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 |