rtuDataPreprocessingThread.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. * linux/arch/arm/mach-omap2/io.c
  3. *
  4. * OMAP2 I/O mapping code
  5. *
  6. * Copyright (C) 2005 Nokia Corporation
  7. * Copyright (C) 2007-2009 Texas Instruments
  8. *
  9. * Author:
  10. * Juha Yrjola <juha.yrjola@nokia.com>
  11. * Syed Khasim <x0khasim@ti.com>
  12. *
  13. * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
  14. *
  15. * This program is free software; you can redistribute it and/or modify
  16. * it under the terms of the GNU General Public License version 2 as
  17. * published by the Free Software Foundation.
  18. */
  19. #include <linux/module.h>
  20. #include <linux/kernel.h>
  21. #include <linux/init.h>
  22. #include <linux/io.h>
  23. #include <linux/clk.h>
  24. #include <asm/tlb.h>
  25. #include <asm/mach/map.h>
  26. #include <linux/omap-dma.h>
  27. #include "omap_hwmod.h"
  28. #include "soc.h"
  29. #include "iomap.h"
  30. #include "voltage.h"
  31. #include "powerdomain.h"
  32. #include "clockdomain.h"
  33. #include "common.h"
  34. #include "clock.h"
  35. #include "clock2xxx.h"
  36. #include "clock3xxx.h"
  37. #include "clock44xx.h"
  38. #include "omap-pm.h"
  39. #include "sdrc.h"
  40. #include "control.h"
  41. #include "serial.h"
  42. #include "sram.h"
  43. #include "cm2xxx.h"
  44. #include "cm3xxx.h"
  45. #include "prm.h"
  46. #include "cm.h"
  47. #include "prcm_mpu44xx.h"
  48. #include "prminst44xx.h"
  49. #include "cminst44xx.h"
  50. #include "prm2xxx.h"
  51. #include "prm3xxx.h"
  52. #include "prm44xx.h"
  53. /*
  54. * omap_clk_init: points to a function that does the SoC-specific
  55. * clock initializations
  56. */
  57. int (*omap_clk_init)(void);
  58. /*
  59. * The machine specific code may provide the extra mapping besides the
  60. * default mapping provided here.
  61. */
  62. #if defined(CONFIG_SOC_OMAP2420) || defined(CONFIG_SOC_OMAP2430)
  63. static struct map_desc omap24xx_io_desc[] __initdata = {
  64. {
  65. .virtual = L3_24XX_VIRT,
  66. .pfn = __phys_to_pfn(L3_24XX_PHYS),
  67. .length = L3_24XX_SIZE,
  68. .type = MT_DEVICE
  69. },
  70. {
  71. .virtual = L4_24XX_VIRT,
  72. .pfn = __phys_to_pfn(L4_24XX_PHYS),
  73. .length = L4_24XX_SIZE,
  74. .type = MT_DEVICE
  75. },
  76. };
  77. #ifdef CONFIG_SOC_OMAP2420
  78. static struct map_desc omap242x_io_desc[] __initdata = {
  79. {
  80. .virtual = DSP_MEM_2420_VIRT,
  81. .pfn = __phys_to_pfn(DSP_MEM_2420_PHYS),
  82. .length = DSP_MEM_2420_SIZE,
  83. .type = MT_DEVICE
  84. },
  85. {
  86. .virtual = DSP_IPI_2420_VIRT,
  87. .pfn = __phys_to_pfn(DSP_IPI_2420_PHYS),
  88. .length = DSP_IPI_2420_SIZE,
  89. .type = MT_DEVICE
  90. },
  91. {
  92. .virtual = DSP_MMU_2420_VIRT,
  93. .pfn = __phys_to_pfn(DSP_MMU_2420_PHYS),
  94. .length = DSP_MMU_2420_SIZE,
  95. .type = MT_DEVICE
  96. },
  97. };
  98. #endif
  99. #ifdef CONFIG_SOC_OMAP2430
  100. static struct map_desc omap243x_io_desc[] __initdata = {
  101. {
  102. .virtual = L4_WK_243X_VIRT,
  103. .pfn = __phys_to_pfn(L4_WK_243X_PHYS),
  104. .length = L4_WK_243X_SIZE,
  105. .type = MT_DEVICE
  106. },
  107. {
  108. .virtual = OMAP243X_GPMC_VIRT,
  109. .pfn = __phys_to_pfn(OMAP243X_GPMC_PHYS),
  110. .length = OMAP243X_GPMC_SIZE,
  111. .type = MT_DEVICE
  112. },
  113. {
  114. .virtual = OMAP243X_SDRC_VIRT,
  115. .pfn = __phys_to_pfn(OMAP243X_SDRC_PHYS),
  116. .length = OMAP243X_SDRC_SIZE,
  117. .type = MT_DEVICE
  118. },
  119. {
  120. .virtual = OMAP243X_SMS_VIRT,
  121. .pfn = __phys_to_pfn(OMAP243X_SMS_PHYS),
  122. .length = OMAP243X_SMS_SIZE,
  123. .type = MT_DEVICE
  124. },
  125. };
  126. #endif
  127. #endif
  128. #ifdef CONFIG_ARCH_OMAP3
  129. static struct map_desc omap34xx_io_desc[] __initdata = {
  130. {
  131. .virtual = L3_34XX_VIRT,
  132. .pfn = __phys_to_pfn(L3_34XX_PHYS),
  133. .length = L3_34XX_SIZE,
  134. .type = MT_DEVICE
  135. },
  136. {
  137. .virtual = L4_34XX_VIRT,
  138. .pfn = __phys_to_pfn(L4_34XX_PHYS),
  139. .length = L4_34XX_SIZE,
  140. .type = MT_DEVICE
  141. },
  142. {
  143. .virtual = OMAP34XX_GPMC_VIRT,
  144. .pfn = __phys_to_pfn(OMAP34XX_GPMC_PHYS),
  145. .length = OMAP34XX_GPMC_SIZE,
  146. .type = MT_DEVICE
  147. },
  148. {
  149. .virtual = OMAP343X_SMS_VIRT,
  150. .pfn = __phys_to_pfn(OMAP343X_SMS_PHYS),
  151. .length = OMAP343X_SMS_SIZE,
  152. .type = MT_DEVICE
  153. },
  154. {