fdt: Create a new OF_REAL Kconfig
authorSimon Glass <sjg@chromium.org>
Sat, 7 Aug 2021 13:24:02 +0000 (07:24 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Sep 2021 15:46:15 +0000 (09:46 -0600)
commiteaad01a3d018a8a5b1003ab2d28e9e23e2b2db3f
tree797dbb7281a212dd14c5db145e39adab819b0756
parent7de8bd03c37af6120cf5bba9bf1adb492ed56868
fdt: Create a new OF_REAL Kconfig

The condition to indicate whether there is a runtime devicetree available
is OF_CONTROL && !OF_PLATDATA. This is a bit unweidly and is repeated in
a lot of places.

Add a new OF_REAL Kconfig which provides this information directly.

Note: This is similar in effect to LIBFDT. We might consider dropping
LIBFDT and using this instead, but this is left for now as we also have
OF_LIBFDT_OVERLAY which it would not make sense to change.

Signed-off-by: Simon Glass <sjg@chromium.org>
dts/Kconfig