19.1 Enable watchdog
Linux 2.6.25.8 and 2.6.30.4 have watchdog driver. But they still need minor changes.
Modify “drivers/watchdog/s3c2410_wdt.c”£¬line 62 and 63:
#undef S3C_VA_WATCHDOG
#define S3C_VA_WATCHDOG (0)
#include <asm/plat-s3c/regs-watchdog.h>
#define PFX “s3c2410-wdt: ”
#define CONFIG_S3C2410_WATCHDOG_ATBOOT (1) //enable watchdog
#define CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME (30) //set watchdog
static int nowayout = WATCHDOG_NOWAYOUT;
static int tmr_margin = CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME;
static int tmr_atboot= CONFIG_S3C2410_WATCHDOG_ATBOOT;
static int soft_noboot = 0;
static int debug = 0;
Full article: http://www.cutedigi.com/pub/Linux/LinuxPort/TUT19.pdf
Leave a Reply
You must be logged in to post a comment.