omap_hwmod_3xxx_data.c 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. .flags = HWMOD_NO_IDLEST,
  71. };
  72. static struct omap_hwmod omap3xxx_l4_wkup_hwmod;
  73. /* L4_CORE -> L4_WKUP interface */
  74. static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = {
  75. .master = &omap3xxx_l4_core_hwmod,
  76. .slave = &omap3xxx_l4_wkup_hwmod,
  77. .user = OCP_USER_MPU | OCP_USER_SDMA,
  78. };
  79. /* Slave interfaces on the L4_CORE interconnect */
  80. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_slaves[] = {
  81. &omap3xxx_l3__l4_core,
  82. };
  83. /* Master interfaces on the L4_CORE interconnect */
  84. static struct omap_hwmod_ocp_if *omap3xxx_l4_core_masters[] = {
  85. &omap3xxx_l4_core__l4_wkup,
  86. };
  87. /* L4 CORE */
  88. static struct omap_hwmod omap3xxx_l4_core_hwmod = {
  89. .name = "l4_core_hwmod",
  90. .class = &l4_hwmod_class,
  91. .masters = omap3xxx_l4_core_masters,
  92. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_core_masters),
  93. .slaves = omap3xxx_l4_core_slaves,
  94. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_core_slaves),
  95. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  96. .flags = HWMOD_NO_IDLEST,
  97. };
  98. /* Slave interfaces on the L4_PER interconnect */
  99. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_slaves[] = {
  100. &omap3xxx_l3__l4_per,
  101. };
  102. /* Master interfaces on the L4_PER interconnect */
  103. static struct omap_hwmod_ocp_if *omap3xxx_l4_per_masters[] = {
  104. };
  105. /* L4 PER */
  106. static struct omap_hwmod omap3xxx_l4_per_hwmod = {
  107. .name = "l4_per_hwmod",
  108. .class = &l4_hwmod_class,
  109. .masters = omap3xxx_l4_per_masters,
  110. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_per_masters),
  111. .slaves = omap3xxx_l4_per_slaves,
  112. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_per_slaves),
  113. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  114. .flags = HWMOD_NO_IDLEST,
  115. };
  116. /* Slave interfaces on the L4_WKUP interconnect */
  117. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_slaves[] = {
  118. &omap3xxx_l4_core__l4_wkup,
  119. };
  120. /* Master interfaces on the L4_WKUP interconnect */
  121. static struct omap_hwmod_ocp_if *omap3xxx_l4_wkup_masters[] = {
  122. };
  123. /* L4 WKUP */
  124. static struct omap_hwmod omap3xxx_l4_wkup_hwmod = {
  125. .name = "l4_wkup_hwmod",
  126. .class = &l4_hwmod_class,
  127. .masters = omap3xxx_l4_wkup_masters,
  128. .masters_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_masters),
  129. .slaves = omap3xxx_l4_wkup_slaves,
  130. .slaves_cnt = ARRAY_SIZE(omap3xxx_l4_wkup_slaves),
  131. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  132. .flags = HWMOD_NO_IDLEST,
  133. };
  134. /* Master interfaces on the MPU device */
  135. static struct omap_hwmod_ocp_if *omap3xxx_mpu_masters[] = {
  136. &omap3xxx_mpu__l3,
  137. };
  138. /* MPU */
  139. static struct omap_hwmod omap3xxx_mpu_hwmod = {
  140. .name = "mpu",
  141. .class = &mpu_hwmod_class,
  142. .main_clk = "arm_fck",
  143. .masters = omap3xxx_mpu_masters,
  144. .masters_cnt = ARRAY_SIZE(omap3xxx_mpu_masters),
  145. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP3430),
  146. };
  147. static __initdata struct omap_hwmod *omap3xxx_hwmods[] = {
  148. &omap3xxx_l3_hwmod,
  149. &omap3xxx_l4_core_hwmod,
  150. &omap3xxx_l4_per_hwmod,
  151. &omap3xxx_l4_wkup_hwmod,
  152. &omap3xxx_mpu_hwmod,
  153. NULL,
  154. };
  155. int __init omap3xxx_hwmod_init(void)
  156. {
  157. return omap_hwmod_init(omap3xxx_hwmods);
  158. }