xref: /OK3568_Linux_fs/kernel/arch/arm/mach-omap1/ams-delta-fiq.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun /*
4*4882a593Smuzhiyun  * arch/arm/mach-omap1/ams-delta-fiq.h
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Taken from the original Amstrad modifications to fiq.h
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Copyright (c) 2004 Amstrad Plc
9*4882a593Smuzhiyun  * Copyright (c) 2006 Matt Callow
10*4882a593Smuzhiyun  * Copyright (c) 2010 Janusz Krzysztofik
11*4882a593Smuzhiyun  *
12*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or modify
13*4882a593Smuzhiyun  * it under the terms of the GNU General Public License version 2 as
14*4882a593Smuzhiyun  * published by the Free Software Foundation.
15*4882a593Smuzhiyun  */
16*4882a593Smuzhiyun #ifndef __AMS_DELTA_FIQ_H
17*4882a593Smuzhiyun #define __AMS_DELTA_FIQ_H
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #include <mach/irqs.h>
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun /*
22*4882a593Smuzhiyun  * Interrupt number used for passing control from FIQ to IRQ.
23*4882a593Smuzhiyun  * IRQ12, described as reserved, has been selected.
24*4882a593Smuzhiyun  */
25*4882a593Smuzhiyun #define INT_DEFERRED_FIQ	INT_1510_RES12
26*4882a593Smuzhiyun /*
27*4882a593Smuzhiyun  * Base address of an interrupt handler that the INT_DEFERRED_FIQ belongs to.
28*4882a593Smuzhiyun  */
29*4882a593Smuzhiyun #if (INT_DEFERRED_FIQ < IH2_BASE)
30*4882a593Smuzhiyun #define DEFERRED_FIQ_IH_BASE	OMAP_IH1_BASE
31*4882a593Smuzhiyun #else
32*4882a593Smuzhiyun #define DEFERRED_FIQ_IH_BASE	OMAP_IH2_BASE
33*4882a593Smuzhiyun #endif
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun #ifndef __ASSEMBLER__
36*4882a593Smuzhiyun extern unsigned char qwerty_fiqin_start, qwerty_fiqin_end;
37*4882a593Smuzhiyun 
38*4882a593Smuzhiyun extern void __init ams_delta_init_fiq(struct gpio_chip *chip,
39*4882a593Smuzhiyun 				      struct platform_device *pdev);
40*4882a593Smuzhiyun #endif
41*4882a593Smuzhiyun 
42*4882a593Smuzhiyun #endif
43