blob: e4304e70a6d35206666e02294f82ea811747f12b [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
50 def_bool SYSFS
51
Grant Likely0f22dd32012-02-15 20:38:40 -070052# Hardly any platforms need this. It is safe to select, but only do so if you
53# need it.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070054config OF_DYNAMIC
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010055 bool "Support for dynamic device trees" if OF_UNITTEST
Patrick Dalyfc006912018-05-18 14:01:34 -070056 select OF_KOBJ
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010057 help
58 On some platforms, the device tree can be manipulated at runtime.
59 While this option is selected automatically on such platforms, you
60 can enable it manually to improve device tree unit test coverage.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070061
Grant Likely6b884a82010-06-08 07:48:09 -060062config OF_ADDRESS
63 def_bool y
Rob Herring39da8092015-07-05 10:18:41 -050064 depends on !SPARC && HAS_IOMEM
Gregory CLEMENT25a31572014-02-19 23:14:55 +010065 select OF_ADDRESS_PCI if PCI
66
67config OF_ADDRESS_PCI
68 bool
Grant Likely6b884a82010-06-08 07:48:09 -060069
Grant Likelye3873442010-06-18 11:09:59 -060070config OF_IRQ
71 def_bool y
Geert Uytterhoeven63c60e32015-04-05 16:59:24 +020072 depends on !SPARC && IRQ_DOMAIN
Grant Likelye3873442010-06-18 11:09:59 -060073
David Daney4b6ba8a2010-10-26 15:07:13 -070074config OF_NET
75 depends on NETDEVICES
76 def_bool y
77
Grant Likely8bc487d2009-04-25 12:52:56 +000078config OF_MDIO
79 def_tristate PHYLIB
Grant Likely5ab5fc72010-07-05 12:02:13 -060080 depends on PHYLIB
Arnd Bergmanna5e4bd92016-06-24 11:24:08 +020081 select FIXED_PHY
Grant Likely8bc487d2009-04-25 12:52:56 +000082 help
83 OpenFirmware MDIO bus (Ethernet PHY) accessors
Grant Likely5ab5fc72010-07-05 12:02:13 -060084
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053085config OF_PCI
86 def_tristate PCI
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100087 depends on PCI
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053088 help
89 OpenFirmware PCI bus accessors
90
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100091config OF_PCI_IRQ
92 def_tristate PCI
93 depends on OF_PCI && OF_IRQ
94 help
95 OpenFirmware PCI IRQ routing helpers
96
Marek Szyprowski3f0c8202014-02-28 14:42:48 +010097config OF_RESERVED_MEM
98 depends on OF_EARLY_FLATTREE
99 bool
100 help
101 Helpers to allow for reservation of memory regions
102
Pantelis Antoniou7941b272014-07-04 19:59:20 +0300103config OF_RESOLVE
104 bool
105
Sagar Dhariabe37c9c2016-11-28 23:06:58 -0700106config OF_SLIMBUS
107 def_tristate SLIMBUS
108 depends on SLIMBUS
109 help
110 OpenFirmware SLIMBUS accessors
111
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200112config OF_OVERLAY
Matwey V. Kornilov5c776062015-02-15 18:22:47 +0300113 bool "Device Tree overlays"
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200114 select OF_DYNAMIC
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200115 select OF_RESOLVE
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +0100116 help
117 Overlays are a method to dynamically modify part of the kernel's
118 device tree with dynamically loaded data.
119 While this option is selected automatically when needed, you can
120 enable it manually to improve device tree unit test coverage.
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200121
David Daney298535c2016-04-08 15:50:25 -0700122config OF_NUMA
123 bool
124
Subbaraman Narayanamurthy92264bd2017-03-23 00:52:12 -0700125config OF_BATTERYDATA
126 def_bool y
127 help
128 OpenFirmware BatteryData accessors
129
Rob Herring0166dc12015-05-28 12:48:45 -0500130endif # OF