2009-11-28 15:10:40 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2008 STMicroelectronics
|
|
|
|
* Copyright (C) 2009 ST-Ericsson.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
#ifndef ASM_ARCH_IRQS_H
|
|
|
|
#define ASM_ARCH_IRQS_H
|
|
|
|
|
2011-03-30 03:59:51 +08:00
|
|
|
#define IRQ_LOCALTIMER 29
|
|
|
|
#define IRQ_LOCALWDOG 30
|
2009-11-28 15:10:40 +08:00
|
|
|
|
|
|
|
/* Shared Peripheral Interrupt (SHPI) */
|
|
|
|
#define IRQ_SHPI_START 32
|
|
|
|
|
2011-03-30 03:59:51 +08:00
|
|
|
/*
|
|
|
|
* MTU0 preserved for now until plat-nomadik is taught not to use it. Don't
|
|
|
|
* add any other IRQs here, use the irqs-dbx500.h files.
|
|
|
|
*/
|
2009-11-28 15:10:40 +08:00
|
|
|
#define IRQ_MTU0 (IRQ_SHPI_START + 4)
|
|
|
|
|
2012-01-23 18:54:44 +08:00
|
|
|
#define DBX500_NR_INTERNAL_IRQS 166
|
2010-03-03 11:54:37 +08:00
|
|
|
|
|
|
|
/* After chip-specific IRQ numbers we have the GPIO ones */
|
|
|
|
#define NOMADIK_NR_GPIO 288
|
2010-07-26 18:09:27 +08:00
|
|
|
#define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + DBX500_NR_INTERNAL_IRQS)
|
|
|
|
#define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - DBX500_NR_INTERNAL_IRQS)
|
2011-03-30 03:59:51 +08:00
|
|
|
#define IRQ_GPIO_END NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO)
|
|
|
|
|
|
|
|
#define IRQ_SOC_START IRQ_GPIO_END
|
|
|
|
/* This will be overridden by SoC-specific irq headers */
|
|
|
|
#define IRQ_SOC_END IRQ_SOC_START
|
2009-11-28 15:10:40 +08:00
|
|
|
|
2013-03-22 05:51:08 +08:00
|
|
|
#include "irqs-db8500.h"
|
2011-03-30 03:59:51 +08:00
|
|
|
|
|
|
|
#define IRQ_BOARD_START IRQ_SOC_END
|
2010-07-26 18:09:27 +08:00
|
|
|
/* This will be overridden by board-specific irq headers */
|
2011-03-30 03:59:51 +08:00
|
|
|
#define IRQ_BOARD_END IRQ_BOARD_START
|
2010-07-26 18:09:27 +08:00
|
|
|
|
2012-03-01 01:15:20 +08:00
|
|
|
#ifdef CONFIG_MACH_MOP500
|
2013-03-22 05:51:08 +08:00
|
|
|
#include "irqs-board-mop500.h"
|
2010-07-26 18:12:15 +08:00
|
|
|
#endif
|
|
|
|
|
2012-10-18 17:08:05 +08:00
|
|
|
#define UX500_NR_IRQS IRQ_BOARD_END
|
2010-07-26 18:09:27 +08:00
|
|
|
|
|
|
|
#endif /* ASM_ARCH_IRQS_H */
|