#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/miscdevice.h>
#include <linux/of_platform.h>
#include <linux/module.h>
#include <linux/watchdog.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <sysdev/fsl_soc.h>
Go to the source code of this file.
|
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|
#define | SWCRR_SWTC 0xFFFF0000 /* Software Watchdog Time Count. */ |
|
#define | SWCRR_SWEN 0x00000004 /* Watchdog Enable bit. */ |
|
#define | SWCRR_SWRI 0x00000002 /* Software Watchdog Reset/Interrupt Select bit.*/ |
|
#define | SWCRR_SWPR 0x00000001 /* Software Watchdog Counter Prescale bit. */ |
|
|
| module_param (timeout, ushort, 0) |
|
| MODULE_PARM_DESC (timeout,"Watchdog timeout in ticks. (0<timeout<65536, default=65535)") |
|
| module_param (reset, bool, 0) |
|
| MODULE_PARM_DESC (reset,"Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset") |
|
| module_param (nowayout, bool, 0) |
|
| MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") |
|
| MODULE_DEVICE_TABLE (of, mpc8xxx_wdt_match) |
|
| module_init (mpc8xxx_wdt_init_late) |
|
| arch_initcall (mpc8xxx_wdt_init) |
|
| module_exit (mpc8xxx_wdt_exit) |
|
| MODULE_AUTHOR ("Dave Updegraff, Kumar Gala") |
|
| MODULE_DESCRIPTION ("Driver for watchdog timer in MPC8xx/MPC83xx/MPC86xx ""uProcessors") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
|
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define SWCRR_SWEN 0x00000004 /* Watchdog Enable bit. */ |
#define SWCRR_SWPR 0x00000001 /* Software Watchdog Counter Prescale bit. */ |
#define SWCRR_SWRI 0x00000002 /* Software Watchdog Reset/Interrupt Select bit.*/ |
#define SWCRR_SWTC 0xFFFF0000 /* Software Watchdog Time Count. */ |
arch_initcall |
( |
mpc8xxx_wdt_init |
| ) |
|
MODULE_AUTHOR |
( |
"Dave |
Updegraff, |
|
|
Kumar Gala" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"Driver for watchdog timer in MPC8xx/MPC83xx/MPC86xx ""uProcessors" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
of |
, |
|
|
mpc8xxx_wdt_match |
|
|
) |
| |
module_exit |
( |
mpc8xxx_wdt_exit |
| ) |
|
module_init |
( |
mpc8xxx_wdt_init_late |
| ) |
|
module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |