xref: /linux/arch/riscv/kernel/vendor_extensions/andes.c (revision 594ffcf4efe5094876f5b549a36262416104cd3d)
123c996fcSCharlie Jenkins // SPDX-License-Identifier: GPL-2.0-only
223c996fcSCharlie Jenkins 
323c996fcSCharlie Jenkins #include <asm/cpufeature.h>
423c996fcSCharlie Jenkins #include <asm/vendor_extensions.h>
523c996fcSCharlie Jenkins #include <asm/vendor_extensions/andes.h>
623c996fcSCharlie Jenkins 
723c996fcSCharlie Jenkins #include <linux/array_size.h>
823c996fcSCharlie Jenkins #include <linux/types.h>
923c996fcSCharlie Jenkins 
1023c996fcSCharlie Jenkins /* All Andes vendor extensions supported in Linux */
11*594ffcf4SCharlie Jenkins static const struct riscv_isa_ext_data riscv_isa_vendor_ext_andes[] = {
1223c996fcSCharlie Jenkins 	__RISCV_ISA_EXT_DATA(xandespmu, RISCV_ISA_VENDOR_EXT_XANDESPMU),
1323c996fcSCharlie Jenkins };
1423c996fcSCharlie Jenkins 
1523c996fcSCharlie Jenkins struct riscv_isa_vendor_ext_data_list riscv_isa_vendor_ext_list_andes = {
1623c996fcSCharlie Jenkins 	.ext_data_count = ARRAY_SIZE(riscv_isa_vendor_ext_andes),
1723c996fcSCharlie Jenkins 	.ext_data = riscv_isa_vendor_ext_andes,
1823c996fcSCharlie Jenkins };
19