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 NAND module clock
details: https://anonhg.NetBSD.org/src/rev/4d4aa7cb10fd
branches: trunk
changeset: 357412:4d4aa7cb10fd
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Nov 09 21:52:32 2017 +0000
description:
add NAND module clock
diffstat:
sys/arch/arm/sunxi/sun5i_a13_ccu.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 6d4d14ed41e3 -r 4d4aa7cb10fd sys/arch/arm/sunxi/sun5i_a13_ccu.c
--- a/sys/arch/arm/sunxi/sun5i_a13_ccu.c Thu Nov 09 21:50:15 2017 +0000
+++ b/sys/arch/arm/sunxi/sun5i_a13_ccu.c Thu Nov 09 21:52:32 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun5i_a13_ccu.c,v 1.4 2017/11/06 21:03:58 jmcneill Exp $ */
+/* $NetBSD: sun5i_a13_ccu.c,v 1.5 2017/11/09 21:52:32 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sun5i_a13_ccu.c,v 1.4 2017/11/06 21:03:58 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun5i_a13_ccu.c,v 1.5 2017/11/09 21:52:32 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -50,6 +50,7 @@
#define AHB_GATING_REG1 0x064
#define APB0_GATING_REG 0x068
#define APB1_GATING_REG 0x06c
+#define NAND_SCLK_CFG_REG 0x080
#define SD0_SCLK_CFG_REG 0x088
#define SD1_SCLK_CFG_REG 0x08c
#define SD2_SCLK_CFG_REG 0x090
@@ -199,6 +200,14 @@
__BIT(31), /* enable */
SUNXI_CCU_NM_POWER_OF_TWO),
+ SUNXI_CCU_NM(A13_CLK_NAND, "nand", mod_parents,
+ NAND_SCLK_CFG_REG, /* reg */
+ __BITS(17,16), /* n */
+ __BITS(3,0), /* m */
+ __BITS(25,24), /* sel */
+ __BIT(31), /* enable */
+ SUNXI_CCU_NM_POWER_OF_TWO),
+
/* AHB_GATING_REG0. Missing: SS, EMAC, TS, GPS */
SUNXI_CCU_GATE(A13_CLK_AHB_OTG, "ahb-otg", "ahb",
AHB_GATING_REG0, 0),
Home |
Main Index |
Thread Index |
Old Index