aboutsummaryrefslogtreecommitdiff
path: root/include/xscom-p10-regs.h
blob: 21ac21f82f71e1f5af867f490b20e4ed51eda629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef __XSCOM_P10_REGS_H__
#define __XSCOM_P10_REGS_H__

/* Core FIR (Fault Isolation Register) */
#define P10_CORE_FIR		0x440

#define P10_CORE_FIRMASK_OR	0x445

/* Core WOF (Whose On First) */
#define P10_CORE_WOF		0x448

#define P10_MALFUNC_ALERT	0x00090022

#define P10_NX_STATUS_REG	0x02011040 /* NX status register */
#define P10_NX_DMA_ENGINE_FIR	0x02011100 /* DMA & Engine FIR Data Register */
#define P10_NX_PBI_FIR		0x02011080 /* PowerBus Interface FIR Register */

#define P10_EC_CORE_THREAD_STATE	0x412 /* XXX P10 is this right? */
#define P10_THREAD_STOPPED(t)		PPC_BIT(56 + (t))

#define P10_EC_THREAD_INFO		0x413
#define P10_THREAD_ACTIVE(t)		PPC_BIT(t)

#define P10_EC_RAS_STATUS		0x454
#define P10_THREAD_MAINT(t)		PPC_BIT(0 + 8*(t))
#define P10_THREAD_QUIESCED(t)		PPC_BIT(1 + 8*(t))
#define P10_THREAD_ICT_EMPTY(t)		PPC_BIT(2 + 8*(t))

#define P10_EC_DIRECT_CONTROLS		0x449
#define P10_THREAD_STOP(t)		PPC_BIT(7 + 8*(t))
#define P10_THREAD_START(t)		PPC_BIT(6 + 8*(t))
#define P10_THREAD_SRESET(t)		PPC_BIT(4 + 8*(t))
#define P10_THREAD_CLEAR_MAINT(t)	PPC_BIT(3 + 8*(t))
#define P10_THREAD_PWR(t)		PPC_BIT(32 + 8*(t))

#define P10_QME_FIR			0x000

#define P10_QME_SPWU_HYP		0x83c
#define P10_SPWU_REQ			PPC_BIT(0)
#define P10_SPWU_DONE			PPC_BIT(4)

#define P10_QME_SSH_HYP			0x82c
#define P10_SSH_CORE_GATED		PPC_BIT(0)
#define P10_SSH_SPWU_DONE		PPC_BIT(1)

#define P10_NCU_STATUS_REG		0x64f
#define P10_NCU_SPEC_BAR		0x650
#define   P10_NCU_SPEC_BAR_ENABLE	PPC_BIT(0)
#define   P10_NCU_SPEC_BAR_256K		PPC_BIT(1)
#define   P10_NCU_SPEC_BAR_ADDRMSK	0x000fffffffffc000ull /* 16k aligned */

#define P10_NCU_DARN_BAR		0x651
#define  P10_NCU_DARN_BAR_EN		PPC_BIT(0)
#define  P10_NCU_DARN_BAR_ADDRMSK	0x000ffffffffff000ull /* 4k aligned */

#define P10_ROOT_CONTROL_7		0x50017

#endif /* __XSCOM_P10_REGS_H__ */