commit | 63779b240711cb1a0761bbceb323f5e9558394cc | [log] [tgz] |
---|---|---|
author | Weijie Gao <weijie.gao@mediatek.com> | Tue Jan 12 13:44:02 2021 +0800 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 18 15:23:06 2021 -0500 |
tree | 8f124e249c4e52a70e8d4940c0f0099f65425b47 | |
parent | 97bf73762fed743291bb7e572aa659374990b93d [diff] |
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: Weijie Gao <weijie.gao@mediatek.com>