|
Linux Kernel
3.7.1
|
#include <linux/platform_device.h>#include <linux/module.h>#include <linux/init.h>#include <linux/rtc.h>#include <linux/types.h>#include <linux/bcd.h>#include <linux/rtc-ds2404.h>#include <linux/delay.h>#include <linux/gpio.h>#include <linux/slab.h>#include <linux/io.h>Go to the source code of this file.
Data Structures | |
| struct | ds2404_chip_ops |
| struct | ds2404_gpio |
| struct | ds2404 |
Macros | |
| #define | DS2404_STATUS_REG 0x200 |
| #define | DS2404_CONTROL_REG 0x201 |
| #define | DS2404_RTC_REG 0x202 |
| #define | DS2404_WRITE_SCRATCHPAD_CMD 0x0f |
| #define | DS2404_READ_SCRATCHPAD_CMD 0xaa |
| #define | DS2404_COPY_SCRATCHPAD_CMD 0x55 |
| #define | DS2404_READ_MEMORY_CMD 0xf0 |
| #define | DS2404_RST 0 |
| #define | DS2404_CLK 1 |
| #define | DS2404_DQ 2 |
Functions | |
| module_init (ds2404_init) | |
| module_exit (ds2404_exit) | |
| MODULE_DESCRIPTION ("DS2404 RTC") | |
| MODULE_AUTHOR ("Sven Schnelle") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS ("platform:ds2404") | |
| #define DS2404_CLK 1 |
Definition at line 41 of file rtc-ds2404.c.
| #define DS2404_CONTROL_REG 0x201 |
Definition at line 24 of file rtc-ds2404.c.
| #define DS2404_COPY_SCRATCHPAD_CMD 0x55 |
Definition at line 29 of file rtc-ds2404.c.
| #define DS2404_DQ 2 |
Definition at line 42 of file rtc-ds2404.c.
| #define DS2404_READ_MEMORY_CMD 0xf0 |
Definition at line 30 of file rtc-ds2404.c.
| #define DS2404_READ_SCRATCHPAD_CMD 0xaa |
Definition at line 28 of file rtc-ds2404.c.
| #define DS2404_RST 0 |
Definition at line 40 of file rtc-ds2404.c.
| #define DS2404_RTC_REG 0x202 |
Definition at line 25 of file rtc-ds2404.c.
| #define DS2404_STATUS_REG 0x200 |
Definition at line 23 of file rtc-ds2404.c.
| #define DS2404_WRITE_SCRATCHPAD_CMD 0x0f |
Definition at line 27 of file rtc-ds2404.c.
| MODULE_ALIAS | ( | "platform:ds2404" | ) |
| MODULE_AUTHOR | ( | "Sven Schnelle" | ) |
| MODULE_DESCRIPTION | ( | "DS2404 RTC" | ) |
| module_exit | ( | ds2404_exit | ) |
| module_init | ( | ds2404_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2