omap_hwmod_2420.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /*
  2. * omap_hwmod_2420.h - hardware modules present on the OMAP2420 chips
  3. *
  4. * Copyright (C) 2009 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. *
  13. */
  14. #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD2420_H
  15. #define __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD2420_H
  16. #ifdef CONFIG_ARCH_OMAP2420
  17. #include <mach/omap_hwmod.h>
  18. #include <mach/irqs.h>
  19. #include <mach/cpu.h>
  20. #include <mach/dma.h>
  21. #include "prm-regbits-24xx.h"
  22. static struct omap_hwmod omap2420_mpu_hwmod;
  23. static struct omap_hwmod omap2420_l3_hwmod;
  24. static struct omap_hwmod omap2420_l4_core_hwmod;
  25. /* L3 -> L4_CORE interface */
  26. static struct omap_hwmod_ocp_if omap2420_l3__l4_core = {
  27. .master = &omap2420_l3_hwmod,
  28. .slave = &omap2420_l4_core_hwmod,
  29. .user = OCP_USER_MPU | OCP_USER_SDMA,
  30. };
  31. /* MPU -> L3 interface */
  32. static struct omap_hwmod_ocp_if omap2420_mpu__l3 = {
  33. .master = &omap2420_mpu_hwmod,
  34. .slave = &omap2420_l3_hwmod,
  35. .user = OCP_USER_MPU,
  36. };
  37. /* Slave interfaces on the L3 interconnect */
  38. static struct omap_hwmod_ocp_if *omap2420_l3_slaves[] = {
  39. &omap2420_mpu__l3,
  40. };
  41. /* Master interfaces on the L3 interconnect */
  42. static struct omap_hwmod_ocp_if *omap2420_l3_masters[] = {
  43. &omap2420_l3__l4_core,
  44. };
  45. /* L3 */
  46. static struct omap_hwmod omap2420_l3_hwmod = {
  47. .name = "l3_hwmod",
  48. .masters = omap2420_l3_masters,
  49. .masters_cnt = ARRAY_SIZE(omap2420_l3_masters),
  50. .slaves = omap2420_l3_slaves,
  51. .slaves_cnt = ARRAY_SIZE(omap2420_l3_slaves),
  52. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  53. };
  54. static struct omap_hwmod omap2420_l4_wkup_hwmod;
  55. /* L4_CORE -> L4_WKUP interface */
  56. static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup = {
  57. .master = &omap2420_l4_core_hwmod,
  58. .slave = &omap2420_l4_wkup_hwmod,
  59. .user = OCP_USER_MPU | OCP_USER_SDMA,
  60. };
  61. /* Slave interfaces on the L4_CORE interconnect */
  62. static struct omap_hwmod_ocp_if *omap2420_l4_core_slaves[] = {
  63. &omap2420_l3__l4_core,
  64. };
  65. /* Master interfaces on the L4_CORE interconnect */
  66. static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
  67. &omap2420_l4_core__l4_wkup,
  68. };
  69. /* L4 CORE */
  70. static struct omap_hwmod omap2420_l4_core_hwmod = {
  71. .name = "l4_core_hwmod",
  72. .masters = omap2420_l4_core_masters,
  73. .masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
  74. .slaves = omap2420_l4_core_slaves,
  75. .slaves_cnt = ARRAY_SIZE(omap2420_l4_core_slaves),
  76. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  77. };
  78. /* Slave interfaces on the L4_WKUP interconnect */
  79. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_slaves[] = {
  80. &omap2420_l4_core__l4_wkup,
  81. };
  82. /* Master interfaces on the L4_WKUP interconnect */
  83. static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
  84. };
  85. /* L4 WKUP */
  86. static struct omap_hwmod omap2420_l4_wkup_hwmod = {
  87. .name = "l4_wkup_hwmod",
  88. .masters = omap2420_l4_wkup_masters,
  89. .masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
  90. .slaves = omap2420_l4_wkup_slaves,
  91. .slaves_cnt = ARRAY_SIZE(omap2420_l4_wkup_slaves),
  92. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
  93. };
  94. /* Master interfaces on the MPU device */
  95. static struct omap_hwmod_ocp_if *omap2420_mpu_masters[] = {
  96. &omap2420_mpu__l3,
  97. };
  98. /* MPU */
  99. static struct omap_hwmod omap2420_mpu_hwmod = {
  100. .name = "mpu_hwmod",
  101. .clkdev_dev_id = NULL,
  102. .clkdev_con_id = "mpu_ck",
  103. .masters = omap2420_mpu_masters,
  104. .masters_cnt = ARRAY_SIZE(omap2420_mpu_masters),
  105. .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
  106. };
  107. static __initdata struct omap_hwmod *omap2420_hwmods[] = {
  108. &omap2420_l3_hwmod,
  109. &omap2420_l4_core_hwmod,
  110. &omap2420_l4_wkup_hwmod,
  111. &omap2420_mpu_hwmod,
  112. NULL,
  113. };
  114. #else
  115. # define omap2420_hwmods 0
  116. #endif
  117. #endif