summaryrefslogtreecommitdiffstats
path: root/drivers/of/Kconfig
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-11-22 18:29:41 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-11-23 15:50:35 +0100
commitd6c0e2ea68baf76e22956f3c089c84d7fb17ab8d (patch)
treea289bfce4dbe7cd18a5eb0c4ea2ccc0552557fe6 /drivers/of/Kconfig
parentba1e8d8dca515aac101404ec1e2247d2992a24c7 (diff)
downloadbarebox-d6c0e2ea68baf76e22956f3c089c84d7fb17ab8d.tar.gz
barebox-d6c0e2ea68baf76e22956f3c089c84d7fb17ab8d.tar.xz
of: add CONFIG_OF for Linux compatibility
barebox has CONFIG_OFTREE and CONFIG_OFDEVICE as separate definitions for good reason, because configurations parsing device trees, while not using them are possible. In Linux, there is no such distinction and CONFIG_OF is used as single option for this. Provide the same option in barebox as hidden symbol and select it from CONFIG_OFDEVICE to make porting a tiny bit easier. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231122172951.376531-11-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r--drivers/of/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 4dc40b27f4..816aff0063 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -11,8 +11,12 @@ config OFTREE_MEM_GENERIC
config DTC
bool
+config OF
+ bool
+
config OFDEVICE
select OFTREE
+ select OF
select DTC
bool "Enable probing of devices from the devicetree"