Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 1 | config DTC |
| 2 | bool |
| 3 | |
Rob Herring | 0166dc1 | 2015-05-28 12:48:45 -0500 | [diff] [blame] | 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. |
Stephen Rothwell | bcbefae | 2010-06-29 12:45:51 +1000 | [diff] [blame] | 11 | |
Rob Herring | 0166dc1 | 2015-05-28 12:48:45 -0500 | [diff] [blame] | 12 | if OF |
Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 13 | |
Grant Likely | 19fd748 | 2014-11-04 13:24:45 +0000 | [diff] [blame] | 14 | config OF_UNITTEST |
| 15 | bool "Device Tree runtime unit tests" |
Rob Herring | 649e0a7 | 2015-05-28 12:58:02 -0500 | [diff] [blame] | 16 | depends on OF_IRQ |
| 17 | select OF_EARLY_FLATTREE |
Grant Likely | 2eb46da | 2014-10-02 14:36:46 +0100 | [diff] [blame] | 18 | select OF_RESOLVE |
Grant Likely | 53a4209 | 2011-12-12 09:25:57 -0700 | [diff] [blame] | 19 | help |
| 20 | This option builds in test cases for the device tree infrastructure |
Geert Uytterhoeven | 5d92708 | 2013-12-24 21:06:01 +0100 | [diff] [blame] | 21 | 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] | 22 | console. |
| 23 | |
| 24 | If unsure, say N here, but this option is safe to enable. |
| 25 | |
Rob Herring | 1b7c501 | 2015-10-06 17:57:33 -0500 | [diff] [blame] | 26 | config 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 Likely | e169cfb | 2009-11-23 14:53:09 -0700 | [diff] [blame] | 36 | config OF_FLATTREE |
| 37 | bool |
Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 38 | select DTC |
Rob Herring | e6a6928 | 2014-04-02 15:10:14 -0500 | [diff] [blame] | 39 | select LIBFDT |
Ard Biesheuvel | 08d53aa | 2014-11-14 18:05:35 +0100 | [diff] [blame] | 40 | select CRC32 |
Grant Likely | e169cfb | 2009-11-23 14:53:09 -0700 | [diff] [blame] | 41 | |
Stephen Neuendorffer | e6ce132 | 2010-11-18 15:54:56 -0800 | [diff] [blame] | 42 | config OF_EARLY_FLATTREE |
| 43 | bool |
| 44 | select OF_FLATTREE |
| 45 | |
Andres Salomon | 3cfc535 | 2010-10-10 21:42:33 -0600 | [diff] [blame] | 46 | config OF_PROMTREE |
| 47 | bool |
| 48 | |
Grant Likely | 0f22dd3 | 2012-02-15 20:38:40 -0700 | [diff] [blame] | 49 | # Hardly any platforms need this. It is safe to select, but only do so if you |
| 50 | # need it. |
Grant Likely | fcdeb7f | 2010-01-29 05:04:33 -0700 | [diff] [blame] | 51 | config OF_DYNAMIC |
Geert Uytterhoeven | 121c92c | 2015-01-23 17:10:04 +0100 | [diff] [blame] | 52 | bool "Support for dynamic device trees" if OF_UNITTEST |
| 53 | help |
| 54 | On some platforms, the device tree can be manipulated at runtime. |
| 55 | While this option is selected automatically on such platforms, you |
| 56 | can enable it manually to improve device tree unit test coverage. |
Grant Likely | fcdeb7f | 2010-01-29 05:04:33 -0700 | [diff] [blame] | 57 | |
Grant Likely | 6b884a8 | 2010-06-08 07:48:09 -0600 | [diff] [blame] | 58 | config OF_ADDRESS |
| 59 | def_bool y |
Rob Herring | 39da809 | 2015-07-05 10:18:41 -0500 | [diff] [blame] | 60 | depends on !SPARC && HAS_IOMEM |
Gregory CLEMENT | 25a3157 | 2014-02-19 23:14:55 +0100 | [diff] [blame] | 61 | select OF_ADDRESS_PCI if PCI |
| 62 | |
| 63 | config OF_ADDRESS_PCI |
| 64 | bool |
Grant Likely | 6b884a8 | 2010-06-08 07:48:09 -0600 | [diff] [blame] | 65 | |
Grant Likely | e387344 | 2010-06-18 11:09:59 -0600 | [diff] [blame] | 66 | config OF_IRQ |
| 67 | def_bool y |
Geert Uytterhoeven | 63c60e3 | 2015-04-05 16:59:24 +0200 | [diff] [blame] | 68 | depends on !SPARC && IRQ_DOMAIN |
Grant Likely | e387344 | 2010-06-18 11:09:59 -0600 | [diff] [blame] | 69 | |
David Daney | 4b6ba8a | 2010-10-26 15:07:13 -0700 | [diff] [blame] | 70 | config OF_NET |
| 71 | depends on NETDEVICES |
| 72 | def_bool y |
| 73 | |
Grant Likely | 8bc487d | 2009-04-25 12:52:56 +0000 | [diff] [blame] | 74 | config OF_MDIO |
| 75 | def_tristate PHYLIB |
Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 76 | depends on PHYLIB |
Grant Likely | 8bc487d | 2009-04-25 12:52:56 +0000 | [diff] [blame] | 77 | help |
| 78 | OpenFirmware MDIO bus (Ethernet PHY) accessors |
Grant Likely | 5ab5fc7 | 2010-07-05 12:02:13 -0600 | [diff] [blame] | 79 | |
Sebastian Andrzej Siewior | 04bea68 | 2011-01-24 09:58:55 +0530 | [diff] [blame] | 80 | config OF_PCI |
| 81 | def_tristate PCI |
Benjamin Herrenschmidt | 98d9f30c8 | 2011-04-11 11:37:07 +1000 | [diff] [blame] | 82 | depends on PCI |
Sebastian Andrzej Siewior | 04bea68 | 2011-01-24 09:58:55 +0530 | [diff] [blame] | 83 | help |
| 84 | OpenFirmware PCI bus accessors |
| 85 | |
Benjamin Herrenschmidt | 98d9f30c8 | 2011-04-11 11:37:07 +1000 | [diff] [blame] | 86 | config OF_PCI_IRQ |
| 87 | def_tristate PCI |
| 88 | depends on OF_PCI && OF_IRQ |
| 89 | help |
| 90 | OpenFirmware PCI IRQ routing helpers |
| 91 | |
Jean-Christophe PLAGNIOL-VILLARD | 770d7c3 | 2012-01-28 12:12:36 +0800 | [diff] [blame] | 92 | config OF_MTD |
| 93 | depends on MTD |
| 94 | def_bool y |
| 95 | |
Marek Szyprowski | 3f0c820 | 2014-02-28 14:42:48 +0100 | [diff] [blame] | 96 | config OF_RESERVED_MEM |
| 97 | depends on OF_EARLY_FLATTREE |
| 98 | bool |
| 99 | help |
| 100 | Helpers to allow for reservation of memory regions |
| 101 | |
Pantelis Antoniou | 7941b27 | 2014-07-04 19:59:20 +0300 | [diff] [blame] | 102 | config OF_RESOLVE |
| 103 | bool |
| 104 | |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 105 | config OF_OVERLAY |
Matwey V. Kornilov | 5c77606 | 2015-02-15 18:22:47 +0300 | [diff] [blame] | 106 | bool "Device Tree overlays" |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 107 | select OF_DYNAMIC |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 108 | select OF_RESOLVE |
Geert Uytterhoeven | 121c92c | 2015-01-23 17:10:04 +0100 | [diff] [blame] | 109 | help |
| 110 | Overlays are a method to dynamically modify part of the kernel's |
| 111 | device tree with dynamically loaded data. |
| 112 | While this option is selected automatically when needed, you can |
| 113 | enable it manually to improve device tree unit test coverage. |
Pantelis Antoniou | 7518b589 | 2014-10-28 22:35:58 +0200 | [diff] [blame] | 114 | |
Rob Herring | 0166dc1 | 2015-05-28 12:48:45 -0500 | [diff] [blame] | 115 | endif # OF |