xref: /linux/arch/riscv/kernel/vendor_extensions/andes.c (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
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