From: Roman Mashak Date: Mon, 15 Dec 2008 14:44:13 +0900 Subject: [U-Boot] timer interface Message-ID: <40a670230812142144q1360b1bdpd96efedca32773d9@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello I'm in the process of porting U-Boot on arm926ej-s based board and now approached to timer configuration. This is my understanding that U-Boot has its timer interface, API, which shoudl be consistently used across the boards: timer_init() / reset_timer() get_timer() / set_timer() udelay() This is what I observed in CPU-specific code. So my questions are: - I have not found out how these routines are used in ARM part of U-Boot. For instance, set_timer() defined in $(UBOOT)/cpu//arm926ejs/versatile/timer.c is not invoked anywhere. Does it mean set_timer() is not mandatory part of timer's interface? - Now, what are reset_timer_masked() and other *_masked() for? - Is it required to customize 'udelay()' routine fo revery ARM-based platform or there's a basic skeleton to use? Thanks. -- Roman Mashak