zephyr/soc/riscv/riscv-privilege/andes_v5/Kconfig.soc
Jim Shu 7db0fedcfe soc: riscv: andes_v5: add custom CSR context switch support
Support custom RISC-V CSR context switch for Andes V5 CPUs.
Both AndeStar V5 DSP and PowerBrake features have it's own CSR to be
saved for thread and ISR context, so adding these CSRs into the RISC-V
SOC context management framework (CONFIG_RISCV_SOC_CONTEXT_SAVE).

Signed-off-by: Jim Shu <cwshu@andestech.com>
2021-08-30 13:40:14 -04:00

66 lines
1.2 KiB
Text

# Copyright (c) 2021 Andes Technology Corporation
# SPDX-License-Identifier: Apache-2.0
choice
prompt "Andes V5 SoC Selection"
depends on SOC_SERIES_RISCV_ANDES_V5
config SOC_RISCV_ANDES_AE350
bool "Andes AE350 SoC implementation"
select ATOMIC_OPERATIONS_BUILTIN
endchoice
if SOC_SERIES_RISCV_ANDES_V5
choice
prompt "Base CPU ISA options"
default RV32I_CPU
config RV32I_CPU
bool "RISCV32 CPU ISA"
config RV64I_CPU
bool "RISCV64 CPU ISA"
select 64BIT
endchoice
choice
prompt "FPU options"
default NO_FPU
config NO_FPU
bool "No FPU"
config SINGLE_PRECISION_FPU
bool "Single precision FPU"
select CPU_HAS_FPU
config DOUBLE_PRECISION_FPU
bool "Double precision FPU"
select CPU_HAS_FPU_DOUBLE_PRECISION
endchoice
config CACHE_ENABLE
bool "Enable cache"
default n
config SOC_ANDES_V5_HWDSP
bool "Enable AndeStar V5 DSP ISA"
select RISCV_SOC_CONTEXT_SAVE
depends on !RISCV_GENERIC_TOOLCHAIN
help
This option enables the AndeStar v5 hardware DSP, in order to
support using the DSP instructions.
config SOC_ANDES_V5_PFT
bool "Enable Andes V5 PowerBrake extension"
default y
select RISCV_SOC_CONTEXT_SAVE
help
The PowerBrake extension throttles performance by reducing instruction
executing rate.
endif # SOC_SERIES_RISCV_ANDES_V5