Home | History | Annotate | Line # | Download | only in ep93xx
epclkreg.h revision 1.2
      1  1.2  hamajima /*	$NetBSD: epclkreg.h,v 1.2 2005/11/12 05:33:23 hamajima Exp $ */
      2  1.1      joff 
      3  1.1      joff /*
      4  1.1      joff  * Copyright (c) 2004 Jesse Off
      5  1.1      joff  *
      6  1.1      joff  * Redistribution and use in source and binary forms, with or without
      7  1.1      joff  * modification, are permitted provided that the following conditions
      8  1.1      joff  * are met:
      9  1.1      joff  * 1. Redistributions of source code must retain the above copyright
     10  1.1      joff  *    notice, this list of conditions and the following disclaimer.
     11  1.1      joff  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1      joff  *    notice, this list of conditions and the following disclaimer in the
     13  1.1      joff  *    documentation and/or other materials provided with the distribution.
     14  1.1      joff  * 3. All advertising materials mentioning features or use of this software
     15  1.1      joff  *    must display the following acknowledgement:
     16  1.1      joff  *	This product includes software developed by Ichiro FUKUHARA.
     17  1.1      joff  * 4. Neither the name of the author nor the names of any co-contributors
     18  1.1      joff  *    may be used to endorse or promote products derived from this software
     19  1.1      joff  *    without specific prior written permission.
     20  1.1      joff  *
     21  1.1      joff  * THIS SOFTWARE IS PROVIDED BY ICHIRO FUKUHARA AND CONTRIBUTORS ``AS IS''
     22  1.1      joff  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     23  1.1      joff  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     24  1.1      joff  * ARE DISCLAIMED.  IN NO EVENT SHALL ICHIRO FUKUHARA OR THE VOICES IN HIS
     25  1.1      joff  * HEAD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
     26  1.1      joff  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     27  1.1      joff  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     28  1.1      joff  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     29  1.1      joff  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     30  1.1      joff  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     31  1.1      joff  * THE POSSIBILITY OF SUCH DAMAGE.
     32  1.1      joff  */
     33  1.1      joff 
     34  1.1      joff 
     35  1.1      joff #ifndef _EPCLKREG_H_
     36  1.1      joff #define _EPCLKREG_H_
     37  1.1      joff 
     38  1.2  hamajima /* Timer1 16-bit timer (Free running/Load based) */
     39  1.2  hamajima #define	EP93XX_TIMERS_Timer1Load	0x00000000UL
     40  1.2  hamajima #define	 TimerLoad_MASK			0x0000ffffUL
     41  1.2  hamajima #define	EP93XX_TIMERS_Timer1Value	0x00000004UL
     42  1.2  hamajima #define	 TimerValue_MASK		0x0000ffffUL
     43  1.2  hamajima #define	EP93XX_TIMERS_Timer1Control	0x00000008UL
     44  1.2  hamajima #define	 TimerControl_ENABLE		(1<<7)
     45  1.2  hamajima #define	 TimerControl_MODE		(1<<6)
     46  1.2  hamajima #define	 TimerControl_CLKSEL		(1<<3)
     47  1.2  hamajima #define	EP93XX_TIMERS_Timer1Clear	0x0000000cUL
     48  1.2  hamajima 
     49  1.2  hamajima /* Timer2 16-bit timer (Free running/Load based) */
     50  1.2  hamajima #define	EP93XX_TIMERS_Timer2Load	0x00000020UL
     51  1.2  hamajima #define	EP93XX_TIMERS_Timer2Value	0x00000024UL
     52  1.2  hamajima #define	EP93XX_TIMERS_Timer2Control	0x00000028UL
     53  1.2  hamajima #define	EP93XX_TIMERS_Timer2Clear	0x0000002cUL
     54  1.2  hamajima 
     55  1.2  hamajima /* Timer3 32-bit timer (Free running/Load based) */
     56  1.2  hamajima #define	EP93XX_TIMERS_Timer3Load	0x00000080UL
     57  1.2  hamajima #define	EP93XX_TIMERS_Timer3Value	0x00000084UL
     58  1.2  hamajima #define	EP93XX_TIMERS_Timer3Control	0x00000088UL
     59  1.2  hamajima #define	EP93XX_TIMERS_Timer3Clear	0x0000008cUL
     60  1.2  hamajima 
     61  1.2  hamajima /* Timer4 40-bit timer (Free running) */
     62  1.2  hamajima #define	EP93XX_TIMERS_Timer4Enable	0x00000064UL
     63  1.2  hamajima #define	EP93XX_TIMERS_Timer4ValueHigh	0x00000064UL
     64  1.2  hamajima #define	EP93XX_TIMERS_Timer4ValueLow	0x00000060UL
     65  1.1      joff 
     66  1.1      joff #endif /* _EPCLKREG_H_ */
     67