162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci/*
462306a36Sopenharmony_ci * arch/arm/mach-omap1/ams-delta-fiq.h
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Taken from the original Amstrad modifications to fiq.h
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci * Copyright (c) 2004 Amstrad Plc
962306a36Sopenharmony_ci * Copyright (c) 2006 Matt Callow
1062306a36Sopenharmony_ci * Copyright (c) 2010 Janusz Krzysztofik
1162306a36Sopenharmony_ci *
1262306a36Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
1362306a36Sopenharmony_ci * it under the terms of the GNU General Public License version 2 as
1462306a36Sopenharmony_ci * published by the Free Software Foundation.
1562306a36Sopenharmony_ci */
1662306a36Sopenharmony_ci#ifndef __AMS_DELTA_FIQ_H
1762306a36Sopenharmony_ci#define __AMS_DELTA_FIQ_H
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#include "irqs.h"
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci/*
2262306a36Sopenharmony_ci * Interrupt number used for passing control from FIQ to IRQ.
2362306a36Sopenharmony_ci * IRQ12, described as reserved, has been selected.
2462306a36Sopenharmony_ci */
2562306a36Sopenharmony_ci#define INT_DEFERRED_FIQ	INT_1510_RES12
2662306a36Sopenharmony_ci/*
2762306a36Sopenharmony_ci * Base address of an interrupt handler that the INT_DEFERRED_FIQ belongs to.
2862306a36Sopenharmony_ci */
2962306a36Sopenharmony_ci#if (INT_DEFERRED_FIQ < IH2_BASE)
3062306a36Sopenharmony_ci#define DEFERRED_FIQ_IH_BASE	OMAP_IH1_BASE
3162306a36Sopenharmony_ci#else
3262306a36Sopenharmony_ci#define DEFERRED_FIQ_IH_BASE	OMAP_IH2_BASE
3362306a36Sopenharmony_ci#endif
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#ifndef __ASSEMBLER__
3662306a36Sopenharmony_ciextern unsigned char qwerty_fiqin_start, qwerty_fiqin_end;
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciextern void __init ams_delta_init_fiq(struct gpio_chip *chip,
3962306a36Sopenharmony_ci				      struct platform_device *pdev);
4062306a36Sopenharmony_ci#endif
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci#endif
43