From: Ye Li Date: Thu, 28 Mar 2024 10:49:59 +0000 (+0800) Subject: thermal: imx_tmu: Fix TMU error on iMX8MQ X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=6a9de676f5c7a3764553588da6976e5cde44164f;p=u-boot.git thermal: imx_tmu: Fix TMU error on iMX8MQ imx_tmu_arch_init does not implement for iMX8MQ, error is returned Signed-off-by: Ye Li --- diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c index c7fe0f07a6..ea6c8329c0 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"); }