Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/of_platform.h>
#include <linux/uaccess.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <lantiq_soc.h>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | LTQ_WDT_PW1 0x00BE0000 |
#define | LTQ_WDT_PW2 0x00DC0000 |
#define | LTQ_WDT_CR 0x0 /* watchdog control register */ |
#define | LTQ_WDT_SR 0x8 /* watchdog status register */ |
#define | LTQ_WDT_SR_EN (0x1 << 31) /* enable bit */ |
#define | LTQ_WDT_SR_PWD (0x3 << 26) /* turn on power */ |
#define | LTQ_WDT_SR_CLKDIV (0x3 << 24) /* turn on clock and set */ |
#define | LTQ_WDT_DIVIDER 0x40000 |
#define | LTQ_MAX_TIMEOUT ((1 << 16) - 1) /* the reload field is 16 bit */ |
Functions | |
MODULE_DEVICE_TABLE (of, ltq_wdt_match) | |
module_platform_driver (ltq_wdt_driver) | |
module_param (nowayout, bool, 0) | |
MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started") | |
MODULE_AUTHOR ("John Crispin <[email protected]>") | |
MODULE_DESCRIPTION ("Lantiq SoC Watchdog") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
Definition at line 42 of file lantiq_wdt.c.
#define LTQ_WDT_CR 0x0 /* watchdog control register */ |
Definition at line 34 of file lantiq_wdt.c.
#define LTQ_WDT_DIVIDER 0x40000 |
Definition at line 41 of file lantiq_wdt.c.
#define LTQ_WDT_PW1 0x00BE0000 |
Definition at line 31 of file lantiq_wdt.c.
#define LTQ_WDT_PW2 0x00DC0000 |
Definition at line 32 of file lantiq_wdt.c.
#define LTQ_WDT_SR 0x8 /* watchdog status register */ |
Definition at line 35 of file lantiq_wdt.c.
#define LTQ_WDT_SR_CLKDIV (0x3 << 24) /* turn on clock and set */ |
Definition at line 39 of file lantiq_wdt.c.
#define LTQ_WDT_SR_EN (0x1 << 31) /* enable bit */ |
Definition at line 37 of file lantiq_wdt.c.
#define LTQ_WDT_SR_PWD (0x3 << 26) /* turn on power */ |
Definition at line 38 of file lantiq_wdt.c.
Definition at line 10 of file lantiq_wdt.c.
MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
MODULE_AUTHOR | ( | "John Crispin <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Lantiq SoC Watchdog" | ) |
MODULE_DEVICE_TABLE | ( | of | , |
ltq_wdt_match | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | nowayout | , |
bool | , | ||
0 | |||
) |
module_platform_driver | ( | ltq_wdt_driver | ) |