Module Name:    src
Committed By:   phx
Date:           Sun Jan  8 14:53:54 UTC 2012

Modified Files:
        src/sys/arch/sandpoint/stand/altboot: brdsetup.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/sandpoint/stand/altboot/brdsetup.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sandpoint/stand/altboot/brdsetup.c
diff -u src/sys/arch/sandpoint/stand/altboot/brdsetup.c:1.24 src/sys/arch/sandpoint/stand/altboot/brdsetup.c:1.25
--- src/sys/arch/sandpoint/stand/altboot/brdsetup.c:1.24	Sat Jan  7 19:57:49 2012
+++ src/sys/arch/sandpoint/stand/altboot/brdsetup.c	Sun Jan  8 14:53:54 2012
@@ -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 @@ static struct brdprop brdlist[] = {
 	"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 @@ static struct brdprop brdlist[] = {
 	"nhnas",
 	"Netronics NH230/231",
 	BRD_NH230NAS,
-	0,
+	33000000,
 	"eumb", 0x4500, 9600,
 	NULL, nhnasbrdfix, NULL, NULL },
     {
@@ -664,6 +663,16 @@ kurobrdfix(struct brdprop *brd)
 }
 
 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)
 {
 

Reply via email to