From: Stefan Roese Date: Thu, 11 Apr 2019 13:52:47 +0200 Subject: [U-Boot] [PATCH v4 2/3] watchdog: orion_wdt: take timeout value in ms In-Reply-To: <20190217213054.8223-3-judge.packham@gmail.com> References: <20190217213054.8223-1-judge.packham@gmail.com> <20190217213054.8223-3-judge.packham@gmail.com> Message-ID: <40451a0f-ce6f-bb54-eff9-337dc783dd38@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17.02.19 22:30, Chris Packham wrote: > The generic wdt_start API expects to be called with the timeout in > milliseconds. Update the orion_wdt driver to accept a timeout in > milliseconds and use the clock rate specified in the dts to convert the > timeout to an appropriate value for the timer reload register. > > Signed-off-by: Chris Packham > --- > It turned out to be easy enough to make orion_wdt conform to the > expected wdt APIs. It looks like the turris_mox already assumed a > timeout in ms, so only the turris_omnia needed updating. > > Changes in v4: > - use DIV_ROUND_UP to avoid setting the timeout to 0. > > Changes in v3: > - new > > Changes in v2: None Applied to u-boot-marvell/master. Thanks, Stefan