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 Support SUNXI_CCU_NKMP_FACTOR_P_X4 flag



details:   https://anonhg.NetBSD.org/src/rev/279af6552577
branches:  trunk
changeset: 995712:279af6552577
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jan 02 19:33:06 2019 +0000

description:
Support SUNXI_CCU_NKMP_FACTOR_P_X4 flag

diffstat:

 sys/arch/arm/sunxi/sunxi_ccu_nkmp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 16a252109f12 -r 279af6552577 sys/arch/arm/sunxi/sunxi_ccu_nkmp.c
--- a/sys/arch/arm/sunxi/sunxi_ccu_nkmp.c       Wed Jan 02 19:32:41 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_ccu_nkmp.c       Wed Jan 02 19:33:06 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_ccu_nkmp.c,v 1.7 2017/10/06 21:09:21 jmcneill Exp $ */
+/* $NetBSD: sunxi_ccu_nkmp.c,v 1.8 2019/01/02 19:33:06 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_nkmp.c,v 1.7 2017/10/06 21:09:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu_nkmp.c,v 1.8 2019/01/02 19:33:06 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -121,6 +121,8 @@
 
        if ((nkmp->flags & SUNXI_CCU_NKMP_FACTOR_P_POW2) != 0)
                p = 1 << p;
+       else if ((nkmp->flags & SUNXI_CCU_NKMP_FACTOR_P_X4) != 0)
+               p = p ? 4 : 1;
        else
                p++;
 



Home | Main Index | Thread Index | Old Index