Skip to content
Commit ee6866e6 authored by Mo, Yuezhang's avatar Mo, Yuezhang Committed by Stefano Babic
Browse files

watchdog: imx: Support set timeout by wdt command



After "4b969dea watchdog: imx: Add DM support", the imx watchdog
can be started by wdt command. But the imx watchdog driver only
support start with the default timeout.

This commit adds the support for setting the timeout which pass from
the wdt command into the imx watchdog. If the timeout out of the
valid range(0.5~128s), start the watchdog with a timeout within the
valid range and the timeout is the one which closest to the passed
timeout.

Signed-off-by: default avatarYuezhang.Mo <yuezhang.mo@sony.com>
Reviewed-by: default avatarAndy.Wu <Andy.Wu@sony.com>
Reviewed-by: default avatarstefano Babic <sbabic@denx.de>
parent eefd93e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment