riscv: Enhance extension probing
authorMayuresh Chitale <mchitale@ventanamicro.com>
Mon, 6 Jan 2025 13:04:04 +0000 (13:04 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 16 Jan 2025 07:34:18 +0000 (15:34 +0800)
commitab15e20ea9c71c73003d8e165811b51dbf042ff7
treee90018ddb7e951ed77a869011298140efca882df
parent9c4d760637b01512c28987b1ca48672ab1e7f4b9
riscv: Enhance extension probing

Enhance the existing extension probing mechanism by adding support for
more extensions and probing using the "riscv,isa" property. This patch
is ported from the latest upstream linux.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/cpu.c
arch/riscv/include/asm/cpufeature.h [new file with mode: 0644]
arch/riscv/include/asm/hwcap.h [new file with mode: 0644]