From 0434c163ccadbe61281945e4ee18e74e2dd9e260 Mon Sep 17 00:00:00 2001 From: Ganbold Tsagaankhuu Date: Thu, 2 Oct 2014 06:00:55 +0000 Subject: [PATCH] Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1. Approved by: stas (mentor) --- sys/arm/allwinner/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/allwinner/timer.c b/sys/arm/allwinner/timer.c index 5ab6d9d97f3d..a04fafac60c8 100644 --- a/sys/arm/allwinner/timer.c +++ b/sys/arm/allwinner/timer.c @@ -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 */