summaryrefslogtreecommitdiff
path: root/arch/nios2/platform
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2017-04-19 13:19:01 +0200
committerLey Foon Tan <ley.foon.tan@intel.com>2017-05-08 16:59:19 +0800
commit23460839b983d5d8d47fe90f341599f66523dd81 (patch)
tree8e123c504595afe9e5463b9c88a35a7988f7d7ae /arch/nios2/platform
parenta89988a6e00c5a099ee23619cd91dc8dc7ec9328 (diff)
downloadlinux-next-23460839b983d5d8d47fe90f341599f66523dd81.tar.gz
nios2: Add BMX support
Add support for the BMX Bit Manipulation Extensions present in Nios II R2 . This introduces three new instructions, EXTRACT, INSERT and MERGE. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2/platform')
-rw-r--r--arch/nios2/platform/Kconfig.platform9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/nios2/platform/Kconfig.platform b/arch/nios2/platform/Kconfig.platform
index b7ac5b90c399..b6a8bfd59491 100644
--- a/arch/nios2/platform/Kconfig.platform
+++ b/arch/nios2/platform/Kconfig.platform
@@ -81,6 +81,15 @@ config NIOS2_HW_DIV_SUPPORT
Set to true if you configured the Nios II to include the DIV
instruction. Enables the -mhw-div compiler flag.
+config NIOS2_BMX_SUPPORT
+ bool "Enable BMX instructions"
+ depends on NIOS2_ARCH_REVISION = 2
+ default n
+ help
+ Set to true if you configured the Nios II R2 to include
+ the BMX Bit Manipulation Extension instructions. Enables
+ the -mbmx compiler flag.
+
config NIOS2_FPU_SUPPORT
bool "Custom floating point instr support"
default n