rtuDataPreprocessingThread.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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