arch/mips: add (Marvell) Octeon II processor
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Wed, 30 Jan 2019 20:12:23 +0000 (21:12 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 4 Feb 2019 16:30:06 +0000 (17:30 +0100)
The compiler recognizes a specific 'march' value for Octeon II processors,
so create a 'Target Architecture Variant' entry for it in the target menu.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
arch/Config.in.mips

index f28113df448707c02533bc4361d4be15fca630f2..b8567c56b8f6f739c32de2ce8ae8521b7e089d86 100644 (file)
@@ -122,6 +122,13 @@ config BR2_mips_i6400
        depends on BR2_ARCH_IS_64
        select BR2_MIPS_CPU_MIPS64R6
        select BR2_ARCH_NEEDS_GCC_AT_LEAST_6
+config BR2_mips_octeon2
+       bool "Octeon II"
+       depends on BR2_ARCH_IS_64
+       select BR2_MIPS_CPU_MIPS64R2
+       help
+         Marvell (formerly Cavium Networks) Octeon II CN60XX
+         processors.
 config BR2_mips_p6600
        bool "P6600"
        depends on BR2_ARCH_IS_64
@@ -241,6 +248,7 @@ config BR2_GCC_TARGET_ARCH
        default "mips64r5"      if BR2_mips_64r5
        default "mips64r6"      if BR2_mips_64r6
        default "i6400"         if BR2_mips_i6400
+       default "octeon2"       if BR2_mips_octeon2
        default "p6600"         if BR2_mips_p6600
 
 config BR2_MIPS_OABI32