omap_hwmod_2420_data.c 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 "prm-regbits-24xx.h"
  19. /*
  20. * OMAP2420 hardware module integration data
  21. *
  22. * ALl of the data in this section should be autogeneratable from the
  23. * TI hardware database or other technical documentation. Data that
  24. * is driver-specific or driver-kernel integration-specific belongs
  25. * elsewhere.
  26. */
  27. static struct omap_hwmod omap2420_mpu_hwmod;
  28. static struct omap_hwmod omap2420_l3_hwmod;
  29. static struct omap_hwmod omap2420_l4_core_hwmod;
  30. /* L3 -> L4_CORE interface */
  31. static struct omap_hwmod_ocp_if omap2420_l3__l4_core = {
  32. .master = &omap2420_l3_hwmod,
  33. .slave = &omap2420_l4_core_hwmod,
  34. .user = OCP_USER_MPU | OCP_USER_SDMA,
  35. };
  36. /* MPU -> L3 interface */
  37. static struct omap_hwmod_ocp_if omap2420_mpu__l3 = {
  38. .master = &omap2420_mpu_hwmod,
  39. .slave = &omap2420_l3_hwmod,
  40. .user = OCP_USER_MPU,
  41. };
  42. /* Slave interfaces on the L3 interconnect */
  43. static struct omap_hwmod_ocp_if *omap2420_l3_slaves[] = {
  44. &omap2420_mpu__l3,
  45. };
  46. /* Master interfaces on the L3 interconnect */
  47. static struct omap_hwmod_ocp_if *omap2420_l3_masters[] = {
  48. &omap2420_l3__l4_core,
  49. };
  50. /* L3 */
  51. static struct omap_hwmod omap2420_l3_hwmod = {
  52. .name = "l3_hwmod",
  53. .masters = omap2420_l3_masters,
  54. .masters_cnt = ARRAY_SIZE(omap2420_l3_masters),
  55. .slaves = omap2420_l3_slaves,
  56. .slaves_cnt = ARRAY_SIZE(omap2420_l3_slaves),
  57. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  58. };
  59. static struct omap_hwmod omap2420_l4_wkup_hwmod;
  60. /* L4_CORE -> L4_WKUP interface */
  61. static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup = {
  62. .master = &omap2420_l4_core_hwmod,
  63. .slave = &omap2420_l4_wkup_hwmod,
  64. .user = OCP_USER_MPU | OCP_USER_SDMA,
  65. };
  66. /* Slave interfaces on the L4_CORE interconnect */
  67. static struct omap_hwmod_ocp_if *omap2420_l4_core_slaves[] = {
  68. &omap2420_l3__l4_core,
  69. };
  70. /* Master interfaces on the L4_CORE interconnect */
  71. static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
  72. &omap2420_l4_core__l4_wkup,
  73. };
  74. /* L4 CORE */
  75. static struct omap_hwmod omap2420_l4_core_hwmod = {
  76. .name = "l4_core_hwmod",
  77. .masters = omap2420_l4_core_masters,
  78. .masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
  79. .slaves = omap2420_l4_core_slaves,
  80. .slaves_cnt = ARRAY_SIZE(omap2420_l4_core_slaves),
  81. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  82. };
  83. /* Slave interfaces on the L4_WKUP interconnect */
  84. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_slaves[] = {
  85. &omap2420_l4_core__l4_wkup,
  86. };
  87. /* Master interfaces on the L4_WKUP interconnect */
  88. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
  89. };
  90. /* L4 WKUP */
  91. static struct omap_hwmod omap2420_l4_wkup_hwmod = {
  92. .name = "l4_wkup_hwmod",
  93. .masters = omap2420_l4_wkup_masters,
  94. .masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
  95. .slaves = omap2420_l4_wkup_slaves,
  96. .slaves_cnt = ARRAY_SIZE(omap2420_l4_wkup_slaves),
  97. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  98. };
  99. /* Master interfaces on the MPU device */
  100. static struct omap_hwmod_ocp_if *omap2420_mpu_masters[] = {
  101. &omap2420_mpu__l3,
  102. };
  103. /* MPU */
  104. static struct omap_hwmod omap2420_mpu_hwmod = {
  105. .name = "mpu_hwmod",
  106. .main_clk = "mpu_ck",
  107. .masters = omap2420_mpu_masters,
  108. .masters_cnt = ARRAY_SIZE(omap2420_mpu_masters),
  109. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  110. };
  111. static __initdata struct omap_hwmod *omap2420_hwmods[] = {
  112. &omap2420_l3_hwmod,
  113. &omap2420_l4_core_hwmod,
  114. &omap2420_l4_wkup_hwmod,
  115. &omap2420_mpu_hwmod,
  116. NULL,
  117. };
  118. int __init omap2420_hwmod_init(void)
  119. {
  120. return omap_hwmod_init(omap2420_hwmods);
  121. }