omap_hwmod_common_data.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. * omap_hwmod_common_data.h - OMAP hwmod common macros and declarations
  3. *
  4. * Copyright (C) 2010-2011 Nokia Corporation
  5. * Copyright (C) 2010-2012 Texas Instruments, Inc.
  6. * Paul Walmsley
  7. * Benoît Cousson
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_COMMON_DATA_H
  14. #define __ARCH_ARM_MACH_OMAP2_OMAP_HWMOD_COMMON_DATA_H
  15. #include "omap_hwmod.h"
  16. #include "common.h"
  17. #include "display.h"
  18. /* Common address space across OMAP2xxx/3xxx */
  19. extern struct omap_hwmod_addr_space omap2_i2c1_addr_space[];
  20. extern struct omap_hwmod_addr_space omap2_i2c2_addr_space[];
  21. extern struct omap_hwmod_addr_space omap2_dss_addrs[];
  22. extern struct omap_hwmod_addr_space omap2_dss_dispc_addrs[];
  23. extern struct omap_hwmod_addr_space omap2_dss_rfbi_addrs[];
  24. extern struct omap_hwmod_addr_space omap2_dss_venc_addrs[];
  25. extern struct omap_hwmod_addr_space omap2_timer10_addrs[];
  26. extern struct omap_hwmod_addr_space omap2_timer11_addrs[];
  27. extern struct omap_hwmod_addr_space omap2430_mmc1_addr_space[];
  28. extern struct omap_hwmod_addr_space omap2430_mmc2_addr_space[];
  29. extern struct omap_hwmod_addr_space omap2_mcspi1_addr_space[];
  30. extern struct omap_hwmod_addr_space omap2_mcspi2_addr_space[];
  31. extern struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[];
  32. extern struct omap_hwmod_addr_space omap2_dma_system_addrs[];
  33. extern struct omap_hwmod_addr_space omap2_mcbsp1_addrs[];
  34. extern struct omap_hwmod_addr_space omap2_hdq1w_addr_space[];
  35. /* Common IP block data across OMAP2xxx */
  36. extern struct omap_gpio_dev_attr omap2xxx_gpio_dev_attr;
  37. extern struct omap_hwmod omap2xxx_l3_main_hwmod;
  38. extern struct omap_hwmod omap2xxx_l4_core_hwmod;
  39. extern struct omap_hwmod omap2xxx_l4_wkup_hwmod;
  40. extern struct omap_hwmod omap2xxx_mpu_hwmod;
  41. extern struct omap_hwmod omap2xxx_iva_hwmod;
  42. extern struct omap_hwmod omap2xxx_timer1_hwmod;
  43. extern struct omap_hwmod omap2xxx_timer2_hwmod;
  44. extern struct omap_hwmod omap2xxx_timer3_hwmod;
  45. extern struct omap_hwmod omap2xxx_timer4_hwmod;
  46. extern struct omap_hwmod omap2xxx_timer5_hwmod;
  47. extern struct omap_hwmod omap2xxx_timer6_hwmod;
  48. extern struct omap_hwmod omap2xxx_timer7_hwmod;
  49. extern struct omap_hwmod omap2xxx_timer8_hwmod;
  50. extern struct omap_hwmod omap2xxx_timer9_hwmod;
  51. extern struct omap_hwmod omap2xxx_timer10_hwmod;
  52. extern struct omap_hwmod omap2xxx_timer11_hwmod;
  53. extern struct omap_hwmod omap2xxx_timer12_hwmod;
  54. extern struct omap_hwmod omap2xxx_wd_timer2_hwmod;
  55. extern struct omap_hwmod omap2xxx_uart1_hwmod;
  56. extern struct omap_hwmod omap2xxx_uart2_hwmod;
  57. extern struct omap_hwmod omap2xxx_uart3_hwmod;
  58. extern struct omap_hwmod omap2xxx_dss_core_hwmod;
  59. extern struct omap_hwmod omap2xxx_dss_dispc_hwmod;
  60. extern struct omap_hwmod omap2xxx_dss_rfbi_hwmod;
  61. extern struct omap_hwmod omap2xxx_dss_venc_hwmod;
  62. extern struct omap_hwmod omap2xxx_gpio1_hwmod;
  63. extern struct omap_hwmod omap2xxx_gpio2_hwmod;
  64. extern struct omap_hwmod omap2xxx_gpio3_hwmod;
  65. extern struct omap_hwmod omap2xxx_gpio4_hwmod;
  66. extern struct omap_hwmod omap2xxx_mcspi1_hwmod;
  67. extern struct omap_hwmod omap2xxx_mcspi2_hwmod;
  68. extern struct omap_hwmod omap2xxx_counter_32k_hwmod;
  69. extern struct omap_hwmod omap2xxx_gpmc_hwmod;
  70. extern struct omap_hwmod omap2xxx_rng_hwmod;
  71. extern struct omap_hwmod omap2xxx_sham_hwmod;
  72. extern struct omap_hwmod omap2xxx_aes_hwmod;
  73. /* Common interface data across OMAP2xxx */
  74. extern struct omap_hwmod_ocp_if omap2xxx_l3_main__l4_core;
  75. extern struct omap_hwmod_ocp_if omap2xxx_mpu__l3_main;
  76. extern struct omap_hwmod_ocp_if omap2xxx_dss__l3;
  77. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__l4_wkup;
  78. extern struct omap_hwmod_ocp_if omap2_l4_core__uart1;
  79. extern struct omap_hwmod_ocp_if omap2_l4_core__uart2;
  80. extern struct omap_hwmod_ocp_if omap2_l4_core__uart3;
  81. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi1;
  82. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__mcspi2;
  83. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer2;
  84. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer3;
  85. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer4;
  86. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer5;
  87. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer6;
  88. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer7;
  89. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer8;
  90. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer9;
  91. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer10;
  92. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer11;
  93. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__timer12;
  94. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss;
  95. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_dispc;
  96. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_rfbi;
  97. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__dss_venc;
  98. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__rng;
  99. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__sham;
  100. extern struct omap_hwmod_ocp_if omap2xxx_l4_core__aes;
  101. /* Common IP block data */
  102. extern struct omap_hwmod_dma_info omap2_uart1_sdma_reqs[];
  103. extern struct omap_hwmod_dma_info omap2_uart2_sdma_reqs[];
  104. extern struct omap_hwmod_dma_info omap2_uart3_sdma_reqs[];
  105. extern struct omap_hwmod_dma_info omap2_i2c1_sdma_reqs[];
  106. extern struct omap_hwmod_dma_info omap2_i2c2_sdma_reqs[];
  107. extern struct omap_hwmod_dma_info omap2_mcspi1_sdma_reqs[];
  108. extern struct omap_hwmod_dma_info omap2_mcspi2_sdma_reqs[];
  109. extern struct omap_hwmod_dma_info omap2_mcbsp1_sdma_reqs[];
  110. extern struct omap_hwmod_dma_info omap2_mcbsp2_sdma_reqs[];
  111. /* Common IP block data on OMAP2430/OMAP3 */
  112. extern struct omap_hwmod_dma_info omap2_mcbsp3_sdma_reqs[];
  113. /* Common IP block data across OMAP2/3 */
  114. extern struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[];
  115. extern struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[];
  116. extern struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[];
  117. extern struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[];
  118. extern struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[];
  119. extern struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[];
  120. extern struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[];
  121. extern struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[];
  122. extern struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[];
  123. extern struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[];
  124. extern struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[];
  125. extern struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[];
  126. extern struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[];
  127. extern struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[];
  128. extern struct omap_hwmod_irq_info omap2_dispc_irqs[];
  129. extern struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[];
  130. extern struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[];
  131. extern struct omap_hwmod_irq_info omap2_gpio1_irqs[];
  132. extern struct omap_hwmod_irq_info omap2_gpio2_irqs[];
  133. extern struct omap_hwmod_irq_info omap2_gpio3_irqs[];
  134. extern struct omap_hwmod_irq_info omap2_gpio4_irqs[];
  135. extern struct omap_hwmod_irq_info omap2_dma_system_irqs[];
  136. extern struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[];
  137. extern struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[];
  138. extern struct omap_hwmod_addr_space omap2xxx_timer12_addrs[];
  139. extern struct omap_hwmod_irq_info omap2_hdq1w_mpu_irqs[];
  140. /* OMAP hwmod classes - forward declarations */
  141. extern struct omap_hwmod_class l3_hwmod_class;
  142. extern struct omap_hwmod_class l4_hwmod_class;
  143. extern struct omap_hwmod_class mpu_hwmod_class;
  144. extern struct omap_hwmod_class iva_hwmod_class;
  145. extern struct omap_hwmod_class omap2_uart_class;
  146. extern struct omap_hwmod_class omap2_dss_hwmod_class;
  147. extern struct omap_hwmod_class omap2_dispc_hwmod_class;
  148. extern struct omap_hwmod_class omap2_rfbi_hwmod_class;
  149. extern struct omap_hwmod_class omap2_venc_hwmod_class;
  150. extern struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc;
  151. extern struct omap_hwmod_class omap2_hdq1w_class;
  152. extern struct omap_hwmod_class omap2xxx_timer_hwmod_class;
  153. extern struct omap_hwmod_class omap2xxx_wd_timer_hwmod_class;
  154. extern struct omap_hwmod_class omap2xxx_gpio_hwmod_class;
  155. extern struct omap_hwmod_class omap2xxx_dma_hwmod_class;
  156. extern struct omap_hwmod_class omap2xxx_mailbox_hwmod_class;
  157. extern struct omap_hwmod_class omap2xxx_mcspi_class;
  158. extern struct omap_dss_dispc_dev_attr omap2_3_dss_dispc_dev_attr;
  159. #endif