Skip to contentSkip to conversation

imx: mx6cuboxi: Disable thermal driver in SPL

PATCH Superseded Simon Glass 2 participants 3 messages Oct 29, 2020 – Oct 30, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 imx: mx6cuboxi: Disable thermal driver in SPL

This feature is incompatble with of-platdata since it uses the U_BOOT_DEVICE() macro. With of-platdata the only devices permitted are those created by dtoc.

The driver is not used in SPL anyway, so exclude it from that build.

---

Changes in v2:
- Disable just the driver definition in SPL

 arch/arm/mach-imx/mx6/soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/mx6/soc.c +1 -1
index e1292860656..a636107410e 100644
@@ -34,7 +34,7 @@ struct scu_regs {
 	u32	fpga_rev;
 };
 
-#if defined(CONFIG_IMX_THERMAL)
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_IMX_THERMAL)
 static const struct imx_thermal_plat imx6_thermal_plat = {
 	.regs = (void *)ANATOP_BASE_ADDR,
 	.fuse_bank = 1,
Signature · 1 line
2.29.1.341.ge80a0c044ae-goog
reviewer
#1 lore raw

PATCH v2 1/1 imx: mx6cuboxi: Disable thermal driver in SPL

Quoted 8 lines · Simon Glass

This feature is incompatble with of-platdata since it uses the U_BOOT_DEVICE() macro. With of-platdata the only devices permitted are those created by dtoc.

The driver is not used in SPL anyway, so exclude it from that build.

#2 lore raw

PATCH v2 1/1 imx: mx6cuboxi: Disable thermal driver in SPL

Quoted 8 lines · Simon Glass

This feature is incompatble with of-platdata since it uses the U_BOOT_DEVICE() macro. With of-platdata the only devices permitted are those created by dtoc.

The driver is not used in SPL anyway, so exclude it from that build.

Applied to u-boot-dm, thanks!