clocksource/drivers/imx-tpm: Correct some registers operation flow
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 28 Mar 2018 03:22:37 +0000 (11:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:40 +0000 (04:02 +0900)
commit65783949c813d0cad88b6a30f47737e8dfc00c86
tree5e4a9b82e2b73f8d446f6a41233ad6b55bd7bfff
parentcda6fd4d9382205bb792255cd56a91062d404bc0
clocksource/drivers/imx-tpm: Correct some registers operation flow

[ Upstream commit 506a7be93ff773d5d4cf75a59f342865605b4910 ]

According to i.MX7ULP reference manual, TPM_SC_CPWMS can ONLY be written when
counter is disabled, TPM_SC_TOF is write-1-clear, TPM_C0SC_CHF is also
write-1-clear, correct these registers initialization flow;

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clocksource/timer-imx-tpm.c