summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorHakim Giydan <hgiydan@marvell.com>2016-09-08 10:13:59 -0700
committerMartin Roth <martinroth@google.com>2016-09-12 19:58:43 +0200
commit43e5b576b9195722143f87a65eca6177200789ac (patch)
tree9485d803ff2daeb1d269001491b910b740fef476 /src/include
parent06868f8154e2036aef4575f5b7c4def7a9ed0de1 (diff)
downloadcoreboot-43e5b576b9195722143f87a65eca6177200789ac.tar.xz
arch/arm: Add armv7-r configuration
This change adds armv7-r support for all stages. armv7-r is an ARM processor based on the Cortex-R series. Currently, there is support for armv7-a and armv7-m and armv7-a files has been modfied to accommodate armv7-r by adding ENV_ARMV7_A, ENV_ARMV7_R and ENV_ARMV7_M constants to src/include/rules.h. armv7-r exceptions support will added in a later time. Change-Id: If94415d07fd6bd96c43d087374f609a2211f1885 Signed-off-by: Hakim Giydan <hgiydan@marvell.com> Reviewed-on: https://review.coreboot.org/15335 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/rules.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/rules.h b/src/include/rules.h
index 89fdd21cb2..a6328049ed 100644
--- a/src/include/rules.h
+++ b/src/include/rules.h
@@ -131,6 +131,19 @@
#elif __COREBOOT_ARM_ARCH__ == 7
#define ENV_ARMV4 0
#define ENV_ARMV7 1
+#if defined(__COREBOOT_ARM_V7_A__)
+#define ENV_ARMV7_A 1
+#define ENV_ARMV7_M 0
+#define ENV_ARMV7_R 0
+#elif defined(__COREBOOT_ARM_V7_M__)
+#define ENV_ARMV7_A 0
+#define ENV_ARMV7_M 1
+#define ENV_ARMV7_R 0
+#elif defined(__COREBOOT_ARM_V7_R__)
+#define ENV_ARMV7_A 0
+#define ENV_ARMV7_M 0
+#define ENV_ARMV7_R 1
+#endif
#else
#define ENV_ARMV4 0
#define ENV_ARMV7 0