Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/rockchip use rockchip_crureg.h



details:   https://anonhg.NetBSD.org/src/rev/ca8dbdb257c5
branches:  trunk
changeset: 805268:ca8dbdb257c5
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Dec 27 01:21:02 2014 +0000

description:
use rockchip_crureg.h

diffstat:

 sys/arch/evbarm/rockchip/rockchip_machdep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 25f2240749cb -r ca8dbdb257c5 sys/arch/evbarm/rockchip/rockchip_machdep.c
--- a/sys/arch/evbarm/rockchip/rockchip_machdep.c       Sat Dec 27 01:20:31 2014 +0000
+++ b/sys/arch/evbarm/rockchip/rockchip_machdep.c       Sat Dec 27 01:21:02 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rockchip_machdep.c,v 1.2 2014/12/26 19:44:48 jmcneill Exp $ */
+/*     $NetBSD: rockchip_machdep.c,v 1.3 2014/12/27 01:21:02 jmcneill Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rockchip_machdep.c,v 1.2 2014/12/26 19:44:48 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rockchip_machdep.c,v 1.3 2014/12/27 01:21:02 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -182,6 +182,7 @@
 #include <dev/ic/comreg.h>
 
 #include <arm/rockchip/rockchip_reg.h>
+#include <arm/rockchip/rockchip_crureg.h>
 #include <arm/rockchip/rockchip_var.h>
 
 #ifdef CPU_CORTEXA9
@@ -528,7 +529,8 @@
        bus_space_subregion(bst, rockchip_core1_bsh,
            ROCKCHIP_CRU_OFFSET, ROCKCHIP_CRU_SIZE, &bsh);
 
-       bus_space_write_4(bst, bsh, 0x100, 0xfdb9);
+       bus_space_write_4(bst, bsh, CRU_GLB_SRST_FST_REG,
+           CRU_GLB_SRST_FST_MAGIC);
 }
 
 #ifdef KGDB



Home | Main Index | Thread Index | Old Index