xref: /linux/arch/riscv/kernel/vendor_extensions/andes.c (revision 594ffcf4efe5094876f5b549a36262416104cd3d)
1 // SPDX-License-Identifier: GPL-2.0-only
2 
3 #include <asm/cpufeature.h>
4 #include <asm/vendor_extensions.h>
5 #include <asm/vendor_extensions/andes.h>
6 
7 #include <linux/array_size.h>
8 #include <linux/types.h>
9 
10 /* All Andes vendor extensions supported in Linux */
11 static const struct riscv_isa_ext_data riscv_isa_vendor_ext_andes[] = {
12 	__RISCV_ISA_EXT_DATA(xandespmu, RISCV_ISA_VENDOR_EXT_XANDESPMU),
13 };
14 
15 struct riscv_isa_vendor_ext_data_list riscv_isa_vendor_ext_list_andes = {
16 	.ext_data_count = ARRAY_SIZE(riscv_isa_vendor_ext_andes),
17 	.ext_data = riscv_isa_vendor_ext_andes,
18 };
19