Skip to content

Commit 427565e

Browse files
guoren83RevySR
authored andcommitted
FROMLIST: riscv: Move vendor errata definitions to new header
Move vendor errata definitions into errata_list_vendors.h. Signed-off-by: Guo Ren (Alibaba DAMO Academy) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Han Gao <[email protected]>
1 parent 881cb34 commit 427565e

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

arch/riscv/include/asm/errata_list.h

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,7 @@
1010
#include <asm/insn-def.h>
1111
#include <asm/hwcap.h>
1212
#include <asm/vendorid_list.h>
13-
14-
#ifdef CONFIG_ERRATA_ANDES
15-
#define ERRATA_ANDES_NO_IOCP 0
16-
#define ERRATA_ANDES_NUMBER 1
17-
#endif
18-
19-
#ifdef CONFIG_ERRATA_SIFIVE
20-
#define ERRATA_SIFIVE_CIP_453 0
21-
#define ERRATA_SIFIVE_CIP_1200 1
22-
#define ERRATA_SIFIVE_NUMBER 2
23-
#endif
24-
25-
#ifdef CONFIG_ERRATA_THEAD
26-
#define ERRATA_THEAD_MAE 0
27-
#define ERRATA_THEAD_PMU 1
28-
#define ERRATA_THEAD_GHOSTWRITE 2
29-
#define ERRATA_THEAD_NUMBER 3
30-
#endif
13+
#include <asm/errata_list_vendors.h>
3114

3215
#ifdef __ASSEMBLY__
3316

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
3+
#ifndef ASM_ERRATA_LIST_VENDORS_H
4+
#define ASM_ERRATA_LIST_VENDORS_H
5+
6+
#ifdef CONFIG_ERRATA_ANDES
7+
#define ERRATA_ANDES_NO_IOCP 0
8+
#define ERRATA_ANDES_NUMBER 1
9+
#endif
10+
11+
#ifdef CONFIG_ERRATA_SIFIVE
12+
#define ERRATA_SIFIVE_CIP_453 0
13+
#define ERRATA_SIFIVE_CIP_1200 1
14+
#define ERRATA_SIFIVE_NUMBER 2
15+
#endif
16+
17+
#ifdef CONFIG_ERRATA_THEAD
18+
#define ERRATA_THEAD_MAE 0
19+
#define ERRATA_THEAD_PMU 1
20+
#define ERRATA_THEAD_GHOSTWRITE 2
21+
#define ERRATA_THEAD_NUMBER 3
22+
#endif
23+
24+
#endif

0 commit comments

Comments
 (0)