• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeLinuxTQ2440TUT 19 Port WatchDog Driver
Previous Next

TUT 19 Port WatchDog Driver

Posted by: Alvin Jin , January 16, 2014

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

Tags: TQ2440

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors