ams-delta-fiq.h 1.1 KB

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