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 Set pre-divider M to 0 in fractional mode...
details: https://anonhg.NetBSD.org/src/rev/e0284413cc2d
branches: trunk
changeset: 465472:e0284413cc2d
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Nov 23 21:30:41 2019 +0000
description:
Set pre-divider M to 0 in fractional mode, as noted in user manual. Spotted by jak.
diffstat:
sys/arch/arm/sunxi/sunxi_ccu_fractional.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 9ee6292936cd -r e0284413cc2d sys/arch/arm/sunxi/sunxi_ccu_fractional.c
--- a/sys/arch/arm/sunxi/sunxi_ccu_fractional.c Sat Nov 23 20:37:49 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_ccu_fractional.c Sat Nov 23 21:30:41 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_ccu_fractional.c,v 1.5 2019/11/23 18:52:09 jmcneill Exp $ */
+/* $NetBSD: sunxi_ccu_fractional.c,v 1.6 2019/11/23 21:30:41 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.5 2019/11/23 18:52:09 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu_fractional.c,v 1.6 2019/11/23 21:30:41 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -137,6 +137,7 @@
for (i = 0; i < __arraycount(fractional->frac); i++) {
if (fractional->frac[i] == new_rate) {
+ val &= ~fractional->prediv;
val &= ~fractional->div_en;
val &= ~fractional->frac_sel;
val |= __SHIFTIN(i, fractional->frac_sel);
Home |
Main Index |
Thread Index |
Old Index