blob: 000a96a0379b5541f75a969e12f97fdbe7ee9d62 [file] [log] [blame]
Grant Likely5ab5fc72010-07-05 12:02:13 -06001config DTC
2 bool
3
Rob Herring0166dc12015-05-28 12:48:45 -05004menuconfig 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.
Stephen Rothwellbcbefae2010-06-29 12:45:51 +100011
Rob Herring0166dc12015-05-28 12:48:45 -050012if OF
Grant Likely5ab5fc72010-07-05 12:02:13 -060013
Grant Likely19fd7482014-11-04 13:24:45 +000014config OF_UNITTEST
15 bool "Device Tree runtime unit tests"
Rob Herring649e0a72015-05-28 12:58:02 -050016 depends on OF_IRQ
17 select OF_EARLY_FLATTREE
Grant Likely2eb46da2014-10-02 14:36:46 +010018 select OF_RESOLVE
Grant Likely53a42092011-12-12 09:25:57 -070019 help
20 This option builds in test cases for the device tree infrastructure
Geert Uytterhoeven5d927082013-12-24 21:06:01 +010021 that are executed once at boot time, and the results dumped to the
Grant Likely53a42092011-12-12 09:25:57 -070022 console.
23
24 If unsure, say N here, but this option is safe to enable.
25
Rob Herring1b7c5012015-10-06 17:57:33 -050026config OF_ALL_DTBS
27 bool "Build all Device Tree Blobs"
28 depends on COMPILE_TEST
29 select DTC
30 help
31 This option builds all possible Device Tree Blobs (DTBs) for the
32 current architecture.
33
34 If unsure, say N here, but this option is safe to enable.
35
Grant Likelye169cfb2009-11-23 14:53:09 -070036config OF_FLATTREE
37 bool
Grant Likely5ab5fc72010-07-05 12:02:13 -060038 select DTC
Rob Herringe6a69282014-04-02 15:10:14 -050039 select LIBFDT
Ard Biesheuvel08d53aa2014-11-14 18:05:35 +010040 select CRC32
Grant Likelye169cfb2009-11-23 14:53:09 -070041
Stephen Neuendorffere6ce1322010-11-18 15:54:56 -080042config OF_EARLY_FLATTREE
43 bool
44 select OF_FLATTREE
45
Andres Salomon3cfc5352010-10-10 21:42:33 -060046config OF_PROMTREE
47 bool
48
Patrick Dalyfc006912018-05-18 14:01:34 -070049config OF_KOBJ
Patrick Daly27a4b772018-05-25 12:38:25 -070050 bool "Display devicetree in sysfs"
Patrick Dalyfc006912018-05-18 14:01:34 -070051 def_bool SYSFS
Patrick Daly27a4b772018-05-25 12:38:25 -070052 help
53 Some embedded platforms have no need to display the devicetree
54 nodes and properties in sysfs. Disabling this option will save
55 a small amount of memory, as well as decrease boot time. By
56 default this option will be enabled if SYSFS is enabled.
Patrick Dalyfc006912018-05-18 14:01:34 -070057
Grant Likely0f22dd32012-02-15 20:38:40 -070058# Hardly any platforms need this. It is safe to select, but only do so if you
59# need it.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070060config OF_DYNAMIC
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010061 bool "Support for dynamic device trees" if OF_UNITTEST
Patrick Dalyfc006912018-05-18 14:01:34 -070062 select OF_KOBJ
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010063 help
64 On some platforms, the device tree can be manipulated at runtime.
65 While this option is selected automatically on such platforms, you
66 can enable it manually to improve device tree unit test coverage.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070067
Grant Likely6b884a82010-06-08 07:48:09 -060068config OF_ADDRESS
69 def_bool y
Rob Herring39da8092015-07-05 10:18:41 -050070 depends on !SPARC && HAS_IOMEM
Gregory CLEMENT25a31572014-02-19 23:14:55 +010071 select OF_ADDRESS_PCI if PCI
72
73config OF_ADDRESS_PCI
74 bool
Grant Likely6b884a82010-06-08 07:48:09 -060075
Grant Likelye3873442010-06-18 11:09:59 -060076config OF_IRQ
77 def_bool y
Geert Uytterhoeven63c60e32015-04-05 16:59:24 +020078 depends on !SPARC && IRQ_DOMAIN
Grant Likelye3873442010-06-18 11:09:59 -060079
David Daney4b6ba8a2010-10-26 15:07:13 -070080config OF_NET
81 depends on NETDEVICES
82 def_bool y
83
Grant Likely8bc487d2009-04-25 12:52:56 +000084config OF_MDIO
85 def_tristate PHYLIB
Grant Likely5ab5fc72010-07-05 12:02:13 -060086 depends on PHYLIB
Arnd Bergmanna5e4bd92016-06-24 11:24:08 +020087 select FIXED_PHY
Grant Likely8bc487d2009-04-25 12:52:56 +000088 help
89 OpenFirmware MDIO bus (Ethernet PHY) accessors
Grant Likely5ab5fc72010-07-05 12:02:13 -060090
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053091config OF_PCI
92 def_tristate PCI
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100093 depends on PCI
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053094 help
95 OpenFirmware PCI bus accessors
96
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100097config OF_PCI_IRQ
98 def_tristate PCI
99 depends on OF_PCI && OF_IRQ
100 help
101 OpenFirmware PCI IRQ routing helpers
102
Marek Szyprowski3f0c8202014-02-28 14:42:48 +0100103config OF_RESERVED_MEM
104 depends on OF_EARLY_FLATTREE
105 bool
106 help
107 Helpers to allow for reservation of memory regions
108
Pantelis Antoniou7941b272014-07-04 19:59:20 +0300109config OF_RESOLVE
110 bool
111
Sagar Dhariabe37c9c2016-11-28 23:06:58 -0700112config OF_SLIMBUS
113 def_tristate SLIMBUS
114 depends on SLIMBUS
115 help
116 OpenFirmware SLIMBUS accessors
117
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200118config OF_OVERLAY
Matwey V. Kornilov5c776062015-02-15 18:22:47 +0300119 bool "Device Tree overlays"
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200120 select OF_DYNAMIC
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200121 select OF_RESOLVE
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +0100122 help
123 Overlays are a method to dynamically modify part of the kernel's
124 device tree with dynamically loaded data.
125 While this option is selected automatically when needed, you can
126 enable it manually to improve device tree unit test coverage.
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200127
David Daney298535c2016-04-08 15:50:25 -0700128config OF_NUMA
129 bool
130
Subbaraman Narayanamurthy92264bd2017-03-23 00:52:12 -0700131config OF_BATTERYDATA
132 def_bool y
133 help
134 OpenFirmware BatteryData accessors
135
Michael Ellermanba7b9e62020-01-26 22:52:47 +1100136config OF_DMA_DEFAULT_COHERENT
137 # arches should select this if DMA is coherent by default for OF devices
138 bool
139
Rob Herring0166dc12015-05-28 12:48:45 -0500140endif # OF