mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
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>
This commit is contained in:
parent
75d8f49481
commit
12e927b0a8
@ -10,5 +10,7 @@
|
|||||||
UCLASS_DRIVER(lpc) = {
|
UCLASS_DRIVER(lpc) = {
|
||||||
.id = UCLASS_LPC,
|
.id = UCLASS_LPC,
|
||||||
.name = "lpc",
|
.name = "lpc",
|
||||||
|
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||||
.post_bind = dm_scan_fdt_dev,
|
.post_bind = dm_scan_fdt_dev,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
@ -64,5 +64,7 @@ int pch_ioctl(struct udevice *dev, ulong req, void *data, int size)
|
|||||||
UCLASS_DRIVER(pch) = {
|
UCLASS_DRIVER(pch) = {
|
||||||
.id = UCLASS_PCH,
|
.id = UCLASS_PCH,
|
||||||
.name = "pch",
|
.name = "pch",
|
||||||
|
#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||||
.post_bind = dm_scan_fdt_dev,
|
.post_bind = dm_scan_fdt_dev,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user