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 set correct a9tmr/a9wdt frequency



details:   https://anonhg.NetBSD.org/src/rev/eadce8a3cba4
branches:  trunk
changeset: 336410:eadce8a3cba4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Feb 28 15:21:07 2015 +0000

description:
set correct a9tmr/a9wdt frequency

diffstat:

 sys/arch/evbarm/amlogic/amlogic_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 65a5de44be33 -r eadce8a3cba4 sys/arch/evbarm/amlogic/amlogic_machdep.c
--- a/sys/arch/evbarm/amlogic/amlogic_machdep.c Sat Feb 28 15:20:43 2015 +0000
+++ b/sys/arch/evbarm/amlogic/amlogic_machdep.c Sat Feb 28 15:21:07 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amlogic_machdep.c,v 1.6 2015/02/27 21:13:52 jmcneill Exp $ */
+/*     $NetBSD: amlogic_machdep.c,v 1.7 2015/02/28 15:21:07 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.6 2015/02/27 21:13:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.7 2015/02/28 15:21:07 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -558,7 +558,7 @@
         */
        if (device_is_a(self, "a9tmr") || device_is_a(self, "a9wdt")) {
                 prop_dictionary_set_uint32(dict, "frequency",
-                   1600000000 / 2);
+                   amlogic_get_rate_a9periph());
 
                return;
        }



Home | Main Index | Thread Index | Old Index