omap_hwmod_2420_data.c 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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_l3_hwmod;
  30. static struct omap_hwmod omap2420_l4_core_hwmod;
  31. /* L3 -> L4_CORE interface */
  32. static struct omap_hwmod_ocp_if omap2420_l3__l4_core = {
  33. .master = &omap2420_l3_hwmod,
  34. .slave = &omap2420_l4_core_hwmod,
  35. .user = OCP_USER_MPU | OCP_USER_SDMA,
  36. };
  37. /* MPU -> L3 interface */
  38. static struct omap_hwmod_ocp_if omap2420_mpu__l3 = {
  39. .master = &omap2420_mpu_hwmod,
  40. .slave = &omap2420_l3_hwmod,
  41. .user = OCP_USER_MPU,
  42. };
  43. /* Slave interfaces on the L3 interconnect */
  44. static struct omap_hwmod_ocp_if *omap2420_l3_slaves[] = {
  45. &omap2420_mpu__l3,
  46. };
  47. /* Master interfaces on the L3 interconnect */
  48. static struct omap_hwmod_ocp_if *omap2420_l3_masters[] = {
  49. &omap2420_l3__l4_core,
  50. };
  51. /* L3 */
  52. static struct omap_hwmod omap2420_l3_hwmod = {
  53. .name = "l3_hwmod",
  54. .class = &l3_hwmod_class,
  55. .masters = omap2420_l3_masters,
  56. .masters_cnt = ARRAY_SIZE(omap2420_l3_masters),
  57. .slaves = omap2420_l3_slaves,
  58. .slaves_cnt = ARRAY_SIZE(omap2420_l3_slaves),
  59. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  60. .flags = HWMOD_NO_IDLEST,
  61. };
  62. static struct omap_hwmod omap2420_l4_wkup_hwmod;
  63. /* L4_CORE -> L4_WKUP interface */
  64. static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup = {
  65. .master = &omap2420_l4_core_hwmod,
  66. .slave = &omap2420_l4_wkup_hwmod,
  67. .user = OCP_USER_MPU | OCP_USER_SDMA,
  68. };
  69. /* Slave interfaces on the L4_CORE interconnect */
  70. static struct omap_hwmod_ocp_if *omap2420_l4_core_slaves[] = {
  71. &omap2420_l3__l4_core,
  72. };
  73. /* Master interfaces on the L4_CORE interconnect */
  74. static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
  75. &omap2420_l4_core__l4_wkup,
  76. };
  77. /* L4 CORE */
  78. static struct omap_hwmod omap2420_l4_core_hwmod = {
  79. .name = "l4_core_hwmod",
  80. .class = &l4_hwmod_class,
  81. .masters = omap2420_l4_core_masters,
  82. .masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
  83. .slaves = omap2420_l4_core_slaves,
  84. .slaves_cnt = ARRAY_SIZE(omap2420_l4_core_slaves),
  85. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  86. .flags = HWMOD_NO_IDLEST,
  87. };
  88. /* Slave interfaces on the L4_WKUP interconnect */
  89. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_slaves[] = {
  90. &omap2420_l4_core__l4_wkup,
  91. };
  92. /* Master interfaces on the L4_WKUP interconnect */
  93. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
  94. };
  95. /* L4 WKUP */
  96. static struct omap_hwmod omap2420_l4_wkup_hwmod = {
  97. .name = "l4_wkup_hwmod",
  98. .class = &l4_hwmod_class,
  99. .masters = omap2420_l4_wkup_masters,
  100. .masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
  101. .slaves = omap2420_l4_wkup_slaves,
  102. .slaves_cnt = ARRAY_SIZE(omap2420_l4_wkup_slaves),
  103. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  104. .flags = HWMOD_NO_IDLEST,
  105. };
  106. /* Master interfaces on the MPU device */
  107. static struct omap_hwmod_ocp_if *omap2420_mpu_masters[] = {
  108. &omap2420_mpu__l3,
  109. };
  110. /* MPU */
  111. static struct omap_hwmod omap2420_mpu_hwmod = {
  112. .name = "mpu",
  113. .class = &mpu_hwmod_class,
  114. .main_clk = "mpu_ck",
  115. .masters = omap2420_mpu_masters,
  116. .masters_cnt = ARRAY_SIZE(omap2420_mpu_masters),
  117. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  118. };
  119. static __initdata struct omap_hwmod *omap2420_hwmods[] = {
  120. &omap2420_l3_hwmod,
  121. &omap2420_l4_core_hwmod,
  122. &omap2420_l4_wkup_hwmod,
  123. &omap2420_mpu_hwmod,
  124. NULL,
  125. };
  126. int __init omap2420_hwmod_init(void)
  127. {
  128. return omap_hwmod_init(omap2420_hwmods);
  129. }