omap_hwmod_2430_data.c 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /*
  2. * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 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. * OMAP2430 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 omap2430_mpu_hwmod;
  29. static struct omap_hwmod omap2430_l3_hwmod;
  30. static struct omap_hwmod omap2430_l4_core_hwmod;
  31. /* L3 -> L4_CORE interface */
  32. static struct omap_hwmod_ocp_if omap2430_l3__l4_core = {
  33. .master = &omap2430_l3_hwmod,
  34. .slave = &omap2430_l4_core_hwmod,
  35. .user = OCP_USER_MPU | OCP_USER_SDMA,
  36. };
  37. /* MPU -> L3 interface */
  38. static struct omap_hwmod_ocp_if omap2430_mpu__l3 = {
  39. .master = &omap2430_mpu_hwmod,
  40. .slave = &omap2430_l3_hwmod,
  41. .user = OCP_USER_MPU,
  42. };
  43. /* Slave interfaces on the L3 interconnect */
  44. static struct omap_hwmod_ocp_if *omap2430_l3_slaves[] = {
  45. &omap2430_mpu__l3,
  46. };
  47. /* Master interfaces on the L3 interconnect */
  48. static struct omap_hwmod_ocp_if *omap2430_l3_masters[] = {
  49. &omap2430_l3__l4_core,
  50. };
  51. /* L3 */
  52. static struct omap_hwmod omap2430_l3_hwmod = {
  53. .name = "l3_hwmod",
  54. .class = &l3_hwmod_class,
  55. .masters = omap2430_l3_masters,
  56. .masters_cnt = ARRAY_SIZE(omap2430_l3_masters),
  57. .slaves = omap2430_l3_slaves,
  58. .slaves_cnt = ARRAY_SIZE(omap2430_l3_slaves),
  59. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  60. .flags = HWMOD_NO_IDLEST,
  61. };
  62. static struct omap_hwmod omap2430_l4_wkup_hwmod;
  63. static struct omap_hwmod omap2430_mmc1_hwmod;
  64. static struct omap_hwmod omap2430_mmc2_hwmod;
  65. /* L4_CORE -> L4_WKUP interface */
  66. static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
  67. .master = &omap2430_l4_core_hwmod,
  68. .slave = &omap2430_l4_wkup_hwmod,
  69. .user = OCP_USER_MPU | OCP_USER_SDMA,
  70. };
  71. /* Slave interfaces on the L4_CORE interconnect */
  72. static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
  73. &omap2430_l3__l4_core,
  74. };
  75. /* Master interfaces on the L4_CORE interconnect */
  76. static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
  77. &omap2430_l4_core__l4_wkup,
  78. };
  79. /* L4 CORE */
  80. static struct omap_hwmod omap2430_l4_core_hwmod = {
  81. .name = "l4_core_hwmod",
  82. .class = &l4_hwmod_class,
  83. .masters = omap2430_l4_core_masters,
  84. .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
  85. .slaves = omap2430_l4_core_slaves,
  86. .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
  87. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  88. .flags = HWMOD_NO_IDLEST,
  89. };
  90. /* Slave interfaces on the L4_WKUP interconnect */
  91. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
  92. &omap2430_l4_core__l4_wkup,
  93. };
  94. /* Master interfaces on the L4_WKUP interconnect */
  95. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
  96. };
  97. /* L4 WKUP */
  98. static struct omap_hwmod omap2430_l4_wkup_hwmod = {
  99. .name = "l4_wkup_hwmod",
  100. .class = &l4_hwmod_class,
  101. .masters = omap2430_l4_wkup_masters,
  102. .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
  103. .slaves = omap2430_l4_wkup_slaves,
  104. .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
  105. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  106. .flags = HWMOD_NO_IDLEST,
  107. };
  108. /* Master interfaces on the MPU device */
  109. static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
  110. &omap2430_mpu__l3,
  111. };
  112. /* MPU */
  113. static struct omap_hwmod omap2430_mpu_hwmod = {
  114. .name = "mpu",
  115. .class = &mpu_hwmod_class,
  116. .main_clk = "mpu_ck",
  117. .masters = omap2430_mpu_masters,
  118. .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
  119. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  120. };
  121. static __initdata struct omap_hwmod *omap2430_hwmods[] = {
  122. &omap2430_l3_hwmod,
  123. &omap2430_l4_core_hwmod,
  124. &omap2430_l4_wkup_hwmod,
  125. &omap2430_mpu_hwmod,
  126. NULL,
  127. };
  128. int __init omap2430_hwmod_init(void)
  129. {
  130. return omap_hwmod_init(omap2430_hwmods);
  131. }