Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner only access A20 regs if running on A20
details: https://anonhg.NetBSD.org/src/rev/91c8c0530d2e
branches: trunk
changeset: 334803:91c8c0530d2e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Dec 07 15:00:37 2014 +0000
description:
only access A20 regs if running on A20
diffstat:
sys/arch/arm/allwinner/awin_board.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 97e76e617696 -r 91c8c0530d2e sys/arch/arm/allwinner/awin_board.c
--- a/sys/arch/arm/allwinner/awin_board.c Sun Dec 07 14:25:09 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_board.c Sun Dec 07 15:00:37 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_board.c,v 1.31 2014/12/05 14:36:44 jmcneill Exp $ */
+/* $NetBSD: awin_board.c,v 1.32 2014/12/07 15:00:37 jmcneill Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.31 2014/12/05 14:36:44 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.32 2014/12/07 15:00:37 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -217,7 +217,7 @@
}
printf("%s: cpu status: 0=%#x 1=%#x 2=%#x 3=%#x\n", __func__,
s[0], s[1], s[2], s[3]);
- } else {
+ } else if (awin_chip_id() == AWIN_CHIP_ID_A20) {
uint32_t s0 = bus_space_read_4(&awin_bs_tag, awin_core_bsh,
AWIN_CPUCFG_OFFSET + AWIN_CPUCFG_CPU0_STATUS_REG);
uint32_t s1 = bus_space_read_4(&awin_bs_tag, awin_core_bsh,
Home |
Main Index |
Thread Index |
Old Index