mena21_wdt.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) | mena21_wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782) |
---|---|
1/* 2 * Watchdog driver for the A21 VME CPU Boards 3 * 4 * Copyright (C) 2013 MEN Mikro Elektronik Nuernberg GmbH 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation --- 183 unchanged lines hidden (view full) --- 192 if (ret) 193 return ret; 194 } 195 196 mutex_init(&drv->lock); 197 watchdog_init_timeout(&a21_wdt, 30, &pdev->dev); 198 watchdog_set_nowayout(&a21_wdt, nowayout); 199 watchdog_set_drvdata(&a21_wdt, drv); | 1/* 2 * Watchdog driver for the A21 VME CPU Boards 3 * 4 * Copyright (C) 2013 MEN Mikro Elektronik Nuernberg GmbH 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation --- 183 unchanged lines hidden (view full) --- 192 if (ret) 193 return ret; 194 } 195 196 mutex_init(&drv->lock); 197 watchdog_init_timeout(&a21_wdt, 30, &pdev->dev); 198 watchdog_set_nowayout(&a21_wdt, nowayout); 199 watchdog_set_drvdata(&a21_wdt, drv); |
200 a21_wdt.parent = &pdev->dev; |
|
200 201 reset = a21_wdt_get_bootstatus(drv); 202 if (reset == 2) 203 a21_wdt.bootstatus |= WDIOF_EXTERN1; 204 else if (reset == 4) 205 a21_wdt.bootstatus |= WDIOF_CARDRESET; 206 else if (reset == 5) 207 a21_wdt.bootstatus |= WDIOF_POWERUNDER; --- 64 unchanged lines hidden --- | 201 202 reset = a21_wdt_get_bootstatus(drv); 203 if (reset == 2) 204 a21_wdt.bootstatus |= WDIOF_EXTERN1; 205 else if (reset == 4) 206 a21_wdt.bootstatus |= WDIOF_CARDRESET; 207 else if (reset == 5) 208 a21_wdt.bootstatus |= WDIOF_POWERUNDER; --- 64 unchanged lines hidden --- |