[PATCH 1/2] timer: mtk_timer: initialize the timer before use

Tom Rini trini at konsulko.com
Tue Jan 19 14:06:14 CET 2021

On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote:

> The timer being used by this driver may have already been used by first
> stage bootloader (e.g. ATF/preloader), and it's settings may differ from
> what this driver is going to use.
> This may cause issues, such as inaccurate timer frequency due to
> incorrect clock divider.
> This patch adds the initialization code to avoid them.
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>

Applied to u-boot/master, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210119/1d04380c/attachment.sig>

More information about the U-Boot mailing list