clocksource/drivers/imx-sysctr: handle nxp,no-divider property
authorPeng Fan <peng.fan@nxp.com>
Fri, 2 Sep 2022 11:12:07 +0000 (19:12 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 20 Sep 2022 08:49:46 +0000 (10:49 +0200)
commit27b30995b75d1e79360c164ba179bca86ab76ba6
treef76320b2b0ae1e8845091d6d3706d1880c22db56
parent061f42748d0639647636b7a48d71951e8d92720a
clocksource/drivers/imx-sysctr: handle nxp,no-divider property

The previous hardware design embedds a internal divider for base clock.
New design not has that divider, so check the nxp,no-divider property,
if true, directly use base clock input, otherwise divide by 3 as before.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20220902111207.2902493-3-peng.fan@oss.nxp.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-imx-sysctr.c