Rob Herring | af6074f | 2017-12-27 12:55:14 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 2 | config DTC |
| 3 | bool |
| 4 | |
Rob Herring | 0166dc1 | 2015-05-28 12:48:45 -0500 | [diff] [blame] | 5 | menuconfig 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 Rothwell | bcbefae | 2010-06-29 12:45:51 +1000 | [diff] [blame] | 12 | |
Rob Herring | 0166dc1 | 2015-05-28 12:48:45 -0500 | [diff] [blame] | 13 | if OF |
Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 14 | |
Grant Likely | 19fd748 | 2014-11-04 13:24:45 +0000 | [diff] [blame] | 15 | config OF_UNITTEST |
| 16 | bool "Device Tree runtime unit tests" |
Rob Herring | 6019a3d | 2017-07-25 14:46:56 -0500 | [diff] [blame] | 17 | depends on !SPARC |
| 18 | select IRQ_DOMAIN |
Rob Herring | 649e0a7 | 2015-05-28 12:58:02 -0500 | [diff] [blame] | 19 | select OF_EARLY_FLATTREE |
Grant Likely | 2eb46da | 2014-10-02 14:36:46 +0100 | [diff] [blame] | 20 | select OF_RESOLVE |
Grant Likely | 53a4209 | 2011-12-12 09:25:57 -0700 | [diff] [blame] | 21 | help |
| 22 | This option builds in test cases for the device tree infrastructure |
Geert Uytterhoeven | 5d92708 | 2013-12-24 21:06:01 +0100 | [diff] [blame] | 23 | that are executed once at boot time, and the results dumped to the |
Grant Likely | 53a4209 | 2011-12-12 09:25:57 -0700 | [diff] [blame] | 24 | console. |
| 25 | |
| 26 | If unsure, say N here, but this option is safe to enable. |
| 27 | |
Rob Herring | 1b7c501 | 2015-10-06 17:57:33 -0500 | [diff] [blame] | 28 | config 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 Likely | e169cfb | 2009-11-23 14:53:09 -0700 | [diff] [blame] | 38 | config OF_FLATTREE |
| 39 | bool |
Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 40 | select DTC |
Rob Herring | e6a6928 | 2014-04-02 15:10:14 -0500 | [diff] [blame] | 41 | select LIBFDT |
Ard Biesheuvel | 08d53aa | 2014-11-14 18:05:35 +0100 | [diff] [blame] | 42 | select CRC32 |
Grant Likely | e169cfb | 2009-11-23 14:53:09 -0700 | [diff] [blame] | 43 | |
Stephen Neuendorffer | e6ce132 | 2010-11-18 15:54:56 -0800 | [diff] [blame] | 44 | config OF_EARLY_FLATTREE |
| 45 | bool |
Christoph Hellwig | ff4c25f | 2019-02-03 20:12:02 +0100 | [diff] [blame] | 46 | select DMA_DECLARE_COHERENT if HAS_DMA |
Stephen Neuendorffer | e6ce132 | 2010-11-18 15:54:56 -0800 | [diff] [blame] | 47 | select OF_FLATTREE |
| 48 | |
Andres Salomon | 3cfc535 | 2010-10-10 21:42:33 -0600 | [diff] [blame] | 49 | config OF_PROMTREE |
| 50 | bool |
| 51 | |
Rob Herring | b56b552 | 2017-10-04 14:09:40 -0500 | [diff] [blame] | 52 | config OF_KOBJ |
| 53 | def_bool SYSFS |
| 54 | |
Grant Likely | 0f22dd3 | 2012-02-15 20:38:40 -0700 | [diff] [blame] | 55 | # Hardly any platforms need this. It is safe to select, but only do so if you |
| 56 | # need it. |
Grant Likely | fcdeb7f | 2010-01-29 05:04:33 -0700 | [diff] [blame] | 57 | config OF_DYNAMIC |
Geert Uytterhoeven | 121c92c | 2015-01-23 17:10:04 +0100 | [diff] [blame] | 58 | bool "Support for dynamic device trees" if OF_UNITTEST |
Rob Herring | b56b552 | 2017-10-04 14:09:40 -0500 | [diff] [blame] | 59 | select OF_KOBJ |
Geert Uytterhoeven | 121c92c | 2015-01-23 17:10:04 +0100 | [diff] [blame] | 60 | help |
| 61 | On some platforms, the device tree can be manipulated at runtime. |
| 62 | While this option is selected automatically on such platforms, you |
| 63 | can enable it manually to improve device tree unit test coverage. |
Grant Likely | fcdeb7f | 2010-01-29 05:04:33 -0700 | [diff] [blame] | 64 | |
Grant Likely | 6b884a8 | 2010-06-08 07:48:09 -0600 | [diff] [blame] | 65 | config OF_ADDRESS |
| 66 | def_bool y |
Rob Herring | 6019a3d | 2017-07-25 14:46:56 -0500 | [diff] [blame] | 67 | depends on !SPARC && (HAS_IOMEM || UML) |
Grant Likely | 6b884a8 | 2010-06-08 07:48:09 -0600 | [diff] [blame] | 68 | |
Grant Likely | e387344 | 2010-06-18 11:09:59 -0600 | [diff] [blame] | 69 | config OF_IRQ |
| 70 | def_bool y |
Geert Uytterhoeven | 63c60e3 | 2015-04-05 16:59:24 +0200 | [diff] [blame] | 71 | depends on !SPARC && IRQ_DOMAIN |
Grant Likely | e387344 | 2010-06-18 11:09:59 -0600 | [diff] [blame] | 72 | |
Marek Szyprowski | 3f0c820 | 2014-02-28 14:42:48 +0100 | [diff] [blame] | 73 | config OF_RESERVED_MEM |
Rob Herring | 1ee292a | 2021-05-27 17:32:17 -0500 | [diff] [blame] | 74 | def_bool OF_EARLY_FLATTREE |
Marek Szyprowski | 3f0c820 | 2014-02-28 14:42:48 +0100 | [diff] [blame] | 75 | |
Pantelis Antoniou | 7941b27 | 2014-07-04 19:59:20 +0300 | [diff] [blame] | 76 | config OF_RESOLVE |
| 77 | bool |
| 78 | |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 79 | config OF_OVERLAY |
Matwey V. Kornilov | 5c77606 | 2015-02-15 18:22:47 +0300 | [diff] [blame] | 80 | bool "Device Tree overlays" |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 81 | select OF_DYNAMIC |
Frank Rowand | 39a751a | 2018-02-12 00:19:42 -0800 | [diff] [blame] | 82 | select OF_FLATTREE |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 83 | select OF_RESOLVE |
Geert Uytterhoeven | 121c92c | 2015-01-23 17:10:04 +0100 | [diff] [blame] | 84 | help |
| 85 | Overlays are a method to dynamically modify part of the kernel's |
| 86 | device tree with dynamically loaded data. |
| 87 | While this option is selected automatically when needed, you can |
| 88 | enable it manually to improve device tree unit test coverage. |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 89 | |
David Daney | 298535c | 2016-04-08 15:50:25 -0700 | [diff] [blame] | 90 | config OF_NUMA |
| 91 | bool |
| 92 | |
Michael Ellerman | dabf6b3 | 2020-01-26 22:52:47 +1100 | [diff] [blame] | 93 | config OF_DMA_DEFAULT_COHERENT |
| 94 | # arches should select this if DMA is coherent by default for OF devices |
| 95 | bool |
| 96 | |
Rob Herring | 0166dc1 | 2015-05-28 12:48:45 -0500 | [diff] [blame] | 97 | endif # OF |