Module Name: src
Committed By: jmcneill
Date: Sat Oct 7 19:41:51 UTC 2017
Modified Files:
src/sys/arch/arm/sunxi: sun6i_a31_ccu.c
Log Message:
add dma and codec gates
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/sunxi/sun6i_a31_ccu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/sunxi/sun6i_a31_ccu.c
diff -u src/sys/arch/arm/sunxi/sun6i_a31_ccu.c:1.2 src/sys/arch/arm/sunxi/sun6i_a31_ccu.c:1.3
--- src/sys/arch/arm/sunxi/sun6i_a31_ccu.c:1.2 Sun Jul 2 13:36:46 2017
+++ src/sys/arch/arm/sunxi/sun6i_a31_ccu.c Sat Oct 7 19:41:51 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sun6i_a31_ccu.c,v 1.2 2017/07/02 13:36:46 jmcneill Exp $ */
+/* $NetBSD: sun6i_a31_ccu.c,v 1.3 2017/10/07 19:41:51 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <[email protected]>
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sun6i_a31_ccu.c,v 1.2 2017/07/02 13:36:46 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun6i_a31_ccu.c,v 1.3 2017/10/07 19:41:51 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -185,6 +185,8 @@ static struct sunxi_ccu_clk sun6i_a31_cc
SD3_CLK_REG, __BITS(17, 16), __BITS(3,0), __BITS(25, 24), __BIT(31),
SUNXI_CCU_NM_POWER_OF_TWO|SUNXI_CCU_NM_ROUND_DOWN),
+ SUNXI_CCU_GATE(A31_CLK_AHB1_DMA, "ahb1-dma", "ahb1",
+ AHB1_GATING_REG0, 6),
SUNXI_CCU_GATE(A31_CLK_AHB1_MMC0, "ahb1-mmc0", "ahb1",
AHB1_GATING_REG0, 8),
SUNXI_CCU_GATE(A31_CLK_AHB1_MMC1, "ahb1-mmc1", "ahb1",
@@ -208,7 +210,9 @@ static struct sunxi_ccu_clk sun6i_a31_cc
SUNXI_CCU_GATE(A31_CLK_AHB1_OHCI2, "ahb1-ohci2", "ahb1",
AHB1_GATING_REG0, 31),
- SUNXI_CCU_GATE(A31_CLK_APB1_PIO, "ahb1-pio", "apb1",
+ SUNXI_CCU_GATE(A31_CLK_APB1_CODEC, "apb1-codec", "apb1",
+ APB1_GATING_REG, 0),
+ SUNXI_CCU_GATE(A31_CLK_APB1_PIO, "apb1-pio", "apb1",
APB1_GATING_REG, 5),
SUNXI_CCU_GATE(A31_CLK_APB2_I2C0, "apb2-i2c0", "apb2",