omap_hwmod_2430_data.c 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. };
  61. static struct omap_hwmod omap2430_l4_wkup_hwmod;
  62. static struct omap_hwmod omap2430_mmc1_hwmod;
  63. static struct omap_hwmod omap2430_mmc2_hwmod;
  64. /* L4_CORE -> L4_WKUP interface */
  65. static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
  66. .master = &omap2430_l4_core_hwmod,
  67. .slave = &omap2430_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 *omap2430_l4_core_slaves[] = {
  72. &omap2430_l3__l4_core,
  73. };
  74. /* Master interfaces on the L4_CORE interconnect */
  75. static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
  76. &omap2430_l4_core__l4_wkup,
  77. };
  78. /* L4 CORE */
  79. static struct omap_hwmod omap2430_l4_core_hwmod = {
  80. .name = "l4_core_hwmod",
  81. .class = &l4_hwmod_class,
  82. .masters = omap2430_l4_core_masters,
  83. .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
  84. .slaves = omap2430_l4_core_slaves,
  85. .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
  86. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  87. };
  88. /* Slave interfaces on the L4_WKUP interconnect */
  89. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
  90. &omap2430_l4_core__l4_wkup,
  91. };
  92. /* Master interfaces on the L4_WKUP interconnect */
  93. static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
  94. };
  95. /* L4 WKUP */
  96. static struct omap_hwmod omap2430_l4_wkup_hwmod = {
  97. .name = "l4_wkup_hwmod",
  98. .class = &l4_hwmod_class,
  99. .masters = omap2430_l4_wkup_masters,
  100. .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
  101. .slaves = omap2430_l4_wkup_slaves,
  102. .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
  103. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
  104. };
  105. /* Master interfaces on the MPU device */
  106. static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
  107. &omap2430_mpu__l3,
  108. };
  109. /* MPU */
  110. static struct omap_hwmod omap2430_mpu_hwmod = {
  111. .name = "mpu_hwmod",
  112. .class = &mpu_hwmod_class,
  113. .main_clk = "mpu_ck",
  114. .masters = omap2430_mpu_masters,
  115. .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
  116. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
  117. };
  118. static __initdata struct omap_hwmod *omap2430_hwmods[] = {
  119. &omap2430_l3_hwmod,
  120. &omap2430_l4_core_hwmod,
  121. &omap2430_l4_wkup_hwmod,
  122. &omap2430_mpu_hwmod,
  123. NULL,
  124. };
  125. int __init omap2430_hwmod_init(void)
  126. {
  127. return omap_hwmod_init(omap2430_hwmods);
  128. }