Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner fix pll5x rate calculation
details: https://anonhg.NetBSD.org/src/rev/e921c981eafe
branches: trunk
changeset: 333660:e921c981eafe
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Nov 12 21:27:48 2014 +0000
description:
fix pll5x rate calculation
diffstat:
sys/arch/arm/allwinner/awin_board.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cdc934cb0b76 -r e921c981eafe sys/arch/arm/allwinner/awin_board.c
--- a/sys/arch/arm/allwinner/awin_board.c Wed Nov 12 19:41:24 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_board.c Wed Nov 12 21:27:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_board.c,v 1.27 2014/11/10 17:55:25 jmcneill Exp $ */
+/* $NetBSD: awin_board.c,v 1.28 2014/11/12 21:27:48 jmcneill Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.27 2014/11/10 17:55:25 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.28 2014/11/12 21:27:48 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -518,7 +518,7 @@
AWIN_CCM_OFFSET + AWIN_PLL5_CFG_REG);
n = __SHIFTOUT(cfg, AWIN_PLL_CFG_FACTOR_N);
- k = __SHIFTOUT(cfg, AWIN_PLL_CFG_FACTOR_K);
+ k = __SHIFTOUT(cfg, AWIN_PLL_CFG_FACTOR_K) + 1;
p = __SHIFTOUT(cfg, AWIN_PLL5_OUT_EXT_DIV_P);
return (AWIN_REF_FREQ * n * k) >> p;
Home |
Main Index |
Thread Index |
Old Index