Source
x
/*
* Intersil ISL1208 rtc class driver
*
* Copyright 2005,2006 Hebert Valerio Riedel <hvr@gnu.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
*/
/* Register map */
/* rtc section */
/* 24h/12h mode */
/* PM/AM bit in 12h mode */
/* control/status section */
/* auto reset */
/* crystal oscillator */
/* write rtc */
/* event */
/* alarm */
/* battery */
/* rtc fail */
/* alarm enable */
/* interrupt/alarm mode */
/* event detection enable */
/* event in pull-up disable */
/* alarm section */
/* user section */
/* event section */
static struct i2c_driver isl1208_driver;
/* ISL1208 various variants */
enum isl1208_id {
TYPE_ISL1208 = 0,
TYPE_ISL1209,
TYPE_ISL1218,
TYPE_ISL1219,
ISL_LAST_ID
};
/* Chip capabilities table */
static const struct isl1208_config {
const char name[8];
unsigned int nvmem_length;
unsigned has_tamper:1;
unsigned has_timestamp:1;
} isl1208_configs[] = {
[TYPE_ISL1208] = { "isl1208", 2, false, false },