Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/rtc.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/bcd.h>
Go to the source code of this file.
Data Structures | |
struct | bq32k_regs |
Macros | |
#define | BQ32K_SECONDS 0x00 /* Seconds register address */ |
#define | BQ32K_SECONDS_MASK 0x7F /* Mask over seconds value */ |
#define | BQ32K_STOP 0x80 /* Oscillator Stop flat */ |
#define | BQ32K_MINUTES 0x01 /* Minutes register address */ |
#define | BQ32K_MINUTES_MASK 0x7F /* Mask over minutes value */ |
#define | BQ32K_OF 0x80 /* Oscillator Failure flag */ |
#define | BQ32K_HOURS_MASK 0x3F /* Mask over hours value */ |
#define | BQ32K_CENT 0x40 /* Century flag */ |
#define | BQ32K_CENT_EN 0x80 /* Century flag enable bit */ |
Functions | |
MODULE_DEVICE_TABLE (i2c, bq32k_id) | |
module_i2c_driver (bq32k_driver) | |
MODULE_AUTHOR ("Semihalf, Piotr Ziecik <[email protected]>") | |
MODULE_DESCRIPTION ("TI BQ32000 I2C RTC driver") | |
MODULE_LICENSE ("GPL") | |
#define BQ32K_CENT 0x40 /* Century flag */ |
Definition at line 27 of file rtc-bq32k.c.
#define BQ32K_CENT_EN 0x80 /* Century flag enable bit */ |
Definition at line 28 of file rtc-bq32k.c.
#define BQ32K_HOURS_MASK 0x3F /* Mask over hours value */ |
Definition at line 26 of file rtc-bq32k.c.
#define BQ32K_MINUTES 0x01 /* Minutes register address */ |
Definition at line 22 of file rtc-bq32k.c.
#define BQ32K_MINUTES_MASK 0x7F /* Mask over minutes value */ |
Definition at line 23 of file rtc-bq32k.c.
#define BQ32K_OF 0x80 /* Oscillator Failure flag */ |
Definition at line 24 of file rtc-bq32k.c.
#define BQ32K_SECONDS 0x00 /* Seconds register address */ |
Definition at line 18 of file rtc-bq32k.c.
#define BQ32K_SECONDS_MASK 0x7F /* Mask over seconds value */ |
Definition at line 19 of file rtc-bq32k.c.
#define BQ32K_STOP 0x80 /* Oscillator Stop flat */ |
Definition at line 20 of file rtc-bq32k.c.
MODULE_AUTHOR | ( | " | Semihalf, |
Piotr Ziecik< kosmo @semihalf.com >" | |||
) |
MODULE_DEVICE_TABLE | ( | i2c | , |
bq32k_id | |||
) |
module_i2c_driver | ( | bq32k_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |