ti_sci_static_data.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /* SPDX-License-Identifier: BSD-3-Clause */
  2. /*
  3. * Copyright (C) 2021 Texas Instruments Incorporated - http://www.ti.com/
  4. *
  5. */
  6. #ifndef __TI_SCI_STATIC_DATA_H
  7. #define __TI_SCI_STATIC_DATA_H
  8. struct ti_sci_resource_static_data {
  9. u32 dev_id;
  10. u16 range_start;
  11. u16 range_num;
  12. u8 subtype;
  13. };
  14. #if IS_ENABLED(CONFIG_K3_DM_FW)
  15. #if IS_ENABLED(CONFIG_SOC_K3_J721E)
  16. static struct ti_sci_resource_static_data rm_static_data[] = {
  17. /* Free rings */
  18. {
  19. .dev_id = 235,
  20. .subtype = 1,
  21. .range_start = 124,
  22. .range_num = 32,
  23. },
  24. /* TX channels */
  25. {
  26. .dev_id = 236,
  27. .subtype = 13,
  28. .range_start = 6,
  29. .range_num = 2,
  30. },
  31. /* RX channels */
  32. {
  33. .dev_id = 236,
  34. .subtype = 10,
  35. .range_start = 6,
  36. .range_num = 2,
  37. },
  38. /* RX Free flows */
  39. {
  40. .dev_id = 236,
  41. .subtype = 0,
  42. .range_start = 60,
  43. .range_num = 8,
  44. },
  45. { },
  46. };
  47. #endif /* CONFIG_SOC_K3_J721E */
  48. #if IS_ENABLED(CONFIG_SOC_K3_J721S2)
  49. static struct ti_sci_resource_static_data rm_static_data[] = {
  50. /* Free rings */
  51. {
  52. .dev_id = 272,
  53. .subtype = 1,
  54. .range_start = 180,
  55. .range_num = 32,
  56. },
  57. /* TX channels */
  58. {
  59. .dev_id = 273,
  60. .subtype = 13,
  61. .range_start = 12,
  62. .range_num = 2,
  63. },
  64. /* RX channels */
  65. {
  66. .dev_id = 273,
  67. .subtype = 10,
  68. .range_start = 12,
  69. .range_num = 2,
  70. },
  71. /* RX Free flows */
  72. {
  73. .dev_id = 273,
  74. .subtype = 0,
  75. .range_start = 80,
  76. .range_num = 8,
  77. },
  78. { },
  79. };
  80. #endif /* CONFIG_SOC_K3_J721S2 */
  81. #if IS_ENABLED(CONFIG_SOC_K3_AM625) || IS_ENABLED(CONFIG_SOC_K3_AM62A7)
  82. static struct ti_sci_resource_static_data rm_static_data[] = {
  83. /* BC channels */
  84. {
  85. .dev_id = 26,
  86. .subtype = 32,
  87. .range_start = 18,
  88. .range_num = 2,
  89. },
  90. { },
  91. };
  92. #endif /* CONFIG_SOC_K3_AM625 || CONFIG_SOC_K3_AM62A7 */
  93. #else
  94. static struct ti_sci_resource_static_data rm_static_data[] = {
  95. { },
  96. };
  97. #endif /* CONFIG_K3_DM_FW */
  98. #endif /* __TI_SCI_STATIC_DATA_H */