arch/csky: add support for VDSP extensions
authorGuo Ren <ren_guo@c-sky.com>
Fri, 31 May 2019 06:38:59 +0000 (14:38 +0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 31 May 2019 20:59:57 +0000 (22:59 +0200)
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>
Config.in.legacy
arch/Config.in.csky
arch/arch.mk.csky

index 2cf00a0aac415a5391df9048b0d795c4090fb5a9..f2991814473a3d1d3e88298581cfa16f23ab06e5 100644 (file)
@@ -151,7 +151,9 @@ config BR2_CSKY_DSP
        select BR2_LEGACY
        help
         C-SKY DSP instruction support for ck810 / ck807 was removed,
-        as it was no longer supported in C-SKY gcc.
+        as it was no longer supported in C-SKY gcc. Perhaps the VDSP
+        instructions should be used instead, using the BR2_CSKY_VDSP
+        option.
 
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_COMPOSITOR
        bool "compositor moved to gst1-plugins-base"
index 9c893da5f8d03dd4b777a87dd5158a5e74f77569..1aede81282eabbf9bc0a8e114e48ac42bcd4f4ff 100644 (file)
@@ -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"
 
index 677c3223edccb59bb7f3f0787ca27735491c9053..f2c90eb206035046ebd6504aa8b802a77ed905d6 100644 (file)
@@ -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