diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-01-26 13:26:34 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-01-26 13:26:34 -0500 |
commit | b7f44f6e0676a933c5aa4d892d789c46daeaaa27 (patch) | |
tree | 1e48e5b6614ec85f5ee9d3d2254f90814ae88e0b /dev/tsunamireg.h | |
parent | 9b397ce7f45fc275f9004d78520628e2e7c0dd16 (diff) | |
download | gem5-b7f44f6e0676a933c5aa4d892d789c46daeaaa27.tar.xz |
Support for Tsunami coming along... RTC, PIC working, UART in progress
dev/tsunami_io.cc:
PIC, PIT, RTC implementation for tsunami working so far
dev/tsunami_io.hh:
PIT, PIC, RTC implementation for tlaser working so far
dev/tsunamireg.h:
Added RTC defines
kern/linux/linux_system.cc:
wrote cycle frequency into variable so linux doesn't probe for it.
The support exists, but it takes two seconds of time to do on a real
machine, so forever in the simulator.
--HG--
extra : convert_revision : e0ed7f271ece4ed69c06af35d1b0e8ed848cd138
Diffstat (limited to 'dev/tsunamireg.h')
-rw-r--r-- | dev/tsunamireg.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev/tsunamireg.h b/dev/tsunamireg.h index f178974b9..7201edf94 100644 --- a/dev/tsunamireg.h +++ b/dev/tsunamireg.h @@ -78,4 +78,26 @@ #define TSDEV_TMR2_CTL 0x43 #define TSDEV_TMR2_DATA 0x42 #define TSDEV_TMR0_DATA 0x40 + +#define TSDEV_RTC_ADDR 0x70 +#define TSDEV_RTC_DATA 0x71 + +// RTC defines +#define RTC_SECOND 0 // second of minute [0..59] +#define RTC_SECOND_ALARM 1 // seconds to alarm +#define RTC_MINUTE 2 // minute of hour [0..59] +#define RTC_MINUTE_ALARM 3 // minutes to alarm +#define RTC_HOUR 4 // hour of day [0..23] +#define RTC_HOUR_ALARM 5 // hours to alarm +#define RTC_DAY_OF_WEEK 6 // day of week [1..7] +#define RTC_DAY_OF_MONTH 7 // day of month [1..31] +#define RTC_MONTH 8 // month of year [1..12] +#define RTC_YEAR 9 // year [00..99] +#define RTC_CONTROL_REGISTERA 10 // control register A +#define RTC_CONTROL_REGISTERB 11 // control register B +#define RTC_CONTROL_REGISTERC 12 // control register C +#define RTC_CONTROL_REGISTERD 13 // control register D +#define RTC_REGNUMBER_RTC_CR1 0x6A // control register 1 + + #endif // __TSUNAMIREG_H__ |