Linux Kernel
3.7.1
|
#include <linux/bcd.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/spi/spi.h>
Go to the source code of this file.
Macros | |
#define | M41T93_REG_SSEC 0 |
#define | M41T93_REG_ST_SEC 1 |
#define | M41T93_REG_MIN 2 |
#define | M41T93_REG_CENT_HOUR 3 |
#define | M41T93_REG_WDAY 4 |
#define | M41T93_REG_DAY 5 |
#define | M41T93_REG_MON 6 |
#define | M41T93_REG_YEAR 7 |
#define | M41T93_REG_ALM_HOUR_HT 0xc |
#define | M41T93_REG_FLAGS 0xf |
#define | M41T93_FLAG_ST (1 << 7) |
#define | M41T93_FLAG_OF (1 << 2) |
#define | M41T93_FLAG_BL (1 << 4) |
#define | M41T93_FLAG_HT (1 << 6) |
Functions | |
module_spi_driver (m41t93_driver) | |
MODULE_AUTHOR ("Nikolaus Voss <[email protected]>") | |
MODULE_DESCRIPTION ("Driver for ST M41T93 SPI RTC") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("spi:rtc-m41t93") | |
#define M41T93_FLAG_BL (1 << 4) |
Definition at line 34 of file rtc-m41t93.c.
#define M41T93_FLAG_HT (1 << 6) |
Definition at line 35 of file rtc-m41t93.c.
#define M41T93_FLAG_OF (1 << 2) |
Definition at line 33 of file rtc-m41t93.c.
#define M41T93_FLAG_ST (1 << 7) |
Definition at line 32 of file rtc-m41t93.c.
#define M41T93_REG_ALM_HOUR_HT 0xc |
Definition at line 29 of file rtc-m41t93.c.
#define M41T93_REG_CENT_HOUR 3 |
Definition at line 22 of file rtc-m41t93.c.
#define M41T93_REG_DAY 5 |
Definition at line 24 of file rtc-m41t93.c.
#define M41T93_REG_FLAGS 0xf |
Definition at line 30 of file rtc-m41t93.c.
#define M41T93_REG_MIN 2 |
Definition at line 21 of file rtc-m41t93.c.
#define M41T93_REG_MON 6 |
Definition at line 25 of file rtc-m41t93.c.
#define M41T93_REG_SSEC 0 |
Definition at line 19 of file rtc-m41t93.c.
#define M41T93_REG_ST_SEC 1 |
Definition at line 20 of file rtc-m41t93.c.
#define M41T93_REG_WDAY 4 |
Definition at line 23 of file rtc-m41t93.c.
#define M41T93_REG_YEAR 7 |
Definition at line 26 of file rtc-m41t93.c.
MODULE_ALIAS | ( | "spi:rtc-m41t93" | ) |
MODULE_AUTHOR | ( | "Nikolaus Voss <[email protected]>" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_spi_driver | ( | m41t93_driver | ) |