Go to the documentation of this file.
32 #ifndef _BCM1480_SCD_H
33 #define _BCM1480_SCD_H
77 #define K_SYS_PART_BCM1480 0x1406
78 #define K_SYS_PART_BCM1280 0x1206
79 #define K_SYS_PART_BCM1455 0x1407
80 #define K_SYS_PART_BCM1255 0x1257
81 #define K_SYS_PART_BCM1158 0x1156
94 #define M_BCM1480_SYS_RESERVED0 _SB_MAKEMASK1(0)
95 #define M_BCM1480_SYS_HT_MINRSTCNT _SB_MAKEMASK1(1)
96 #define M_BCM1480_SYS_RESERVED2 _SB_MAKEMASK1(2)
97 #define M_BCM1480_SYS_RESERVED3 _SB_MAKEMASK1(3)
98 #define M_BCM1480_SYS_RESERVED4 _SB_MAKEMASK1(4)
99 #define M_BCM1480_SYS_IOB_DIV _SB_MAKEMASK1(5)
101 #define S_BCM1480_SYS_PLL_DIV _SB_MAKE64(6)
102 #define M_BCM1480_SYS_PLL_DIV _SB_MAKEMASK(5, S_BCM1480_SYS_PLL_DIV)
103 #define V_BCM1480_SYS_PLL_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_PLL_DIV)
104 #define G_BCM1480_SYS_PLL_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_PLL_DIV, M_BCM1480_SYS_PLL_DIV)
106 #define S_BCM1480_SYS_SW_DIV _SB_MAKE64(11)
107 #define M_BCM1480_SYS_SW_DIV _SB_MAKEMASK(5, S_BCM1480_SYS_SW_DIV)
108 #define V_BCM1480_SYS_SW_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_SW_DIV)
109 #define G_BCM1480_SYS_SW_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_SW_DIV, M_BCM1480_SYS_SW_DIV)
111 #define M_BCM1480_SYS_PCMCIA_ENABLE _SB_MAKEMASK1(16)
112 #define M_BCM1480_SYS_DUART1_ENABLE _SB_MAKEMASK1(17)
114 #define S_BCM1480_SYS_BOOT_MODE _SB_MAKE64(18)
115 #define M_BCM1480_SYS_BOOT_MODE _SB_MAKEMASK(2, S_BCM1480_SYS_BOOT_MODE)
116 #define V_BCM1480_SYS_BOOT_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_BOOT_MODE)
117 #define G_BCM1480_SYS_BOOT_MODE(x) _SB_GETVALUE(x, S_BCM1480_SYS_BOOT_MODE, M_BCM1480_SYS_BOOT_MODE)
118 #define K_BCM1480_SYS_BOOT_MODE_ROM32 0
119 #define K_BCM1480_SYS_BOOT_MODE_ROM8 1
120 #define K_BCM1480_SYS_BOOT_MODE_SMBUS_SMALL 2
121 #define K_BCM1480_SYS_BOOT_MODE_SMBUS_BIG 3
122 #define M_BCM1480_SYS_BOOT_MODE_SMBUS _SB_MAKEMASK1(19)
124 #define M_BCM1480_SYS_PCI_HOST _SB_MAKEMASK1(20)
125 #define M_BCM1480_SYS_PCI_ARBITER _SB_MAKEMASK1(21)
126 #define M_BCM1480_SYS_BIG_ENDIAN _SB_MAKEMASK1(22)
127 #define M_BCM1480_SYS_GENCLK_EN _SB_MAKEMASK1(23)
128 #define M_BCM1480_SYS_GEN_PARITY_EN _SB_MAKEMASK1(24)
129 #define M_BCM1480_SYS_RESERVED25 _SB_MAKEMASK1(25)
131 #define S_BCM1480_SYS_CONFIG 26
132 #define M_BCM1480_SYS_CONFIG _SB_MAKEMASK(6, S_BCM1480_SYS_CONFIG)
133 #define V_BCM1480_SYS_CONFIG(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_CONFIG)
134 #define G_BCM1480_SYS_CONFIG(x) _SB_GETVALUE(x, S_BCM1480_SYS_CONFIG, M_BCM1480_SYS_CONFIG)
136 #define M_BCM1480_SYS_RESERVED32 _SB_MAKEMASK(32, 15)
138 #define S_BCM1480_SYS_NODEID 47
139 #define M_BCM1480_SYS_NODEID _SB_MAKEMASK(4, S_BCM1480_SYS_NODEID)
140 #define V_BCM1480_SYS_NODEID(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_NODEID)
141 #define G_BCM1480_SYS_NODEID(x) _SB_GETVALUE(x, S_BCM1480_SYS_NODEID, M_BCM1480_SYS_NODEID)
143 #define M_BCM1480_SYS_CCNUMA_EN _SB_MAKEMASK1(51)
144 #define M_BCM1480_SYS_CPU_RESET_0 _SB_MAKEMASK1(52)
145 #define M_BCM1480_SYS_CPU_RESET_1 _SB_MAKEMASK1(53)
146 #define M_BCM1480_SYS_CPU_RESET_2 _SB_MAKEMASK1(54)
147 #define M_BCM1480_SYS_CPU_RESET_3 _SB_MAKEMASK1(55)
148 #define S_BCM1480_SYS_DISABLECPU0 56
149 #define M_BCM1480_SYS_DISABLECPU0 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU0)
150 #define S_BCM1480_SYS_DISABLECPU1 57
151 #define M_BCM1480_SYS_DISABLECPU1 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU1)
152 #define S_BCM1480_SYS_DISABLECPU2 58
153 #define M_BCM1480_SYS_DISABLECPU2 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU2)
154 #define S_BCM1480_SYS_DISABLECPU3 59
155 #define M_BCM1480_SYS_DISABLECPU3 _SB_MAKEMASK1(S_BCM1480_SYS_DISABLECPU3)
157 #define M_BCM1480_SYS_SB_SOFTRES _SB_MAKEMASK1(60)
158 #define M_BCM1480_SYS_EXT_RESET _SB_MAKEMASK1(61)
159 #define M_BCM1480_SYS_SYSTEM_RESET _SB_MAKEMASK1(62)
160 #define M_BCM1480_SYS_SW_FLAG _SB_MAKEMASK1(63)
196 #define M_BCM1480_SCD_WDOG_ENABLE _SB_MAKEMASK1(0)
198 #define S_BCM1480_SCD_WDOG_RESET_TYPE 2
199 #define M_BCM1480_SCD_WDOG_RESET_TYPE _SB_MAKEMASK(5, S_BCM1480_SCD_WDOG_RESET_TYPE)
200 #define V_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_WDOG_RESET_TYPE)
201 #define G_BCM1480_SCD_WDOG_RESET_TYPE(x) _SB_GETVALUE(x, S_BCM1480_SCD_WDOG_RESET_TYPE, M_BCM1480_SCD_WDOG_RESET_TYPE)
203 #define K_BCM1480_SCD_WDOG_RESET_FULL 0
204 #define K_BCM1480_SCD_WDOG_RESET_SOFT 1
205 #define K_BCM1480_SCD_WDOG_RESET_CPU0 3
206 #define K_BCM1480_SCD_WDOG_RESET_CPU1 5
207 #define K_BCM1480_SCD_WDOG_RESET_CPU2 9
208 #define K_BCM1480_SCD_WDOG_RESET_CPU3 17
209 #define K_BCM1480_SCD_WDOG_RESET_ALL_CPUS 31
212 #define M_BCM1480_SCD_WDOG_HAS_RESET _SB_MAKEMASK1(8)
246 #define S_SPC_CFG_SRC4 32
247 #define M_SPC_CFG_SRC4 _SB_MAKEMASK(8, S_SPC_CFG_SRC4)
248 #define V_SPC_CFG_SRC4(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC4)
249 #define G_SPC_CFG_SRC4(x) _SB_GETVALUE(x, S_SPC_CFG_SRC4, M_SPC_CFG_SRC4)
251 #define S_SPC_CFG_SRC5 40
252 #define M_SPC_CFG_SRC5 _SB_MAKEMASK(8, S_SPC_CFG_SRC5)
253 #define V_SPC_CFG_SRC5(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC5)
254 #define G_SPC_CFG_SRC5(x) _SB_GETVALUE(x, S_SPC_CFG_SRC5, M_SPC_CFG_SRC5)
256 #define S_SPC_CFG_SRC6 48
257 #define M_SPC_CFG_SRC6 _SB_MAKEMASK(8, S_SPC_CFG_SRC6)
258 #define V_SPC_CFG_SRC6(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC6)
259 #define G_SPC_CFG_SRC6(x) _SB_GETVALUE(x, S_SPC_CFG_SRC6, M_SPC_CFG_SRC6)
261 #define S_SPC_CFG_SRC7 56
262 #define M_SPC_CFG_SRC7 _SB_MAKEMASK(8, S_SPC_CFG_SRC7)
263 #define V_SPC_CFG_SRC7(x) _SB_MAKEVALUE(x, S_SPC_CFG_SRC7)
264 #define G_SPC_CFG_SRC7(x) _SB_GETVALUE(x, S_SPC_CFG_SRC7, M_SPC_CFG_SRC7)
271 #define M_BCM1480_SPC_CFG_CLEAR _SB_MAKEMASK1(0)
272 #define M_BCM1480_SPC_CFG_ENABLE _SB_MAKEMASK1(1)
273 #if SIBYTE_HDR_FEATURE_CHIP(1480)
274 #define M_SPC_CFG_CLEAR M_BCM1480_SPC_CFG_CLEAR
275 #define M_SPC_CFG_ENABLE M_BCM1480_SPC_CFG_ENABLE
283 #define S_BCM1480_SPC_CNT_COUNT 0
284 #define M_BCM1480_SPC_CNT_COUNT _SB_MAKEMASK(40, S_BCM1480_SPC_CNT_COUNT)
285 #define V_BCM1480_SPC_CNT_COUNT(x) _SB_MAKEVALUE(x, S_BCM1480_SPC_CNT_COUNT)
286 #define G_BCM1480_SPC_CNT_COUNT(x) _SB_GETVALUE(x, S_BCM1480_SPC_CNT_COUNT, M_BCM1480_SPC_CNT_COUNT)
288 #define M_BCM1480_SPC_CNT_OFLOW _SB_MAKEMASK1(40)
325 #define M_BCM1480_ATRAP_INDEX _SB_MAKEMASK(4, 0)
326 #define M_BCM1480_ATRAP_ADDRESS _SB_MAKEMASK(40, 0)
328 #define S_BCM1480_ATRAP_CFG_CNT 0
329 #define M_BCM1480_ATRAP_CFG_CNT _SB_MAKEMASK(3, S_BCM1480_ATRAP_CFG_CNT)
330 #define V_BCM1480_ATRAP_CFG_CNT(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_CNT)
331 #define G_BCM1480_ATRAP_CFG_CNT(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_CNT, M_BCM1480_ATRAP_CFG_CNT)
333 #define M_BCM1480_ATRAP_CFG_WRITE _SB_MAKEMASK1(3)
334 #define M_BCM1480_ATRAP_CFG_ALL _SB_MAKEMASK1(4)
335 #define M_BCM1480_ATRAP_CFG_INV _SB_MAKEMASK1(5)
336 #define M_BCM1480_ATRAP_CFG_USESRC _SB_MAKEMASK1(6)
337 #define M_BCM1480_ATRAP_CFG_SRCINV _SB_MAKEMASK1(7)
339 #define S_BCM1480_ATRAP_CFG_AGENTID 8
340 #define M_BCM1480_ATRAP_CFG_AGENTID _SB_MAKEMASK(4, S_BCM1480_ATRAP_CFG_AGENTID)
341 #define V_BCM1480_ATRAP_CFG_AGENTID(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_AGENTID)
342 #define G_BCM1480_ATRAP_CFG_AGENTID(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_AGENTID, M_BCM1480_ATRAP_CFG_AGENTID)
345 #define K_BCM1480_BUS_AGENT_CPU0 0
346 #define K_BCM1480_BUS_AGENT_CPU1 1
347 #define K_BCM1480_BUS_AGENT_NC 2
348 #define K_BCM1480_BUS_AGENT_IOB 3
349 #define K_BCM1480_BUS_AGENT_SCD 4
350 #define K_BCM1480_BUS_AGENT_L2C 6
351 #define K_BCM1480_BUS_AGENT_MC 7
352 #define K_BCM1480_BUS_AGENT_CPU2 8
353 #define K_BCM1480_BUS_AGENT_CPU3 9
354 #define K_BCM1480_BUS_AGENT_PM 10
356 #define S_BCM1480_ATRAP_CFG_CATTR 12
357 #define M_BCM1480_ATRAP_CFG_CATTR _SB_MAKEMASK(2, S_BCM1480_ATRAP_CFG_CATTR)
358 #define V_BCM1480_ATRAP_CFG_CATTR(x) _SB_MAKEVALUE(x, S_BCM1480_ATRAP_CFG_CATTR)
359 #define G_BCM1480_ATRAP_CFG_CATTR(x) _SB_GETVALUE(x, S_BCM1480_ATRAP_CFG_CATTR, M_BCM1480_ATRAP_CFG_CATTR)
361 #define K_BCM1480_ATRAP_CFG_CATTR_IGNORE 0
362 #define K_BCM1480_ATRAP_CFG_CATTR_UNC 1
363 #define K_BCM1480_ATRAP_CFG_CATTR_NONCOH 2
364 #define K_BCM1480_ATRAP_CFG_CATTR_COHERENT 3
366 #define M_BCM1480_ATRAP_CFG_CATTRINV _SB_MAKEMASK1(14)
382 #define M_BCM1480_SCD_TRSEQ_TID_MATCH_EN _SB_MAKEMASK1(25)
384 #define S_BCM1480_SCD_TRSEQ_SWFUNC 26
385 #define M_BCM1480_SCD_TRSEQ_SWFUNC _SB_MAKEMASK(2, S_BCM1480_SCD_TRSEQ_SWFUNC)
386 #define V_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_TRSEQ_SWFUNC)
387 #define G_BCM1480_SCD_TRSEQ_SWFUNC(x) _SB_GETVALUE(x, S_BCM1480_SCD_TRSEQ_SWFUNC, M_BCM1480_SCD_TRSEQ_SWFUNC)
397 #define S_BCM1480_SCD_TRACE_CFG_MODE 16
398 #define M_BCM1480_SCD_TRACE_CFG_MODE _SB_MAKEMASK(2, S_BCM1480_SCD_TRACE_CFG_MODE)
399 #define V_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_SCD_TRACE_CFG_MODE)
400 #define G_BCM1480_SCD_TRACE_CFG_MODE(x) _SB_GETVALUE(x, S_BCM1480_SCD_TRACE_CFG_MODE, M_BCM1480_SCD_TRACE_CFG_MODE)
402 #define K_BCM1480_SCD_TRACE_CFG_MODE_BLOCKERS 0
403 #define K_BCM1480_SCD_TRACE_CFG_MODE_BYTEEN_INT 1
404 #define K_BCM1480_SCD_TRACE_CFG_MODE_FLOW_ID 2