Module Name: src Committed By: phx Date: Mon May 17 17:48:59 UTC 2010
Modified Files: src/sys/arch/sandpoint/stand/netboot: brdsetup.c Log Message: Set correct extclk for KuroBox, which is not 33MHz. Patch submitted by Toru Nishimura. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/sandpoint/stand/netboot/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/netboot/brdsetup.c diff -u src/sys/arch/sandpoint/stand/netboot/brdsetup.c:1.14 src/sys/arch/sandpoint/stand/netboot/brdsetup.c:1.15 --- src/sys/arch/sandpoint/stand/netboot/brdsetup.c:1.14 Sun May 16 11:27:49 2010 +++ src/sys/arch/sandpoint/stand/netboot/brdsetup.c Mon May 17 17:48:59 2010 @@ -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 */