Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex Make sure we enable the timer since CFE ...
details: https://anonhg.NetBSD.org/src/rev/e19a6ab12a1d
branches: trunk
changeset: 782974:e19a6ab12a1d
user: matt <matt%NetBSD.org@localhost>
date: Thu Nov 29 17:36:56 2012 +0000
description:
Make sure we enable the timer since CFE doesn't enable it by default.
diffstat:
sys/arch/arm/cortex/a9tmr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3ca8c03d7b3d -r e19a6ab12a1d sys/arch/arm/cortex/a9tmr.c
--- a/sys/arch/arm/cortex/a9tmr.c Thu Nov 29 17:22:17 2012 +0000
+++ b/sys/arch/arm/cortex/a9tmr.c Thu Nov 29 17:36:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a9tmr.c,v 1.3 2012/09/27 00:23:27 matt Exp $ */
+/* $NetBSD: a9tmr.c,v 1.4 2012/11/29 17:36:56 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: a9tmr.c,v 1.3 2012/09/27 00:23:27 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: a9tmr.c,v 1.4 2012/11/29 17:36:56 matt Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -196,7 +196,7 @@
* Re-enable the comparator and now enable interrupts.
*/
a9tmr_global_write(sc, TMR_GBL_INT, 1); /* clear interrupt pending */
- ctl |= TMR_GBL_CTL_CMP_ENABLE | TMR_GBL_CTL_INT_ENABLE | TMR_GBL_CTL_AUTO_INC;
+ ctl |= TMR_GBL_CTL_CMP_ENABLE | TMR_GBL_CTL_INT_ENABLE | TMR_GBL_CTL_AUTO_INC | TMR_CTL_ENABLE;
a9tmr_global_write(sc, TMR_GBL_CTL, ctl);
#if 0
printf("%s: %s: ctl %#x autoinc %u cmp %#x%08x now %#"PRIx64"\n",
Home |
Main Index |
Thread Index |
Old Index