omap_hwmod_2430_data.c 4.0 KB

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