File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 10
10
* https://www.kernelconcepts.de
11
11
*
12
12
* See AMD Publication 43009 "AMD SB700/710/750 Register Reference Guide",
13
+ * AMD Publication 44413 "AMD SP5100 Register Reference Guide"
13
14
* AMD Publication 45482 "AMD SB800-Series Southbridges Register
14
15
* Reference Guide"
15
16
* AMD Publication 48751 "BIOS and Kernel Developer’s Guide (BKDG)
@@ -144,6 +145,13 @@ static int tco_timer_set_timeout(struct watchdog_device *wdd,
144
145
return 0 ;
145
146
}
146
147
148
+ static unsigned int tco_timer_get_timeleft (struct watchdog_device * wdd )
149
+ {
150
+ struct sp5100_tco * tco = watchdog_get_drvdata (wdd );
151
+
152
+ return readl (SP5100_WDT_COUNT (tco -> tcobase ));
153
+ }
154
+
147
155
static u8 sp5100_tco_read_pm_reg8 (u8 index )
148
156
{
149
157
outb (index , SP5100_IO_PM_INDEX_REG );
@@ -386,6 +394,7 @@ static const struct watchdog_ops sp5100_tco_wdt_ops = {
386
394
.stop = tco_timer_stop ,
387
395
.ping = tco_timer_ping ,
388
396
.set_timeout = tco_timer_set_timeout ,
397
+ .get_timeleft = tco_timer_get_timeleft ,
389
398
};
390
399
391
400
static int sp5100_tco_probe (struct platform_device * pdev )
You can’t perform that action at this time.
0 commit comments