omap_hwmod_3xxx_data.c 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /*
  2. * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx 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. * The data in this file should be completely autogeneratable from
  12. * the TI hardware database or other technical documentation.
  13. *
  14. * XXX these should be marked initdata for multi-OMAP kernels
  15. */
  16. #include <plat/omap_hwmod.h>
  17. #include <mach/irqs.h>
  18. #include <plat/cpu.h>
  19. #include <plat/dma.h>
  20. #include "omap_hwmod_common_data.h"
  21. #include "prm-regbits-34xx.h"
  22. /*
  23. * OMAP3xxx hardware module integration data
  24. *
  25. * ALl of the data in this section should be autogeneratable from the
  26. * TI hardware database or other technical documentation. Data that
  27. * is driver-specific or driver-kernel integration-specific belongs
  28. * elsewhere.
  29. */
  30. static struct omap_hwmod omap3xxx_mpu_hwmod;
  31. static struct omap_hwmod omap3xxx_l3_hwmod;
  32. static struct omap_hwmod omap3xxx_l4_core_hwmod;
  33. static struct omap_hwmod omap3xxx_l4_per_hwmod;
  34. /* L3 -> L4_CORE interface */
  35. static struct omap_hwmod_ocp_if omap3xxx_l3__l4_core = {
  36. .master = &omap3xxx_l3_hwmod,
  37. .slave = &omap3xxx_l4_core_hwmod,
  38. .user = OCP_USER_MPU | OCP_USER_SDMA,
  39. };
  40. /* L3 -> L4_PER interface */
  41. static struct omap_hwmod_ocp_if omap3xxx_l3__l4_per = {
  42. .master = &omap3xxx_l3_hwmod,
  43. .slave = &omap3xxx_l4_per_hwmod,
  44. .user = OCP_USER_MPU | OCP_USER_SDMA,
  45. };
  46. /* MPU -> L3 interface */
  47. static struct omap_hwmod_ocp_if omap3xxx_mpu__l3 = {
  48. .master = &omap3xxx_mpu_hwmod,
  49. .slave = &omap3xxx_l3_hwmod,
  50. .user = OCP_USER_MPU,
  51. };
  52. /* Slave interfaces on the L3 interconnect */
  53. static struct omap_hwmod_ocp_if *omap3xxx_l3_slaves[] = {
  54. &omap3xxx_mpu__l3,
  55. };
  56. /* Master interfaces on the L3 interconnect */
  57. static struct omap_hwmod_ocp_if *omap3xxx_l3_masters[] = {
  58. &omap3xxx_l3__l4_core,
  59. &omap3xxx_l3__l4_per,
  60. };
  61. /* L3 */
  62. static struct omap_hwmod omap3xxx_l3_hwmod = {
  63. .name = "l3_hwmod",
  64. .class = &l3_hwmod_class,
  65. .masters = omap3xxx_l3_masters,
  66. .masters_cnt = ARRAY_SIZE(omap3xxx_l3_masters),
  67. .slaves = omap3xxx_l3_slaves,
  68. .slaves_cnt = ARRAY_SIZE(omap3xxx_l3_slaves),
  69. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
  70. };
  71. static struct omap_hwmod omap3xxx_l4_wkup_hwmod;
  72. /* L4_CORE -> L4_WKUP interface */
  73. static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
  74. .master = &omap3xxx_l4_core_hwmod,
  75. .slave = &omap3xxx_l4_wkup_hwmod,
  76. .user = OCP_USER_MPU | OCP_USER_SDMA,
  77. };
  78. /* Slave interfaces on the L4_CORE interconnect */
  79. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] = {
  80. &omap3xxx_l3__l4_core,
  81. };
  82. /* Master interfaces on the L4_CORE interconnect */
  83. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_masters[] = {
  84. &omap3xxx_l4_core__l4_wkup,
  85. };
  86. /* L4 CORE */
  87. static struct omap_hwmod omap3xxx_l4_core_hwmod = {
  88. .name = "l4_core_hwmod",
  89. .class = &l4_hwmod_class,
  90. .masters = omap3xxx_l4_core_masters,
  91. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_core_masters),
  92. .slaves = omap3xxx_l4_core_slaves,
  93. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_core_slaves),
  94. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
  95. };
  96. /* Slave interfaces on the L4_PER interconnect */
  97. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[] = {
  98. &omap3xxx_l3__l4_per,
  99. };
  100. /* Master interfaces on the L4_PER interconnect */
  101. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_masters[] = {
  102. };
  103. /* L4 PER */
  104. static struct omap_hwmod omap3xxx_l4_per_hwmod = {
  105. .name = "l4_per_hwmod",
  106. .class = &l4_hwmod_class,
  107. .masters = omap3xxx_l4_per_masters,
  108. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_per_masters),
  109. .slaves = omap3xxx_l4_per_slaves,
  110. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_per_slaves),
  111. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
  112. };
  113. /* Slave interfaces on the L4_WKUP interconnect */
  114. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = {
  115. &omap3xxx_l4_core__l4_wkup,
  116. };
  117. /* Master interfaces on the L4_WKUP interconnect */
  118. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_masters[] = {
  119. };
  120. /* L4 WKUP */
  121. static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
  122. .name = "l4_wkup_hwmod",
  123. .class = &l4_hwmod_class,
  124. .masters = omap3xxx_l4_wkup_masters,
  125. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_masters),
  126. .slaves = omap3xxx_l4_wkup_slaves,
  127. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_slaves),
  128. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430)
  129. };
  130. /* Master interfaces on the MPU device */
  131. static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = {
  132. &omap3xxx_mpu__l3,
  133. };
  134. /* MPU */
  135. static struct omap_hwmod omap3xxx_mpu_hwmod = {
  136. .name = "mpu_hwmod",
  137. .class = &mpu_hwmod_class,
  138. .main_clk = "arm_fck",
  139. .masters = omap3xxx_mpu_masters,
  140. .masters_cnt = ARRAY_SIZE(omap3xxx_mpu_masters),
  141. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  142. };
  143. static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
  144. &omap3xxx_l3_hwmod,
  145. &omap3xxx_l4_core_hwmod,
  146. &omap3xxx_l4_per_hwmod,
  147. &omap3xxx_l4_wkup_hwmod,
  148. &omap3xxx_mpu_hwmod,
  149. NULL,
  150. };
  151. int __init omap3xxx_hwmod_init(void)
  152. {
  153. return omap_hwmod_init(omap3xxx_hwmods);
  154. }