1/* $NetBSD: pcf8563reg.h,v 1.1 2011/01/21 19:11:47 jakllsch Exp $ */ 2 3/*- 4 * Jonathan Kollasch, 2011 5 * 6 * This file is in the public domain. 7 * 8 * $FreeBSD: releng/10.2/sys/dev/iicbus/pcf8563reg.h 234248 2012-04-13 23:07:32Z marius $ 9 */ 10 11/* 12 * NXP (Philips) PCF8563 RTC registers 13 */ 14 15/* We only have clock mode registers here. */ 16 17#ifndef _PCF8563REG_H_ 18#define _PCF8563REG_H_ 19 20/* 21 * PCF8563 RTC I2C address: 22 * 23 * 101 0001 24 */ 25#define PCF8563_ADDR 0xa2 26 27#define PCF8563_R_CS1 0x00 28#define PCF8563_R_CS2 0x01 29#define PCF8563_R_SECOND 0x02 30#define PCF8563_R_MINUTE 0x03 31#define PCF8563_R_HOUR 0x04 32#define PCF8563_R_DAY 0x05 33#define PCF8563_R_WEEKDAY 0x06 34#define PCF8563_R_MONTH 0x07 35#define PCF8563_R_YEAR 0x08 36#define PCF8563_R_MINUTE_ALARM 0x09 37#define PCF8563_R_HOUR_ALARM 0x0a 38#define PCF8563_R_DAY_ALARM 0x0b 39#define PCF8563_R_WEEKDAY_ALARM 0x0c 40#define PCF8563_R_CLKOUT_CNTRL 0x0d 41#define PCF8563_R_TIMER_CNTRL 0x0e 42#define PCF8563_R_TIMER 0x0f 43 44#define PCF8563_R_SECOND_VL 0x80 45#define PCF8563_R_MONTH_C 0x80 46 47#define PCF8563_NREGS 0x10 48 49#define PCF8563_M_SECOND 0x7f 50#define PCF8563_M_MINUTE 0x7f 51#define PCF8563_M_HOUR 0x3f 52#define PCF8563_M_DAY 0x3f 53#define PCF8563_M_WEEKDAY 0x07 54#define PCF8563_M_MONTH 0x1f 55#define PCF8563_M_CENTURY 0x80 56#define PCF8563_M_YEAR 0xff 57 58#endif /* _PCF8563REG_H_ */ 59