Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/amlogic access watchdog with AMLOGIC_CBUS_OF...
details: https://anonhg.NetBSD.org/src/rev/4d0c0d2ec3d8
branches: trunk
changeset: 336413:4d0c0d2ec3d8
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Feb 28 18:50:15 2015 +0000
description:
access watchdog with AMLOGIC_CBUS_OFFSET offset
diffstat:
sys/arch/evbarm/amlogic/amlogic_machdep.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 7bf5acd978a4 -r 4d0c0d2ec3d8 sys/arch/evbarm/amlogic/amlogic_machdep.c
--- a/sys/arch/evbarm/amlogic/amlogic_machdep.c Sat Feb 28 18:25:39 2015 +0000
+++ b/sys/arch/evbarm/amlogic/amlogic_machdep.c Sat Feb 28 18:50:15 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amlogic_machdep.c,v 1.7 2015/02/28 15:21:07 jmcneill Exp $ */
+/* $NetBSD: amlogic_machdep.c,v 1.8 2015/02/28 18:50:15 jmcneill Exp $ */
/*
* Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.7 2015/02/28 15:21:07 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.8 2015/02/28 18:50:15 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -492,11 +492,12 @@
amlogic_reset(void)
{
bus_space_tag_t bst = &amlogic_bs_tag;
- bus_space_handle_t bsh = amlogic_core_bsh;
+ bus_space_handle_t bsh = amlogic_core_bsh;
+ bus_size_t off = AMLOGIC_CBUS_OFFSET;
- bus_space_write_4(bst, bsh, WATCHDOG_TC_REG,
+ bus_space_write_4(bst, bsh, off + WATCHDOG_TC_REG,
WATCHDOG_TC_CPUS | WATCHDOG_TC_ENABLE | 1);
- bus_space_write_4(bst, bsh, WATCHDOG_RESET_REG, 0);
+ bus_space_write_4(bst, bsh, off + WATCHDOG_RESET_REG, 0);
for (;;) {
__asm("wfi");
Home |
Main Index |
Thread Index |
Old Index