s3c2410_wdt.c (86a1e1896c2710402e29a875d8d830244274244d) | s3c2410_wdt.c (0197c1c49ef1ff386b2ebb6d3b0fc85a8e174b5c) |
---|---|
1/* linux/drivers/char/watchdog/s3c2410_wdt.c 2 * 3 * Copyright (c) 2004 Simtec Electronics 4 * Ben Dooks <ben@simtec.co.uk> 5 * 6 * S3C2410 Watchdog Timer Support 7 * 8 * Based on, softdog.c by Alan Cox, --- 187 unchanged lines hidden (view full) --- 196 /* update the pre-scaler */ 197 wtcon = readl(wdt_base + S3C2410_WTCON); 198 wtcon &= ~S3C2410_WTCON_PRESCALE_MASK; 199 wtcon |= S3C2410_WTCON_PRESCALE(divisor-1); 200 201 writel(count, wdt_base + S3C2410_WTDAT); 202 writel(wtcon, wdt_base + S3C2410_WTCON); 203 | 1/* linux/drivers/char/watchdog/s3c2410_wdt.c 2 * 3 * Copyright (c) 2004 Simtec Electronics 4 * Ben Dooks <ben@simtec.co.uk> 5 * 6 * S3C2410 Watchdog Timer Support 7 * 8 * Based on, softdog.c by Alan Cox, --- 187 unchanged lines hidden (view full) --- 196 /* update the pre-scaler */ 197 wtcon = readl(wdt_base + S3C2410_WTCON); 198 wtcon &= ~S3C2410_WTCON_PRESCALE_MASK; 199 wtcon |= S3C2410_WTCON_PRESCALE(divisor-1); 200 201 writel(count, wdt_base + S3C2410_WTDAT); 202 writel(wtcon, wdt_base + S3C2410_WTCON); 203 |
204 wdd->timeout = timeout; 205 |
|
204 return 0; 205} 206 207#define OPTIONS (WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE) 208 209static const struct watchdog_info s3c2410_wdt_ident = { 210 .options = OPTIONS, 211 .firmware_version = 0, --- 331 unchanged lines hidden --- | 206 return 0; 207} 208 209#define OPTIONS (WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE) 210 211static const struct watchdog_info s3c2410_wdt_ident = { 212 .options = OPTIONS, 213 .firmware_version = 0, --- 331 unchanged lines hidden --- |