svn commit: r272397 - head/sys/arm/allwinner

Ganbold Tsagaankhuu ganbold at FreeBSD.org
Thu Oct 2 06:00:56 UTC 2014


Author: ganbold
Date: Thu Oct  2 06:00:55 2014
New Revision: 272397
URL: https://svnweb.freebsd.org/changeset/base/272397

Log:
  Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.
  
  Approved by:    stas (mentor)

Modified:
  head/sys/arm/allwinner/timer.c

Modified: head/sys/arm/allwinner/timer.c
==============================================================================
--- head/sys/arm/allwinner/timer.c	Thu Oct  2 05:56:17 2014	(r272396)
+++ head/sys/arm/allwinner/timer.c	Thu Oct  2 06:00:55 2014	(r272397)
@@ -72,7 +72,7 @@ __FBSDID("$FreeBSD$");
 #define TIMER_ENABLE		(1<<0)
 #define TIMER_AUTORELOAD	(1<<1)
 #define TIMER_OSC24M		(1<<2) /* oscillator = 24mhz */
-#define TIMER_PRESCALAR		(4<<4) /* prescalar = 16 */
+#define TIMER_PRESCALAR		(0<<4) /* prescalar = 1 */
 
 #define SYS_TIMER_CLKSRC	24000000 /* clock source */
 


More information about the svn-src-head mailing list