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/netboot Set correct extclk for Kuro...



details:   https://anonhg.NetBSD.org/src/rev/0a2aa3b4aac1
branches:  trunk
changeset: 754953:0a2aa3b4aac1
user:      phx <phx%NetBSD.org@localhost>
date:      Mon May 17 17:48:59 2010 +0000

description:
Set correct extclk for KuroBox, which is not 33MHz.
Patch submitted by Toru Nishimura.

diffstat:

 sys/arch/sandpoint/stand/netboot/brdsetup.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 6b5212d1be27 -r 0a2aa3b4aac1 sys/arch/sandpoint/stand/netboot/brdsetup.c
--- a/sys/arch/sandpoint/stand/netboot/brdsetup.c       Mon May 17 17:15:42 2010 +0000
+++ b/sys/arch/sandpoint/stand/netboot/brdsetup.c       Mon May 17 17:48:59 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brdsetup.c,v 1.14 2010/05/16 11:27:49 phx Exp $ */
+/* $NetBSD: brdsetup.c,v 1.15 2010/05/17 17:48:59 phx Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -151,6 +151,11 @@
                consname = "eumb";
                consport = 0x4600;
                consspeed = 57600;
+               if (PCI_VENDOR(pcicfgread(pcimaketag(0, 11, 0), PCI_ID_REG))
+                   == 0x10ec)
+                       extclk = 32768000;      /* decr 2457600Hz */
+               else
+                       extclk = 32521333;      /* decr 2439100Hz */
        }
        else if (PCI_VENDOR(pcicfgread(pcimaketag(0, 15, 0), PCI_ID_REG)) ==
            0x11ab) {                           /* PCI_VENDOR_MARVELL */



Home | Main Index | Thread Index | Old Index