diff options
author | Antoine Mathys <barsamin@gmail.com> | 2012-12-13 14:05:27 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-12-13 14:05:27 +0000 |
commit | 95c9361598e66de42facdac64e614e3de85186f5 (patch) | |
tree | a39364b8a0921f6c8914b772c410e90c9b868eb3 /hw/ds1338.c | |
parent | 580f5c000809108f51a77ae74709100d32be6ea5 (diff) | |
download | qemu-95c9361598e66de42facdac64e614e3de85186f5.tar.gz |
hw/ds1338.c: Add definitions for various flags in the RTC registers.
Signed-off-by: Antoine Mathys <barsamin@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ds1338.c')
-rw-r--r-- | hw/ds1338.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/ds1338.c b/hw/ds1338.c index faaa4a0a93..69018bc966 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -17,6 +17,12 @@ */ #define NVRAM_SIZE 64 +/* Flags definitions */ +#define SECONDS_CH 0x80 +#define HOURS_12 0x40 +#define HOURS_PM 0x20 +#define CTRL_OSF 0x20 + typedef struct { I2CSlave i2c; int64_t offset; |