Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/stand/altboot Set the extclk for NH230 to...
details: https://anonhg.NetBSD.org/src/rev/3be1aee4b0d3
branches: trunk
changeset: 772560:3be1aee4b0d3
user: phx <phx%NetBSD.org@localhost>
date: Sun Jan 08 14:53:54 2012 +0000
description:
Set the extclk for NH230 to 33000000Hz.
Prepare a synosetup() function which should set a different extclk for
the 400MHz models, as soon as we find a method to check for them.
diffstat:
sys/arch/sandpoint/stand/altboot/brdsetup.c | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diffs (56 lines):
diff -r 3fbf109baabc -r 3be1aee4b0d3 sys/arch/sandpoint/stand/altboot/brdsetup.c
--- a/sys/arch/sandpoint/stand/altboot/brdsetup.c Sun Jan 08 13:57:31 2012 +0000
+++ b/sys/arch/sandpoint/stand/altboot/brdsetup.c Sun Jan 08 14:53:54 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brdsetup.c,v 1.24 2012/01/07 19:57:49 phx Exp $ */
+/* $NetBSD: brdsetup.c,v 1.25 2012/01/08 14:53:54 phx Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -76,17 +76,16 @@
"kurobox",
"KuroBox",
BRD_KUROBOX,
- 32768000,
+ 0,
"eumb", 0x4600, 57600,
kurosetup, kurobrdfix, NULL, NULL },
{
"synology",
"Synology DS",
BRD_SYNOLOGY,
- 33164691, /* from Synology/Linux source */
- /* XXX should be 33165343 for the CS-406 */
+ 0,
"eumb", 0x4500, 115200,
- NULL, synobrdfix, NULL, synoreset },
+ synosetup, synobrdfix, NULL, synoreset },
{
"qnap",
"QNAP TS",
@@ -113,7 +112,7 @@
"nhnas",
"Netronics NH230/231",
BRD_NH230NAS,
- 0,
+ 33000000,
"eumb", 0x4500, 9600,
NULL, nhnasbrdfix, NULL, NULL },
{
@@ -664,6 +663,16 @@
}
void
+synosetup(struct brdprop *brd)
+{
+
+ if (1) /* 200 and 266MHz models */
+ brd->extclk = 33164691; /* from Synology/Linux source */
+ else /* 400MHz models XXX how to check? */
+ brd->extclk = 33165343;
+}
+
+void
synobrdfix(struct brdprop *brd)
{
Home |
Main Index |
Thread Index |
Old Index