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 {
47 * struct l3_target_data - L3 Target information
48 * @offset: Offset from base for L3 Target
51 * Target information is organized indexed by bit field definitions.
53 struct l3_target_data {
58 static u32 l3_flagmux[L3_MODULES] = {
64 static struct l3_target_data l3_target_inst_data_clk1[] = {
69 {0x600, "CLK2PWRDISC",},
74 static struct l3_target_data l3_target_inst_data_clk2[] = {
83 {0x100, "GPMCsERROR",},
87 {0x1100, "PWRDISCCLK1",},
98 static struct l3_target_data l3_target_inst_data_clk3[] = {
100 {0x0300, "DEBUG SOURCE",},
104 static struct l3_masters_data l3_masters[] = {
112 { 0x48, "FaceDetect"},
127 { 0xC0, "USBHOSTHS"},
132 static struct l3_target_data *l3_targ[L3_MODULES] = {
133 l3_target_inst_data_clk1,
134 l3_target_inst_data_clk2,
135 l3_target_inst_data_clk3,
142 void __iomem *l3_base[L3_MODULES];
148 #endif /* __OMAP_L3_NOC_H */