Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 1 | /* |
| 2 | * sunxi Watchdog Driver |
| 3 | * |
| 4 | * Copyright (c) 2013 Carlo Caione |
| 5 | * 2012 Henrik Nordstrom |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License |
| 9 | * as published by the Free Software Foundation; either version |
| 10 | * 2 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * Based on xen_wdt.c |
| 13 | * (c) Copyright 2010 Novell, Inc. |
| 14 | */ |
| 15 | |
| 16 | #include <linux/clk.h> |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 17 | #include <linux/delay.h> |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 18 | #include <linux/err.h> |
| 19 | #include <linux/init.h> |
| 20 | #include <linux/io.h> |
| 21 | #include <linux/kernel.h> |
| 22 | #include <linux/module.h> |
| 23 | #include <linux/moduleparam.h> |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 24 | #include <linux/notifier.h> |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 25 | #include <linux/of.h> |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 26 | #include <linux/of_device.h> |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 27 | #include <linux/platform_device.h> |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 28 | #include <linux/reboot.h> |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 29 | #include <linux/types.h> |
| 30 | #include <linux/watchdog.h> |
| 31 | |
| 32 | #define WDT_MAX_TIMEOUT 16 |
| 33 | #define WDT_MIN_TIMEOUT 1 |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 34 | #define WDT_TIMEOUT_MASK 0x0F |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 35 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 36 | #define WDT_CTRL_RELOAD ((1 << 0) | (0x0a57 << 1)) |
| 37 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 38 | #define WDT_MODE_EN (1 << 0) |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 39 | |
| 40 | #define DRV_NAME "sunxi-wdt" |
| 41 | #define DRV_VERSION "1.0" |
| 42 | |
| 43 | static bool nowayout = WATCHDOG_NOWAYOUT; |
| 44 | static unsigned int timeout = WDT_MAX_TIMEOUT; |
| 45 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 46 | /* |
| 47 | * This structure stores the register offsets for different variants |
| 48 | * of Allwinner's watchdog hardware. |
| 49 | */ |
| 50 | struct sunxi_wdt_reg { |
| 51 | u8 wdt_ctrl; |
| 52 | u8 wdt_cfg; |
| 53 | u8 wdt_mode; |
| 54 | u8 wdt_timeout_shift; |
| 55 | u8 wdt_reset_mask; |
| 56 | u8 wdt_reset_val; |
| 57 | }; |
| 58 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 59 | struct sunxi_wdt_dev { |
| 60 | struct watchdog_device wdt_dev; |
| 61 | void __iomem *wdt_base; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 62 | const struct sunxi_wdt_reg *wdt_regs; |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 63 | struct notifier_block restart_handler; |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 64 | }; |
| 65 | |
| 66 | /* |
| 67 | * wdt_timeout_map maps the watchdog timer interval value in seconds to |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 68 | * the value of the register WDT_MODE at bits .wdt_timeout_shift ~ +3 |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 69 | * |
| 70 | * [timeout seconds] = register value |
| 71 | * |
| 72 | */ |
| 73 | |
| 74 | static const int wdt_timeout_map[] = { |
Emilio López | 51ee34a | 2014-04-04 14:24:25 -0300 | [diff] [blame] | 75 | [1] = 0x1, /* 1s */ |
| 76 | [2] = 0x2, /* 2s */ |
| 77 | [3] = 0x3, /* 3s */ |
| 78 | [4] = 0x4, /* 4s */ |
| 79 | [5] = 0x5, /* 5s */ |
| 80 | [6] = 0x6, /* 6s */ |
| 81 | [8] = 0x7, /* 8s */ |
| 82 | [10] = 0x8, /* 10s */ |
| 83 | [12] = 0x9, /* 12s */ |
| 84 | [14] = 0xA, /* 14s */ |
| 85 | [16] = 0xB, /* 16s */ |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 86 | }; |
| 87 | |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 88 | |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 89 | static int sunxi_restart_handle(struct notifier_block *this, unsigned long mode, |
| 90 | void *cmd) |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 91 | { |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 92 | struct sunxi_wdt_dev *sunxi_wdt = container_of(this, |
| 93 | struct sunxi_wdt_dev, |
| 94 | restart_handler); |
| 95 | void __iomem *wdt_base = sunxi_wdt->wdt_base; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 96 | const struct sunxi_wdt_reg *regs = sunxi_wdt->wdt_regs; |
| 97 | u32 val; |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 98 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 99 | /* Set system reset function */ |
| 100 | val = readl(wdt_base + regs->wdt_cfg); |
| 101 | val &= ~(regs->wdt_reset_mask); |
| 102 | val |= regs->wdt_reset_val; |
| 103 | writel(val, wdt_base + regs->wdt_cfg); |
| 104 | |
| 105 | /* Set lowest timeout and enable watchdog */ |
| 106 | val = readl(wdt_base + regs->wdt_mode); |
| 107 | val &= ~(WDT_TIMEOUT_MASK << regs->wdt_timeout_shift); |
| 108 | val |= WDT_MODE_EN; |
| 109 | writel(val, wdt_base + regs->wdt_mode); |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 110 | |
| 111 | /* |
| 112 | * Restart the watchdog. The default (and lowest) interval |
| 113 | * value for the watchdog is 0.5s. |
| 114 | */ |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 115 | writel(WDT_CTRL_RELOAD, wdt_base + regs->wdt_ctrl); |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 116 | |
| 117 | while (1) { |
| 118 | mdelay(5); |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 119 | val = readl(wdt_base + regs->wdt_mode); |
| 120 | val |= WDT_MODE_EN; |
| 121 | writel(val, wdt_base + regs->wdt_mode); |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 122 | } |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 123 | return NOTIFY_DONE; |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 124 | } |
| 125 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 126 | static int sunxi_wdt_ping(struct watchdog_device *wdt_dev) |
| 127 | { |
| 128 | struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); |
| 129 | void __iomem *wdt_base = sunxi_wdt->wdt_base; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 130 | const struct sunxi_wdt_reg *regs = sunxi_wdt->wdt_regs; |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 131 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 132 | writel(WDT_CTRL_RELOAD, wdt_base + regs->wdt_ctrl); |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 133 | |
| 134 | return 0; |
| 135 | } |
| 136 | |
| 137 | static int sunxi_wdt_set_timeout(struct watchdog_device *wdt_dev, |
| 138 | unsigned int timeout) |
| 139 | { |
| 140 | struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); |
| 141 | void __iomem *wdt_base = sunxi_wdt->wdt_base; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 142 | const struct sunxi_wdt_reg *regs = sunxi_wdt->wdt_regs; |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 143 | u32 reg; |
| 144 | |
| 145 | if (wdt_timeout_map[timeout] == 0) |
| 146 | timeout++; |
| 147 | |
| 148 | sunxi_wdt->wdt_dev.timeout = timeout; |
| 149 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 150 | reg = readl(wdt_base + regs->wdt_mode); |
| 151 | reg &= ~(WDT_TIMEOUT_MASK << regs->wdt_timeout_shift); |
| 152 | reg |= wdt_timeout_map[timeout] << regs->wdt_timeout_shift; |
| 153 | writel(reg, wdt_base + regs->wdt_mode); |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 154 | |
| 155 | sunxi_wdt_ping(wdt_dev); |
| 156 | |
| 157 | return 0; |
| 158 | } |
| 159 | |
| 160 | static int sunxi_wdt_stop(struct watchdog_device *wdt_dev) |
| 161 | { |
| 162 | struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); |
| 163 | void __iomem *wdt_base = sunxi_wdt->wdt_base; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 164 | const struct sunxi_wdt_reg *regs = sunxi_wdt->wdt_regs; |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 165 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 166 | writel(0, wdt_base + regs->wdt_mode); |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 167 | |
| 168 | return 0; |
| 169 | } |
| 170 | |
| 171 | static int sunxi_wdt_start(struct watchdog_device *wdt_dev) |
| 172 | { |
| 173 | u32 reg; |
| 174 | struct sunxi_wdt_dev *sunxi_wdt = watchdog_get_drvdata(wdt_dev); |
| 175 | void __iomem *wdt_base = sunxi_wdt->wdt_base; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 176 | const struct sunxi_wdt_reg *regs = sunxi_wdt->wdt_regs; |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 177 | int ret; |
| 178 | |
| 179 | ret = sunxi_wdt_set_timeout(&sunxi_wdt->wdt_dev, |
| 180 | sunxi_wdt->wdt_dev.timeout); |
| 181 | if (ret < 0) |
| 182 | return ret; |
| 183 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 184 | /* Set system reset function */ |
| 185 | reg = readl(wdt_base + regs->wdt_cfg); |
| 186 | reg &= ~(regs->wdt_reset_mask); |
Francesco Lavra | 0919e44 | 2015-07-25 08:25:18 +0200 | [diff] [blame] | 187 | reg |= regs->wdt_reset_val; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 188 | writel(reg, wdt_base + regs->wdt_cfg); |
| 189 | |
| 190 | /* Enable watchdog */ |
| 191 | reg = readl(wdt_base + regs->wdt_mode); |
| 192 | reg |= WDT_MODE_EN; |
| 193 | writel(reg, wdt_base + regs->wdt_mode); |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 194 | |
| 195 | return 0; |
| 196 | } |
| 197 | |
| 198 | static const struct watchdog_info sunxi_wdt_info = { |
| 199 | .identity = DRV_NAME, |
| 200 | .options = WDIOF_SETTIMEOUT | |
| 201 | WDIOF_KEEPALIVEPING | |
| 202 | WDIOF_MAGICCLOSE, |
| 203 | }; |
| 204 | |
| 205 | static const struct watchdog_ops sunxi_wdt_ops = { |
| 206 | .owner = THIS_MODULE, |
| 207 | .start = sunxi_wdt_start, |
| 208 | .stop = sunxi_wdt_stop, |
| 209 | .ping = sunxi_wdt_ping, |
| 210 | .set_timeout = sunxi_wdt_set_timeout, |
| 211 | }; |
| 212 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 213 | static const struct sunxi_wdt_reg sun4i_wdt_reg = { |
| 214 | .wdt_ctrl = 0x00, |
| 215 | .wdt_cfg = 0x04, |
| 216 | .wdt_mode = 0x04, |
| 217 | .wdt_timeout_shift = 3, |
| 218 | .wdt_reset_mask = 0x02, |
| 219 | .wdt_reset_val = 0x02, |
| 220 | }; |
| 221 | |
Chen-Yu Tsai | c5ec618 | 2014-09-22 00:05:19 +0800 | [diff] [blame] | 222 | static const struct sunxi_wdt_reg sun6i_wdt_reg = { |
| 223 | .wdt_ctrl = 0x10, |
| 224 | .wdt_cfg = 0x14, |
| 225 | .wdt_mode = 0x18, |
| 226 | .wdt_timeout_shift = 4, |
| 227 | .wdt_reset_mask = 0x03, |
| 228 | .wdt_reset_val = 0x01, |
| 229 | }; |
| 230 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 231 | static const struct of_device_id sunxi_wdt_dt_ids[] = { |
| 232 | { .compatible = "allwinner,sun4i-a10-wdt", .data = &sun4i_wdt_reg }, |
Chen-Yu Tsai | c5ec618 | 2014-09-22 00:05:19 +0800 | [diff] [blame] | 233 | { .compatible = "allwinner,sun6i-a31-wdt", .data = &sun6i_wdt_reg }, |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 234 | { /* sentinel */ } |
| 235 | }; |
| 236 | MODULE_DEVICE_TABLE(of, sunxi_wdt_dt_ids); |
| 237 | |
Maxime Ripard | 1d5898b | 2013-10-05 16:20:17 +0200 | [diff] [blame] | 238 | static int sunxi_wdt_probe(struct platform_device *pdev) |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 239 | { |
| 240 | struct sunxi_wdt_dev *sunxi_wdt; |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 241 | const struct of_device_id *device; |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 242 | struct resource *res; |
| 243 | int err; |
| 244 | |
| 245 | sunxi_wdt = devm_kzalloc(&pdev->dev, sizeof(*sunxi_wdt), GFP_KERNEL); |
| 246 | if (!sunxi_wdt) |
| 247 | return -EINVAL; |
| 248 | |
| 249 | platform_set_drvdata(pdev, sunxi_wdt); |
| 250 | |
Chen-Yu Tsai | f2147de | 2014-09-22 00:05:18 +0800 | [diff] [blame] | 251 | device = of_match_device(sunxi_wdt_dt_ids, &pdev->dev); |
| 252 | if (!device) |
| 253 | return -ENODEV; |
| 254 | |
| 255 | sunxi_wdt->wdt_regs = device->data; |
| 256 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 257 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
| 258 | sunxi_wdt->wdt_base = devm_ioremap_resource(&pdev->dev, res); |
| 259 | if (IS_ERR(sunxi_wdt->wdt_base)) |
| 260 | return PTR_ERR(sunxi_wdt->wdt_base); |
| 261 | |
| 262 | sunxi_wdt->wdt_dev.info = &sunxi_wdt_info; |
| 263 | sunxi_wdt->wdt_dev.ops = &sunxi_wdt_ops; |
| 264 | sunxi_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT; |
| 265 | sunxi_wdt->wdt_dev.max_timeout = WDT_MAX_TIMEOUT; |
| 266 | sunxi_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT; |
| 267 | sunxi_wdt->wdt_dev.parent = &pdev->dev; |
| 268 | |
| 269 | watchdog_init_timeout(&sunxi_wdt->wdt_dev, timeout, &pdev->dev); |
| 270 | watchdog_set_nowayout(&sunxi_wdt->wdt_dev, nowayout); |
| 271 | |
| 272 | watchdog_set_drvdata(&sunxi_wdt->wdt_dev, sunxi_wdt); |
| 273 | |
| 274 | sunxi_wdt_stop(&sunxi_wdt->wdt_dev); |
| 275 | |
| 276 | err = watchdog_register_device(&sunxi_wdt->wdt_dev); |
| 277 | if (unlikely(err)) |
| 278 | return err; |
| 279 | |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 280 | sunxi_wdt->restart_handler.notifier_call = sunxi_restart_handle; |
| 281 | sunxi_wdt->restart_handler.priority = 128; |
| 282 | err = register_restart_handler(&sunxi_wdt->restart_handler); |
| 283 | if (err) |
| 284 | dev_err(&pdev->dev, |
| 285 | "cannot register restart handler (err=%d)\n", err); |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 286 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 287 | dev_info(&pdev->dev, "Watchdog enabled (timeout=%d sec, nowayout=%d)", |
| 288 | sunxi_wdt->wdt_dev.timeout, nowayout); |
| 289 | |
| 290 | return 0; |
| 291 | } |
| 292 | |
Maxime Ripard | 1d5898b | 2013-10-05 16:20:17 +0200 | [diff] [blame] | 293 | static int sunxi_wdt_remove(struct platform_device *pdev) |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 294 | { |
| 295 | struct sunxi_wdt_dev *sunxi_wdt = platform_get_drvdata(pdev); |
| 296 | |
Guenter Roeck | d20a1d9 | 2014-09-26 00:03:17 +0000 | [diff] [blame] | 297 | unregister_restart_handler(&sunxi_wdt->restart_handler); |
Maxime Ripard | 440e96b | 2014-05-06 21:44:19 -0500 | [diff] [blame] | 298 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 299 | watchdog_unregister_device(&sunxi_wdt->wdt_dev); |
| 300 | watchdog_set_drvdata(&sunxi_wdt->wdt_dev, NULL); |
| 301 | |
| 302 | return 0; |
| 303 | } |
| 304 | |
| 305 | static void sunxi_wdt_shutdown(struct platform_device *pdev) |
| 306 | { |
| 307 | struct sunxi_wdt_dev *sunxi_wdt = platform_get_drvdata(pdev); |
| 308 | |
| 309 | sunxi_wdt_stop(&sunxi_wdt->wdt_dev); |
| 310 | } |
| 311 | |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 312 | static struct platform_driver sunxi_wdt_driver = { |
| 313 | .probe = sunxi_wdt_probe, |
| 314 | .remove = sunxi_wdt_remove, |
| 315 | .shutdown = sunxi_wdt_shutdown, |
| 316 | .driver = { |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 317 | .name = DRV_NAME, |
Sachin Kamat | 85eee81 | 2013-09-30 10:12:51 +0530 | [diff] [blame] | 318 | .of_match_table = sunxi_wdt_dt_ids, |
Carlo Caione | d00680e | 2013-07-30 21:20:46 +0200 | [diff] [blame] | 319 | }, |
| 320 | }; |
| 321 | |
| 322 | module_platform_driver(sunxi_wdt_driver); |
| 323 | |
| 324 | module_param(timeout, uint, 0); |
| 325 | MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds"); |
| 326 | |
| 327 | module_param(nowayout, bool, 0); |
| 328 | MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " |
| 329 | "(default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); |
| 330 | |
| 331 | MODULE_LICENSE("GPL"); |
| 332 | MODULE_AUTHOR("Carlo Caione <carlo.caione@gmail.com>"); |
| 333 | MODULE_AUTHOR("Henrik Nordstrom <henrik@henriknordstrom.net>"); |
| 334 | MODULE_DESCRIPTION("sunxi WatchDog Timer Driver"); |
| 335 | MODULE_VERSION(DRV_VERSION); |