Skip to content

Commit 807e5d3

Browse files
committed
LoongArch: Complete CPUCFG registers definition
According to the "LoongArch Reference Manual Volume 1: Basic Architecture", begin with LA664 CPU core there are more features supported which are indicated in CPUCFG2 and CPUCFG3. This patch completes the definitions of them so as to match the architecture specification. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent f8f9c1f commit 807e5d3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

arch/loongarch/include/asm/loongarch.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@
9494
#define CPUCFG2_LSPW BIT(21)
9595
#define CPUCFG2_LAM BIT(22)
9696
#define CPUCFG2_PTW BIT(24)
97+
#define CPUCFG2_FRECIPE BIT(25)
98+
#define CPUCFG2_DIV32 BIT(26)
99+
#define CPUCFG2_LAM_BH BIT(27)
100+
#define CPUCFG2_LAMCAS BIT(28)
101+
#define CPUCFG2_LLACQ_SCREL BIT(29)
102+
#define CPUCFG2_SCQ BIT(30)
97103

98104
#define LOONGARCH_CPUCFG3 0x3
99105
#define CPUCFG3_CCDMA BIT(0)
@@ -108,6 +114,7 @@
108114
#define CPUCFG3_SPW_HG_HF BIT(11)
109115
#define CPUCFG3_RVA BIT(12)
110116
#define CPUCFG3_RVAMAX GENMASK(16, 13)
117+
#define CPUCFG3_DBAR_HINTS BIT(17)
111118
#define CPUCFG3_ALDORDER_CAP BIT(18) /* All address load ordered, capability */
112119
#define CPUCFG3_ASTORDER_CAP BIT(19) /* All address store ordered, capability */
113120
#define CPUCFG3_ALDORDER_STA BIT(20) /* All address load ordered, status */

0 commit comments

Comments
 (0)