From owner-p4-projects@FreeBSD.ORG Thu Jul 13 21:45:24 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8CABD16A4E1; Thu, 13 Jul 2006 21:45:24 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 537EE16A4E0 for ; Thu, 13 Jul 2006 21:45:24 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2169F43D45 for ; Thu, 13 Jul 2006 21:45:24 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6DLjOe0079941 for ; Thu, 13 Jul 2006 21:45:24 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6DLjNCh079938 for perforce@freebsd.org; Thu, 13 Jul 2006 21:45:23 GMT (envelope-from imp@freebsd.org) Date: Thu, 13 Jul 2006 21:45:23 GMT Message-Id: <200607132145.k6DLjNCh079938@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 101491 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 21:45:24 -0000 http://perforce.freebsd.org/chv.cgi?CH=101491 Change 101491 by imp@imp_lighthouse on 2006/07/13 21:44:46 Use the right clock rate for TSC board. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/at91_pmc.c#18 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/at91_pmc.c#18 (text+ko) ==== @@ -22,6 +22,8 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "opt_at91.h" + #include __FBSDID("$FreeBSD: src/sys/arm/at91/at91_pmc.c,v 1.2 2006/06/17 23:22:10 imp Exp $"); @@ -397,7 +399,11 @@ pmc_softc->dev = dev; if ((err = at91_pmc_activate(dev)) != 0) return err; +#ifdef AT91_TSC + at91_pmc_init_clock(pmc_softc, 16000000); +#else at91_pmc_init_clock(pmc_softc, 10000000); +#endif return (0); }