#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/pm_runtime.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <asm/watchdog.h>
Go to the source code of this file.
|
| module_init (sh_wdt_init) |
|
| module_exit (sh_wdt_exit) |
|
| MODULE_AUTHOR ("Paul Mundt <[email protected]>") |
|
| MODULE_DESCRIPTION ("SuperH watchdog driver") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS ("platform:"DRV_NAME) |
|
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
|
| module_param (clock_division_ratio, int, 0) |
|
| MODULE_PARM_DESC (clock_division_ratio,"Clock division ratio. Valid ranges are from 0x5 (1.31ms) ""to 0x7 (5.25ms). (default="__MODULE_STRING(WTCSR_CKS_4096)")") |
|
| module_param (heartbeat, int, 0) |
|
| MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")") |
|
| module_param (nowayout, bool, 0) |
|
| MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") |
|
#define DRV_NAME "sh-wdt" |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat */ |
MODULE_ALIAS |
( |
"platform:" |
DRV_NAME | ) |
|
module_exit |
( |
sh_wdt_exit |
| ) |
|
module_init |
( |
sh_wdt_init |
| ) |
|
module_param |
( |
clock_division_ratio |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
clock_division_ratio |
, |
|
|
"Clock division ratio. Valid ranges are from 0x5 (1.31ms) ""to 0x7 (5.25ms). (default="__MODULE_STRING(WTCSR_CKS_4096)")" |
|
|
) |
| |