aboutsummaryrefslogtreecommitdiff
path: root/drivers/pch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 08:56:43 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 13:57:48 +0800
commit12e927b0a842408467fe7dbe627ca350d2300348 (patch)
treee24ed6c81f976803540471905335315044213704 /drivers/pch
parent75d8f49481a5c260d0cf1024d41f0b29d57e0efe (diff)
downloadu-boot-12e927b0a842408467fe7dbe627ca350d2300348.zip
u-boot-12e927b0a842408467fe7dbe627ca350d2300348.tar.gz
u-boot-12e927b0a842408467fe7dbe627ca350d2300348.tar.bz2
x86: Allow the PCH and LPC uclasses to work with of-platdata
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>
Diffstat (limited to 'drivers/pch')
-rw-r--r--drivers/pch/pch-uclass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pch/pch-uclass.c b/drivers/pch/pch-uclass.c
index caf8b72..ad4906a 100644
--- a/drivers/pch/pch-uclass.c
+++ b/drivers/pch/pch-uclass.c
@@ -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
};