2 * OMAP L3 Interconnect error handling driver header
4 * Copyright (C) 2011-2014 Texas Instruments Incorporated - http://www.ti.com/
5 * Santosh Shilimkar <santosh.shilimkar@ti.com>
6 * sricharan <r.sricharan@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
13 * kind, whether express or implied; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 #ifndef __OMAP_L3_NOC_H
18 #define __OMAP_L3_NOC_H
21 #define CLEAR_STDERR_LOG (1 << 31)
22 #define CUSTOM_ERROR 0x2
23 #define STANDARD_ERROR 0x0
24 #define INBAND_ERROR 0x0
25 #define L3_APPLICATION_ERROR 0x0
26 #define L3_DEBUG_ERROR 0x1
28 /* L3 TARG register offsets */
29 #define L3_TARG_STDERRLOG_MAIN 0x48
30 #define L3_TARG_STDERRLOG_SLVOFSLSB 0x5c
31 #define L3_TARG_STDERRLOG_MSTADDR 0x68
32 #define L3_FLAGMUX_REGERR0 0xc
34 #define NUM_OF_L3_MASTERS (sizeof(l3_masters)/sizeof(l3_masters[0]))
37 * struct l3_masters_data - L3 Master information
38 * @id: ID of the L3 Master
41 struct l3_masters_data {
46 static u32 l3_flagmux[L3_MODULES] = {
52 /* L3 Target standard Error register offsets */
53 static u32 l3_targ_inst_clk1[] = {
58 0x600, /* CLK2 PWR DISC */
63 static u32 l3_targ_inst_clk2[] = {
64 0x500, /* CORTEX M3 */
69 0xD00, /* missing in TRM corresponds to AES1*/
72 0x100, /* missing in TRM corresponds to GPMC sERROR*/
76 0x1100, /* missing in TRM corresponds PWR DISC CLK1*/
77 0xF00, /* missing in TRM corrsponds to SHA1*/
78 0xE00, /* missing in TRM corresponds to AES2*/
87 static u32 l3_targ_inst_clk3[] = {
89 0x0300, /* DEBUGSS_CT_TBR */
93 static struct l3_masters_data l3_masters[] = {
101 { 0x48, "FaceDetect"},
116 { 0xC0, "USBHOSTHS"},
121 static char *l3_targ_inst_name[L3_MODULES][21] = {
161 static u32 *l3_targ[L3_MODULES] = {
171 void __iomem *l3_base[L3_MODULES];
177 #endif /* __OMAP_L3_NOC_H */