Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2009 21:54:27 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187599 - head/sys/arm/at91
Message-ID:  <200901222154.n0MLsRbh023144@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Thu Jan 22 21:54:26 2009
New Revision: 187599
URL: http://svn.freebsd.org/changeset/base/187599

Log:
  Store at91_master_clock in a global variable as opposed to a compile
  time constant.  This allows us to potentially change it at runtime or
  autodetect it early in the boot (the latter being much more likely to
  have a good outcome).

Modified:
  head/sys/arm/at91/at91.c
  head/sys/arm/at91/at91var.h

Modified: head/sys/arm/at91/at91.c
==============================================================================
--- head/sys/arm/at91/at91.c	Thu Jan 22 21:04:46 2009	(r187598)
+++ head/sys/arm/at91/at91.c	Thu Jan 22 21:54:26 2009	(r187599)
@@ -50,6 +50,8 @@ static struct at91_softc *at91_softc;
 
 static void at91_eoi(void *);
 
+uint32_t at91_master_clock = AT91C_MASTER_CLOCK;
+
 static int
 at91_bs_map(void *t, bus_addr_t bpa, bus_size_t size, int flags,
     bus_space_handle_t *bshp)

Modified: head/sys/arm/at91/at91var.h
==============================================================================
--- head/sys/arm/at91/at91var.h	Thu Jan 22 21:04:46 2009	(r187598)
+++ head/sys/arm/at91/at91var.h	Thu Jan 22 21:54:26 2009	(r187599)
@@ -43,4 +43,6 @@ struct at91_ivar {
 	struct resource_list resources;
 };
 
+extern uint32_t at91_master_clock;
+
 #endif /* _AT91VAR_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901222154.n0MLsRbh023144>