Path: blob/master/arch/arm/mach-davinci/include/mach/time.h
17590 views
/*1* Local header file for DaVinci time code.2*3* Author: Kevin Hilman, MontaVista Software, Inc. <[email protected]>4*5* 2007 (c) MontaVista Software, Inc. This file is licensed under6* the terms of the GNU General Public License version 2. This program7* is licensed "as is" without any warranty of any kind, whether express8* or implied.9*/10#ifndef __ARCH_ARM_MACH_DAVINCI_TIME_H11#define __ARCH_ARM_MACH_DAVINCI_TIME_H1213#define DAVINCI_TIMER0_BASE (IO_PHYS + 0x21400)14#define DAVINCI_TIMER1_BASE (IO_PHYS + 0x21800)15#define DAVINCI_WDOG_BASE (IO_PHYS + 0x21C00)1617enum {18T0_BOT,19T0_TOP,20T1_BOT,21T1_TOP,22NUM_TIMERS23};2425#define IS_TIMER1(id) (id & 0x2)26#define IS_TIMER0(id) (!IS_TIMER1(id))27#define IS_TIMER_TOP(id) ((id & 0x1))28#define IS_TIMER_BOT(id) (!IS_TIMER_TOP(id))2930#define ID_TO_TIMER(id) (IS_TIMER1(id) != 0)3132extern struct davinci_timer_instance davinci_timer_instance[];3334#endif /* __ARCH_ARM_MACH_DAVINCI_TIME_H */353637