blob: 59bb8556e43ac8f975485465ca8d1b0fdfeba3c5 [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
Grant Likelye169cfb2009-11-23 14:53:09 -070026config OF_FLATTREE
27 bool
Grant Likely5ab5fc72010-07-05 12:02:13 -060028 select DTC
Rob Herringe6a69282014-04-02 15:10:14 -050029 select LIBFDT
Ard Biesheuvel08d53aa2014-11-14 18:05:35 +010030 select CRC32
Grant Likelye169cfb2009-11-23 14:53:09 -070031
Stephen Neuendorffere6ce1322010-11-18 15:54:56 -080032config OF_EARLY_FLATTREE
33 bool
34 select OF_FLATTREE
35
Andres Salomon3cfc5352010-10-10 21:42:33 -060036config OF_PROMTREE
37 bool
38
Grant Likely0f22dd32012-02-15 20:38:40 -070039# Hardly any platforms need this. It is safe to select, but only do so if you
40# need it.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070041config OF_DYNAMIC
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010042 bool "Support for dynamic device trees" if OF_UNITTEST
43 help
44 On some platforms, the device tree can be manipulated at runtime.
45 While this option is selected automatically on such platforms, you
46 can enable it manually to improve device tree unit test coverage.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070047
Grant Likely6b884a82010-06-08 07:48:09 -060048config OF_ADDRESS
49 def_bool y
Rob Herring39da8092015-07-05 10:18:41 -050050 depends on !SPARC && HAS_IOMEM
Gregory CLEMENT25a31572014-02-19 23:14:55 +010051 select OF_ADDRESS_PCI if PCI
52
53config OF_ADDRESS_PCI
54 bool
Grant Likely6b884a82010-06-08 07:48:09 -060055
Grant Likelye3873442010-06-18 11:09:59 -060056config OF_IRQ
57 def_bool y
Geert Uytterhoeven63c60e32015-04-05 16:59:24 +020058 depends on !SPARC && IRQ_DOMAIN
Grant Likelye3873442010-06-18 11:09:59 -060059
David Daney4b6ba8a2010-10-26 15:07:13 -070060config OF_NET
61 depends on NETDEVICES
62 def_bool y
63
Grant Likely8bc487d2009-04-25 12:52:56 +000064config OF_MDIO
65 def_tristate PHYLIB
Grant Likely5ab5fc72010-07-05 12:02:13 -060066 depends on PHYLIB
Grant Likely8bc487d2009-04-25 12:52:56 +000067 help
68 OpenFirmware MDIO bus (Ethernet PHY) accessors
Grant Likely5ab5fc72010-07-05 12:02:13 -060069
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053070config OF_PCI
71 def_tristate PCI
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100072 depends on PCI
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053073 help
74 OpenFirmware PCI bus accessors
75
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100076config OF_PCI_IRQ
77 def_tristate PCI
78 depends on OF_PCI && OF_IRQ
79 help
80 OpenFirmware PCI IRQ routing helpers
81
Jean-Christophe PLAGNIOL-VILLARD770d7c32012-01-28 12:12:36 +080082config OF_MTD
83 depends on MTD
84 def_bool y
85
Marek Szyprowski3f0c8202014-02-28 14:42:48 +010086config OF_RESERVED_MEM
87 depends on OF_EARLY_FLATTREE
88 bool
89 help
90 Helpers to allow for reservation of memory regions
91
Pantelis Antoniou7941b272014-07-04 19:59:20 +030092config OF_RESOLVE
93 bool
94
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020095config OF_OVERLAY
Matwey V. Kornilov5c776062015-02-15 18:22:47 +030096 bool "Device Tree overlays"
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020097 select OF_DYNAMIC
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020098 select OF_RESOLVE
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010099 help
100 Overlays are a method to dynamically modify part of the kernel's
101 device tree with dynamically loaded data.
102 While this option is selected automatically when needed, you can
103 enable it manually to improve device tree unit test coverage.
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200104
Rob Herring0166dc12015-05-28 12:48:45 -0500105endif # OF