thermal/drivers/imx8mm: Enable ADC when enabling monitor
stable inclusion from stable-v5.10.94 commit 96e05d2d9370557a0456096907cc6c0fcfbf892f bugzilla: https://gitee.com/openeuler/kernel/issues/I531X9 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=96e05d2d9370557a0456096907cc6c0fcfbf892f -------------------------------- [ Upstream commit 3de89d88 ] The i.MX 8MP has a ADC_PD bit in the TMU_TER register that controls the operating mode of the ADC: * 0 means normal operating mode * 1 means power down mode When enabling/disabling the TMU, the ADC operating mode must be set accordingly. i.MX 8M Mini & Nano are lacking this bit. Signed-off-by: NPaul Gerber <Paul.Gerber@tq-group.com> Signed-off-by: NAlexander Stein <alexander.stein@ew.tq-group.com> Fixes: 2b8f1f03 ("thermal: imx8mm: Add i.MX8MP support") Link: https://lore.kernel.org/r/20211122114225.196280-1-alexander.stein@ew.tq-group.comSigned-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录