arc: Add ARC and ARC BE architecture
authorMischa Jonker <mischa.jonker@synopsys.com>
Thu, 2 May 2013 09:51:23 +0000 (09:51 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 4 May 2013 20:58:46 +0000 (22:58 +0200)
Synopsys' DesignWare ARC Processor Cores are a family of 32-bit CPUs that
can be used from deeply embedded to high performance host applications.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
arch/Config.in
arch/Config.in.arc [new file with mode: 0644]

index 795f24f4677dc26f1ffbaf7f082d3fa6326b2fdc..2006f1e0de8ce17b78240f08e152c14df52e620e 100644 (file)
@@ -7,6 +7,20 @@ choice
        help
          Select the target architecture family to build for.
 
+config BR2_arcle
+       bool "ARC (little endian)"
+       help
+         Synopsys' DesignWare ARC Processor Cores are a family of 32-bit CPUs
+         that can be used from deeply embedded to high performance host
+         applications. Little endian.
+
+config BR2_arceb
+       bool "ARC (big endian)"
+       help
+         Synopsys' DesignWare ARC Processor Cores are a family of 32-bit CPUs
+         that can be used from deeply embedded to high performance host
+         applications. Big endian.
+
 config BR2_arm
        bool "ARM (little endian)"
        help
@@ -175,6 +189,10 @@ config BR2_GCC_TARGET_ABI
 config BR2_GCC_TARGET_CPU
        string
 
+if BR2_arcle || BR2_arceb
+source "arch/Config.in.arc"
+endif
+
 if BR2_arm || BR2_armeb
 source "arch/Config.in.arm"
 endif
diff --git a/arch/Config.in.arc b/arch/Config.in.arc
new file mode 100644 (file)
index 0000000..60b59f0
--- /dev/null
@@ -0,0 +1,14 @@
+config BR2_ARCH
+       default "arc"   if BR2_arcle
+       default "arceb" if BR2_arceb
+
+config BR2_arc
+       bool
+       default y if BR2_arcle || BR2_arceb
+
+config BR2_ENDIAN
+       default "LITTLE" if BR2_arcle
+       default "BIG"    if BR2_arceb
+
+config BR2_GCC_TARGET_CPU
+       default "arc700"