]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: mx6cuboxi: Disable thermal driver in SPL
authorSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 17:08:25 +0000 (11:08 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:56 +0000 (14:42 -0600)
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.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/mx6/soc.c

index e12928606560ba12126bc150af5fa76925d09bca..a636107410eec82a5a6b7b8b19a0b52de435e6cc 100644 (file)
@@ -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,