blob: 783e0870bd225b0fb2b2e9ebc5ff7bd795f17d5c [file] [log] [blame]
Rob Herringaf6074f2017-12-27 12:55:14 -06001# SPDX-License-Identifier: GPL-2.0
Grant Likely5ab5fc72010-07-05 12:02:13 -06002config DTC
3 bool
4
Rob Herring0166dc12015-05-28 12:48:45 -05005menuconfig 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.
Stephen Rothwellbcbefae2010-06-29 12:45:51 +100012
Rob Herring0166dc12015-05-28 12:48:45 -050013if OF
Grant Likely5ab5fc72010-07-05 12:02:13 -060014
Grant Likely19fd7482014-11-04 13:24:45 +000015config OF_UNITTEST
16 bool "Device Tree runtime unit tests"
Rob Herring6019a3d2017-07-25 14:46:56 -050017 depends on !SPARC
18 select IRQ_DOMAIN
Rob Herring649e0a72015-05-28 12:58:02 -050019 select OF_EARLY_FLATTREE
Grant Likely2eb46da2014-10-02 14:36:46 +010020 select OF_RESOLVE
Grant Likely53a42092011-12-12 09:25:57 -070021 help
22 This option builds in test cases for the device tree infrastructure
Geert Uytterhoeven5d927082013-12-24 21:06:01 +010023 that are executed once at boot time, and the results dumped to the
Grant Likely53a42092011-12-12 09:25:57 -070024 console.
25
26 If unsure, say N here, but this option is safe to enable.
27
Rob Herring1b7c5012015-10-06 17:57:33 -050028config 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
Grant Likelye169cfb2009-11-23 14:53:09 -070038config OF_FLATTREE
39 bool
Grant Likely5ab5fc72010-07-05 12:02:13 -060040 select DTC
Rob Herringe6a69282014-04-02 15:10:14 -050041 select LIBFDT
Ard Biesheuvel08d53aa2014-11-14 18:05:35 +010042 select CRC32
Grant Likelye169cfb2009-11-23 14:53:09 -070043
Stephen Neuendorffere6ce1322010-11-18 15:54:56 -080044config OF_EARLY_FLATTREE
45 bool
46 select OF_FLATTREE
47
Andres Salomon3cfc5352010-10-10 21:42:33 -060048config OF_PROMTREE
49 bool
50
Rob Herringb56b5522017-10-04 14:09:40 -050051config OF_KOBJ
52 def_bool SYSFS
53
Grant Likely0f22dd32012-02-15 20:38:40 -070054# Hardly any platforms need this. It is safe to select, but only do so if you
55# need it.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070056config OF_DYNAMIC
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010057 bool "Support for dynamic device trees" if OF_UNITTEST
Rob Herringb56b5522017-10-04 14:09:40 -050058 select OF_KOBJ
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010059 help
60 On some platforms, the device tree can be manipulated at runtime.
61 While this option is selected automatically on such platforms, you
62 can enable it manually to improve device tree unit test coverage.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070063
Grant Likely6b884a82010-06-08 07:48:09 -060064config OF_ADDRESS
65 def_bool y
Rob Herring6019a3d2017-07-25 14:46:56 -050066 depends on !SPARC && (HAS_IOMEM || UML)
Grant Likely6b884a82010-06-08 07:48:09 -060067
Grant Likelye3873442010-06-18 11:09:59 -060068config OF_IRQ
69 def_bool y
Geert Uytterhoeven63c60e32015-04-05 16:59:24 +020070 depends on !SPARC && IRQ_DOMAIN
Grant Likelye3873442010-06-18 11:09:59 -060071
David Daney4b6ba8a2010-10-26 15:07:13 -070072config OF_NET
73 depends on NETDEVICES
74 def_bool y
75
Grant Likely8bc487d2009-04-25 12:52:56 +000076config OF_MDIO
77 def_tristate PHYLIB
Grant Likely5ab5fc72010-07-05 12:02:13 -060078 depends on PHYLIB
Arnd Bergmanna5e4bd92016-06-24 11:24:08 +020079 select FIXED_PHY
Grant Likely8bc487d2009-04-25 12:52:56 +000080 help
81 OpenFirmware MDIO bus (Ethernet PHY) accessors
Grant Likely5ab5fc72010-07-05 12:02:13 -060082
Marek Szyprowski3f0c8202014-02-28 14:42:48 +010083config OF_RESERVED_MEM
84 depends on OF_EARLY_FLATTREE
85 bool
86 help
87 Helpers to allow for reservation of memory regions
88
Pantelis Antoniou7941b272014-07-04 19:59:20 +030089config OF_RESOLVE
90 bool
91
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020092config OF_OVERLAY
Matwey V. Kornilov5c776062015-02-15 18:22:47 +030093 bool "Device Tree overlays"
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020094 select OF_DYNAMIC
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020095 select OF_RESOLVE
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010096 help
97 Overlays are a method to dynamically modify part of the kernel's
98 device tree with dynamically loaded data.
99 While this option is selected automatically when needed, you can
100 enable it manually to improve device tree unit test coverage.
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200101
David Daney298535c2016-04-08 15:50:25 -0700102config OF_NUMA
103 bool
104
Rob Herring0166dc12015-05-28 12:48:45 -0500105endif # OF