aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2023-05-19 12:43:46 +0200
committerStefano Babic <sbabic@denx.de>2023-07-11 14:40:04 +0200
commit9c2eefaf0d15368e9ca1bb7325e2b3baa263e448 (patch)
tree9dcc9e079f7f3dc21c84f8c2d173ffd8b71a0a58 /board
parent11194c0d11bab4ad567af8b7a03c65e8fe3f0846 (diff)
downloadu-boot-9c2eefaf0d15368e9ca1bb7325e2b3baa263e448.zip
u-boot-9c2eefaf0d15368e9ca1bb7325e2b3baa263e448.tar.gz
u-boot-9c2eefaf0d15368e9ca1bb7325e2b3baa263e448.tar.bz2
spl: xea: Provide stub DM driver for imx28 clocks
This code fixes following WARNING: DTOC spl/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 <lukma@denx.de>
Diffstat (limited to 'board')
-rw-r--r--board/liebherr/xea/xea.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c
index 38e841c..ed2b39f 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 */