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/0a8d1b23007d
branches:  trunk
changeset: 461338:0a8d1b23007d
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 73a5c55d166e -r 0a8d1b23007d 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