blob: fdf7e41e8a4b04057a4b5e35a6135e520873dc4f [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"
Gaurav Minocha32147e92014-07-25 19:57:38 -070016 depends on OF_IRQ && OF_EARLY_FLATTREE
Grant Likely2eb46da2014-10-02 14:36:46 +010017 select OF_RESOLVE
Grant Likely53a42092011-12-12 09:25:57 -070018 help
19 This option builds in test cases for the device tree infrastructure
Geert Uytterhoeven5d927082013-12-24 21:06:01 +010020 that are executed once at boot time, and the results dumped to the
Grant Likely53a42092011-12-12 09:25:57 -070021 console.
22
23 If unsure, say N here, but this option is safe to enable.
24
Grant Likelye169cfb2009-11-23 14:53:09 -070025config OF_FLATTREE
26 bool
Grant Likely5ab5fc72010-07-05 12:02:13 -060027 select DTC
Rob Herringe6a69282014-04-02 15:10:14 -050028 select LIBFDT
Ard Biesheuvel08d53aa2014-11-14 18:05:35 +010029 select CRC32
Grant Likelye169cfb2009-11-23 14:53:09 -070030
Stephen Neuendorffere6ce1322010-11-18 15:54:56 -080031config OF_EARLY_FLATTREE
32 bool
33 select OF_FLATTREE
34
Andres Salomon3cfc5352010-10-10 21:42:33 -060035config OF_PROMTREE
36 bool
37
Grant Likely0f22dd32012-02-15 20:38:40 -070038# Hardly any platforms need this. It is safe to select, but only do so if you
39# need it.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070040config OF_DYNAMIC
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010041 bool "Support for dynamic device trees" if OF_UNITTEST
42 help
43 On some platforms, the device tree can be manipulated at runtime.
44 While this option is selected automatically on such platforms, you
45 can enable it manually to improve device tree unit test coverage.
Grant Likelyfcdeb7f2010-01-29 05:04:33 -070046
Grant Likely6b884a82010-06-08 07:48:09 -060047config OF_ADDRESS
48 def_bool y
Grant Likely5ab5fc72010-07-05 12:02:13 -060049 depends on !SPARC
Gregory CLEMENT25a31572014-02-19 23:14:55 +010050 select OF_ADDRESS_PCI if PCI
51
52config OF_ADDRESS_PCI
53 bool
Grant Likely6b884a82010-06-08 07:48:09 -060054
Grant Likelye3873442010-06-18 11:09:59 -060055config OF_IRQ
56 def_bool y
Geert Uytterhoeven63c60e32015-04-05 16:59:24 +020057 depends on !SPARC && IRQ_DOMAIN
Grant Likelye3873442010-06-18 11:09:59 -060058
David Daney4b6ba8a2010-10-26 15:07:13 -070059config OF_NET
60 depends on NETDEVICES
61 def_bool y
62
Grant Likely8bc487d2009-04-25 12:52:56 +000063config OF_MDIO
64 def_tristate PHYLIB
Grant Likely5ab5fc72010-07-05 12:02:13 -060065 depends on PHYLIB
Grant Likely8bc487d2009-04-25 12:52:56 +000066 help
67 OpenFirmware MDIO bus (Ethernet PHY) accessors
Grant Likely5ab5fc72010-07-05 12:02:13 -060068
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053069config OF_PCI
70 def_tristate PCI
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100071 depends on PCI
Sebastian Andrzej Siewior04bea682011-01-24 09:58:55 +053072 help
73 OpenFirmware PCI bus accessors
74
Benjamin Herrenschmidt98d9f30c82011-04-11 11:37:07 +100075config OF_PCI_IRQ
76 def_tristate PCI
77 depends on OF_PCI && OF_IRQ
78 help
79 OpenFirmware PCI IRQ routing helpers
80
Jean-Christophe PLAGNIOL-VILLARD770d7c32012-01-28 12:12:36 +080081config OF_MTD
82 depends on MTD
83 def_bool y
84
Marek Szyprowski3f0c8202014-02-28 14:42:48 +010085config OF_RESERVED_MEM
86 depends on OF_EARLY_FLATTREE
87 bool
88 help
89 Helpers to allow for reservation of memory regions
90
Pantelis Antoniou7941b272014-07-04 19:59:20 +030091config OF_RESOLVE
92 bool
93
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020094config OF_OVERLAY
Matwey V. Kornilov5c776062015-02-15 18:22:47 +030095 bool "Device Tree overlays"
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020096 select OF_DYNAMIC
Pantelis Antoniou7518b5892014-10-28 22:35:58 +020097 select OF_RESOLVE
Geert Uytterhoeven121c92c2015-01-23 17:10:04 +010098 help
99 Overlays are a method to dynamically modify part of the kernel's
100 device tree with dynamically loaded data.
101 While this option is selected automatically when needed, you can
102 enable it manually to improve device tree unit test coverage.
Pantelis Antoniou7518b5892014-10-28 22:35:58 +0200103
Rob Herring0166dc12015-05-28 12:48:45 -0500104endif # OF