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 Honour SUNXI_CCU_FRACTIONAL_SET_ENABLE in...
details: https://anonhg.NetBSD.org/src/rev/ee9f71d74ea8
branches: trunk
changeset: 465460:ee9f71d74ea8
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Nov 23 18:52:09 2019 +0000
description:
Honour SUNXI_CCU_FRACTIONAL_SET_ENABLE in fractional mode
diffstat:
sys/arch/arm/sunxi/sunxi_ccu_fractional.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 9cd5c8cced72 -r ee9f71d74ea8 sys/arch/arm/sunxi/sunxi_ccu_fractional.c
--- a/sys/arch/arm/sunxi/sunxi_ccu_fractional.c Sat Nov 23 18:03:57 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_ccu_fractional.c Sat Nov 23 18:52:09 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_ccu_fractional.c,v 1.4 2019/01/30 01:24:00 jmcneill Exp $ */
+/* $NetBSD: sunxi_ccu_fractional.c,v 1.5 2019/11/23 18:52:09 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu_fractional.c,v 1.4 2019/01/30 01:24:00 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu_fractional.c,v 1.5 2019/11/23 18:52:09 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -140,6 +140,8 @@
val &= ~fractional->div_en;
val &= ~fractional->frac_sel;
val |= __SHIFTIN(i, fractional->frac_sel);
+ if (fractional->flags & SUNXI_CCU_FRACTIONAL_SET_ENABLE)
+ val |= fractional->enable;
CCU_WRITE(sc, fractional->reg, val);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index