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
Kirill Smelkov
linux
Commits
214c6a7e
Commit
214c6a7e
authored
Jul 29, 2008
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] sa1100_wdt: use reset_status to remember watchdog reset status
Signed-off-by:
Eric Miao
<
eric.miao@marvell.com
>
parent
04fef228
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/watchdog/sa1100_wdt.c
drivers/watchdog/sa1100_wdt.c
+4
-1
No files found.
drivers/watchdog/sa1100_wdt.c
View file @
214c6a7e
...
...
@@ -31,6 +31,8 @@
#include <asm/arch/pxa-regs.h>
#endif
#include <asm/arch/reset.h>
#include <asm/hardware.h>
#include <asm/uaccess.h>
...
...
@@ -162,7 +164,8 @@ static int __init sa1100dog_init(void)
* we suspend, RCSR will be cleared, and the watchdog
* reset reason will be lost.
*/
boot_status
=
(
RCSR
&
RCSR_WDR
)
?
WDIOF_CARDRESET
:
0
;
boot_status
=
(
reset_status
&
RESET_STATUS_WATCHDOG
)
?
WDIOF_CARDRESET
:
0
;
pre_margin
=
OSCR_FREQ
*
margin
;
ret
=
misc_register
(
&
sa1100dog_miscdev
);
...
...
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