From 709827b5ea23f0df86a8056b73bf71fa93cc6681 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 21 Oct 2012 14:42:32 +0200 Subject: imx233: fix user timer The running count is only 16-bit wide, since the always tick setting derives from the crystal clock at 24MHz the user timer cannot be set lower than ~300Hz which is already too high. Switch to the 32KHz crystal source to fix this. Change-Id: Ie7775460b17ea7ab331738734e3d688ad5563857 --- firmware/export/imx233.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/imx233.h b/firmware/export/imx233.h index 70be3788ff..a18b584d8e 100644 --- a/firmware/export/imx233.h +++ b/firmware/export/imx233.h @@ -61,8 +61,8 @@ #define FRAME_PHYS_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE - FRAME_SIZE) #define FRAME ((void *)(FRAME_PHYS_ADDR - UNCACHED_DRAM_ADDR + BUFFERED_DRAM_ADDR)) -/* Timer runs at APBX speed which is derived from ref_xtal@24MHz */ -#define TIMER_FREQ 24000000 +/* Timer runs at 32KHz, derived from clk32k@32KHz */ +#define TIMER_FREQ 32000 /* USBOTG */ #define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(2048))) -- cgit v1.2.3