# SPDX-License-Identifier: GPL-2.0
config [31mCONFIG_DTC[0m
bool
menuconfig [31mCONFIG_OF[0m
bool "Device Tree and Open Firmware support"
help
This option enables the device tree infrastructure.
It is automatically selected by platforms that need it or can
be enabled manually for unittests, overlays or
compile-coverage.
if [31mCONFIG_OF[0m
config [31mCONFIG_OF_UNITTEST[0m
bool "Device Tree runtime unit tests"
depends on ![31mCONFIG_SPARC[0m
select [31mCONFIG_IRQ_DOMAIN[0m
select [31mCONFIG_OF_EARLY_FLATTREE[0m
select [31mCONFIG_OF_RESOLVE[0m
help
This option builds in test cases for the device tree infrastructure
that are executed once at boot time, and the results dumped to the
console.
If unsure, say N here, but this option is safe to enable.
config [31mCONFIG_OF_ALL_DTBS[0m
bool "Build all Device Tree Blobs"
depends on [31mCONFIG_COMPILE_TEST[0m
select [31mCONFIG_DTC[0m
help
This option builds all possible Device Tree Blobs (DTBs) for the
current architecture.
If unsure, say N here, but this option is safe to enable.
config [31mCONFIG_OF_FLATTREE[0m
bool
select [31mCONFIG_DTC[0m
select [31mCONFIG_LIBFDT[0m
select [31mCONFIG_CRC32[0m
config [31mCONFIG_OF_EARLY_FLATTREE[0m
bool
select [31mCONFIG_DMA_DECLARE_COHERENT[0m if [31mCONFIG_HAS_DMA[0m
select [31mCONFIG_OF_FLATTREE[0m
config [31mCONFIG_OF_PROMTREE[0m
bool
config [31mCONFIG_OF_KOBJ[0m
def_bool [31mCONFIG_SYSFS[0m
# Hardly any platforms need this. It is safe to select, but only do so if you
# need it.
config [31mCONFIG_OF_DYNAMIC[0m
bool "Support for dynamic device trees" if [31mCONFIG_OF_UNITTEST[0m
select [31mCONFIG_OF_KOBJ[0m
help
On some platforms, the device tree can be manipulated at runtime.
While this option is selected automatically on such platforms, you
can enable it manually to improve device tree unit test coverage.
config [31mCONFIG_OF_ADDRESS[0m
def_bool y
depends on ![31mCONFIG_SPARC[0m && ([31mCONFIG_HAS_IOMEM[0m || [31mCONFIG_UML[0m)
config [31mCONFIG_OF_IRQ[0m
def_bool y
depends on ![31mCONFIG_SPARC[0m && [31mCONFIG_IRQ_DOMAIN[0m
config [31mCONFIG_OF_NET[0m
depends on [31mCONFIG_NETDEVICES[0m
def_bool y
config [31mCONFIG_OF_MDIO[0m
def_tristate [31mCONFIG_PHYLIB[0m
depends on [31mCONFIG_PHYLIB[0m
select [31mCONFIG_FIXED_PHY[0m
help
OpenFirmware [31mCONFIG_MDIO[0m bus (Ethernet PHY) accessors
config [31mCONFIG_OF_RESERVED_MEM[0m
bool
depends on [31mCONFIG_OF_EARLY_FLATTREE[0m
default y if [31mCONFIG_DMA_DECLARE_COHERENT[0m || [31mCONFIG_DMA_CMA[0m
config [31mCONFIG_OF_RESOLVE[0m
bool
config [31mCONFIG_OF_OVERLAY[0m
bool "Device Tree overlays"
select [31mCONFIG_OF_DYNAMIC[0m
select [31mCONFIG_OF_FLATTREE[0m
select [31mCONFIG_OF_RESOLVE[0m
help
Overlays are a method to dynamically modify part of the kernel's
device tree with dynamically loaded data.
While this option is selected automatically when needed, you can
enable it manually to improve device tree unit test coverage.
config [31mCONFIG_OF_NUMA[0m
bool
endif # [31mCONFIG_OF[0m