Module Name:    src
Committed By:   jmcneill
Date:           Fri Feb 27 20:41:01 UTC 2015

Modified Files:
        src/sys/arch/evbarm/amlogic: amlogic_machdep.c

Log Message:
pass external pl310 offset to arml2cc with device_register


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/amlogic/amlogic_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/amlogic/amlogic_machdep.c
diff -u src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.4 src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.5
--- src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.4	Fri Feb 27 19:57:10 2015
+++ src/sys/arch/evbarm/amlogic/amlogic_machdep.c	Fri Feb 27 20:41:01 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: amlogic_machdep.c,v 1.4 2015/02/27 19:57:10 jmcneill Exp $ */
+/*	$NetBSD: amlogic_machdep.c,v 1.5 2015/02/27 20:41:01 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.4 2015/02/27 19:57:10 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.5 2015/02/27 20:41:01 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -561,4 +561,13 @@ amlogic_device_register(device_t self, v
 
 		return;
 	}
+
+	if (device_is_a(self, "arml2cc")) {
+		/*
+		 * L2 cache regs are at C4200000 and A9 periph base is
+		 * at C4300000; pass as a negative offset for the benefit
+		 * of armperiph bus.
+		 */
+		prop_dictionary_set_uint32(dict, "offset", 0xfff00000);
+	}
 }

Reply via email to