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 pass external pl310 offset to arml2c...



details:   https://anonhg.NetBSD.org/src/rev/149bac6e770f
branches:  trunk
changeset: 806529:149bac6e770f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Feb 27 20:41:01 2015 +0000

description:
pass external pl310 offset to arml2cc with device_register

diffstat:

 sys/arch/evbarm/amlogic/amlogic_machdep.c |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r b8f904df9fa1 -r 149bac6e770f sys/arch/evbarm/amlogic/amlogic_machdep.c
--- a/sys/arch/evbarm/amlogic/amlogic_machdep.c Fri Feb 27 20:40:09 2015 +0000
+++ b/sys/arch/evbarm/amlogic/amlogic_machdep.c Fri Feb 27 20:41:01 2015 +0000
@@ -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 @@
 
                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);
+       }
 }



Home | Main Index | Thread Index | Old Index