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