Commit | Line | Data |
---|---|---|
5ab5fc7e GL |
1 | config DTC |
2 | bool | |
3 | ||
0166dc11 RH |
4 | menuconfig OF |
5 | bool "Device Tree and Open Firmware support" | |
6 | help | |
7 | This option enables the device tree infrastructure. | |
8 | It is automatically selected by platforms that need it or can | |
9 | be enabled manually for unittests, overlays or | |
10 | compile-coverage. | |
bcbefae2 | 11 | |
0166dc11 | 12 | if OF |
5ab5fc7e | 13 | |
19fd7487 GL |
14 | config OF_UNITTEST |
15 | bool "Device Tree runtime unit tests" | |
649e0a77 RH |
16 | depends on OF_IRQ |
17 | select OF_EARLY_FLATTREE | |
2eb46da2 | 18 | select OF_RESOLVE |
53a42093 GL |
19 | help |
20 | This option builds in test cases for the device tree infrastructure | |
5d927086 | 21 | that are executed once at boot time, and the results dumped to the |
53a42093 GL |
22 | console. |
23 | ||
24 | If unsure, say N here, but this option is safe to enable. | |
25 | ||
e169cfbe GL |
26 | config OF_FLATTREE |
27 | bool | |
5ab5fc7e | 28 | select DTC |
e6a6928c | 29 | select LIBFDT |
08d53aa5 | 30 | select CRC32 |
e169cfbe | 31 | |
e6ce1324 SN |
32 | config OF_EARLY_FLATTREE |
33 | bool | |
34 | select OF_FLATTREE | |
35 | ||
3cfc535c AS |
36 | config OF_PROMTREE |
37 | bool | |
38 | ||
0f22dd39 GL |
39 | # Hardly any platforms need this. It is safe to select, but only do so if you |
40 | # need it. | |
fcdeb7fe | 41 | config OF_DYNAMIC |
121c92ca GU |
42 | bool "Support for dynamic device trees" if OF_UNITTEST |
43 | help | |
44 | On some platforms, the device tree can be manipulated at runtime. | |
45 | While this option is selected automatically on such platforms, you | |
46 | can enable it manually to improve device tree unit test coverage. | |
fcdeb7fe | 47 | |
6b884a8d GL |
48 | config OF_ADDRESS |
49 | def_bool y | |
39da809e | 50 | depends on !SPARC && HAS_IOMEM |
25a31579 GC |
51 | select OF_ADDRESS_PCI if PCI |
52 | ||
53 | config OF_ADDRESS_PCI | |
54 | bool | |
6b884a8d | 55 | |
e3873444 GL |
56 | config OF_IRQ |
57 | def_bool y | |
63c60e3a | 58 | depends on !SPARC && IRQ_DOMAIN |
e3873444 | 59 | |
4b6ba8aa DD |
60 | config OF_NET |
61 | depends on NETDEVICES | |
62 | def_bool y | |
63 | ||
8bc487d1 GL |
64 | config OF_MDIO |
65 | def_tristate PHYLIB | |
5ab5fc7e | 66 | depends on PHYLIB |
8bc487d1 GL |
67 | help |
68 | OpenFirmware MDIO bus (Ethernet PHY) accessors | |
5ab5fc7e | 69 | |
04bea68b SAS |
70 | config OF_PCI |
71 | def_tristate PCI | |
98d9f30c | 72 | depends on PCI |
04bea68b SAS |
73 | help |
74 | OpenFirmware PCI bus accessors | |
75 | ||
98d9f30c BH |
76 | config OF_PCI_IRQ |
77 | def_tristate PCI | |
78 | depends on OF_PCI && OF_IRQ | |
79 | help | |
80 | OpenFirmware PCI IRQ routing helpers | |
81 | ||
770d7c39 JCPV |
82 | config OF_MTD |
83 | depends on MTD | |
84 | def_bool y | |
85 | ||
3f0c8206 MS |
86 | config OF_RESERVED_MEM |
87 | depends on OF_EARLY_FLATTREE | |
88 | bool | |
89 | help | |
90 | Helpers to allow for reservation of memory regions | |
91 | ||
7941b27b PA |
92 | config OF_RESOLVE |
93 | bool | |
94 | ||
7518b589 | 95 | config OF_OVERLAY |
5c776064 | 96 | bool "Device Tree overlays" |
7518b589 | 97 | select OF_DYNAMIC |
7518b589 | 98 | select OF_RESOLVE |
121c92ca GU |
99 | help |
100 | Overlays are a method to dynamically modify part of the kernel's | |
101 | device tree with dynamically loaded data. | |
102 | While this option is selected automatically when needed, you can | |
103 | enable it manually to improve device tree unit test coverage. | |
7518b589 | 104 | |
0166dc11 | 105 | endif # OF |