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