Skip to content

Commit 0770bc9

Browse files
jluebbeRussell King
authored andcommitted
ARM: 8885/1: aurora-l2: add defines for parity and ECC registers
These defines will be used by subsequent patches to add support for the parity check and error correction functionality in the Aurora L2 cache controller. Signed-off-by: Jan Luebbe <[email protected]> Signed-off-by: Chris Packham <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 1a85cb4 commit 0770bc9

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

arch/arm/include/asm/hardware/cache-aurora-l2.h

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
#define AURORA_ACR_REPLACEMENT_TYPE_SEMIPLRU \
3232
(3 << AURORA_ACR_REPLACEMENT_OFFSET)
3333

34+
#define AURORA_ACR_PARITY_EN (1 << 21)
35+
#define AURORA_ACR_ECC_EN (1 << 20)
36+
3437
#define AURORA_ACR_FORCE_WRITE_POLICY_OFFSET 0
3538
#define AURORA_ACR_FORCE_WRITE_POLICY_MASK \
3639
(0x3 << AURORA_ACR_FORCE_WRITE_POLICY_OFFSET)
@@ -41,6 +44,51 @@
4144
#define AURORA_ACR_FORCE_WRITE_THRO_POLICY \
4245
(2 << AURORA_ACR_FORCE_WRITE_POLICY_OFFSET)
4346

47+
#define AURORA_ERR_CNT_REG 0x600
48+
#define AURORA_ERR_ATTR_CAP_REG 0x608
49+
#define AURORA_ERR_ADDR_CAP_REG 0x60c
50+
#define AURORA_ERR_WAY_CAP_REG 0x610
51+
#define AURORA_ERR_INJECT_CTL_REG 0x614
52+
#define AURORA_ERR_INJECT_MASK_REG 0x618
53+
54+
#define AURORA_ERR_CNT_CLR_OFFSET 31
55+
#define AURORA_ERR_CNT_CLR \
56+
(0x1 << AURORA_ERR_CNT_CLR_OFFSET)
57+
#define AURORA_ERR_CNT_UE_OFFSET 16
58+
#define AURORA_ERR_CNT_UE_MASK \
59+
(0x7fff << AURORA_ERR_CNT_UE_OFFSET)
60+
#define AURORA_ERR_CNT_CE_OFFSET 0
61+
#define AURORA_ERR_CNT_CE_MASK \
62+
(0xffff << AURORA_ERR_CNT_CE_OFFSET)
63+
64+
#define AURORA_ERR_ATTR_SRC_OFF 16
65+
#define AURORA_ERR_ATTR_SRC_MSK \
66+
(0x7 << AURORA_ERR_ATTR_SRC_OFF)
67+
#define AURORA_ERR_ATTR_TXN_OFF 12
68+
#define AURORA_ERR_ATTR_TXN_MSK \
69+
(0xf << AURORA_ERR_ATTR_TXN_OFF)
70+
#define AURORA_ERR_ATTR_ERR_OFF 8
71+
#define AURORA_ERR_ATTR_ERR_MSK \
72+
(0x3 << AURORA_ERR_ATTR_ERR_OFF)
73+
#define AURORA_ERR_ATTR_CAP_VALID_OFF 0
74+
#define AURORA_ERR_ATTR_CAP_VALID \
75+
(0x1 << AURORA_ERR_ATTR_CAP_VALID_OFF)
76+
77+
#define AURORA_ERR_ADDR_CAP_ADDR_MASK 0xffffffe0
78+
79+
#define AURORA_ERR_WAY_IDX_OFF 8
80+
#define AURORA_ERR_WAY_IDX_MSK \
81+
(0xfff << AURORA_ERR_WAY_IDX_OFF)
82+
#define AURORA_ERR_WAY_CAP_WAY_OFFSET 1
83+
#define AURORA_ERR_WAY_CAP_WAY_MASK \
84+
(0xf << AURORA_ERR_WAY_CAP_WAY_OFFSET)
85+
86+
#define AURORA_ERR_INJECT_CTL_ADDR_MASK 0xfffffff0
87+
#define AURORA_ERR_ATTR_TXN_OFF 12
88+
#define AURORA_ERR_INJECT_CTL_EN_MASK 0x3
89+
#define AURORA_ERR_INJECT_CTL_EN_PARITY 0x2
90+
#define AURORA_ERR_INJECT_CTL_EN_ECC 0x1
91+
4492
#define AURORA_MAX_RANGE_SIZE 1024
4593

4694
#define AURORA_WAY_SIZE_SHIFT 2

0 commit comments

Comments
 (0)