sh: Tidy up watchdog build for SH-2.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -13,10 +13,18 @@
|
|||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <cpu/watchdog.h>
|
#include <linux/io.h>
|
||||||
#include <asm/io.h>
|
|
||||||
|
|
||||||
/*
|
#define WTCNT_HIGH 0x5a
|
||||||
|
#define WTCSR_HIGH 0xa5
|
||||||
|
|
||||||
|
#define WTCSR_CKS2 0x04
|
||||||
|
#define WTCSR_CKS1 0x02
|
||||||
|
#define WTCSR_CKS0 0x01
|
||||||
|
|
||||||
|
#include <cpu/watchdog.h>
|
||||||
|
|
||||||
|
/*
|
||||||
* See cpu-sh2/watchdog.h for explanation of this stupidity..
|
* See cpu-sh2/watchdog.h for explanation of this stupidity..
|
||||||
*/
|
*/
|
||||||
#ifndef WTCNT_R
|
#ifndef WTCNT_R
|
||||||
@@ -27,13 +35,6 @@
|
|||||||
# define WTCSR_R WTCSR
|
# define WTCSR_R WTCSR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define WTCNT_HIGH 0x5a
|
|
||||||
#define WTCSR_HIGH 0xa5
|
|
||||||
|
|
||||||
#define WTCSR_CKS2 0x04
|
|
||||||
#define WTCSR_CKS1 0x02
|
|
||||||
#define WTCSR_CKS0 0x01
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CKS0-2 supports a number of clock division ratios. At the time the watchdog
|
* CKS0-2 supports a number of clock division ratios. At the time the watchdog
|
||||||
* is enabled, it defaults to a 41 usec overflow period .. we overload this to
|
* is enabled, it defaults to a 41 usec overflow period .. we overload this to
|
||||||
|
Reference in New Issue
Block a user