Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#include <linux/interrupt.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/err.h>
Go to the source code of this file.
Functions | |
void | coh901327_watchdog_reset (void) |
module_init (coh901327_init) | |
module_exit (coh901327_exit) | |
MODULE_AUTHOR ("Linus Walleij <[email protected]>") | |
MODULE_DESCRIPTION ("COH 901 327 Watchdog") | |
module_param (margin, uint, 0) | |
MODULE_PARM_DESC (margin,"Watchdog margin in seconds (default 60s)") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:coh901327-watchdog") | |
#define coh901327_resume NULL |
Definition at line 414 of file coh901327_wdt.c.
#define coh901327_suspend NULL |
Definition at line 413 of file coh901327_wdt.c.
#define DRV_NAME "WDOG COH 901 327" |
Definition at line 21 of file coh901327_wdt.c.
#define U300_WDOG_CR 0x14 |
Definition at line 47 of file coh901327_wdt.c.
#define U300_WDOG_CR_COUNT_VALUE_MASK 0x7FFFU |
Definition at line 50 of file coh901327_wdt.c.
#define U300_WDOG_CR_VALID_IND 0x8000U |
Definition at line 48 of file coh901327_wdt.c.
#define U300_WDOG_CR_VALID_STABLE 0x0000U |
Definition at line 49 of file coh901327_wdt.c.
#define U300_WDOG_D1R 0x08 |
Definition at line 34 of file coh901327_wdt.c.
#define U300_WDOG_D1R_DISABLE1_DISABLE_TIMER 0x2BADU |
Definition at line 35 of file coh901327_wdt.c.
#define U300_WDOG_D2R 0x0C |
Definition at line 37 of file coh901327_wdt.c.
#define U300_WDOG_D2R_DISABLE2_DISABLE_TIMER 0xCAFEU |
Definition at line 38 of file coh901327_wdt.c.
#define U300_WDOG_D2R_DISABLE_STATUS_DISABLED 0xDABEU |
Definition at line 39 of file coh901327_wdt.c.
#define U300_WDOG_D2R_DISABLE_STATUS_ENABLED 0x0000U |
Definition at line 40 of file coh901327_wdt.c.
#define U300_WDOG_FR 0x00 |
Definition at line 28 of file coh901327_wdt.c.
#define U300_WDOG_FR_FEED_RESTART_TIMER 0xFEEDU |
Definition at line 29 of file coh901327_wdt.c.
#define U300_WDOG_IER 0x20 |
Definition at line 59 of file coh901327_wdt.c.
#define U300_WDOG_IER_WILL_BARK_IRQ_ACK_ENABLE 0x0001U |
Definition at line 61 of file coh901327_wdt.c.
#define U300_WDOG_IER_WILL_BARK_IRQ_EVENT_IND 0x0001U |
Definition at line 60 of file coh901327_wdt.c.
#define U300_WDOG_IFR 0x28 |
Definition at line 66 of file coh901327_wdt.c.
#define U300_WDOG_IFR_WILL_BARK_IRQ_FORCE_ENABLE 0x0001U |
Definition at line 67 of file coh901327_wdt.c.
#define U300_WDOG_IMR 0x24 |
Definition at line 63 of file coh901327_wdt.c.
#define U300_WDOG_IMR_WILL_BARK_IRQ_ENABLE 0x0001U |
Definition at line 64 of file coh901327_wdt.c.
#define U300_WDOG_JOR 0x18 |
Definition at line 52 of file coh901327_wdt.c.
#define U300_WDOG_JOR_JTAG_MODE_IND 0x0002U |
Definition at line 53 of file coh901327_wdt.c.
#define U300_WDOG_JOR_JTAG_WATCHDOG_ENABLE 0x0001U |
Definition at line 54 of file coh901327_wdt.c.
#define U300_WDOG_RR 0x1C |
Definition at line 56 of file coh901327_wdt.c.
#define U300_WDOG_RR_RESTART_VALUE_RESUME 0xACEDU |
Definition at line 57 of file coh901327_wdt.c.
#define U300_WDOG_SR 0x10 |
Definition at line 42 of file coh901327_wdt.c.
#define U300_WDOG_SR_RESET_STATUS_RESET 0xE8B4U |
Definition at line 45 of file coh901327_wdt.c.
#define U300_WDOG_SR_STATUS_NORMAL 0x0000U |
Definition at line 44 of file coh901327_wdt.c.
#define U300_WDOG_SR_STATUS_TIMED_OUT 0xCFE8U |
Definition at line 43 of file coh901327_wdt.c.
#define U300_WDOG_TR 0x04 |
Definition at line 31 of file coh901327_wdt.c.
#define U300_WDOG_TR_TIMEOUT_MASK 0x7FFFU |
Definition at line 32 of file coh901327_wdt.c.
Definition at line 421 of file coh901327_wdt.c.
MODULE_ALIAS | ( | "platform:coh901327-watchdog" | ) |
MODULE_AUTHOR | ( | "Linus Walleij <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "COH 901 327 Watchdog" | ) |
module_exit | ( | coh901327_exit | ) |
module_init | ( | coh901327_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | margin | , |
uint | , | ||
0 | |||
) |