watchdog: at91sam9_wdt: Remove now superfluous wdt start and reset
With the new generic function, the scattered other functions are now removed to be replaced by the generic one. The new version also enables the configuration of the watchdog timeout via the DT "timeout-sec" property (if enabled via CONFIG_OF_CONTROL). The watchdog servicing is enabled via CONFIG_WATCHDOG. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Eugen Hristev <eugen.hristev@microchip.com>
This commit is contained in:
@@ -107,14 +107,6 @@ static int at91_wdt_probe(struct udevice *dev)
|
||||
if (!priv->regs)
|
||||
return -EINVAL;
|
||||
|
||||
#if CONFIG_IS_ENABLED(OF_CONTROL)
|
||||
priv->timeout = dev_read_u32_default(dev, "timeout-sec",
|
||||
WDT_DEFAULT_TIMEOUT);
|
||||
debug("%s: timeout %d", __func__, priv->timeout);
|
||||
#else
|
||||
priv->timeout = WDT_DEFAULT_TIMEOUT;
|
||||
#endif
|
||||
|
||||
debug("%s: Probing wdt%u\n", __func__, dev->seq);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user