omap_l3_noc.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. * OMAP4XXX L3 Interconnect error handling driver header
  3. *
  4. * Copyright (C) 2011 Texas Corporation
  5. * Santosh Shilimkar <santosh.shilimkar@ti.com>
  6. * sricharan <r.sricharan@ti.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. * USA
  22. */
  23. #ifndef __ARCH_ARM_MACH_OMAP2_L3_INTERCONNECT_3XXX_H
  24. #define __ARCH_ARM_MACH_OMAP2_L3_INTERCONNECT_3XXX_H
  25. #define L3_MODULES 3
  26. #define CLEAR_STDERR_LOG (1 << 31)
  27. #define CUSTOM_ERROR 0x2
  28. #define STANDARD_ERROR 0x0
  29. #define INBAND_ERROR 0x0
  30. #define L3_APPLICATION_ERROR 0x0
  31. #define L3_DEBUG_ERROR 0x1
  32. /* L3 TARG register offsets */
  33. #define L3_TARG_STDERRLOG_MAIN 0x48
  34. #define L3_TARG_STDERRLOG_SLVOFSLSB 0x5c
  35. #define L3_TARG_STDERRLOG_MSTADDR 0x68
  36. #define L3_FLAGMUX_REGERR0 0xc
  37. #define NUM_OF_L3_MASTERS (sizeof(l3_masters)/sizeof(l3_masters[0]))
  38. static u32 l3_flagmux[L3_MODULES] = {
  39. 0x500,
  40. 0x1000,
  41. 0X0200
  42. };
  43. /* L3 Target standard Error register offsets */
  44. static u32 l3_targ_inst_clk1[] = {
  45. 0x100, /* DMM1 */
  46. 0x200, /* DMM2 */
  47. 0x300, /* ABE */
  48. 0x400, /* L4CFG */
  49. 0x600 /* CLK2 PWR DISC */
  50. };
  51. static u32 l3_targ_inst_clk2[] = {
  52. 0x500, /* CORTEX M3 */
  53. 0x300, /* DSS */
  54. 0x100, /* GPMC */
  55. 0x400, /* ISS */
  56. 0x700, /* IVAHD */
  57. 0xD00, /* missing in TRM corresponds to AES1*/
  58. 0x900, /* L4 PER0*/
  59. 0x200, /* OCMRAM */
  60. 0x100, /* missing in TRM corresponds to GPMC sERROR*/
  61. 0x600, /* SGX */
  62. 0x800, /* SL2 */
  63. 0x1600, /* C2C */
  64. 0x1100, /* missing in TRM corresponds PWR DISC CLK1*/
  65. 0xF00, /* missing in TRM corrsponds to SHA1*/
  66. 0xE00, /* missing in TRM corresponds to AES2*/
  67. 0xC00, /* L4 PER3 */
  68. 0xA00, /* L4 PER1*/
  69. 0xB00 /* L4 PER2*/
  70. };
  71. static u32 l3_targ_inst_clk3[] = {
  72. 0x0100 /* EMUSS */
  73. };
  74. static struct l3_masters_data {
  75. u32 id;
  76. char name[10];
  77. } l3_masters[] = {
  78. { 0x0 , "MPU"},
  79. { 0x10, "CS_ADP"},
  80. { 0x14, "xxx"},
  81. { 0x20, "DSP"},
  82. { 0x30, "IVAHD"},
  83. { 0x40, "ISS"},
  84. { 0x44, "DucatiM3"},
  85. { 0x48, "FaceDetect"},
  86. { 0x50, "SDMA_Rd"},
  87. { 0x54, "SDMA_Wr"},
  88. { 0x58, "xxx"},
  89. { 0x5C, "xxx"},
  90. { 0x60, "SGX"},
  91. { 0x70, "DSS"},
  92. { 0x80, "C2C"},
  93. { 0x88, "xxx"},
  94. { 0x8C, "xxx"},
  95. { 0x90, "HSI"},
  96. { 0xA0, "MMC1"},
  97. { 0xA4, "MMC2"},
  98. { 0xA8, "MMC6"},
  99. { 0xB0, "UNIPRO1"},
  100. { 0xC0, "USBHOSTHS"},
  101. { 0xC4, "USBOTGHS"},
  102. { 0xC8, "USBHOSTFS"}
  103. };
  104. static char *l3_targ_inst_name[L3_MODULES][18] = {
  105. {
  106. "DMM1",
  107. "DMM2",
  108. "ABE",
  109. "L4CFG",
  110. "CLK2 PWR DISC",
  111. },
  112. {
  113. "CORTEX M3" ,
  114. "DSS ",
  115. "GPMC ",
  116. "ISS ",
  117. "IVAHD ",
  118. "AES1",
  119. "L4 PER0",
  120. "OCMRAM ",
  121. "GPMC sERROR",
  122. "SGX ",
  123. "SL2 ",
  124. "C2C ",
  125. "PWR DISC CLK1",
  126. "SHA1",
  127. "AES2",
  128. "L4 PER3",
  129. "L4 PER1",
  130. "L4 PER2",
  131. },
  132. {
  133. "EMUSS",
  134. },
  135. };
  136. static u32 *l3_targ[L3_MODULES] = {
  137. l3_targ_inst_clk1,
  138. l3_targ_inst_clk2,
  139. l3_targ_inst_clk3,
  140. };
  141. struct omap4_l3 {
  142. struct device *dev;
  143. struct clk *ick;
  144. /* memory base */
  145. void __iomem *l3_base[L3_MODULES];
  146. int debug_irq;
  147. int app_irq;
  148. };
  149. #endif