Guenter Roeck | d017327 | 2019-06-20 09:28:46 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 2 | /* |
| 3 | * drivers/char/watchdog/davinci_wdt.c |
| 4 | * |
| 5 | * Watchdog driver for DaVinci DM644x/DM646x processors |
| 6 | * |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 7 | * Copyright (C) 2006-2013 Texas Instruments. |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 8 | * |
Guenter Roeck | d017327 | 2019-06-20 09:28:46 -0700 | [diff] [blame] | 9 | * 2007 (c) MontaVista Software, Inc. |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #include <linux/module.h> |
| 13 | #include <linux/moduleparam.h> |
Randy Dunlap | ac31672 | 2018-06-19 22:47:28 -0700 | [diff] [blame] | 14 | #include <linux/mod_devicetable.h> |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 15 | #include <linux/types.h> |
| 16 | #include <linux/kernel.h> |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 17 | #include <linux/watchdog.h> |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 18 | #include <linux/platform_device.h> |
Alan Cox | f78b0a8 | 2008-05-19 14:05:30 +0100 | [diff] [blame] | 19 | #include <linux/io.h> |
Kevin Hilman | 371d352 | 2009-01-29 14:14:30 -0800 | [diff] [blame] | 20 | #include <linux/device.h> |
Kevin Hilman | 9fd868f | 2009-02-10 20:30:37 -0800 | [diff] [blame] | 21 | #include <linux/clk.h> |
Sachin Kamat | 6330c70 | 2013-03-04 10:36:41 +0530 | [diff] [blame] | 22 | #include <linux/err.h> |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 23 | |
| 24 | #define MODULE_NAME "DAVINCI-WDT: " |
| 25 | |
| 26 | #define DEFAULT_HEARTBEAT 60 |
| 27 | #define MAX_HEARTBEAT 600 /* really the max margin is 264/27MHz*/ |
| 28 | |
| 29 | /* Timer register set definition */ |
| 30 | #define PID12 (0x0) |
| 31 | #define EMUMGT (0x4) |
| 32 | #define TIM12 (0x10) |
| 33 | #define TIM34 (0x14) |
| 34 | #define PRD12 (0x18) |
| 35 | #define PRD34 (0x1C) |
| 36 | #define TCR (0x20) |
| 37 | #define TGCR (0x24) |
| 38 | #define WDTCR (0x28) |
| 39 | |
| 40 | /* TCR bit definitions */ |
| 41 | #define ENAMODE12_DISABLED (0 << 6) |
| 42 | #define ENAMODE12_ONESHOT (1 << 6) |
| 43 | #define ENAMODE12_PERIODIC (2 << 6) |
| 44 | |
| 45 | /* TGCR bit definitions */ |
| 46 | #define TIM12RS_UNRESET (1 << 0) |
| 47 | #define TIM34RS_UNRESET (1 << 1) |
| 48 | #define TIMMODE_64BIT_WDOG (2 << 2) |
| 49 | |
| 50 | /* WDTCR bit definitions */ |
| 51 | #define WDEN (1 << 14) |
| 52 | #define WDFLAG (1 << 15) |
| 53 | #define WDKEY_SEQ0 (0xa5c6 << 16) |
| 54 | #define WDKEY_SEQ1 (0xda7e << 16) |
| 55 | |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 56 | static int heartbeat; |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 57 | |
| 58 | /* |
| 59 | * struct to hold data for each WDT device |
| 60 | * @base - base io address of WD device |
| 61 | * @clk - source clock of WDT |
| 62 | * @wdd - hold watchdog device as is in WDT core |
| 63 | */ |
| 64 | struct davinci_wdt_device { |
| 65 | void __iomem *base; |
| 66 | struct clk *clk; |
| 67 | struct watchdog_device wdd; |
| 68 | }; |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 69 | |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 70 | static int davinci_wdt_start(struct watchdog_device *wdd) |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 71 | { |
| 72 | u32 tgcr; |
| 73 | u32 timer_margin; |
Kevin Hilman | 9fd868f | 2009-02-10 20:30:37 -0800 | [diff] [blame] | 74 | unsigned long wdt_freq; |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 75 | struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); |
Kevin Hilman | 9fd868f | 2009-02-10 20:30:37 -0800 | [diff] [blame] | 76 | |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 77 | wdt_freq = clk_get_rate(davinci_wdt->clk); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 78 | |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 79 | /* disable, internal clock source */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 80 | iowrite32(0, davinci_wdt->base + TCR); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 81 | /* reset timer, set mode to 64-bit watchdog, and unreset */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 82 | iowrite32(0, davinci_wdt->base + TGCR); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 83 | tgcr = TIMMODE_64BIT_WDOG | TIM12RS_UNRESET | TIM34RS_UNRESET; |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 84 | iowrite32(tgcr, davinci_wdt->base + TGCR); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 85 | /* clear counter regs */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 86 | iowrite32(0, davinci_wdt->base + TIM12); |
| 87 | iowrite32(0, davinci_wdt->base + TIM34); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 88 | /* set timeout period */ |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 89 | timer_margin = (((u64)wdd->timeout * wdt_freq) & 0xffffffff); |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 90 | iowrite32(timer_margin, davinci_wdt->base + PRD12); |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 91 | timer_margin = (((u64)wdd->timeout * wdt_freq) >> 32); |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 92 | iowrite32(timer_margin, davinci_wdt->base + PRD34); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 93 | /* enable run continuously */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 94 | iowrite32(ENAMODE12_PERIODIC, davinci_wdt->base + TCR); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 95 | /* Once the WDT is in pre-active state write to |
| 96 | * TIM12, TIM34, PRD12, PRD34, TCR, TGCR, WDTCR are |
| 97 | * write protected (except for the WDKEY field) |
| 98 | */ |
| 99 | /* put watchdog in pre-active state */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 100 | iowrite32(WDKEY_SEQ0 | WDEN, davinci_wdt->base + WDTCR); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 101 | /* put watchdog in active state */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 102 | iowrite32(WDKEY_SEQ1 | WDEN, davinci_wdt->base + WDTCR); |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 103 | return 0; |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 104 | } |
| 105 | |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 106 | static int davinci_wdt_ping(struct watchdog_device *wdd) |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 107 | { |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 108 | struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); |
| 109 | |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 110 | /* put watchdog in service state */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 111 | iowrite32(WDKEY_SEQ0, davinci_wdt->base + WDTCR); |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 112 | /* put watchdog in active state */ |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 113 | iowrite32(WDKEY_SEQ1, davinci_wdt->base + WDTCR); |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 114 | return 0; |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 115 | } |
| 116 | |
Ivan Khoronzhuk | a771994 | 2013-12-04 21:39:28 +0200 | [diff] [blame] | 117 | static unsigned int davinci_wdt_get_timeleft(struct watchdog_device *wdd) |
| 118 | { |
| 119 | u64 timer_counter; |
| 120 | unsigned long freq; |
| 121 | u32 val; |
| 122 | struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); |
| 123 | |
| 124 | /* if timeout has occured then return 0 */ |
| 125 | val = ioread32(davinci_wdt->base + WDTCR); |
| 126 | if (val & WDFLAG) |
| 127 | return 0; |
| 128 | |
| 129 | freq = clk_get_rate(davinci_wdt->clk); |
| 130 | |
| 131 | if (!freq) |
| 132 | return 0; |
| 133 | |
| 134 | timer_counter = ioread32(davinci_wdt->base + TIM12); |
| 135 | timer_counter |= ((u64)ioread32(davinci_wdt->base + TIM34) << 32); |
| 136 | |
| 137 | do_div(timer_counter, freq); |
| 138 | |
| 139 | return wdd->timeout - timer_counter; |
| 140 | } |
| 141 | |
David Lechner | 71d1f05 | 2017-12-11 11:21:08 -0600 | [diff] [blame] | 142 | static int davinci_wdt_restart(struct watchdog_device *wdd, |
| 143 | unsigned long action, void *data) |
| 144 | { |
| 145 | struct davinci_wdt_device *davinci_wdt = watchdog_get_drvdata(wdd); |
| 146 | u32 tgcr, wdtcr; |
| 147 | |
| 148 | /* disable, internal clock source */ |
| 149 | iowrite32(0, davinci_wdt->base + TCR); |
| 150 | |
| 151 | /* reset timer, set mode to 64-bit watchdog, and unreset */ |
| 152 | tgcr = 0; |
| 153 | iowrite32(tgcr, davinci_wdt->base + TGCR); |
| 154 | tgcr = TIMMODE_64BIT_WDOG | TIM12RS_UNRESET | TIM34RS_UNRESET; |
| 155 | iowrite32(tgcr, davinci_wdt->base + TGCR); |
| 156 | |
| 157 | /* clear counter and period regs */ |
| 158 | iowrite32(0, davinci_wdt->base + TIM12); |
| 159 | iowrite32(0, davinci_wdt->base + TIM34); |
| 160 | iowrite32(0, davinci_wdt->base + PRD12); |
| 161 | iowrite32(0, davinci_wdt->base + PRD34); |
| 162 | |
| 163 | /* put watchdog in pre-active state */ |
| 164 | wdtcr = WDKEY_SEQ0 | WDEN; |
| 165 | iowrite32(wdtcr, davinci_wdt->base + WDTCR); |
| 166 | |
| 167 | /* put watchdog in active state */ |
| 168 | wdtcr = WDKEY_SEQ1 | WDEN; |
| 169 | iowrite32(wdtcr, davinci_wdt->base + WDTCR); |
| 170 | |
| 171 | /* write an invalid value to the WDKEY field to trigger a restart */ |
| 172 | wdtcr = 0x00004000; |
| 173 | iowrite32(wdtcr, davinci_wdt->base + WDTCR); |
| 174 | |
| 175 | return 0; |
| 176 | } |
| 177 | |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 178 | static const struct watchdog_info davinci_wdt_info = { |
Wim Van Sebroeck | f1a08cc | 2007-07-20 21:47:55 +0000 | [diff] [blame] | 179 | .options = WDIOF_KEEPALIVEPING, |
Ivan Khoronzhuk | 8832b20 | 2013-12-04 21:39:30 +0200 | [diff] [blame] | 180 | .identity = "DaVinci/Keystone Watchdog", |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 181 | }; |
| 182 | |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 183 | static const struct watchdog_ops davinci_wdt_ops = { |
| 184 | .owner = THIS_MODULE, |
| 185 | .start = davinci_wdt_start, |
| 186 | .stop = davinci_wdt_ping, |
| 187 | .ping = davinci_wdt_ping, |
Ivan Khoronzhuk | a771994 | 2013-12-04 21:39:28 +0200 | [diff] [blame] | 188 | .get_timeleft = davinci_wdt_get_timeleft, |
David Lechner | 71d1f05 | 2017-12-11 11:21:08 -0600 | [diff] [blame] | 189 | .restart = davinci_wdt_restart, |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 190 | }; |
| 191 | |
Guenter Roeck | cecda01 | 2019-04-08 12:38:37 -0700 | [diff] [blame] | 192 | static void davinci_clk_disable_unprepare(void *data) |
| 193 | { |
| 194 | clk_disable_unprepare(data); |
| 195 | } |
| 196 | |
Bill Pemberton | 2d991a1 | 2012-11-19 13:21:41 -0500 | [diff] [blame] | 197 | static int davinci_wdt_probe(struct platform_device *pdev) |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 198 | { |
Kumar, Anil | e20880e | 2013-02-08 13:09:30 +0530 | [diff] [blame] | 199 | int ret = 0; |
Kevin Hilman | 371d352 | 2009-01-29 14:14:30 -0800 | [diff] [blame] | 200 | struct device *dev = &pdev->dev; |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 201 | struct watchdog_device *wdd; |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 202 | struct davinci_wdt_device *davinci_wdt; |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 203 | |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 204 | davinci_wdt = devm_kzalloc(dev, sizeof(*davinci_wdt), GFP_KERNEL); |
| 205 | if (!davinci_wdt) |
| 206 | return -ENOMEM; |
Kevin Hilman | 9fd868f | 2009-02-10 20:30:37 -0800 | [diff] [blame] | 207 | |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 208 | davinci_wdt->clk = devm_clk_get(dev, NULL); |
Krzysztof Kozlowski | fc77204 | 2020-09-01 17:31:40 +0200 | [diff] [blame^] | 209 | if (IS_ERR(davinci_wdt->clk)) |
| 210 | return dev_err_probe(dev, PTR_ERR(davinci_wdt->clk), |
| 211 | "failed to get clock node\n"); |
Kevin Hilman | 9fd868f | 2009-02-10 20:30:37 -0800 | [diff] [blame] | 212 | |
Arvind Yadav | 8f11eb5 | 2017-06-06 15:47:53 +0530 | [diff] [blame] | 213 | ret = clk_prepare_enable(davinci_wdt->clk); |
| 214 | if (ret) { |
Guenter Roeck | cecda01 | 2019-04-08 12:38:37 -0700 | [diff] [blame] | 215 | dev_err(dev, "failed to prepare clock\n"); |
Arvind Yadav | 8f11eb5 | 2017-06-06 15:47:53 +0530 | [diff] [blame] | 216 | return ret; |
| 217 | } |
Guenter Roeck | cecda01 | 2019-04-08 12:38:37 -0700 | [diff] [blame] | 218 | ret = devm_add_action_or_reset(dev, davinci_clk_disable_unprepare, |
| 219 | davinci_wdt->clk); |
| 220 | if (ret) |
| 221 | return ret; |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 222 | |
| 223 | platform_set_drvdata(pdev, davinci_wdt); |
| 224 | |
| 225 | wdd = &davinci_wdt->wdd; |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 226 | wdd->info = &davinci_wdt_info; |
| 227 | wdd->ops = &davinci_wdt_ops; |
| 228 | wdd->min_timeout = 1; |
| 229 | wdd->max_timeout = MAX_HEARTBEAT; |
| 230 | wdd->timeout = DEFAULT_HEARTBEAT; |
Guenter Roeck | cecda01 | 2019-04-08 12:38:37 -0700 | [diff] [blame] | 231 | wdd->parent = dev; |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 232 | |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 233 | watchdog_init_timeout(wdd, heartbeat, dev); |
| 234 | |
| 235 | dev_info(dev, "heartbeat %d sec\n", wdd->timeout); |
| 236 | |
Ivan Khoronzhuk | 6d9a6cf | 2013-12-04 21:39:27 +0200 | [diff] [blame] | 237 | watchdog_set_drvdata(wdd, davinci_wdt); |
Ivan Khoronzhuk | f48f3ce | 2013-12-05 13:26:24 +0200 | [diff] [blame] | 238 | watchdog_set_nowayout(wdd, 1); |
David Lechner | 71d1f05 | 2017-12-11 11:21:08 -0600 | [diff] [blame] | 239 | watchdog_set_restart_priority(wdd, 128); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 240 | |
Guenter Roeck | 0f0a6a2 | 2019-04-02 12:01:53 -0700 | [diff] [blame] | 241 | davinci_wdt->base = devm_platform_ioremap_resource(pdev, 0); |
Guenter Roeck | cecda01 | 2019-04-08 12:38:37 -0700 | [diff] [blame] | 242 | if (IS_ERR(davinci_wdt->base)) |
| 243 | return PTR_ERR(davinci_wdt->base); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 244 | |
Wolfram Sang | 6ab6d33 | 2019-05-18 23:27:25 +0200 | [diff] [blame] | 245 | return devm_watchdog_register_device(dev, wdd); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 246 | } |
| 247 | |
Murali Karicheri | 902e2e7 | 2012-11-26 16:41:35 -0500 | [diff] [blame] | 248 | static const struct of_device_id davinci_wdt_of_match[] = { |
| 249 | { .compatible = "ti,davinci-wdt", }, |
| 250 | {}, |
| 251 | }; |
| 252 | MODULE_DEVICE_TABLE(of, davinci_wdt_of_match); |
| 253 | |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 254 | static struct platform_driver platform_wdt_driver = { |
| 255 | .driver = { |
Ivan Khoronzhuk | 8437481 | 2013-11-27 15:31:53 +0200 | [diff] [blame] | 256 | .name = "davinci-wdt", |
Murali Karicheri | 902e2e7 | 2012-11-26 16:41:35 -0500 | [diff] [blame] | 257 | .of_match_table = davinci_wdt_of_match, |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 258 | }, |
| 259 | .probe = davinci_wdt_probe, |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 260 | }; |
| 261 | |
Axel Lin | b8ec611 | 2011-11-29 13:56:27 +0800 | [diff] [blame] | 262 | module_platform_driver(platform_wdt_driver); |
Vladimir Barinov | 7d831bf | 2007-06-12 18:09:50 +0400 | [diff] [blame] | 263 | |
| 264 | MODULE_AUTHOR("Texas Instruments"); |
| 265 | MODULE_DESCRIPTION("DaVinci Watchdog Driver"); |
| 266 | |
| 267 | module_param(heartbeat, int, 0); |
| 268 | MODULE_PARM_DESC(heartbeat, |
| 269 | "Watchdog heartbeat period in seconds from 1 to " |
| 270 | __MODULE_STRING(MAX_HEARTBEAT) ", default " |
| 271 | __MODULE_STRING(DEFAULT_HEARTBEAT)); |
| 272 | |
| 273 | MODULE_LICENSE("GPL"); |
Ivan Khoronzhuk | 8437481 | 2013-11-27 15:31:53 +0200 | [diff] [blame] | 274 | MODULE_ALIAS("platform:davinci-wdt"); |