Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/ingenic un-gate yet another clock



details:   https://anonhg.NetBSD.org/src/rev/1aab3cf340f3
branches:  trunk
changeset: 805230:1aab3cf340f3
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Dec 25 05:10:50 2014 +0000

description:
un-gate yet another clock

diffstat:

 sys/arch/mips/ingenic/apbus.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r a2abd118717b -r 1aab3cf340f3 sys/arch/mips/ingenic/apbus.c
--- a/sys/arch/mips/ingenic/apbus.c     Thu Dec 25 05:10:00 2014 +0000
+++ b/sys/arch/mips/ingenic/apbus.c     Thu Dec 25 05:10:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apbus.c,v 1.4 2014/12/23 18:48:52 macallan Exp $ */
+/*     $NetBSD: apbus.c,v 1.5 2014/12/25 05:10:50 macallan Exp $ */
 
 /*-
  * Copyright (c) 2014 Michael Lorenz
@@ -29,7 +29,7 @@
 /* catch-all for on-chip peripherals */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apbus.c,v 1.4 2014/12/23 18:48:52 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apbus.c,v 1.5 2014/12/25 05:10:50 macallan Exp $");
 
 #include "locators.h"
 #define        _MIPS_BUS_DMA_PRIVATE
@@ -109,6 +109,7 @@
        /* enable USB clocks */
        reg = readreg(JZ_CLKGR1);
        reg &= ~(1 << 8);       /* OTG1 clock */
+       reg &= ~(1 << 11);      /* AHB_MON clock */
        writereg(JZ_CLKGR1, reg);
 
        reg = readreg(JZ_CLKGR0);
@@ -127,6 +128,7 @@
        printf("JZ_SPCR1  %08x\n", readreg(JZ_SPCR1));
        printf("JZ_SRBC   %08x\n", readreg(JZ_SRBC));
        printf("JZ_OPCR   %08x\n", readreg(JZ_OPCR));
+       printf("JZ_UHCCDR %08x\n", readreg(JZ_UHCCDR));
 #endif
 
        for (const char **adv = apbus_devs; *adv != NULL; adv++) {



Home | Main Index | Thread Index | Old Index