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 #define some bits in the clock gating ...



details:   https://anonhg.NetBSD.org/src/rev/10b61d8f0325
branches:  trunk
changeset: 807772:10b61d8f0325
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Apr 21 19:56:01 2015 +0000

description:
#define some bits in the clock gating registers

diffstat:

 sys/arch/mips/ingenic/ingenic_regs.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r fa709107f240 -r 10b61d8f0325 sys/arch/mips/ingenic/ingenic_regs.h
--- a/sys/arch/mips/ingenic/ingenic_regs.h      Tue Apr 21 19:19:31 2015 +0000
+++ b/sys/arch/mips/ingenic/ingenic_regs.h      Tue Apr 21 19:56:01 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ingenic_regs.h,v 1.13 2015/04/21 19:19:31 macallan Exp $ */
+/*     $NetBSD: ingenic_regs.h,v 1.14 2015/04/21 19:56:01 macallan Exp $ */
 
 /*-
  * Copyright (c) 2014 Michael Lorenz
@@ -181,6 +181,12 @@
        #define JZ_PLLBP        0x00000002      /* PLL bypass */
        #define JZ_PLLEN        0x00000001      /* PLL enable */
 #define JZ_CLKGR0      0x10000020      /* CLocK Gating Registers */
+       #define CLK_OTG0        (1 << 2)
+       #define CLK_SMB0        (1 << 5)
+       #define CLK_SMB1        (1 << 6)
+       #define CLK_UHC         (1 << 24)
+       #define CLK_SMB2        (1 << 25)
+       #define CLK_LCD         (1 << 28)
 #define JZ_OPCR                0x10000024      /* Oscillator Power Control Reg. */
        #define OPCR_IDLE_DIS   0x80000000      /* don't stop CPU clk on idle */
        #define OPCR_GPU_CLK_ST 0x40000000      /* stop GPU clock */
@@ -197,6 +203,12 @@
        #define OPCR_CPU_MODE   0x00000002      /* 1 access 'accelerated' */
        #define OPCR_OSE        0x00000001      /* disable EXTCLK */
 #define JZ_CLKGR1      0x10000028      /* CLocK Gating Registers */
+       #define CLK_SMB3        (1 << 0)
+       #define CLK_OTG1        (1 << 8)
+       #define CLK_HDMI        (1 << 9)
+       #define CLK_AHB_MON     (1 << 11)
+       #define CLK_SMB4        (1 << 12)
+
 #define JZ_USBPCR      0x1000003c
        #define PCR_USB_MODE            0x80000000      /* 1 - otg */
        #define PCR_AVLD_REG            0x40000000



Home | Main Index | Thread Index | Old Index