Skip to content
Commit 63779b24 authored by Weijie Gao's avatar Weijie Gao Committed by Tom Rini
Browse files

timer: mtk_timer: initialize the timer before use



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: default avatarWeijie Gao <weijie.gao@mediatek.com>
parent 97bf7376
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