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
0558d7a8
Commit
0558d7a8
authored
Sep 11, 2012
by
Olof Johansson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ks8695/timer' into next/cleanup
* ks8695/timer: watchdog: ks8695: sink registers into driver
parents
7ad8f8f1
cab463a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
drivers/watchdog/ks8695_wdt.c
drivers/watchdog/ks8695_wdt.c
+13
-1
No files found.
drivers/watchdog/ks8695_wdt.c
View file @
0558d7a8
...
...
@@ -24,7 +24,19 @@
#include <linux/io.h>
#include <linux/uaccess.h>
#include <mach/hardware.h>
#include <mach/regs-timer.h>
#define KS8695_TMR_OFFSET (0xF0000 + 0xE400)
#define KS8695_TMR_VA (KS8695_IO_VA + KS8695_TMR_OFFSET)
/*
* Timer registers
*/
#define KS8695_TMCON (0x00)
/* Timer Control Register */
#define KS8695_T0TC (0x08)
/* Timer 0 Timeout Count Register */
#define TMCON_T0EN (1 << 0)
/* Timer 0 Enable */
/* Timer0 Timeout Counter Register */
#define T0TC_WATCHDOG (0xff)
/* Enable watchdog mode */
#define WDT_DEFAULT_TIME 5
/* seconds */
#define WDT_MAX_TIME 171
/* seconds */
...
...
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