]>
Commit | Line | Data |
---|---|---|
af6074fc | 1 | # SPDX-License-Identifier: GPL-2.0 |
5ab5fc7e GL |
2 | config DTC |
3 | bool | |
4 | ||
0166dc11 RH |
5 | menuconfig OF |
6 | bool "Device Tree and Open Firmware support" | |
7 | help | |
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 | |
11 | compile-coverage. | |
bcbefae2 | 12 | |
0166dc11 | 13 | if OF |
5ab5fc7e | 14 | |
19fd7487 GL |
15 | config OF_UNITTEST |
16 | bool "Device Tree runtime unit tests" | |
6019a3d0 RH |
17 | depends on !SPARC |
18 | select IRQ_DOMAIN | |
649e0a77 | 19 | select OF_EARLY_FLATTREE |
2eb46da2 | 20 | select OF_RESOLVE |
53a42093 GL |
21 | help |
22 | This option builds in test cases for the device tree infrastructure | |
5d927086 | 23 | that are executed once at boot time, and the results dumped to the |
53a42093 GL |
24 | console. |
25 | ||
26 | If unsure, say N here, but this option is safe to enable. | |
27 | ||
1b7c501b RH |
28 | config OF_ALL_DTBS |
29 | bool "Build all Device Tree Blobs" | |
30 | depends on COMPILE_TEST | |
31 | select DTC | |
32 | help | |
33 | This option builds all possible Device Tree Blobs (DTBs) for the | |
34 | current architecture. | |
35 | ||
36 | If unsure, say N here, but this option is safe to enable. | |
37 | ||
e169cfbe GL |
38 | config OF_FLATTREE |
39 | bool | |
5ab5fc7e | 40 | select DTC |
e6a6928c | 41 | select LIBFDT |
08d53aa5 | 42 | select CRC32 |
e169cfbe | 43 | |
e6ce1324 SN |
44 | config OF_EARLY_FLATTREE |
45 | bool | |
ff4c25f2 | 46 | select DMA_DECLARE_COHERENT if HAS_DMA |
e6ce1324 SN |
47 | select OF_FLATTREE |
48 | ||
3cfc535c AS |
49 | config OF_PROMTREE |
50 | bool | |
51 | ||
b56b5528 RH |
52 | config OF_KOBJ |
53 | def_bool SYSFS | |
54 | ||
0f22dd39 GL |
55 | # Hardly any platforms need this. It is safe to select, but only do so if you |
56 | # need it. | |
fcdeb7fe | 57 | config OF_DYNAMIC |
121c92ca | 58 | bool "Support for dynamic device trees" if OF_UNITTEST |
b56b5528 | 59 | select OF_KOBJ |
121c92ca GU |
60 | help |
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. | |
fcdeb7fe | 64 | |
6b884a8d GL |
65 | config OF_ADDRESS |
66 | def_bool y | |
6019a3d0 | 67 | depends on !SPARC && (HAS_IOMEM || UML) |
6b884a8d | 68 | |
e3873444 GL |
69 | config OF_IRQ |
70 | def_bool y | |
63c60e3a | 71 | depends on !SPARC && IRQ_DOMAIN |
e3873444 | 72 | |
4b6ba8aa DD |
73 | config OF_NET |
74 | depends on NETDEVICES | |
75 | def_bool y | |
76 | ||
8bc487d1 GL |
77 | config OF_MDIO |
78 | def_tristate PHYLIB | |
5ab5fc7e | 79 | depends on PHYLIB |
a5e4bd99 | 80 | select FIXED_PHY |
8bc487d1 GL |
81 | help |
82 | OpenFirmware MDIO bus (Ethernet PHY) accessors | |
5ab5fc7e | 83 | |
3f0c8206 | 84 | config OF_RESERVED_MEM |
3f0c8206 | 85 | bool |
34e04eed | 86 | depends on OF_EARLY_FLATTREE |
ff4c25f2 | 87 | default y if DMA_DECLARE_COHERENT || DMA_CMA |
3f0c8206 | 88 | |
7941b27b PA |
89 | config OF_RESOLVE |
90 | bool | |
91 | ||
7518b589 | 92 | config OF_OVERLAY |
5c776064 | 93 | bool "Device Tree overlays" |
7518b589 | 94 | select OF_DYNAMIC |
39a751a4 | 95 | select OF_FLATTREE |
7518b589 | 96 | select OF_RESOLVE |
121c92ca GU |
97 | help |
98 | Overlays are a method to dynamically modify part of the kernel's | |
99 | device tree with dynamically loaded data. | |
100 | While this option is selected automatically when needed, you can | |
101 | enable it manually to improve device tree unit test coverage. | |
7518b589 | 102 | |
298535c0 DD |
103 | config OF_NUMA |
104 | bool | |
105 | ||
dabf6b36 ME |
106 | config OF_DMA_DEFAULT_COHERENT |
107 | # arches should select this if DMA is coherent by default for OF devices | |
108 | bool | |
109 | ||
0166dc11 | 110 | endif # OF |