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/ac52f8385c5b
branches: trunk
changeset: 341065:ac52f8385c5b
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 8c8e8be461e8 -r ac52f8385c5b 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