omap_hwmod_2420_data.c 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*
  2. * omap_hwmod_2420_data.c - hardware modules present on the OMAP2420 chips
  3. *
  4. * Copyright (C) 2009-2010 Nokia Corporation
  5. * Paul Walmsley
  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 version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * XXX handle crossbar/shared link difference for L3?
  12. * XXX these should be marked initdata for multi-OMAP kernels
  13. */
  14. #include <plat/omap_hwmod.h>
  15. #include <mach/irqs.h>
  16. #include <plat/cpu.h>
  17. #include <plat/dma.h>
  18. #include "omap_hwmod_common_data.h"
  19. #include "prm-regbits-24xx.h"
  20. /*
  21. * OMAP2420 hardware module integration data
  22. *
  23. * ALl of the data in this section should be autogeneratable from the
  24. * TI hardware database or other technical documentation. Data that
  25. * is driver-specific or driver-kernel integration-specific belongs
  26. * elsewhere.
  27. */
  28. static struct omap_hwmod omap2420_mpu_hwmod;
  29. static struct omap_hwmod omap2420_iva_hwmod;
  30. static struct omap_hwmod omap2420_l3_main_hwmod;
  31. static struct omap_hwmod omap2420_l4_core_hwmod;
  32. /* L3 -> L4_CORE interface */
  33. static struct omap_hwmod_ocp_if omap2420_l3_main__l4_core = {
  34. .master = &omap2420_l3_main_hwmod,
  35. .slave = &omap2420_l4_core_hwmod,
  36. .user = OCP_USER_MPU | OCP_USER_SDMA,
  37. };
  38. /* MPU -> L3 interface */
  39. static struct omap_hwmod_ocp_if omap2420_mpu__l3_main = {
  40. .master = &omap2420_mpu_hwmod,
  41. .slave = &omap2420_l3_main_hwmod,
  42. .user = OCP_USER_MPU,
  43. };
  44. /* Slave interfaces on the L3 interconnect */
  45. static struct omap_hwmod_ocp_if *omap2420_l3_main_slaves[] = {
  46. &omap2420_mpu__l3_main,
  47. };
  48. /* Master interfaces on the L3 interconnect */
  49. static struct omap_hwmod_ocp_if *omap2420_l3_main_masters[] = {
  50. &omap2420_l3_main__l4_core,
  51. };
  52. /* L3 */
  53. static struct omap_hwmod omap2420_l3_main_hwmod = {
  54. .name = "l3_main",
  55. .class = &l3_hwmod_class,
  56. .masters = omap2420_l3_main_masters,
  57. .masters_cnt = ARRAY_SIZE(omap2420_l3_main_masters),
  58. .slaves = omap2420_l3_main_slaves,
  59. .slaves_cnt = ARRAY_SIZE(omap2420_l3_main_slaves),
  60. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  61. .flags = HWMOD_NO_IDLEST,
  62. };
  63. static struct omap_hwmod omap2420_l4_wkup_hwmod;
  64. /* L4_CORE -> L4_WKUP interface */
  65. static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup = {
  66. .master = &omap2420_l4_core_hwmod,
  67. .slave = &omap2420_l4_wkup_hwmod,
  68. .user = OCP_USER_MPU | OCP_USER_SDMA,
  69. };
  70. /* Slave interfaces on the L4_CORE interconnect */
  71. static struct omap_hwmod_ocp_if *omap2420_l4_core_slaves[] = {
  72. &omap2420_l3_main__l4_core,
  73. };
  74. /* Master interfaces on the L4_CORE interconnect */
  75. static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
  76. &omap2420_l4_core__l4_wkup,
  77. };
  78. /* L4 CORE */
  79. static struct omap_hwmod omap2420_l4_core_hwmod = {
  80. .name = "l4_core",
  81. .class = &l4_hwmod_class,
  82. .masters = omap2420_l4_core_masters,
  83. .masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
  84. .slaves = omap2420_l4_core_slaves,
  85. .slaves_cnt = ARRAY_SIZE(omap2420_l4_core_slaves),
  86. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  87. .flags = HWMOD_NO_IDLEST,
  88. };
  89. /* Slave interfaces on the L4_WKUP interconnect */
  90. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_slaves[] = {
  91. &omap2420_l4_core__l4_wkup,
  92. };
  93. /* Master interfaces on the L4_WKUP interconnect */
  94. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
  95. };
  96. /* L4 WKUP */
  97. static struct omap_hwmod omap2420_l4_wkup_hwmod = {
  98. .name = "l4_wkup",
  99. .class = &l4_hwmod_class,
  100. .masters = omap2420_l4_wkup_masters,
  101. .masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
  102. .slaves = omap2420_l4_wkup_slaves,
  103. .slaves_cnt = ARRAY_SIZE(omap2420_l4_wkup_slaves),
  104. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  105. .flags = HWMOD_NO_IDLEST,
  106. };
  107. /* Master interfaces on the MPU device */
  108. static struct omap_hwmod_ocp_if *omap2420_mpu_masters[] = {
  109. &omap2420_mpu__l3_main,
  110. };
  111. /* MPU */
  112. static struct omap_hwmod omap2420_mpu_hwmod = {
  113. .name = "mpu",
  114. .class = &mpu_hwmod_class,
  115. .main_clk = "mpu_ck",
  116. .masters = omap2420_mpu_masters,
  117. .masters_cnt = ARRAY_SIZE(omap2420_mpu_masters),
  118. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  119. };
  120. /*
  121. * IVA1 interface data
  122. */
  123. /* IVA <- L3 interface */
  124. static struct omap_hwmod_ocp_if omap2420_l3__iva = {
  125. .master = &omap2420_l3_main_hwmod,
  126. .slave = &omap2420_iva_hwmod,
  127. .clk = "iva1_ifck",
  128. .user = OCP_USER_MPU | OCP_USER_SDMA,
  129. };
  130. static struct omap_hwmod_ocp_if *omap2420_iva_masters[] = {
  131. &omap2420_l3__iva,
  132. };
  133. /*
  134. * IVA2 (IVA2)
  135. */
  136. static struct omap_hwmod omap2420_iva_hwmod = {
  137. .name = "iva",
  138. .class = &iva_hwmod_class,
  139. .masters = omap2420_iva_masters,
  140. .masters_cnt = ARRAY_SIZE(omap2420_iva_masters),
  141. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  142. };
  143. static __initdata struct omap_hwmod *omap2420_hwmods[] = {
  144. &omap2420_l3_main_hwmod,
  145. &omap2420_l4_core_hwmod,
  146. &omap2420_l4_wkup_hwmod,
  147. &omap2420_mpu_hwmod,
  148. &omap2420_iva_hwmod,
  149. NULL,
  150. };
  151. int __init omap2420_hwmod_init(void)
  152. {
  153. return omap_hwmod_init(omap2420_hwmods);
  154. }