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>
This commit is contained in:
parent
580f5c0008
commit
95c9361598
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user