Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2017 11:05:45 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314383 - head/sys/arm/allwinner/clkng
Message-ID:  <201702281105.v1SB5jOj001916@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Tue Feb 28 11:05:45 2017
New Revision: 314383
URL: https://svnweb.freebsd.org/changeset/base/314383

Log:
  allwinner: NM clock: Add value for fixed factor.
  
  The register func for aw_clk_nm didn't copy the value needed for the fixed
  factor, resulting in all fixed factor not working on NM clocks.

Modified:
  head/sys/arm/allwinner/clkng/aw_clk_nm.c

Modified: head/sys/arm/allwinner/clkng/aw_clk_nm.c
==============================================================================
--- head/sys/arm/allwinner/clkng/aw_clk_nm.c	Tue Feb 28 09:50:34 2017	(r314382)
+++ head/sys/arm/allwinner/clkng/aw_clk_nm.c	Tue Feb 28 11:05:45 2017	(r314383)
@@ -331,11 +331,13 @@ aw_clk_nm_register(struct clkdom *clkdom
 	sc->m.shift = clkdef->m.shift;
 	sc->m.width = clkdef->m.width;
 	sc->m.mask = ((1 << sc->m.width) - 1) << sc->m.shift;
+	sc->m.value = clkdef->m.value;
 	sc->m.flags = clkdef->m.flags;
 
 	sc->n.shift = clkdef->n.shift;
 	sc->n.width = clkdef->n.width;
 	sc->n.mask = ((1 << sc->n.width) - 1) << sc->n.shift;
+	sc->n.value = clkdef->n.value;
 	sc->n.flags = clkdef->n.flags;
 
 	sc->frac.freq0 = clkdef->frac.freq0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702281105.v1SB5jOj001916>