All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] imx: mx6cuboxi: Disable thermal driver in SPL
@ 2020-10-29 17:08 Simon Glass
  2020-10-29 17:10 ` Fabio Estevam
  2020-10-30  3:33 ` Simon Glass
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Glass @ 2020-10-29 17:08 UTC (permalink / raw)
  To: u-boot

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>
---

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(-)

diff --git a/arch/arm/mach-imx/mx6/soc.c b/arch/arm/mach-imx/mx6/soc.c
index e1292860656..a636107410e 100644
--- a/arch/arm/mach-imx/mx6/soc.c
+++ b/arch/arm/mach-imx/mx6/soc.c
@@ -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,
-- 
2.29.1.341.ge80a0c044ae-goog

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2] imx: mx6cuboxi: Disable thermal driver in SPL
  2020-10-29 17:08 [PATCH v2] imx: mx6cuboxi: Disable thermal driver in SPL Simon Glass
@ 2020-10-29 17:10 ` Fabio Estevam
  2020-10-30  3:33 ` Simon Glass
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2020-10-29 17:10 UTC (permalink / raw)
  To: u-boot

On Thu, Oct 29, 2020 at 2:08 PM Simon Glass <sjg@chromium.org> wrote:
>
> 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2] imx: mx6cuboxi: Disable thermal driver in SPL
  2020-10-29 17:08 [PATCH v2] imx: mx6cuboxi: Disable thermal driver in SPL Simon Glass
  2020-10-29 17:10 ` Fabio Estevam
@ 2020-10-30  3:33 ` Simon Glass
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2020-10-30  3:33 UTC (permalink / raw)
  To: u-boot

On Thu, Oct 29, 2020 at 2:08 PM Simon Glass <sjg@chromium.org> wrote:
>
> 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>

Applied to u-boot-dm, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-30  3:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-29 17:08 [PATCH v2] imx: mx6cuboxi: Disable thermal driver in SPL Simon Glass
2020-10-29 17:10 ` Fabio Estevam
2020-10-30  3:33 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.