[PATCH v1 04/16] spl: xea: Provide stub DM driver for imx28 clocks

2023-07-11 Thread sbabic
> This code fixes following WARNING:
>   DTOCspl/dts/dt-plat.c
> fsl_imx28_clkctrl: WARNING: the driver fsl_imx28_clkctrl was not found in the 
> driver list
> As imx28 doesn't yet support common clock framework, this prevents from
> DTOC warnings during SPL build.
> Signed-off-by: Lukasz Majewski 
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=


[PATCH v1 04/16] spl: xea: Provide stub DM driver for imx28 clocks

2023-05-19 Thread Lukasz Majewski
This code fixes following WARNING:
  DTOCspl/dts/dt-plat.c
fsl_imx28_clkctrl: WARNING: the driver fsl_imx28_clkctrl was not found in the 
driver list

As imx28 doesn't yet support common clock framework, this prevents from
DTOC warnings during SPL build.

Signed-off-by: Lukasz Majewski 
---

 board/liebherr/xea/xea.c | 19 ++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c
index 38e841c5f6..ed2b39f70e 100644
--- a/board/liebherr/xea/xea.c
+++ b/board/liebherr/xea/xea.c
@@ -203,5 +203,22 @@ int ft_board_setup(void *blob, struct bd_info *bd)
return 0;
 }
 #endif
-
+/*
+ * NOTE:
+ *
+ * IMX28 clock "stub" DM driver!
+ *
+ * Only used for SPL stage, which is NOT using DM; serial and
+ * eMMC configuration.
+ */
+static const struct udevice_id imx28_clk_ids[] = {
+   { .compatible = "fsl,imx28-clkctrl", },
+   { }
+};
+
+U_BOOT_DRIVER(fsl_imx28_clkctrl) = {
+   .name   = "fsl_imx28_clkctrl",
+   .id = UCLASS_CLK,
+   .of_match   = imx28_clk_ids,
+};
 #endif /* CONFIG_SPL_BUILD */
-- 
2.30.2