5296b56d1b
i.MX3x SoCs contain an Image Processing Unit, consisting of a Control Module (CM), Display Interface (DI), Synchronous Display Controller (SDC), Asynchronous Display Controller (ADC), Image Converter (IC), Post-Filter (PF), Camera Sensor Interface (CSI), and an Image DMA Controller (IDMAC). CM contains, among other blocks, an Interrupt Generator (IG) and a Clock and Reset Control Unit (CRCU). This driver serves IDMAC and IG. They are supported over dmaengine and irq-chip APIs respectively. IDMAC is a specialised DMA controller, its DMA channels cannot be used for general-purpose operations, even though it might be possible to configure a memory-to-memory channel for memcpy operation. This driver will not work with generic dmaengine clients, clients, wishing to use it must use respective wrapper structures, they also must specify which channels they require, as channels are hard-wired to specific IPU functions. Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Guennadi Liakhovetski <lg@denx.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
/*
|
|
* Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
|
|
*/
|
|
|
|
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __ASM_ARCH_MXC_IRQS_H__
|
|
#define __ASM_ARCH_MXC_IRQS_H__
|
|
|
|
/*
|
|
* So far all i.MX SoCs have 64 internal interrupts
|
|
*/
|
|
#define MXC_INTERNAL_IRQS 64
|
|
|
|
#define MXC_GPIO_IRQ_START MXC_INTERNAL_IRQS
|
|
|
|
#if defined CONFIG_ARCH_MX1
|
|
#define MXC_GPIO_IRQS (32 * 4)
|
|
#elif defined CONFIG_ARCH_MX2
|
|
#define MXC_GPIO_IRQS (32 * 6)
|
|
#elif defined CONFIG_ARCH_MX3
|
|
#define MXC_GPIO_IRQS (32 * 3)
|
|
#endif
|
|
|
|
/*
|
|
* The next 16 interrupts are for board specific purposes. Since
|
|
* the kernel can only run on one machine at a time, we can re-use
|
|
* these. If you need more, increase MXC_BOARD_IRQS, but keep it
|
|
* within sensible limits.
|
|
*/
|
|
#define MXC_BOARD_IRQ_START (MXC_INTERNAL_IRQS + MXC_GPIO_IRQS)
|
|
#define MXC_BOARD_IRQS 16
|
|
|
|
#define MXC_IPU_IRQ_START (MXC_BOARD_IRQ_START + MXC_BOARD_IRQS)
|
|
|
|
#ifdef CONFIG_MX3_IPU_IRQS
|
|
#define MX3_IPU_IRQS CONFIG_MX3_IPU_IRQS
|
|
#else
|
|
#define MX3_IPU_IRQS 0
|
|
#endif
|
|
|
|
#define NR_IRQS (MXC_IPU_IRQ_START + MX3_IPU_IRQS)
|
|
|
|
extern void imx_irq_set_priority(unsigned char irq, unsigned char prio);
|
|
|
|
/* all normal IRQs can be FIQs */
|
|
#define FIQ_START 0
|
|
/* switch betwean IRQ and FIQ */
|
|
extern int mxc_set_irq_fiq(unsigned int irq, unsigned int type);
|
|
|
|
#endif /* __ASM_ARCH_MXC_IRQS_H__ */
|