diff options
Diffstat (limited to 'drivers/watchdog/of_xilinx_wdt.c')
-rw-r--r-- | drivers/watchdog/of_xilinx_wdt.c | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/drivers/watchdog/of_xilinx_wdt.c b/drivers/watchdog/of_xilinx_wdt.c index 2761ddb08501..4dd281f2c33f 100644 --- a/drivers/watchdog/of_xilinx_wdt.c +++ b/drivers/watchdog/of_xilinx_wdt.c | |||
@@ -1,23 +1,13 @@ | |||
1 | /* | 1 | /* |
2 | * of_xilinx_wdt.c 1.01 A Watchdog Device Driver for Xilinx xps_timebase_wdt | 2 | * Watchdog Device Driver for Xilinx axi/xps_timebase_wdt |
3 | * | 3 | * |
4 | * (C) Copyright 2011 (Alejandro Cabrera <aldaya@gmail.com>) | 4 | * (C) Copyright 2011 (Alejandro Cabrera <aldaya@gmail.com>) |
5 | * | 5 | * |
6 | * ----------------------- | 6 | * This program is free software; you can redistribute it and/or |
7 | * | 7 | * modify it under the terms of the GNU General Public License |
8 | * This program is free software; you can redistribute it and/or | 8 | * as published by the Free Software Foundation; either version |
9 | * modify it under the terms of the GNU General Public License | 9 | * 2 of the License, or (at your option) any later version. |
10 | * as published by the Free Software Foundation; either version | 10 | */ |
11 | * 2 of the License, or (at your option) any later version. | ||
12 | * | ||
13 | * ----------------------- | ||
14 | * 30-May-2011 Alejandro Cabrera <aldaya@gmail.com> | ||
15 | * - If "xlnx,wdt-enable-once" wasn't found on device tree the | ||
16 | * module will use CONFIG_WATCHDOG_NOWAYOUT | ||
17 | * - If the device tree parameters ("clock-frequency" and | ||
18 | * "xlnx,wdt-interval") wasn't found the driver won't | ||
19 | * know the wdt reset interval | ||
20 | */ | ||
21 | 11 | ||
22 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
23 | 13 | ||
@@ -394,6 +384,7 @@ static int xwdt_remove(struct platform_device *dev) | |||
394 | 384 | ||
395 | /* Match table for of_platform binding */ | 385 | /* Match table for of_platform binding */ |
396 | static struct of_device_id xwdt_of_match[] = { | 386 | static struct of_device_id xwdt_of_match[] = { |
387 | { .compatible = "xlnx,xps-timebase-wdt-1.00.a", }, | ||
397 | { .compatible = "xlnx,xps-timebase-wdt-1.01.a", }, | 388 | { .compatible = "xlnx,xps-timebase-wdt-1.01.a", }, |
398 | {}, | 389 | {}, |
399 | }; | 390 | }; |
@@ -413,5 +404,5 @@ module_platform_driver(xwdt_driver); | |||
413 | 404 | ||
414 | MODULE_AUTHOR("Alejandro Cabrera <aldaya@gmail.com>"); | 405 | MODULE_AUTHOR("Alejandro Cabrera <aldaya@gmail.com>"); |
415 | MODULE_DESCRIPTION("Xilinx Watchdog driver"); | 406 | MODULE_DESCRIPTION("Xilinx Watchdog driver"); |
416 | MODULE_LICENSE("GPL"); | 407 | MODULE_LICENSE("GPL v2"); |
417 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 408 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |