summaryrefslogtreecommitdiff
path: root/sys/arch/arm/cortex
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2013-08-06 14:21:14 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2013-08-06 14:21:14 +0000
commitdb3aa5f54910bada5f2512466a81d9787be2c65e (patch)
treeb645fcda31040f1f302c6c9ce7c644ca103a91e2 /sys/arch/arm/cortex
parentb7832e043e31f6a8f0b5f802edfeb1a5409524f4 (diff)
The Cortex bus should be useful for Cortex-A7, too.
ok rapha@ jsg@
Diffstat (limited to 'sys/arch/arm/cortex')
-rw-r--r--sys/arch/arm/cortex/cortex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/arm/cortex/cortex.c b/sys/arch/arm/cortex/cortex.c
index d01c4ddb040..464b88a79bd 100644
--- a/sys/arch/arm/cortex/cortex.c
+++ b/sys/arch/arm/cortex/cortex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cortex.c,v 1.1 2013/05/01 00:16:26 patrick Exp $ */
+/* $OpenBSD: cortex.c,v 1.2 2013/08/06 14:21:13 patrick Exp $ */
/* $NetBSD: mainbus.c,v 1.3 2001/06/13 17:52:43 nathanw Exp $ */
/*
@@ -98,7 +98,8 @@ cortexmatch(struct device *parent, void *cf, void *aux)
{
int cputype = cpufunc_id();
- if ((cputype & CPU_ID_CORTEX_A9_MASK) == CPU_ID_CORTEX_A9 ||
+ if ((cputype & CPU_ID_CORTEX_A7_MASK) == CPU_ID_CORTEX_A7 ||
+ (cputype & CPU_ID_CORTEX_A9_MASK) == CPU_ID_CORTEX_A9 ||
(cputype & CPU_ID_CORTEX_A15_MASK) == CPU_ID_CORTEX_A15) {
if (armv7_periphbase())
return (1);