1 # SPDX-License-Identifier: GPL-2.0
6 bool "Device Tree and Open Firmware support"
8 This option enables the device tree infrastructure.
9 It is automatically selected by platforms that need it or can
10 be enabled manually for unittests, overlays or
16 bool "Device Tree runtime unit tests"
19 select OF_EARLY_FLATTREE
22 This option builds in test cases for the device tree infrastructure
23 that are executed once at boot time, and the results dumped to the
26 If unsure, say N here, but this option is safe to enable.
29 bool "Build all Device Tree Blobs"
30 depends on COMPILE_TEST
33 This option builds all possible Device Tree Blobs (DTBs) for the
36 If unsure, say N here, but this option is safe to enable.
44 config OF_EARLY_FLATTREE
46 select DMA_DECLARE_COHERENT if HAS_DMA
55 # Hardly any platforms need this. It is safe to select, but only do so if you
58 bool "Support for dynamic device trees" if OF_UNITTEST
61 On some platforms, the device tree can be manipulated at runtime.
62 While this option is selected automatically on such platforms, you
63 can enable it manually to improve device tree unit test coverage.
67 depends on !SPARC && (HAS_IOMEM || UML)
71 depends on !SPARC && IRQ_DOMAIN
77 config OF_RESERVED_MEM
79 depends on OF_EARLY_FLATTREE
80 default y if DMA_DECLARE_COHERENT || DMA_CMA
86 bool "Device Tree overlays"
91 Overlays are a method to dynamically modify part of the kernel's
92 device tree with dynamically loaded data.
93 While this option is selected automatically when needed, you can
94 enable it manually to improve device tree unit test coverage.
99 config OF_DMA_DEFAULT_COHERENT
100 # arches should select this if DMA is coherent by default for OF devices