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 The A20 manual says that the pll6 out...
details: https://anonhg.NetBSD.org/src/rev/e850bb78dc85
branches: trunk
changeset: 811207:e850bb78dc85
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sat Oct 17 15:02:55 2015 +0000
description:
The A20 manual says that the pll6 output is (AWIN_REF_FREQ * n * k) / 2,
not (AWIN_REF_FREQ * n * k) / m (m is only used for the SATA clock).
On the boards I tested, m happens to be 2 so the correct value was returned
anyway.
diffstat:
sys/arch/arm/allwinner/awin_board.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d41dc9a9910b -r e850bb78dc85 sys/arch/arm/allwinner/awin_board.c
--- a/sys/arch/arm/allwinner/awin_board.c Sat Oct 17 15:00:45 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_board.c Sat Oct 17 15:02:55 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_board.c,v 1.37 2015/10/17 15:00:45 bouyer Exp $ */
+/* $NetBSD: awin_board.c,v 1.38 2015/10/17 15:02:55 bouyer 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.37 2015/10/17 15:00:45 bouyer Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.38 2015/10/17 15:02:55 bouyer Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -570,7 +570,7 @@
} else {
n = __SHIFTOUT(cfg, AWIN_PLL_CFG_FACTOR_N);
k = __SHIFTOUT(cfg, AWIN_PLL_CFG_FACTOR_K) + 1;
- m = __SHIFTOUT(cfg, AWIN_PLL_CFG_FACTOR_M) + 1;
+ m = 2;
}
return (AWIN_REF_FREQ * n * k) / m;
Home |
Main Index |
Thread Index |
Old Index