aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Guo Ren <ren_guo@c-sky.com>2019-05-31 14:38:59 +0800
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-05-31 22:59:57 +0200
commitd2658caea07498ca14aa2bb2da84698e75a7c0b3 (patch)
tree340e4937691e18b306ba88953def9ccad4148f38 /arch
parent55c642287819a062d52e7f290c76ada778772fba (diff)
downloadbuildroot-d2658caea07498ca14aa2bb2da84698e75a7c0b3.tar.gz
buildroot-d2658caea07498ca14aa2bb2da84698e75a7c0b3.tar.bz2
arch/csky: add support for VDSP extensions
VDSP is C-SKY enhanced extension instruction set for SIMD, AI and DSP operation. It is supported by abiv2, used by the ck807, ck810, ck860 cores. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [Thomas: update help text in Config.in.legacy about the BR2_CSKY_DSP option.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/Config.in.csky4
-rw-r--r--arch/arch.mk.csky4
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index 9c893da5f8..1aede81282 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -23,6 +23,10 @@ config BR2_CSKY_FPU
Floating-Point Coprocessor or if you don't need FPU support
for your user-space programs.
+config BR2_CSKY_VDSP
+ bool "Enable VDSP enhanced instructions Co-processor"
+ depends on BR2_CSKY_FPU
+
config BR2_ARCH
default "csky"
diff --git a/arch/arch.mk.csky b/arch/arch.mk.csky
index 677c3223ed..f2c90eb206 100644
--- a/arch/arch.mk.csky
+++ b/arch/arch.mk.csky
@@ -17,4 +17,8 @@ ifeq ($(BR2_CSKY_FPU),y)
GCC_TARGET_CPU := $(GCC_TARGET_CPU)f
endif
+ifeq ($(BR2_CSKY_VDSP),y)
+GCC_TARGET_CPU := $(GCC_TARGET_CPU)v
+endif
+
endif