Re: [PATCH] thermal: imx_tmu: Fix TMU error on iMX8MQ

2024-03-30 Thread Fabio Estevam
On Thu, Mar 28, 2024 at 7:50 AM Ye Li  wrote:
>
> imx_tmu_arch_init does not implement for iMX8MQ, error is returned
>
> Signed-off-by: Ye Li 

Applied to u-boot-imx/next, thanks.


[PATCH] thermal: imx_tmu: Fix TMU error on iMX8MQ

2024-03-28 Thread Ye Li
imx_tmu_arch_init does not implement for iMX8MQ, error is returned

Signed-off-by: Ye Li 
---
 drivers/thermal/imx_tmu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c
index 4721cfb..ca775e5 100644
--- a/drivers/thermal/imx_tmu.c
+++ b/drivers/thermal/imx_tmu.c
@@ -402,6 +402,7 @@ static inline void imx_tmu_mx8mp_init(struct udevice *dev) 
{ }
 #endif
 
 static inline void imx_tmu_mx93_init(struct udevice *dev) { }
+static inline void imx_tmu_mx8mq_init(struct udevice *dev) { }
 
 static void imx_tmu_arch_init(struct udevice *dev)
 {
@@ -411,6 +412,8 @@ static void imx_tmu_arch_init(struct udevice *dev)
imx_tmu_mx8mp_init(dev);
else if (is_imx93())
imx_tmu_mx93_init(dev);
+   else if (is_imx8mq())
+   imx_tmu_mx8mq_init(dev);
else
dev_err(dev, "Unsupported SoC, TMU calibration not loaded!\n");
 }
-- 
2.7.4