summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorJérémy Dufour2012-07-25 14:44:25 +0200
committerJérémy Dufour2012-10-18 10:24:59 +0200
commit9acce5e461a9df3a9bada8d40e92b399105b2b4a (patch)
treeb056bb950d778ac74a74b06722ab853af2e0e103 /cleopatre
parentcb86bac2abe5a53f1ec73511919c0ddf89e4cfcd (diff)
{cleo,polux}/linux/arm/wdt: remove duplicated comments, refs #3296
Those comments already exist in corresponding header file (include/asm-arm/arch-spc300/wdt.h). They do not need to be duplicated.
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-device-wdt.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-device-wdt.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-device-wdt.c
index 01bf76d159..8abd13af2f 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-device-wdt.c
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-device-wdt.c
@@ -26,32 +26,20 @@
#include <asm/hardware.h>
#include <asm/arch/wdt.h>
-/** Global watchdog mode variable */
uint32_t spc300_wdt_user_mode = 0;
EXPORT_SYMBOL(spc300_wdt_user_mode);
-/**
- * Start watchdog timer.
- */
void spc300_wdt_start(void)
{
//Enable WDT with reset pulse = 32pclk and without interrupt management
WDT_CR_VA = WDT_BF(RPL, 4) | WDT_BF(RMOD, 0) | WDT_BF(EN, 1);
}
-/**
- * Stop watchdog timer.
- */
void spc300_wdt_stop(void)
{
WDT_CR_VA = WDT_BF(EN, 0);
}
-/**
- * Switch watchdog between user and kernel mode.
- *
- * \param use_umode 1 to switch to user mode.
- */
void spc300_wdt_switch(int use_umode)
{
if(use_umode)
@@ -60,20 +48,11 @@ void spc300_wdt_switch(int use_umode)
spc300_wdt_user_mode = 0;
}
-/**
- * Refresh watchdog timer.
- */
void spc300_wdt_refresh(void)
{
WDT_CRR_VA = WDT_BF(CR, WDT_CR_VAL);
}
-/**
- * Change the watchdog time interval.
- *
- * \param new_time new time interval in seconds.
- * \return range error.
- */
int spc300_wdt_settimeout(int new_time)
{
uint32_t cnt_value, top;
@@ -97,11 +76,6 @@ int spc300_wdt_settimeout(int new_time)
return 0;
}
-/**
- * Get the watchdog time interval.
- *
- * \return time interval.
- */
int spc300_wdt_gettimeout(void)
{
uint32_t top;
@@ -113,12 +87,6 @@ int spc300_wdt_gettimeout(void)
return ((1 << (top+16)) / PCLK);
}
-/**
- * Restart watchdog timer.
- *
- * \param timeout time interval in seconds.
- * \return if new timeout is done.
- */
int spc300_wdt_restart(int timeout)
{
int result;