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)
commit12e927b0a842408467fe7dbe627ca350d2300348
treee24ed6c81f976803540471905335315044213704
parent75d8f49481a5c260d0cf1024d41f0b29d57e0efe
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>
arch/x86/lib/lpc-uclass.c
drivers/pch/pch-uclass.c