omap_l3_noc.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. /*
  26. * L3 register offsets
  27. */
  28. #define L3_MODULES 3
  29. #define CLEAR_STDERR_LOG (1 << 31)
  30. #define CUSTOM_ERROR 0x2
  31. #define STANDARD_ERROR 0x0
  32. #define INBAND_ERROR 0x0
  33. #define EMIF_KERRLOG_OFFSET 0x10
  34. #define L3_SLAVE_ADDRESS_OFFSET 0x14
  35. #define LOGICAL_ADDR_ERRORLOG 0x4
  36. #define L3_APPLICATION_ERROR 0x0
  37. #define L3_DEBUG_ERROR 0x1
  38. u32 l3_flagmux[L3_MODULES] = {
  39. 0x50C,
  40. 0x100C,
  41. 0X020C
  42. };
  43. /*
  44. * L3 Target standard Error register offsets
  45. */
  46. u32 l3_targ_stderrlog_main_clk1[] = {
  47. 0x148, /* DMM1 */
  48. 0x248, /* DMM2 */
  49. 0x348, /* ABE */
  50. 0x448, /* L4CFG */
  51. 0x648 /* CLK2 PWR DISC */
  52. };
  53. u32 l3_targ_stderrlog_main_clk2[] = {
  54. 0x548, /* CORTEX M3 */
  55. 0x348, /* DSS */
  56. 0x148, /* GPMC */
  57. 0x448, /* ISS */
  58. 0x748, /* IVAHD */
  59. 0xD48, /* missing in TRM corresponds to AES1*/
  60. 0x948, /* L4 PER0*/
  61. 0x248, /* OCMRAM */
  62. 0x148, /* missing in TRM corresponds to GPMC sERROR*/
  63. 0x648, /* SGX */
  64. 0x848, /* SL2 */
  65. 0x1648, /* C2C */
  66. 0x1148, /* missing in TRM corresponds PWR DISC CLK1*/
  67. 0xF48, /* missing in TRM corrsponds to SHA1*/
  68. 0xE48, /* missing in TRM corresponds to AES2*/
  69. 0xC48, /* L4 PER3 */
  70. 0xA48, /* L4 PER1*/
  71. 0xB48 /* L4 PER2*/
  72. };
  73. u32 l3_targ_stderrlog_main_clk3[] = {
  74. 0x0148 /* EMUSS */
  75. };
  76. char *l3_targ_stderrlog_main_name[L3_MODULES][18] = {
  77. {
  78. "DMM1",
  79. "DMM2",
  80. "ABE",
  81. "L4CFG",
  82. "CLK2 PWR DISC",
  83. },
  84. {
  85. "CORTEX M3" ,
  86. "DSS ",
  87. "GPMC ",
  88. "ISS ",
  89. "IVAHD ",
  90. "AES1",
  91. "L4 PER0",
  92. "OCMRAM ",
  93. "GPMC sERROR",
  94. "SGX ",
  95. "SL2 ",
  96. "C2C ",
  97. "PWR DISC CLK1",
  98. "SHA1",
  99. "AES2",
  100. "L4 PER3",
  101. "L4 PER1",
  102. "L4 PER2",
  103. },
  104. {
  105. "EMUSS",
  106. },
  107. };
  108. u32 *l3_targ[L3_MODULES] = {
  109. l3_targ_stderrlog_main_clk1,
  110. l3_targ_stderrlog_main_clk2,
  111. l3_targ_stderrlog_main_clk3,
  112. };
  113. struct omap4_l3 {
  114. struct device *dev;
  115. struct clk *ick;
  116. /* memory base */
  117. void __iomem *l3_base[4];
  118. int debug_irq;
  119. int app_irq;
  120. };
  121. #endif