Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/rtc.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/of.h>
Go to the source code of this file.
Data Structures | |
struct | lpc32xx_rtc |
Macros | |
#define | LPC32XX_RTC_UCOUNT 0x00 |
#define | LPC32XX_RTC_DCOUNT 0x04 |
#define | LPC32XX_RTC_MATCH0 0x08 |
#define | LPC32XX_RTC_MATCH1 0x0C |
#define | LPC32XX_RTC_CTRL 0x10 |
#define | LPC32XX_RTC_INTSTAT 0x14 |
#define | LPC32XX_RTC_KEY 0x18 |
#define | LPC32XX_RTC_SRAM 0x80 |
#define | LPC32XX_RTC_CTRL_MATCH0 (1 << 0) |
#define | LPC32XX_RTC_CTRL_MATCH1 (1 << 1) |
#define | LPC32XX_RTC_CTRL_ONSW_MATCH0 (1 << 2) |
#define | LPC32XX_RTC_CTRL_ONSW_MATCH1 (1 << 3) |
#define | LPC32XX_RTC_CTRL_SW_RESET (1 << 4) |
#define | LPC32XX_RTC_CTRL_CNTR_DIS (1 << 6) |
#define | LPC32XX_RTC_CTRL_ONSW_FORCE_HI (1 << 7) |
#define | LPC32XX_RTC_INTSTAT_MATCH0 (1 << 0) |
#define | LPC32XX_RTC_INTSTAT_MATCH1 (1 << 1) |
#define | LPC32XX_RTC_INTSTAT_ONSW (1 << 2) |
#define | LPC32XX_RTC_KEY_ONSW_LOADVAL 0xB5C13F27 |
#define | RTC_NAME "rtc-lpc32xx" |
#define | rtc_readl(dev, reg) __raw_readl((dev)->rtc_base + (reg)) |
#define | rtc_writel(dev, reg, val) __raw_writel((val), (dev)->rtc_base + (reg)) |
#define | LPC32XX_RTC_PM_OPS NULL |
Functions | |
module_platform_driver (lpc32xx_rtc_driver) | |
MODULE_AUTHOR ("Kevin Wells <[email protected]") | |
MODULE_DESCRIPTION ("RTC driver for the LPC32xx SoC") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:rtc-lpc32xx") | |
#define LPC32XX_RTC_CTRL 0x10 |
Definition at line 31 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_CTRL_CNTR_DIS (1 << 6) |
Definition at line 41 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_CTRL_MATCH0 (1 << 0) |
Definition at line 36 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_CTRL_MATCH1 (1 << 1) |
Definition at line 37 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_CTRL_ONSW_FORCE_HI (1 << 7) |
Definition at line 42 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_CTRL_ONSW_MATCH0 (1 << 2) |
Definition at line 38 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_CTRL_ONSW_MATCH1 (1 << 3) |
Definition at line 39 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_CTRL_SW_RESET (1 << 4) |
Definition at line 40 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_DCOUNT 0x04 |
Definition at line 28 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_INTSTAT 0x14 |
Definition at line 32 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_INTSTAT_MATCH0 (1 << 0) |
Definition at line 44 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_INTSTAT_MATCH1 (1 << 1) |
Definition at line 45 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_INTSTAT_ONSW (1 << 2) |
Definition at line 46 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_KEY 0x18 |
Definition at line 33 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_KEY_ONSW_LOADVAL 0xB5C13F27 |
Definition at line 48 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_MATCH0 0x08 |
Definition at line 29 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_MATCH1 0x0C |
Definition at line 30 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_PM_OPS NULL |
Definition at line 387 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_SRAM 0x80 |
Definition at line 34 of file rtc-lpc32xx.c.
#define LPC32XX_RTC_UCOUNT 0x00 |
Definition at line 27 of file rtc-lpc32xx.c.
#define RTC_NAME "rtc-lpc32xx" |
Definition at line 50 of file rtc-lpc32xx.c.
#define rtc_readl | ( | dev, | |
reg | |||
) | __raw_readl((dev)->rtc_base + (reg)) |
Definition at line 52 of file rtc-lpc32xx.c.
Definition at line 54 of file rtc-lpc32xx.c.
MODULE_ALIAS | ( | "platform:rtc-lpc32xx" | ) |
MODULE_AUTHOR | ( | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | lpc32xx_rtc_driver | ) |