Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/sunxi add ephy clk gate



details:   https://anonhg.NetBSD.org/src/rev/f36f07d8740f
branches:  trunk
changeset: 826607:f36f07d8740f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Sep 16 21:47:02 2017 +0000

description:
add ephy clk gate

diffstat:

 sys/arch/arm/sunxi/sun8i_h3_ccu.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r e72fa3c09cb5 -r f36f07d8740f sys/arch/arm/sunxi/sun8i_h3_ccu.c
--- a/sys/arch/arm/sunxi/sun8i_h3_ccu.c Sat Sep 16 20:40:34 2017 +0000
+++ b/sys/arch/arm/sunxi/sun8i_h3_ccu.c Sat Sep 16 21:47:02 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun8i_h3_ccu.c,v 1.11 2017/08/13 19:18:08 jmcneill Exp $ */
+/* $NetBSD: sun8i_h3_ccu.c,v 1.12 2017/09/16 21:47:02 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: sun8i_h3_ccu.c,v 1.11 2017/08/13 19:18:08 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun8i_h3_ccu.c,v 1.12 2017/09/16 21:47:02 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -52,6 +52,7 @@
 #define        BUS_CLK_GATING_REG0     0x060
 #define        BUS_CLK_GATING_REG2     0x068
 #define        BUS_CLK_GATING_REG3     0x06c
+#define        BUS_CLK_GATING_REG4     0x070
 #define        SDMMC0_CLK_REG          0x088
 #define        SDMMC1_CLK_REG          0x08c
 #define        SDMMC2_CLK_REG          0x090
@@ -359,6 +360,9 @@
        SUNXI_CCU_GATE(H3_CLK_BUS_UART3, "bus-uart3", "apb2",
            BUS_CLK_GATING_REG3, 19),
 
+       SUNXI_CCU_GATE(H3_CLK_BUS_EPHY, "bus-ephy", "ahb1",
+           BUS_CLK_GATING_REG4, 0),
+
        SUNXI_CCU_GATE(H3_CLK_USBPHY0, "usb-phy0", "hosc",
            USBPHY_CFG_REG, 8),
        SUNXI_CCU_GATE(H3_CLK_USBPHY1, "usb-phy1", "hosc",



Home | Main Index | Thread Index | Old Index