analysisDataOperation.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * linux/arch/arm/mach-versatile/core.c
  3. *
  4. * Copyright (C) 1999 - 2003 ARM Limited
  5. * Copyright (C) 2000 Deep Blue Solutions Ltd
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. #include <linux/init.h>
  22. #include <linux/device.h>
  23. #include <linux/dma-mapping.h>
  24. #include <linux/platform_device.h>
  25. #include <linux/interrupt.h>
  26. #include <linux/irqdomain.h>
  27. #include <linux/of_address.h>
  28. #include <linux/of_platform.h>
  29. #include <linux/amba/bus.h>
  30. #include <linux/amba/clcd.h>
  31. #include <linux/amba/pl061.h>
  32. #include <linux/amba/mmci.h>
  33. #include <linux/amba/pl022.h>
  34. #include <linux/io.h>
  35. #include <linux/irqchip/versatile-fpga.h>
  36. #include <linux/gfp.h>
  37. #include <linux/clkdev.h>
  38. #include <linux/mtd/physmap.h>
  39. #include <linux/bitops.h>
  40. #include <asm/irq.h>
  41. #include <asm/hardware/arm_timer.h>
  42. #include <asm/hardware/icst.h>
  43. #include <asm/hardware/vic.h>
  44. #include <asm/mach-types.h>
  45. #include <asm/mach/arch.h>
  46. #include <asm/mach/irq.h>
  47. #include <asm/mach/time.h>
  48. #include <asm/mach/map.h>
  49. #include <mach/hardware.h>
  50. #include <mach/platform.h>
  51. #include <asm/hardware/timer-sp.h>
  52. #include <plat/clcd.h>
  53. #include <plat/sched_clock.h>
  54. #include "core.h"
  55. /*
  56. * All IO addresses are mapped onto VA 0xFFFx.xxxx, where x.xxxx
  57. * is the (PA >> 12).
  58. *
  59. * Setup a VA for the Versatile Vectored Interrupt Controller.
  60. */
  61. #define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE)
  62. #define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE)
  63. /* These PIC IRQs are valid in each configuration */
  64. #define PIC_VALID_ALL BIT(SIC_INT_KMI0) | BIT(SIC_INT_KMI1) | \
  65. BIT(SIC_INT_SCI3) | BIT(SIC_INT_UART3) | \
  66. BIT(SIC_INT_CLCD) | BIT(SIC_INT_TOUCH) | \
  67. BIT(SIC_INT_KEYPAD) | BIT(SIC_INT_DoC) | \
  68. BIT(SIC_INT_USB) | BIT(SIC_INT_PCI0) | \
  69. BIT(SIC_INT_PCI1) | BIT(SIC_INT_PCI2) | \
  70. BIT(SIC_INT_PCI3)
  71. #if 1
  72. #define IRQ_MMCI0A IRQ_VICSOURCE22
  73. #define IRQ_AACI IRQ_VICSOURCE24
  74. #define IRQ_ETH IRQ_VICSOURCE25
  75. #define PIC_MASK 0xFFD00000
  76. #define PIC_VALID PIC_VALID_ALL
  77. #else
  78. #define IRQ_MMCI0A IRQ_SIC_MMCI0A