Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c6b9684d
Commit
c6b9684d
authored
Feb 27, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Plain Diff
Merge halogen.(none):/home/davej/src/kernel/2.5/bk-linus
into halogen.(none):/home/davej/src/kernel/2.5/watchdog
parents
be8013e8
0a3cec77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
drivers/char/watchdog/shwdt.c
drivers/char/watchdog/shwdt.c
+9
-6
No files found.
drivers/char/watchdog/shwdt.c
View file @
c6b9684d
/*
* drivers/char/shwdt.c
*
* Watchdog driver for integrated watchdog in the SuperH
3/4
processors.
* Watchdog driver for integrated watchdog in the SuperH processors.
*
* Copyright (C) 2001
Paul Mundt <lethal@chaoticdreams
.org>
* Copyright (C) 2001
, 2002 Paul Mundt <lethal@0xd6
.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
...
...
@@ -26,14 +26,17 @@
#include <asm/io.h>
#include <asm/uaccess.h>
#if defined(CONFIG_CPU_SH4)
#if defined(CONFIG_CPU_SH5)
#define WTCNT CPRC_BASE + 0x10
#define WTCSR CPRC_BASE + 0x18
#elif defined(CONFIG_CPU_SH4)
#define WTCNT 0xffc00008
#define WTCSR 0xffc0000c
#elif defined(CONFIG_CPU_SH3)
#define WTCNT 0xffffff84
#define WTCSR 0xffffff86
#else
#error "Can't use S
H 3/4 watchdog on non-SH 3/4 processor.
"
#error "Can't use S
uperH watchdog on this platform
"
#endif
#define WTCNT_HIGH 0x5a00
...
...
@@ -405,8 +408,8 @@ static void __exit sh_wdt_exit(void)
misc_deregister
(
&
sh_wdt_miscdev
);
}
MODULE_AUTHOR
(
"Paul Mundt <lethal@
chaoticdreams
.org>"
);
MODULE_DESCRIPTION
(
"S
H 3/4
watchdog driver"
);
MODULE_AUTHOR
(
"Paul Mundt <lethal@
0xd6
.org>"
);
MODULE_DESCRIPTION
(
"S
uperH
watchdog driver"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
clock_division_ratio
,
"i"
);
MODULE_PARM_DESC
(
clock_division_ratio
,
"Clock division ratio. Valid ranges are from 0x5 (1.31ms) to 0x7 (5.25ms). Defaults to 0x7."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment