From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Schwingen Date: Thu, 23 Dec 2010 13:23:50 +0100 Subject: [U-Boot] Fixing IXP42x boards - some general questions In-Reply-To: <20101223101037.823D0152437@gemini.denx.de> References: <4D13175F.8030207@discworld.dascon.de> <20101223101037.823D0152437@gemini.denx.de> Message-ID: <4D133F56.8080409@discworld.dascon.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 12/23/2010 11:10 AM, schrieb Wolfgang Denk: > >> Timer system. >> - For IXP, there are two variants of the timer system - one using >> interrupts, and one without interrupts. Both do not work currently. >> I have patches that fix the non-interrupt version, changing >> CONFIG_SYS_HZ from 66666666 to 1000, bringing it in line with what most >> other ARM platforms do. > I cannot nomment on this. Marek? > >> What is the preferred way of handling timers? Should CONFIG_SYS_HZ be >> 1000 or rather the timer clock? > CONFIG_SYS_HZ must always be defiend as 1000. Thanks - no problem for IXP42x. There are a few non-IXP42x boards that have different values: include/configs/lart.h:110:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */ include/configs/dvlhost.h:91:#define CONFIG_SYS_HZ 3333333 include/configs/impa7.h:112:#define CONFIG_SYS_HZ 2000 /* decrementer freq: 2 kHz */ include/configs/SMN42.h:143:#define CONFIG_SYS_HZ 2048 /* decrementer freq in Hz */ include/configs/colibri_pxa270.h:141:#define CONFIG_SYS_HZ 3250000 /* Timer @ 3250000 Hz */ include/configs/lpc2292sodimm.h:110:#define CONFIG_SYS_HZ 2048 /* decrementer freq in Hz */ include/configs/mx1fs2.h:80:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */ include/configs/scb9328.h:87:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */ include/configs/mx1ads.h:134:#define CONFIG_SYS_HZ 3686400 include/configs/modnet50.h:116:#define CONFIG_SYS_HZ 900 /* decrementer freq: 2 kHz */ include/configs/armadillo.h:111:#define CONFIG_SYS_HZ 2000 /* decrementer freq: 2 kHz */ include/configs/assabet.h:113:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */ include/configs/lpd7a404-10.h:37:#define CONFIG_SYS_HZ (508469) include/configs/palmtc.h:132:#define CONFIG_SYS_HZ 3686400 /* Timer @ 3686400 Hz */ include/configs/idmr.h:148:#define CONFIG_SYS_HZ (50000000 / 64) include/configs/KAREF.h:303:#define CONFIG_SYS_HZ 100 /* decr freq: 1 ms ticks */ include/configs/gcplus.h:125:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */ include/configs/ep7312.h:113:#define CONFIG_SYS_HZ 2000 /* decrementer freq: 2 kHz */ include/configs/lpd7a400-10.h:37:#define CONFIG_SYS_HZ (508469) include/configs/shannon.h:111:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */ include/configs/METROBOX.h:368:#define CONFIG_SYS_HZ 100 /* decr freq: 1 ms ticks */ include/configs/palmld.h:131:#define CONFIG_SYS_HZ 3250000 /* Timer @ 3250000 Hz */ include/configs/dnp1110.h:116:#define CONFIG_SYS_HZ 3686400 /* incrementer freq: 3.6864 MHz */ include/configs/zipitz2.h:152:#define CONFIG_SYS_HZ 3250000 /* Timer @ 3250000 Hz */ include/configs/balloon3.h:103:#define CONFIG_SYS_HZ 3250000 /* Timer @ 3250000 Hz */ include/configs/VCMA9.h:179:#define CONFIG_SYS_HZ 1562500 > >> What about the Intel reference board (IXDP425)? Previously, I used that >> one as a reference on how things should be done, but it looks broken, too. >> I can prepare patches for IXDP425, but I can't currently test them (we >> should have one at work, but that might take some time). > I cannot help with that either. Marek? If noone else steps up and the board would be removed from u-boot, you can list me as maintainer, but I can't test too often. cu Michael