source: svn/trunk/newcon3bcm2_21bu/toolchain/mipsel-linux-uclibc/include/asm/m48t37.h @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 730 bytes
Line 
1/*
2 *  Registers for the SGS-Thomson M48T37 Timekeeper RAM chip
3 */
4#ifndef _ASM_M48T37_H
5#define _ASM_M48T37_H
6
7#include <linux/spinlock.h>
8
9extern spinlock_t rtc_lock;
10
11struct m48t37_rtc {
12        volatile __u8   pad[0x7ff0];    /* NVRAM */
13        volatile __u8   flags;
14        volatile __u8   century;
15        volatile __u8   alarm_sec;
16        volatile __u8   alarm_min;
17        volatile __u8   alarm_hour;
18        volatile __u8   alarm_data;
19        volatile __u8   interrupts;
20        volatile __u8   watchdog;
21        volatile __u8   control;
22        volatile __u8   sec;
23        volatile __u8   min;
24        volatile __u8   hour;
25        volatile __u8   day;
26        volatile __u8   date;
27        volatile __u8   month;
28        volatile __u8   year;
29};
30
31#define M48T37_RTC_SET          0x80
32#define M48T37_RTC_STOPPED      0x80
33#define M48T37_RTC_READ         0x40
34
35#endif /* _ASM_M48T37_H */
Note: See TracBrowser for help on using the repository browser.