svn commit: r187599 - head/sys/arm/at91

Warner Losh imp at FreeBSD.org
Thu Jan 22 13:54:27 PST 2009


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_ */


More information about the svn-src-head mailing list