mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
watchdog: cadence: Show used timeout value
Debug message was showing timeout value which was passed to start function but there is a checking if this value can be setup. The patch is moving this debug printf function below checking. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
e00656b2a9
commit
5b410deac6
1 changed files with 2 additions and 2 deletions
|
@ -142,13 +142,13 @@ static int cdns_wdt_start(struct udevice *dev, u64 timeout, ulong flags)
|
|||
return -1;
|
||||
}
|
||||
|
||||
debug("%s: CLK_FREQ %ld, timeout %lld\n", __func__, clk_f, timeout);
|
||||
|
||||
if ((timeout < CDNS_WDT_MIN_TIMEOUT) ||
|
||||
(timeout > CDNS_WDT_MAX_TIMEOUT)) {
|
||||
timeout = priv->timeout;
|
||||
}
|
||||
|
||||
debug("%s: CLK_FREQ %ld, timeout %lld\n", __func__, clk_f, timeout);
|
||||
|
||||
if (clk_f <= CDNS_WDT_CLK_75MHZ) {
|
||||
prescaler = CDNS_WDT_PRESCALE_512;
|
||||
ctrl_clksel = CDNS_WDT_PRESCALE_SELECT_512;
|
||||
|
|
Loading…
Reference in a new issue