]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Allow the PCH and LPC uclasses to work with of-platdata
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:43 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:48 +0000 (13:57 +0800)
At present these uclasses assumes that they are used with a device tree.
Update them to support of-platdata as well.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/lpc-uclass.c
drivers/pch/pch-uclass.c

index 505d7a943d2e1e75aa9e6609d8df229abc1b72ee..1302a6e34a144a9f3441ae92d7ecce9768b00666 100644 (file)
@@ -10,5 +10,7 @@
 UCLASS_DRIVER(lpc) = {
        .id             = UCLASS_LPC,
        .name           = "lpc",
+#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
        .post_bind      = dm_scan_fdt_dev,
+#endif
 };
index caf8b72803cac90d7ed8fa0522ef65d07ecde69f..ad4906aa58b41c55859180d0572866413d53460b 100644 (file)
@@ -64,5 +64,7 @@ int pch_ioctl(struct udevice *dev, ulong req, void *data, int size)
 UCLASS_DRIVER(pch) = {
        .id             = UCLASS_PCH,
        .name           = "pch",
+#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
        .post_bind      = dm_scan_fdt_dev,
+#endif
 };