Path: blob/master/arch/arm/mach-msm/include/mach/sirc.h
17621 views
/* Copyright (c) 2008-2009, Code Aurora Forum. All rights reserved.1*2* This program is free software; you can redistribute it and/or modify3* it under the terms of the GNU General Public License version 2 and4* only version 2 as published by the Free Software Foundation.5*6* This program is distributed in the hope that it will be useful,7* but WITHOUT ANY WARRANTY; without even the implied warranty of8* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9* GNU General Public License for more details.10*/1112#ifndef __ASM_ARCH_MSM_SIRC_H13#define __ASM_ARCH_MSM_SIRC_H1415struct sirc_regs_t {16void *int_enable;17void *int_enable_clear;18void *int_enable_set;19void *int_type;20void *int_polarity;21void *int_clear;22};2324struct sirc_cascade_regs {25void *int_status;26unsigned int cascade_irq;27};2829void msm_init_sirc(void);30void msm_sirc_enter_sleep(void);31void msm_sirc_exit_sleep(void);3233#if defined(CONFIG_ARCH_MSM_SCORPION)3435#include <mach/msm_iomap.h>3637/*38* Secondary interrupt controller interrupts39*/4041#define FIRST_SIRC_IRQ (NR_MSM_IRQS + NR_GPIO_IRQS)4243#define INT_UART1 (FIRST_SIRC_IRQ + 0)44#define INT_UART2 (FIRST_SIRC_IRQ + 1)45#define INT_UART3 (FIRST_SIRC_IRQ + 2)46#define INT_UART1_RX (FIRST_SIRC_IRQ + 3)47#define INT_UART2_RX (FIRST_SIRC_IRQ + 4)48#define INT_UART3_RX (FIRST_SIRC_IRQ + 5)49#define INT_SPI_INPUT (FIRST_SIRC_IRQ + 6)50#define INT_SPI_OUTPUT (FIRST_SIRC_IRQ + 7)51#define INT_SPI_ERROR (FIRST_SIRC_IRQ + 8)52#define INT_GPIO_GROUP1 (FIRST_SIRC_IRQ + 9)53#define INT_GPIO_GROUP2 (FIRST_SIRC_IRQ + 10)54#define INT_GPIO_GROUP1_SECURE (FIRST_SIRC_IRQ + 11)55#define INT_GPIO_GROUP2_SECURE (FIRST_SIRC_IRQ + 12)56#define INT_AVS_SVIC (FIRST_SIRC_IRQ + 13)57#define INT_AVS_REQ_UP (FIRST_SIRC_IRQ + 14)58#define INT_AVS_REQ_DOWN (FIRST_SIRC_IRQ + 15)59#define INT_PBUS_ERR (FIRST_SIRC_IRQ + 16)60#define INT_AXI_ERR (FIRST_SIRC_IRQ + 17)61#define INT_SMI_ERR (FIRST_SIRC_IRQ + 18)62#define INT_EBI1_ERR (FIRST_SIRC_IRQ + 19)63#define INT_IMEM_ERR (FIRST_SIRC_IRQ + 20)64#define INT_TEMP_SENSOR (FIRST_SIRC_IRQ + 21)65#define INT_TV_ENC (FIRST_SIRC_IRQ + 22)66#define INT_GRP2D (FIRST_SIRC_IRQ + 23)67#define INT_GSBI_QUP (FIRST_SIRC_IRQ + 24)68#define INT_SC_ACG (FIRST_SIRC_IRQ + 25)69#define INT_WDT0 (FIRST_SIRC_IRQ + 26)70#define INT_WDT1 (FIRST_SIRC_IRQ + 27)7172#if defined(CONFIG_MSM_SOC_REV_A)73#define NR_SIRC_IRQS 2874#define SIRC_MASK 0x0FFFFFFF75#else76#define NR_SIRC_IRQS 2377#define SIRC_MASK 0x007FFFFF78#endif7980#define LAST_SIRC_IRQ (FIRST_SIRC_IRQ + NR_SIRC_IRQS - 1)8182#define SPSS_SIRC_INT_SELECT (MSM_SIRC_BASE + 0x00)83#define SPSS_SIRC_INT_ENABLE (MSM_SIRC_BASE + 0x04)84#define SPSS_SIRC_INT_ENABLE_CLEAR (MSM_SIRC_BASE + 0x08)85#define SPSS_SIRC_INT_ENABLE_SET (MSM_SIRC_BASE + 0x0C)86#define SPSS_SIRC_INT_TYPE (MSM_SIRC_BASE + 0x10)87#define SPSS_SIRC_INT_POLARITY (MSM_SIRC_BASE + 0x14)88#define SPSS_SIRC_SECURITY (MSM_SIRC_BASE + 0x18)89#define SPSS_SIRC_IRQ_STATUS (MSM_SIRC_BASE + 0x1C)90#define SPSS_SIRC_IRQ1_STATUS (MSM_SIRC_BASE + 0x20)91#define SPSS_SIRC_RAW_STATUS (MSM_SIRC_BASE + 0x24)92#define SPSS_SIRC_INT_CLEAR (MSM_SIRC_BASE + 0x28)93#define SPSS_SIRC_SOFT_INT (MSM_SIRC_BASE + 0x2C)9495#endif9697#endif9899100